longlong: Mark module obsolete.
[gnulib.git] / ChangeLog
blob89f7ad9a0059f403e33271188f3e5405be166fa0
1 2019-12-22  Bruno Haible  <bruno@clisp.org>
3         longlong: Mark module obsolete.
4         * modules/longlong (Status, Notice): New sections.
6         stdint: Assume that the compiler supports 'long long'.
7         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
8         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
9         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
11         AC_TYPE_UNSIGNED_LONG_LONG_INT.
12         * modules/stdint (Files): Remove longlong.m4.
13         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
14         HAVE_UNSIGNED_LONG_LONG_INT.
16         inttypes-incomplete: Assume that the compiler supports 'long long'.
17         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
18         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
19         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
20         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
21         HAVE_LONG_LONG_INT to be 1.
22         * modules/inttypes-incomplete (Makefile.am): Don't substitute
23         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
25         malloca: Assume that the compiler supports 'long long'.
26         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
27         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
28         * modules/malloca (Files): Remove longlong.m4.
29         * modules/relocatable-prog-wrapper (Files): Likewise.
31         atoll: Assume that the compiler supports 'long long'.
32         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
33         * modules/atoll (Files): Remove longlong.m4.
35         strtoll: Assume that the compiler supports 'long long'.
36         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
37         * modules/strtoll (Files): Remove longlong.m4.
39         strtoull: Assume that the compiler supports 'long long'.
40         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
41         AC_TYPE_UNSIGNED_LONG_LONG_INT.
42         * modules/strtoull (Files): Remove longlong.m4.
44         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
45         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
46         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
47         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
48         AC_TYPE_LONG_LONG_INT.
49         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
50         AC_TYPE_UNSIGNED_LONG_LONG_INT.
51         * modules/strtoimax (Files): Remove longlong.m4.
52         * modules/strtoumax (Files): Likewise.
54         xstrtoll: Assume that the compiler supports 'long long'.
55         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
56         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
58         vasnprintf: Assume that the compiler supports 'long long'.
59         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
60         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
61         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
62         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
63         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
64         require AC_TYPE_LONG_LONG_INT.
65         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
66         gl_PREREQ_VASNPRINTF): Likewise.
67         * modules/vasnprintf (Files): Remove longlong.m4.
68         * modules/c-vasnprintf (Files): Likewise.
69         * modules/unistdio/u8-vasnprintf (Files): Likewise.
70         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
71         * modules/unistdio/u16-vasnprintf (Files): Likewise.
72         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
73         * modules/unistdio/u32-vasnprintf (Files): Likewise.
74         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
75         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
77         gethrxtime: Assume that the compiler supports 'long long'.
78         * lib/xtime.h (xtime_t): Define to 'long long int' always.
79         (XTIME_PRECISION): Define to 1000000000 always.
80         (xtime_make, xtime_sec): Optimize accordingly.
81         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
82         * modules/gethrxtime (Files): Remove longlong.m4.
84         integer_length*: Assume that the compiler supports 'long long'.
85         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
86         * modules/integer_length (Files): Remove longlong.m4.
87         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
88         * modules/integer_length_l (Files): Remove longlong.m4.
89         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
90         * modules/integer_length_ll (Files): Remove longlong.m4.
91         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
93         count-one-bits: Assume that the compiler supports 'long long'.
94         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
95         * m4/count-one-bits.m4: Remove file.
96         * modules/count-one-bits (Files): Remove it.
97         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
98         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
99         unconditionally.
101         count-trailing-zeros: Assume that the compiler supports 'long long'.
102         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
103         unconditionally.
104         * m4/count-trailing-zeros.m4: Remove file.
105         * modules/count-trailing-zeros (Files): Remove it.
106         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
107         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
108         unconditionally.
110         count-leading-zeros: Assume that the compiler supports 'long long'.
111         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
112         unconditionally.
113         * m4/count-leading-zeros.m4: Remove file.
114         * modules/count-leading-zeros (Files): Remove it.
115         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
116         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
117         unconditionally.
119 2019-12-22  Bruno Haible  <bruno@clisp.org>
121         localcharset: Update support for OpenBSD.
122         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
124 2019-12-21  Bruno Haible  <bruno@clisp.org>
126         pthread_sigmask: Avoid test failure on NetBSD 8.0.
127         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
128         NetBSD.
129         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
131 2019-12-21  Bruno Haible  <bruno@clisp.org>
133         threadlib: Improve code structure.
134         * m4/threadlib.m4: Reorder macros. Add comments.
136 2019-12-21  Bruno Haible  <bruno@clisp.org>
138         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
139         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
140         here from m4/threads.m4).
141         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
142         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
143         (gl_STDTHREADLIB): New macro.
144         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
145         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
147 2019-12-21  Bruno Haible  <bruno@clisp.org>
149         sched_yield: Don't depend on threadlib and yield.
150         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
151         LIB_SCHED_YIELD.
152         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
153         m4/yield.m4).
154         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
155         gl_THREADLIB and gl_YIELD.
156         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
157         based on $(LIB_SCHED_YIELD).
158         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
159         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
160         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
161         (Depends-on): Remove threadlib.
162         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
163         * modules/threads-h (Files): Remove m4/yield.m4.
164         * modules/pthread-cond-tests (Makefile.am): Link the programs against
165         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
166         * modules/pthread-mutex-tests (Makefile.am): Likewise.
167         * modules/pthread-once-tests (Makefile.am): Likewise.
168         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
169         * modules/pthread-tss-tests (Makefile.am): Likewise.
171 2019-12-21  Bruno Haible  <bruno@clisp.org>
173         threads-h: Don't depend on threadlib.
174         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
175         not gl_THREADLIB_EARLY.
177 2019-12-21  Bruno Haible  <bruno@clisp.org>
179         nl_langinfo tests: Fix link error (regression from 2019-12-18).
180         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
181         with $(LIB_SETLOCALE).
183 2019-12-21  Bruno Haible  <bruno@clisp.org>
185         threadlib: Remove unused dependency (left over from 2019-07-06).
186         * modules/threadlib (Depends-on): Remove havelib.
188 2019-12-21  Bruno Haible  <bruno@clisp.org>
190         New convention for multithread-safety tests.
191         * tests/test-setlocale_null-mt-one.c: Renamed from
192         tests/test-setlocale_null-one.c.
193         * tests/test-setlocale_null-mt-all.c: Renamed from
194         tests/test-setlocale_null-all.c.
195         * modules/setlocale-null-tests (Files, Makefile.am): Update.
197 2019-12-21  Bruno Haible  <bruno@clisp.org>
199         quotearg tests: Fix conflict with hard-locale tests.
200         * tests/testlocale: Renamed from tests/locale.
201         * modules/quotearg-tests (Files): Update.
202         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
204 2019-12-21  Bruno Haible  <bruno@clisp.org>
206         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
207         Reported by Daniel Richard G. in
208         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
209         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
210         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
211         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
212         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
213         alternative to PTHREAD_RWLOCK_INITIALIZER.
214         * lib/glthread/lock.c: Likewise.
216 2019-12-21  Bruno Haible  <bruno@clisp.org>
218         memcmp tests: Work around the clang bug.
219         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
220         the clang optimization.
222 2019-12-20  Bruno Haible  <bruno@clisp.org>
224         localcharset: Add support for z/OS encoding names.
225         * lib/localcharset.h: Mention which encodings are used as locale
226         encodings on z/OS.
228 2019-12-20  Bruno Haible  <bruno@clisp.org>
230         iconv_open: Add support for z/OS encoding names.
231         Reported by Daniel Richard G. in
232         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
233         * lib/iconv_open-zos.gperf: New file.
234         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
235         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
236         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
237         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
238         * doc/posix-functions/iconv_open.texi: Mention z/OS.
240 2019-12-20  Bruno Haible  <bruno@clisp.org>
242         doc: Document the problem of the per-thread locale functions on z/OS.
243         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
244         * doc/posix-functions/newlocale.texi: Likewise.
245         * doc/posix-functions/duplocale.texi: Likewise.
246         * doc/posix-functions/freelocale.texi: Likewise.
248 2019-12-20  Bruno Haible  <bruno@clisp.org>
250         localename, gettext: Fix host_os value for z/OS.
251         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
252         cross-configuration code.
254 2019-12-19  Jim Meyering  <meyering@fb.com>
256         nstrftime: avoid a shadowing warning
257         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
258         to avoid shadowing an "i" declared hundreds of lines above.
260 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
262         dfa: struct dfamust now uses flexible array
263         * lib/dfa.c: Include flexmember.h.
264         (dfamust, dfamustfree): Adjust to struct dfamust change.
265         This saves a call to malloc+free.
266         * lib/dfa.h (struct dfamust): Make the final member a
267         flexible array member.
268         * modules/dfa (Depends-on): Add flexmember.
270         dfa: fast->small for array elements
271         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
272         since this type is used in arrays.  This change is more for
273         documentation than for any practical effect, since the two types
274         are the same on all known platforms.
276 2019-12-19  Bruno Haible  <bruno@clisp.org>
278         iconv tests: Test canonicalized, not system-dependent, encoding names.
279         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
280         * modules/iconv-tests (Depends-on): Add iconv_open.
282 2019-12-18  Bruno Haible  <bruno@clisp.org>
284         localename: Fix test failure on AIX 7.2.
285         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
286         locales on AIX.
287         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
288         locales on AIX.
290 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
292         Improve port of AC_C_RESTRICT to Oracle C++
293         Problem reported by Christian Biesinger in:
294         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
295         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
296         Oracle Developer Studio C++ 12.5 or later.
298 2019-12-18  Bruno Haible  <bruno@clisp.org>
300         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
301         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
303 2019-12-18  Bruno Haible  <bruno@clisp.org>
305         localename: Ensure multithread-safety in future changes.
306         * lib/localename.c (setlocale): Reference the system's setlocale().
307         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
308         (gl_locale_name_posix): Likewise.
309         * modules/localename (Depends-on): Add setlocale-null.
311 2019-12-18  Bruno Haible  <bruno@clisp.org>
313         setlocale-null: Make API more useful.
314         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
315         callers changed.
316         (setlocale_null): New declaration.
317         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
318         extracted from setlocale_null_unlocked.
319         (setlocale_null_unlocked): Invoke it.
320         (setlocale_null_r): Renamed from setlocale_null.
321         (setlocale_null): New function, extracted from setlocale_mtsafe in
322         setlocale.c.
323         * lib/setlocale.c: Don't include <errno.h>.
324         (setlocale_mtsafe): Invoke setlocale_null.
325         * lib/setlocale-lock.c: Update comments.
326         * doc/posix-functions/setlocale.texi: Mention both functions.
328 2019-12-18  Bruno Haible  <bruno@clisp.org>
330         localename: Optimize code for native Windows.
331         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
332         category (not allowed here).
334 2019-12-18  Bruno Haible  <bruno@clisp.org>
336         setlocale: Make calls with NULL argument multithread-safe.
337         * lib/setlocale.c: Include <errno.h>.
338         (setlocale_mtsafe): New function.
339         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
340         (setlocale_improved): Renamed from rpl_setlocale.
341         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
342         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
343         LIB_SETLOCALE.
344         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
345         (Link): New section.
346         * tests/locale.c: Undefine setlocale.
347         * tests/test-setlocale_null-one.c: Likewise.
348         * tests/test-setlocale_null-all.c: Likewise.
349         * modules/setlocale-tests (Makefile.am): Link the test programs with
350         $(LIB_SETLOCALE).
351         * modules/astrxfrm-tests (Makefile.am): Likewise.
352         * modules/btowc-tests (Makefile.am): Likewise.
353         * modules/c-ctype-tests (Makefile.am): Likewise.
354         * modules/c-snprintf-tests (Makefile.am): Likewise.
355         * modules/c-strcase-tests (Makefile.am): Likewise.
356         * modules/c-vasprintf-tests (Makefile.am): Likewise.
357         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
358         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
359         * modules/dfa-tests (Makefile.am): Likewise.
360         * modules/duplocale-tests (Makefile.am): Likewise.
361         * modules/hard-locale-tests (Makefile.am): Likewise.
362         * modules/localcharset-tests (Makefile.am): Likewise.
363         * modules/localename-tests (Makefile.am): Likewise.
364         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
365         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
366         * modules/mbrtowc-tests (Makefile.am): Likewise.
367         * modules/mbscasecmp-tests (Makefile.am): Likewise.
368         * modules/mbscasestr-tests (Makefile.am): Likewise.
369         * modules/mbschr-tests (Makefile.am): Likewise.
370         * modules/mbscspn-tests (Makefile.am): Likewise.
371         * modules/mbsinit-tests (Makefile.am): Likewise.
372         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
373         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
374         * modules/mbspbrk-tests (Makefile.am): Likewise.
375         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
376         * modules/mbsrchr-tests (Makefile.am): Likewise.
377         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
378         * modules/mbsspn-tests (Makefile.am): Likewise.
379         * modules/mbsstr-tests (Makefile.am): Likewise.
380         * modules/nl_langinfo-tests (Makefile.am): Likewise.
381         * modules/quotearg-tests (Makefile.am): Likewise.
382         * modules/regex-tests (Makefile.am): Likewise.
383         * modules/strfmon_l-tests (Makefile.am): Likewise.
384         * modules/strtod-tests (Makefile.am): Likewise.
385         * modules/strtold-tests (Makefile.am): Likewise.
386         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
387         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
388         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
389         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
390         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
391         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
392         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
393         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
394         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
395         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
396         * modules/wcrtomb-tests (Makefile.am): Likewise.
397         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
398         * modules/wcsrtombs-tests (Makefile.am): Likewise.
399         * modules/wcwidth-tests (Makefile.am): Likewise.
400         * doc/posix-functions/setlocale.texi: Mention that the multithread-
401         safety fix is also available in module 'setlocale'.
403 2019-12-18  Bruno Haible  <bruno@clisp.org>
405         hard-locale: Make multithread-safe.
406         * lib/hard-locale.h (hard_locale): Move documentation to here.
407         * lib/hard-locale.c: Don't include <stdlib.h>.
408         (GLIBC_VERSION): Remove macro.
409         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
410         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
411         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
412         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
413         (Link): New section.
414         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
415         $(LIB_HARD_LOCALE).
417 2019-12-18  Bruno Haible  <bruno@clisp.org>
419         hard-locale: Avoid test failure on Haiku.
420         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
422 2019-12-18  Bruno Haible  <bruno@clisp.org>
424         setlocale-null: Handle NULL result from setlocale.
425         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
426         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
427         from setlocale or _wsetlocale.
429 2019-12-18  Bruno Haible  <bruno@clisp.org>
431         hard-locale: Add test.
432         * tests/test-hard-locale.c: New file.
433         * tests/locale.c: New file.
434         * modules/hard-locale-tests: New file.
436 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
438         dfa: do not match invalid UTF-8
439         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
440         from 5 to 9 tokens; this is needed due to the changes to
441         add_utf8_anychar.
442         (charclass_index): 2nd arg is now pointer-to-const.
443         (add_utf8_anychar): Match only valid UTF-8 byte sequences
444         instead of allowing overlong encodings or surrogate halves.
446         dfa: simplify charclass by assuming C99
447         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
448         (charclass_word): Now always uint_fast64_t.
449         (CHARCLASS_PAIR): Remove.
450         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
452         fts: tune via calloc
453         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
455         dfa: tune via xzalloc
456         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
458 2019-12-17  Bruno Haible  <bruno@clisp.org>
460         localcharset: Fix multithread-safety bug on Windows and OS/2.
461         * lib/localcharset.h (locale_charset): Clarify when the result becomes
462         invalid.
463         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
464         assemble the result.
466 2019-12-17  Bruno Haible  <bruno@clisp.org>
468         localcharset: Optimize code for native Windows.
469         * lib/localcharset.c (locale_charset): Don't bother calling
470         setlocale (LC_ALL, NULL) since we're not interested in its result.
472 2019-12-17  Bruno Haible  <bruno@clisp.org>
474         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
475         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
476         setlocale.
477         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
478         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
479         * modules/nl_langinfo (Depends-on): Add setlocale-null.
481 2019-12-17  Bruno Haible  <bruno@clisp.org>
483         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
484         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
485         stack-allocated buffer to assemble each result and different static
486         buffers to return it.
487         * tests/test-nl_langinfo-mt.c: New file.
488         * modules/nl_langinfo-tests (Files): Add it.
489         (Depends-on): Add thread, nanosleep.
490         (Makefile.am): Build test-nl_langinfo-mt test.
492 2019-12-17  Bruno Haible  <bruno@clisp.org>
494         langinfo: Document more details.
495         * doc/posix-headers/langinfo.texi: List platform details.
496         * doc/posix-functions/nl_langinfo.texi: Likewise.
498 2019-12-17  Bruno Haible  <bruno@clisp.org>
500         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
501         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
502         and Martin Storsjö <martin@martin.st>
503         in <https://savannah.gnu.org/bugs/?57406>.
504         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
505         mingw.
507 2019-12-17  Bruno Haible  <bruno@clisp.org>
509         glob: Avoid warning on mingw.
510         Reported by Christian Biesinger <cbiesinger@google.com> in
511         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
512         * lib/glob.c (__stat64): Undefine first.
514 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
516         xalloc: tune xzalloc for fresh allocations
517         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
518         because when the memory is freshly allocated from the OS via sbrk
519         or mmap, calloc can avoid doing the memset.
521         dfa: new function dfacopysyntax
522         * lib/dfa.c (struct dfa): Move syntax member later so
523         that dfacopysyntax can easily clear earlier members.
524         (dfacopysyntax): New function, used by Gawk.
526 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
528         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
529         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
530         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
531         if not already defined.
533         dfa: remove one dependency on MB_CUR_MAX
534         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
536         dfa: remove struct lexer_state.cur_mb_len
537         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
538         as it’s not needed and the code is simpler without it.
539         All uses removed.
541 2019-12-16  Bruno Haible  <bruno@clisp.org>
543         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
544         Reported by Arnold Robbins <arnold@skeeve.com>.
545         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
546         copied from lib/glthread/lock.h.
547         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
548         (setlocale_null_with_lock): If pthread_in_use() is false, use
549         setlocale_null_unlocked directly.
550         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
551         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
552         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
553         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
554         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
555         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
557 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
559         dfa: make dfasyntax thread-safe
560         Problem reported by Bruno Haible in:
561         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
562         * lib/dfa.c: Do not include locale.h.
563         (struct dfa): Remove simple_locale member.
564         All uses replaced by localeinfo.simple.
565         (using_simple_locale): Remove; now present (with some
566         changes) in localeinfo.c.
567         (dfasyntax): No need to initialize removed member.
569         localeinfo: record whether locale is simple
570         * lib/localeinfo.c (using_simple_locale): New function,
571         copied here from lib/dfa.c but with a change: it uses
572         strcoll for its heuristic, instead of using setlocale.
573         This lets it be thread-safe.
574         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
576 2019-12-15  Bruno Haible  <bruno@clisp.org>
578         duplocale: Fix multithread-safety bug on AIX.
579         * lib/duplocale.c: Don't include <stdlib.h>.
580         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
581         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
582         Set LIB_DUPLOCALE.
583         * modules/duplocale (Depends-on): Add setlocale-null.
584         (Link): New section.
585         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
586         $(LIB_DUPLOCALE).
588 2019-12-15  Bruno Haible  <bruno@clisp.org>
590         setlocale-null: Add tests.
591         * tests/test-setlocale_null.c: New file.
592         * tests/test-setlocale_null-one.c: New file.
593         * tests/test-setlocale_null-all.c: New file.
594         * modules/setlocale-null-tests: New file.
596         setlocale-null: New module.
597         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
598         setlocale_null): New declarations.
599         * lib/setlocale_null.c: New file.
600         * lib/setlocale-lock.c: New file.
601         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
602         * m4/setlocale_null.m4: New file.
603         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
604         GNULIB_SETLOCALE_NULL.
605         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
606         * modules/setlocale-null: New file.
607         * doc/posix-functions/setlocale.texi: Mention the new module.
609 2019-12-15  Bruno Haible  <bruno@clisp.org>
611         lock tests: Skip test when no multithreading is enabled.
612         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
614 2019-12-14  Bruno Haible  <bruno@clisp.org>
616         locale, duplocale, localename: Fix last patch.
617         Reported by Daniel Richard G. in
618         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
619         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
620         Don't define if locale_t does not exist.
622 2019-12-13  Bruno Haible  <bruno@clisp.org>
624         locale, duplocale, localename: Fix errors if locale_t does not exist.
625         Reported by Daniel Richard G. in
626         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
627         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
628         macros.
629         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
630         HAVE_NEWLOCALE.
631         * tests/test-localename.c: Likewise.
632         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
633         HAVE_DUPLOCALE.
634         * tests/test-locale-c++.cc: Likewise.
636 2019-12-13  Bruno Haible  <bruno@clisp.org>
638         wcstok: Fix test failure on HP-UX.
639         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
640         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
642 2019-12-12  Bruno Haible  <bruno@clisp.org>
644         strtod, strtold tests: Avoid test failure on AIX 7.2.
645         * tests/test-strtod1.c (main): Allow implementations in which ',' and
646         '.' both are radix characters.
647         * tests/test-strtold1.c (main): Likewise.
649 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
651         dfa: prefer ptrdiff_t for API, too
652         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
653         but do this only for internal use for now.
654         * NEWS: Mention the API change.
655         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
656         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
657         values known to be nonnegative.
658         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
659         Prefer idx_t or ptrdiff_t to size_t for API.
660         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
661         Prefer ptrdiff_t to size_t for API.
663         stdalign: port to xlclang 16.01
664         Problem reportd by Bruno Haible in:
665         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
666         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
667         ((__aligned__ (...))) with xlclang, as a top-level
668         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
669         xlclang version 16.01.0000.0001; the alignment directive is ignored.
671 2019-12-12  Bruno Haible  <bruno@clisp.org>
673         duplocale: Fix test failure on AIX 7.2 with xlclang.
674         * lib/duplocale.c: Include <stdlib.h>.
675         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
676         value.
678 2019-12-12  Bruno Haible  <bruno@clisp.org>
680         stddef: Document the AIX xlc issue.
681         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
683 2019-12-12  Bruno Haible  <bruno@clisp.org>
685         duplocale: Don't attempt to override if locale_t does not exist.
686         Reported by Daniel Richard G. in
687         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
688         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
689         HAVE_DUPLOCALE to 0.
691 2019-12-12  Bruno Haible  <bruno@clisp.org>
693         wcwidth: Avoid test failure on AIX 7.2.
694         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
695         negative.
696         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
698 2019-12-12  Bruno Haible  <bruno@clisp.org>
700         ilogbl: Work around Cygwin bug.
701         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
702         correct.
703         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
705 2019-12-12  Bruno Haible  <bruno@clisp.org>
707         strtold: Work around Cygwin bug.
708         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
709         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
710         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
711         STRTOLD_HAS_UNDERFLOW_BUG is defined.
712         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
714 2019-12-12  Bruno Haible  <bruno@clisp.org>
716         strtold: Fix autoconf test.
717         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
719 2019-12-11  Bruno Haible  <bruno@clisp.org>
721         fsync tests: Skip test that is known to fail.
722         * doc/posix-functions/fsync.texi: Update list of platforms.
723         * tests/test-fsync.c (main): Skip test with read-only file descriptors
724         that is known to fail on AIX and Cygwin.
726 2019-12-11  Bruno Haible  <bruno@clisp.org>
728         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
729         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
730         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
731         HAVE_GETADDRINFO as a C macro.
732         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
733         declare as replacement functions.
734         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
735         define as no-op overrides.
736         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
737         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
738         * modules/getaddrinfo (Depends-on, configure.ac): Test
739         REPLACE_GETADDRINFO.
740         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
741         problem.
742         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
743         convention problems.
745 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
747         dfa: prefer signed integers for internals
748         Signed integers can be checked more easily for integer overflow.
749         * lib/dfa.c (position, struct lexer_state, struct parser_state)
750         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
751         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
752         (nsubtoks, copytoks, closure, alloc_position_set, delete)
753         (replace, state_index, epsclosure, charclass_context)
754         (state_separate_contexts, merge_nfa_state, dfaoptimize)
755         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
756         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
757         (comsubs, inboth, allocmust):
758         Prefer a signed to an unsigned integer when calculating indexes,
759         unless the integer is part of the external API (a bigger deal,
760         and to be done later).
762         dfa: fix index overflow
763         * lib/dfa.c (compare): Avoid integer overflow when analyzing
764         very large regular expressions.
766         dfa: update commentary for previous change
767         * NEWS: Mention the change.
768         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
770 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
772         dfa: separate parse and compile phase
773         ‘dfamust’ must be called after parsing and before tokens are
774         reordered, but both are executed in the compilation phase.
775         Token reordering was introduced in Gnulib commit
776         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
777         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
778         * lib/dfa.c (dfaparse): Change it to global function.
779         (dfacomp): If first argument is NULL, skip parse.
780         * lib/dfa.h: (dfaparse): Add a prototype.
782 2019-12-11  Bruno Haible  <bruno@clisp.org>
784         unistd tests: Fix link error on MSVC.
785         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
786         $(LIB_GETLOGIN).
788 2019-12-11  Bruno Haible  <bruno@clisp.org>
790         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
791         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
792         and POSIX substitutes are supported in C++ mode.
793         * NEWS: Likewise.
795 2019-12-11  Bruno Haible  <bruno@clisp.org>
797         stddef: Fix compilation error in C++ mode on MSVC.
798         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
799         instead, include <cstddef>.
801 2019-12-11  Bruno Haible  <bruno@clisp.org>
803         unistd: Fix compilation error in C++ mode on MSVC.
804         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
805         does not have <unistd.h>.
807 2019-12-11  Bruno Haible  <bruno@clisp.org>
809         locale: Fix compilation error in C++ mode on MSVC.
810         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
811         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
812         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
813         int_n_sep_by_space): Define as macros on MSVC.
815 2019-12-11  Bruno Haible  <bruno@clisp.org>
817         wchar: Fix compilation error in C++ mode on MSVC.
818         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
820 2019-12-11  Bruno Haible  <bruno@clisp.org>
822         pthread-thread: Fix compilation error in C++ mode on MSVC.
823         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
824         _GL_CXXALIAS_RPL invocation.
826 2019-12-08  Bruno Haible  <bruno@clisp.org>
828         Fix compilation errors in C++ mode on Haiku.
829         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
830         non-glibc systems.
831         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
832         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
833         posix_spawnattr_setschedparam): Likewise.
834         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
835         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
836         * lib/unistd.in.h (usleep): Likewise.
838 2019-12-08  Bruno Haible  <bruno@clisp.org>
840         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
841         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
842         * modules/fseeko (configure.ac-early): Require it instead of
843         AC_FUNC_FSEEKO.
844         * modules/ftello (configure.ac-early): Likewise.
845         * modules/fflush (configure.ac-early): Likewise.
847 2019-12-08  Bruno Haible  <bruno@clisp.org>
849         Fix compilation error in C++ mode on HP-UX 11.
850         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
851         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
853 2019-12-08  Bruno Haible  <bruno@clisp.org>
855         Fix compilation errors on HP-UX 11/ia64.
856         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
857         _GL_FUNCDECL_SYS.
859 2019-12-08  Bruno Haible  <bruno@clisp.org>
861         Fix compilation error in C++ mode on OpenBSD.
862         * lib/signal.in.h (signal): Declare on OpenBSD.
864 2019-12-08  Bruno Haible  <bruno@clisp.org>
866         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
867         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
868         instead of #error.
870 2019-12-08  Bruno Haible  <bruno@clisp.org>
872         Fix compilation errors in C++ mode on FreeBSD.
873         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
874         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
875         * lib/threads.in.h (thrd_exit): Likewise.
876         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
878 2019-12-08  Bruno Haible  <bruno@clisp.org>
880         Fix compilation errors in C++ mode on macOS and FreeBSD.
881         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
882         or FreeBSD with clang, use the approach without C preprocessor macro.
884 2019-12-07  Bruno Haible  <bruno@clisp.org>
886         Fix compilation errors in C++ mode on AIX with xlclang++.
887         Reported by Christian Biesinger <cbiesinger@google.com> in
888         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
889         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
891 2019-12-07  Bruno Haible  <bruno@clisp.org>
893         Document compilation error in C++ mode on NetBSD 8.0.
894         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
896 2019-12-07  Bruno Haible  <bruno@clisp.org>
898         Fix compilation errors in C++ mode on Solaris 10.
899         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
900         to non-empty on Solaris with a non-GCC compiler.
901         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
903 2019-12-07  Bruno Haible  <bruno@clisp.org>
905         Reword NEWS entry.
906         * NEWS: Reword the latest NEWS entry.
908 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
910         Move xstrtol_fatal to a new xstrtol-error module.
911         * lib/xstrtol.h: Stop including <getopt.h>.
912         (xstrtol_fatal): Move ...
913         * lib/xstrtol-error.h: ... here.  New file.
914         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
915         * tests/test-xstrtol.c: Likewise.
916         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
917         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
918         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
919         * modules/xstrtol-error: New file.
920         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
921         * MODULES.html.sh: Add xstrtol-error.
922         * NEWS: Document the change.
924 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
926         nstrftime: better width support for %N, %z
927         * lib/nstrftime.c (width_add, width_add1, width_cpy):
928         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
929         a new WIDTH parameter.
930         (add, add1, cpy): Use these macros.
931         (width_add): Do not treat digits == 0 as a special case,
932         do not pad if padding is ‘-’, and do not use a negative width.
933         (__strftime_internal): Redo formatting of nanoseconds and numeric
934         timezones to avoid buffer misuse in unusual cases, and so that
935         widths make more sense.  Add support for widths greater than 9 to
936         the %N format; they are zero filled on the right.
937         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
939 2019-12-05  Bruno Haible  <bruno@clisp.org>
941         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
942         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
943         set REPLACE_ISFINITE to 1.
944         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
945         REPLACE_ISINF to 1.
946         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
947         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
948         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
949         * lib/threads.in.h (call_once): Likewise.
950         * lib/iconv.in.h (iconv): Likewise.
952 2019-12-05  Bruno Haible  <bruno@clisp.org>
954         wchar: Add more C++ tests.
955         Reported by Christian Biesinger <cbiesinger@google.com> in
956         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
957         * tests/test-wchar-c++3.cc: New file.
958         * modules/wchar-c++-tests (Files): Add it.
959         (Makefile.am): Compile it.
961 2019-12-05  Bruno Haible  <bruno@clisp.org>
963         Add more C++ tests.
965         assert-h: Add C++ tests.
966         * tests/test-assert-h-c++.cc: New file.
967         * tests/test-assert-h-c++2.cc: New file.
968         * modules/assert-h-c++-tests: New file.
969         * modules/assert-h-tests: New file.
971         ctype: Add C++ tests.
972         * tests/test-ctype-c++.cc: New file.
973         * tests/test-ctype-c++2.cc: New file.
974         * modules/ctype-c++-tests: New file.
975         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
977         errno: Add C++ tests.
978         * tests/test-errno-c++.cc: New file.
979         * tests/test-errno-c++2.cc: New file.
980         * modules/errno-c++-tests: New file.
981         * modules/errno-tests (Depends-on): Add errno-c++-tests.
983         float: Add C++ tests.
984         * tests/test-float-c++.cc: New file.
985         * tests/test-float-c++2.cc: New file.
986         * modules/float-c++-tests: New file.
987         * modules/float-tests (Depends-on): Add float-c++-tests.
989         inttypes: Add more C++ tests.
990         * tests/test-inttypes-c++2.cc: New file.
991         * modules/inttypes-c++-tests (Files): Add it.
992         (Makefile.am): Compile it.
994         limits-h: Add C++ tests.
995         * tests/test-limits-h-c++.cc: New file.
996         * tests/test-limits-h-c++2.cc: New file.
997         * modules/limits-h-c++-tests: New file.
998         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
1000         stdarg: Add C++ tests.
1001         * tests/test-stdarg-c++.cc: New file.
1002         * tests/test-stdarg-c++2.cc: New file.
1003         * modules/stdarg-c++-tests: New file.
1004         * modules/stdarg-tests: New file.
1006         stdbool: Add C++ tests.
1007         * tests/test-stdbool-c++.cc: New file.
1008         * tests/test-stdbool-c++2.cc: New file.
1009         * modules/stdbool-c++-tests: New file.
1010         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
1012         stddef: Add C++ tests.
1013         * tests/test-stddef-c++.cc: New file.
1014         * tests/test-stddef-c++2.cc: New file.
1015         * modules/stddef-c++-tests: New file.
1016         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
1018         stdint: Add C++ tests.
1019         * tests/test-stdint-c++.cc: New file.
1020         * tests/test-stdint-c++2.cc: New file.
1021         * modules/stdint-c++-tests: New file.
1022         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
1024         wchar: Add more C++ tests.
1025         * tests/test-wchar-c++2.cc: New file.
1026         * modules/wchar-c++-tests (Files): Add it.
1027         (Makefile.am): Compile it.
1029         wctype-h: Add more C++ tests.
1030         * tests/test-wctype-h-c++2.cc: New file.
1031         * modules/wctype-h-c++-tests (Files): Add it.
1032         (Makefile.am): Compile it.
1034 2019-12-04  Bruno Haible  <bruno@clisp.org>
1036         Fix compilation errors in C++ mode with xlclang++ on AIX.
1037         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
1038         C++ mode on AIX.
1039         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
1040         without C preprocessor macro.
1041         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
1042         _GL_CXXALIAS_SYS.
1043         * lib/threads.in.h (thrd_exit): Likewise.
1045 2019-12-04  Bruno Haible  <bruno@clisp.org>
1047         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
1048         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
1049         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
1051 2019-12-04  Bruno Haible  <bruno@clisp.org>
1053         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
1054         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
1055         _GL_CXXALIASWARN invocation on non-glibc systems.
1056         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
1057         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
1058         iswctype, towlower, towupper): Likewise.
1060 2019-12-03  Bruno Haible  <bruno@clisp.org>
1062         Avoid hassles caused by [[noreturn]] in C++.
1063         Reported by Christian Biesinger <cbiesinger@google.com> in
1064         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
1065         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
1066         * lib/_Noreturn.h: Likewise.
1068 2019-12-02  Bruno Haible  <bruno@clisp.org>
1070         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
1071         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
1072         LIBMULTITHREAD.
1073         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
1074         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
1075         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
1076         gl_THREADLIB.
1077         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
1079 2019-12-02  Bruno Haible  <bruno@clisp.org>
1081         Fix some more link errors with --enable-threads=isoc.
1082         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
1083         * modules/pthread-rwlock (Depends-on): Likewise.
1085 2019-12-02  Bruno Haible  <bruno@clisp.org>
1087         Fix link errors with --enable-threads=posix on AIX.
1088         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
1089         program with $(LIBTHREAD).
1090         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
1091         program with $(LIBTHREAD).
1093 2019-12-02  Bruno Haible  <bruno@clisp.org>
1095         Fix link errors with --enable-threads=posix on AIX.
1096         * modules/mbrtowc (Link): New section.
1097         * modules/acl (Link): Likewise.
1098         * modules/argmatch (Link): Likewise.
1099         * modules/backup-rename (Link): Likewise.
1100         * modules/backupfile (Link): Likewise.
1101         * modules/closein (Link): Likewise.
1102         * modules/closeout (Link): Likewise.
1103         * modules/copy-file (Link): Likewise.
1104         * modules/csharpcomp (Link): Likewise.
1105         * modules/csharpexec (Link): Likewise.
1106         * modules/dfa (Link): Likewise.
1107         * modules/exclude (Link): Likewise.
1108         * modules/fnmatch (Link): Likewise.
1109         * modules/fnmatch-gnu (Link): Likewise.
1110         * modules/fnmatch-posix (Link): Likewise.
1111         * modules/glob (Link): Likewise.
1112         * modules/human (Link): Likewise.
1113         * modules/javacomp (Link): Likewise.
1114         * modules/javaexec (Link): Likewise.
1115         * modules/javaversion (Link): Likewise.
1116         * modules/mbfile (Link): Likewise.
1117         * modules/mbiter (Link): Likewise.
1118         * modules/mbmemcasecmp (Link): Likewise.
1119         * modules/mbmemcasecoll (Link): Likewise.
1120         * modules/mbrlen (Link): Likewise.
1121         * modules/mbscasecmp (Link): Likewise.
1122         * modules/mbscasestr (Link): Likewise.
1123         * modules/mbschr (Link): Likewise.
1124         * modules/mbscspn (Link): Likewise.
1125         * modules/mbsinit (Link): Likewise.
1126         * modules/mbslen (Link): Likewise.
1127         * modules/mbsncasecmp (Link): Likewise.
1128         * modules/mbsnlen (Link): Likewise.
1129         * modules/mbsnrtowcs (Link): Likewise.
1130         * modules/mbspbrk (Link): Likewise.
1131         * modules/mbspcasecmp (Link): Likewise.
1132         * modules/mbsrchr (Link): Likewise.
1133         * modules/mbsrtowcs (Link): Likewise.
1134         * modules/mbssep (Link): Likewise.
1135         * modules/mbsspn (Link): Likewise.
1136         * modules/mbsstr (Link): Likewise.
1137         * modules/mbstok_r (Link): Likewise.
1138         * modules/mbswidth (Link): Likewise.
1139         * modules/mbuiter (Link): Likewise.
1140         * modules/mkdir-p (Link): Likewise.
1141         * modules/propername (Link): Likewise.
1142         * modules/quote (Link): Likewise.
1143         * modules/quotearg (Link): Likewise.
1144         * modules/quotearg-simple (Link): Likewise.
1145         * modules/regex-quote (Link): Likewise.
1146         * modules/rpmatch (Link): Likewise.
1147         * modules/sh-quote (Link): Likewise.
1148         * modules/system-quote (Link): Likewise.
1149         * modules/trim (Link): Likewise.
1150         * modules/unistdio/ulc-asnprintf (Link): Likewise.
1151         * modules/unistdio/ulc-fprintf (Link): Likewise.
1152         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
1153         * modules/unistdio/ulc-vasprintf (Link): Likewise.
1154         * modules/unistdio/ulc-vfprintf (Link): Likewise.
1155         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
1156         * modules/unistdio/ulc-vsprintf (Link): Likewise.
1157         * modules/xfreopen (Link): Likewise.
1158         * modules/xmemcoll (Link): Likewise.
1159         * modules/yesno (Link): Likewise.
1160         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
1161         * modules/argmatch-tests (Makefile.am): Likewise.
1162         * modules/closein-tests (Makefile.am): Likewise.
1163         * modules/copy-file-tests (Makefile.am): Likewise.
1164         * modules/dfa-tests (Makefile.am): Likewise.
1165         * modules/fnmatch-tests (Makefile.am): Likewise.
1166         * modules/glob-tests (Makefile.am): Likewise.
1167         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1168         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1169         * modules/mbrtowc-tests (Makefile.am): Likewise.
1170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
1171         * modules/mbscasestr-tests (Makefile.am): Likewise.
1172         * modules/mbschr-tests (Makefile.am): Likewise.
1173         * modules/mbscspn-tests (Makefile.am): Likewise.
1174         * modules/mbsinit-tests (Makefile.am): Likewise.
1175         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1176         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1177         * modules/mbspbrk-tests (Makefile.am): Likewise.
1178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1179         * modules/mbsrchr-tests (Makefile.am): Likewise.
1180         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1181         * modules/mbsspn-tests (Makefile.am): Likewise.
1182         * modules/mbsstr-tests (Makefile.am): Likewise.
1183         * modules/quotearg-tests (Makefile.am): Likewise.
1184         * modules/quotearg-simple-tests (Makefile.am): Likewise.
1185         * modules/readtokens-tests (Makefile.am): Likewise.
1186         * modules/regex-quote-tests (Makefile.am): Likewise.
1187         * modules/sh-quote-tests (Makefile.am): Likewise.
1188         * modules/system-quote-tests (Makefile.am): Likewise.
1189         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
1190         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1191         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
1192         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
1193         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
1194         * modules/yesno-tests (Makefile.am): Likewise.
1196 2019-12-02  Bruno Haible  <bruno@clisp.org>
1198         Simplify link sections.
1199         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
1200         * modules/lock (Link): Likewise.
1201         * modules/cond (Link): Likewise.
1202         * modules/tls (Link): Likewise.
1203         * modules/yield (Link): Likewise.
1204         * modules/regex (Link): Likewise.
1205         * modules/localename (Link): Likewise.
1206         * modules/unicase/locale-language (Link): Likewise.
1207         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
1209 2019-12-02  Bruno Haible  <bruno@clisp.org>
1211         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
1212         * tests/test-thread_self.c (main): Disable test on AIX.
1214 2019-12-01  Bruno Haible  <bruno@clisp.org>
1216         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
1217         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
1218         gl_THREADLIB_EARLY_BODY.
1219         (gl_THREADLIB_EARLY_BODY): Invoke it.
1220         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
1221         (gl_THREADLIB_BODY): Invoke it.
1222         (gl_PTHREADLIB): New macro.
1223         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
1224         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
1225         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
1226         * modules/pthread-h (Files): Add threadlib.m4.
1227         (Depends-on): Remove threadlib.
1228         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
1229         and _THREAD_SAFE here.
1230         (Link): Use LIBPTHREAD, not LIBTHREAD.
1231         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
1232         LIBMULTITHREAD.
1233         * modules/pthread-once (Link): Likewise.
1234         * modules/pthread-mutex (Link): Likewise.
1235         * modules/pthread-rwlock (Link): Likewise.
1236         * modules/pthread-cond (Link): Likewise.
1237         * modules/pthread-tss (Link): Likewise.
1238         * modules/pthread-spin (Link): Likewise.
1239         * modules/pthread (Link): Likewise.
1240         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
1241         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
1242         * modules/pthread-once-tests (test_pthread_once1_LDADD,
1243         test_pthread_once2_LDADD): Likewise.
1244         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
1245         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
1246         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
1247         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
1249 2019-12-01  Bruno Haible  <bruno@clisp.org>
1251         cond: State linking requirements.
1252         * modules/cond (Link): New section.
1254 2019-12-01  Bruno Haible  <bruno@clisp.org>
1256         threadlib: Remove unnecessary file (left over from 2019-07-06).
1257         * modules/threadlib (Files): Remove config.rpath.
1259 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
1261         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
1262         Reported by Dagobert Michelsen <dam@opencsw.org> in
1263         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
1264         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
1265         list of strings instead of one string.
1266         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
1267         * pygnulib/GLImport.py (execute): Likewise.
1269 2019-11-27  Bruno Haible  <bruno@clisp.org>
1271         openpty, forkpty: Fix build error on Solaris 11.4.
1272         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
1273         also in <termios.h>.
1274         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
1275         of the function also in <termios.h>.
1276         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
1277         * doc/glibc-functions/forkpty.texi: Likewise.
1279 2019-11-27  Bruno Haible  <bruno@clisp.org>
1281         New options --enable-threads=isoc and --enable-threads=isoc+posix.
1282         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
1283         --enable-threads=isoc and --enable-threads=isoc+posix.
1284         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
1285         When both the ISO C and the POSIX threads API are available, choose
1286         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
1287         --enable-threads=isoc+posix was specified. When only the ISO C threads
1288         API is available and --enable-threads=iso was specified, choose
1289         USE_ISOC_THREADS.
1290         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
1291         USE_ISOC_AND_POSIX_THREADS.
1292         * lib/glthread/lock.c: Likewise.
1293         * lib/glthread/cond.h: Likewise.
1294         * lib/glthread/cond.c: Likewise.
1295         * lib/glthread/tls.h: Likewise.
1296         * lib/glthread/tls.c: Likewise.
1297         * lib/glthread/yield.h: Likewise.
1298         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
1299         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
1300         * lib/glthread/thread.c: Likewise.
1301         * lib/glthread/threadlib.c: Likewise.
1302         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
1303         USE_ISOC_AND_POSIX_THREADS.
1304         * tests/test-cond.c: Consider USE_ISOC_THREADS and
1305         USE_ISOC_AND_POSIX_THREADS.
1306         * tests/test-tls.c: Likewise.
1307         * tests/test-thread_create.c (main): Likewise.
1308         * tests/test-pthread-cond.c: Likewise.
1309         * tests/test-pthread-mutex.c: Likewise.
1310         * tests/test-pthread-once2.c: Likewise.
1311         * tests/test-pthread-rwlock.c: Likewise.
1312         * tests/test-pthread-tss.c: Likewise.
1313         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
1314         USE_POSIX_THREADS.
1316 2019-11-24  Bruno Haible  <bruno@clisp.org>
1318         mbrtowc: Modernize autoconf test.
1319         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
1320         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
1321         try a UTF-8 locale.
1322         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
1324 2019-11-24  Bruno Haible  <bruno@clisp.org>
1326         Fix errors in C++ mode on mingw.
1327         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
1328         instead of _GL_CXXALIAS_SYS.
1329         * lib/signal.in.h (pthread_sigmask): Likewise.
1330         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
1331         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1332         Likewise.
1333         * lib/wchar.in.h (btowc): Likewise.
1335 2019-11-24  Bruno Haible  <bruno@clisp.org>
1337         sys_time: Fix errors in C++ mode on mingw.
1338         * lib/sys_time.in.h (timeval): Restore the redirection
1339         '#define timeval rpl_timeval', for when the symbol timeval is being used
1340         outside the 'gnulib' namespace.
1341         * lib/sys_select.in.h (select): In C++, write 'timeval', not
1342         'struct timeval'.
1344 2019-11-24  Bruno Haible  <bruno@clisp.org>
1346         iswctype: Fix errors in C++ mode on mingw.
1347         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
1348         is 1.
1349         * lib/iswctype.c (iswctype): Add another implementation, for the
1350         GNULIB_defined_wint_t case.
1351         * modules/iswctype (configure.ac): Compile iswctype.c also if
1352         GNULIB_OVERRIDES_WINT_T is 1.
1354 2019-11-24  Bruno Haible  <bruno@clisp.org>
1356         windows-timedmutex: Fix errors in C++ mode on mingw.
1357         * lib/windows-timedmutex.h: Add closing brace.
1359 2019-11-24  Bruno Haible  <bruno@clisp.org>
1361         Fix errors in C++ mode on Cygwin.
1362         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
1363         _GL_CXXALIAS_SYS.
1365 2019-11-24  Bruno Haible  <bruno@clisp.org>
1367         time_r: Fix for mingw (regression from 2019-11-16).
1368         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
1369         AC_LINK_IFELSE test only if the function does not appear to exist.
1371 2019-11-24  Bruno Haible  <bruno@clisp.org>
1373         wcstok: Add tests.
1374         * tests/test-wcstok.c: New file.
1375         * modules/wcstok-tests: New file.
1377 2019-11-24  Bruno Haible  <bruno@clisp.org>
1379         wcstok: Work around wrong signature on native Windows.
1380         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
1381         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
1382         REPLACE_WCSTOK.
1383         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
1384         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
1385         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
1386         * doc/posix-functions/wcstok.texi: Mention the problem.
1388 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
1390         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
1391         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
1392         remove workaround for GCC bug 91450 as the bug should be fixed
1393         there too.
1395 2019-11-21  Bruno Haible  <bruno@clisp.org>
1397         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
1398         Reported by Christian Biesinger <cbiesinger@google.com> in
1399         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
1400         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
1401         non-glibc systems.
1402         * lib/locale.in.h (localeconv, setlocale): Likewise.
1403         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
1404         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
1405         rint, round, trunc): Likewise.
1406         * lib/monetary.in.h (strfmon_l): Likewise.
1407         * lib/pthread.in.h (pthread_mutexattr_getrobust,
1408         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
1409         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
1410         pthread_spin_destroy): Likewise.
1411         * lib/signal.in.h (raise, signal): Likewise.
1412         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
1413         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
1414         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
1415         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
1416         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
1417         Likewise.
1418         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
1419         Likewise.
1420         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
1421         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
1422         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
1423         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
1424         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
1425         wcsftime): Likewise.
1426         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
1428 2019-11-21  Bruno Haible  <bruno@clisp.org>
1430         Fix various errors in _GL_CXXALIAS_SYS invocations.
1431         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
1432         _GL_CXXALIAS_SYS.
1433         * lib/pthread.in.h (pthread_mutexattr_gettype,
1434         pthread_mutexattr_getrobust): Likewise.
1435         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
1436         * lib/sys_socket.in.h (recv, send): Likewise.
1437         * lib/unistd.in.h (getdtablesize): Likewise.
1438         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
1439         'struct timeval'.
1441 2019-11-21  Bruno Haible  <bruno@clisp.org>
1443         math tests: Update after 2019-08-28 change.
1444         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
1445         return type of 'bool', not 'int'.
1447 2019-11-21  Bruno Haible  <bruno@clisp.org>
1449         pthread-spin: Fix errors in C++ mode.
1450         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
1451         functions as nonexistent when <pthread.h> exists but does not define
1452         the pthread_spinlock_t type.
1454 2019-11-21  Bruno Haible  <bruno@clisp.org>
1456         pthread-mutex: Fix errors in C++ mode.
1457         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
1458         pthread_mutexattr_getrobust exists. If not, define
1459         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
1460         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
1461         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
1462         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
1463         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
1464         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
1465         definition.
1467 2019-11-19  Bruno Haible  <bruno@clisp.org>
1469         threads-h tests: Fix typo.
1470         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
1472 2019-11-19  Bruno Haible  <bruno@clisp.org>
1474         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
1475         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
1476         to 'const pthread_attr_t *'.
1477         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
1478         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
1480 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1482         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
1483         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
1484         work around GCC bug 91450 as the bug should be fixed there.
1486 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1488         glob: get closer to glibc glob.c
1489         Omit differences from glibc when the differences don’t matter.
1490         * lib/glob.c [_LIBC]: Include shlib-compat.h.
1491         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
1492         (glob_lstat): New function.
1493         (glob_in_dir): Use it.
1494         (GLOB_ATTRIBUTE): Define to empty if not already defined.
1495         Use changed.
1497 2019-11-18  Bruno Haible  <bruno@clisp.org>
1499         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
1500         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
1501         UINTPTR_MAX): Consider _WIN64.
1502         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
1503         a pointer.
1505 2019-11-18  Bruno Haible  <bruno@clisp.org>
1507         stdint: Fix value of WINT_MAX when we override wint_t.
1508         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
1509         when GNULIB_OVERRIDES_WINT_T is 1.
1511 2019-11-18  Bruno Haible  <bruno@clisp.org>
1513         vcs-to-changelog: New module.
1514         * modules/vcs-to-changelog: New file.
1515         * MODULES.html.sh (func_all_modules): Add it.
1517 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
1519         vcs-to-changelog: New script to generate ChangeLog-like output.
1520         Discussion:
1521         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
1522         * build-aux/vcs_to_changelog.py: New file.
1523         * build-aux/vcstocl/frontend_c.py: New file.
1524         * build-aux/vcstocl/misc_util.py: New file.
1525         * build-aux/vcstocl/vcs_git.py: New file.
1527 2019-11-18  Bruno Haible  <bruno@clisp.org>
1529         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
1530         Reported by Keith Marshall <keith@users.osdn.me> in
1531         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
1532         and <https://osdn.net/projects/mingw/ticket/39677>.
1533         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
1534         already been defined by mingw's <crtdefs.h>.
1536 2019-11-18  Bruno Haible  <bruno@clisp.org>
1538         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
1539         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
1540         conditionally enabled.
1542 2019-11-18  Bruno Haible  <bruno@clisp.org>
1544         gc: Mirror libgcrypt.m4 from libgcrypt.
1545         * config/srclistvars.sh (LIBGCRYPT): New variable.
1546         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
1548 2019-11-17  Bruno Haible  <bruno@clisp.org>
1550         locale, localename: Improve z/OS support.
1551         Reported by Daniel Richard G. in
1552         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
1553         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
1554         gl_LOCALE_H.
1555         (gl_LOCALE_H): Require it.
1556         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
1557         defined, don't even check for newlocale, duplocale, freelocale.
1558         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
1559         locale_t is not defined.
1561 2019-11-17  Bruno Haible  <bruno@clisp.org>
1563         havelib: Make libdirstems processing more flexible.
1564         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
1565         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
1566         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
1567         patch from 2017-02-19).
1568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
1569         libdirs, even when the first one exists as a directory.
1571 2019-11-17  Bruno Haible  <bruno@clisp.org>
1573         havelib: Match the bitness when searching for libraries.
1574         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
1575         acl_is_expected_elfclass.
1576         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
1577         file exists, in ELF, also test whether it has the ELF class that
1578         corresponds to the host's bitness.
1580 2019-11-17  Bruno Haible  <bruno@clisp.org>
1582         host-cpu-c-abi: Add support for unknown CPUs.
1583         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
1584         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
1585         32-bit or 64-bit.
1587 2019-11-17  Bruno Haible  <bruno@clisp.org>
1589         havelib: Remove redundant code.
1590         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
1591         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
1593 2019-11-17  Bruno Haible  <bruno@clisp.org>
1595         havelib: Fix a bug in dependency processing.
1596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
1597         of .la files, don't overwrite the value of additional_libdir for the
1598         next rounds.
1600 2019-11-16  Bruno Haible  <bruno@clisp.org>
1602         wctype-h: When overriding wint_t, override also the related functions.
1603         Reported by Christian Biesinger <cbiesinger@google.com> in
1604         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
1605         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
1606         REPLACE_ISWCNTRL to 1.
1607         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
1608         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
1609         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
1610         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
1611         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
1612         on mingw.
1613         * doc/posix-headers/wctype.texi: Likewise.
1615 2019-11-16  Bruno Haible  <bruno@clisp.org>
1617         time_r: Fix for mingw.
1618         Reported by Christian Biesinger <cbiesinger@google.com> in
1619         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
1620         * lib/time.in.h: On mingw, include <unistd.h>.
1621         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
1622         <time.h>. Test for localtime_r in a way that works when it is defined
1623         as an inline function.
1625 2019-11-13  Bruno Haible  <bruno@clisp.org>
1627         havelib: Revert last change.
1628         * build-aux/config.rpath: Revert last change. We can add msys2 support
1629         when it has been added to libtool.m4 upstream.
1631 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1633         config: add msys support
1634         Requested by Arnold Robbins in:
1635         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
1636         He also requested a change to config.guess, which I’ll forward
1637         upstream.
1638         * build-aux/ar-lib (func_file_conv):
1639         * build-aux/compile (func_file_conv):
1640         * build-aux/config.rpath (wl, with_gnu_ld)
1641         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
1642         Treat msys like cygwin.
1644 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
1646         regex: now back in sync with glibc
1647         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
1648         regexec.c got merged into glibc and are now copies again.
1650 2019-10-27  Bruno Haible  <bruno@clisp.org>
1652         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
1653         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
1654         statement.
1655         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
1656         32-bit CPUs.
1658 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
1660         timespec-add, timespec-sub: simplify
1661         * lib/timespec-add.c (timespec_add):
1662         * lib/timespec-sub.c (timespec_sub):
1663         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
1664         work on unsigned integers.
1666 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1668         nstrftime: speed up integer overflow checking
1669         * lib/nstrftime.c: Include intprops.h.
1670         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
1671         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
1672         instead of doing it by hand.
1673         * modules/nstrftime (Depends-on): Add intprops.
1675         Port better to GCC under macOS
1676         Work around macOS header that has ‘#define __has_builtin(x) 0’
1677         when compiled by GCC.  Apple really, really doesn’t want you to
1678         use GCC, apparently.  Rroblem reported by Akim Demaille in:
1679         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
1680         The fix is to not trust __has_builtin when being compiled by
1681         recent-enough GCC.
1682         * lib/intprops.h (__has_builtin)
1683         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
1684         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
1685         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
1686         Remove.  All uses removed.
1687         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
1688         directly, if defined and if not newer GCC.
1689         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
1690         New macro, that use __has_builtin directly, if defined and if
1691         not newer GCC.
1692         (assume): Use them.
1694 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
1696         maintainer-makefile: update rule for argmatch.
1697         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
1699 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
1701         bitset: let freeing functions accept NULL.
1702         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
1703         given NULL.
1704         * lib/bitset.h: Document that.
1705         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
1707 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1709         inttypes: use more-robust test for int range
1710         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
1711         Problem reported by Dagobert Michelsen in:
1712         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
1713         * lib/inttypes.in.h: Rely only on limits.h when checking
1714         int range.
1716 2019-10-15  Bruno Haible  <bruno@clisp.org>
1718         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
1719         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
1720         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
1721         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
1722         term_ostream_set_hyperlink): New functions.
1723         (term_styled_ostream_get_hyperlink_ref,
1724         term_styled_ostream_get_hyperlink_id,
1725         term_styled_ostream_set_hyperlink): New function aliases.
1727 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1729         update-copyright: use en dashes in .texi ranges
1730         * build-aux/update-copyright: Match year ranges like "1998--2019",
1731         which are used in the Autoconf manual.  Also, update ranges in
1732         .tex, .texi, and .texinfo files to use en dashes instead of
1733         hyphens.
1735 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1737         * config/srclist.txt: Remove posix/regex_internal.c for now.
1739 2019-10-13  Bruno Haible  <bruno@clisp.org>
1741         git-version-gen: Allow 'snapshot' as .tarball-version contents.
1742         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
1743         contents to the empty string.
1745 2019-10-12  Bruno Haible  <bruno@clisp.org>
1747         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
1748         * tests/test-intprops.c (main): Disable two more tests when using
1749         HP-UX cc.
1751 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1753         Simplify and regularize regex use of ‘assert’
1754         Also, tell GCC about the asserts even when compiling without
1755         debugging, to give it further optimization opportunities.
1756         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
1757         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
1758         (parse_expression, parse_bracket_exp):
1759         * lib/regex_internal.c (build_wcs_buffer)
1760         (build_wcs_upper_buffer, re_string_reconstruct)
1761         (re_string_context_at):
1762         * lib/regexec.c (re_search_stub, re_copy_regs)
1763         (re_search_internal, prune_impossible_nodes, check_matching)
1764         (check_halt_state_context, set_regs, sift_states_backward)
1765         (build_sifted_states, transit_state_mb, transit_state_bkref)
1766         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
1767         (match_ctx_add_subtop):
1768         Use it instead of plain ‘assert’.
1770 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
1772         regex: omit debug assignment when not debugging
1773         * lib/regexec.c (re_search_internal) [!DEBUG]:
1774         Remove unnecessary assignment.
1776         regex: tell compiler there’s at most 256 arcs out
1777         Partly this is to help the reader (and maybe help GCC);
1778         partly this is to pacify Coverity.
1779         * lib/regex_internal.h: Include verify.h.
1780         * lib/regexec.c (group_nodes_into_DFAstates):
1781         Tell the compiler that ndests cannot exceed SBC_MAX.
1782         * modules/regex (Depends-on): Add ‘verify’.
1784         regex: simplify by assuming C99
1785         * config/srclist.txt: Comment out regex_internal.h and regexec.c
1786         temporarily.
1787         * lib/regex_internal.h (lock_define, re_match_context_t):
1788         Simplify by assuming C99 macros and const.
1789         * lib/regexec.c (re_search_internal): Simplify by assuming C99
1790         initializers.  Remove unnecessary assignment, as mctx is now
1791         safely initialized earlier.
1793         regex: avoid copying of uninitialized storage
1794         * config/srclist.txt: Comment out regcomp.c temporarily.
1795         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
1796         Initialize even when not checking for lint, as the behavior is
1797         arguably undefined otherwise and Coverity warns about it.
1799 2019-10-06  Bruno Haible  <bruno@clisp.org>
1801         access tests: Fix test failure when run as root.
1802         * tests/test-access.c: Include root-uid.h.
1803         (geteuid): Define fallback.
1804         (main): Don't expect that writing to a read-only file would fail when
1805         running as root. Also, remove the created files at the end.
1806         * modules/access-tests (Depends-on): Add root-uid.
1807         (configure.ac): Test whether geteuid exists.
1809 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
1811         users.txt: add GNU nano
1812         Nano has been making use of gnulib since March 2017, version 2.8.0.
1814 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
1816         bootstrap: simplify debugging of wget failures
1817         Problem reported by Tim Rühsen in:
1818         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
1819         * build-aux/bootstrap (po_download_command_format):
1820         Invoke wget with -nv instead of -q, to make debugging easier.
1822 2019-09-29  Bruno Haible  <bruno@clisp.org>
1824         avltree-list: Fix compilation warning (introduced on 2014-09-16).
1825         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
1826         'const' attribute.
1828 2019-09-29  Bruno Haible  <bruno@clisp.org>
1830         fbufmode: Fix compilation error on glibc >= 2.28 systems.
1831         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
1833 2019-09-28  Bruno Haible  <bruno@clisp.org>
1835         Update comments that refer to POSIX.
1836         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
1837         sentence about trailing slashes.
1838         * lib/fflush.c: Clarify the reasoning.
1839         * tests/test-fflush2.c: Cite the relevant sentence.
1841 2019-09-28  Bruno Haible  <bruno@clisp.org>
1843         access: Document limitations on Windows.
1844         Suggested by Zaretskii <eliz@gnu.org>.
1845         * doc/posix-functions/access.texi: Mention two limitations on Windows.
1847 2019-09-28  Bruno Haible  <bruno@clisp.org>
1849         findprog-in: Fix comment.
1850         Reported by Eli Zaretskii <eliz@gnu.org>.
1851         * lib/findprog.h (find_in_given_path): Extend description of EACCES
1852         condition.
1853         * lib/stat.c (rpl_stat): Fix typo in comment.
1854         * lib/utime.c (_gl_utimens_windows): Likewise.
1856 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
1858         Update URLs and associated text
1859         (Thanks to Bruno Haible for proofreading this patch.)
1860         Prefer https: to http: in URLs where either will do, for the usual
1861         security reasons.  I also updated broken and/or moved URLs
1862         discovered during the process. In a few places I had to resort to
1863         archive.org, since I didn't find the originals elsewhere.
1865 2019-09-15  Paul Smith  <psmith@gnu.org>
1866             Bruno Haible  <bruno@clisp.org>
1868         findprog-in: Set errno when the search fails.
1869         * lib/findprog-in.c: Include <errno.h>.
1870         (find_in_given_path): Set errno before returning NULL.
1871         * lib/findprog.h (find_in_given_path): Update comment accordingly.
1872         Define the term "slash".
1874 2019-09-15  Bruno Haible  <bruno@clisp.org>
1876         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
1877         * modules/findprog (Depends-on): Add access.
1878         * modules/findprog-lgpl (Depends-on): Likewise.
1879         * modules/findprog-in (Depends-on): Likewise.
1881 2019-09-15  Bruno Haible  <bruno@clisp.org>
1883         access: Add tests.
1884         * tests/test-access.c: New file.
1885         * modules/access-tests: New file.
1887         access: New module.
1888         * lib/unistd.in.h (access): New declaration.
1889         * lib/access.c: New file.
1890         * m4/access.m4: New file.
1891         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
1892         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
1893         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
1894         REPLACE_ACCESS.
1895         * modules/access: New file.
1896         * tests/test-unistd-c++.cc (access): Check signature.
1897         * doc/posix-functions/access.texi: Mention the new module.
1899 2019-09-15  Bruno Haible  <bruno@clisp.org>
1901         fcntl-h: Fix compilation error of creat.c on MSVC.
1902         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
1903         defined.
1905 2019-09-15  Bruno Haible  <bruno@clisp.org>
1907         creat: Add tests.
1908         * tests/test-creat.c: New file, based on tests/test-open.h.
1909         * modules/creat-tests: New file.
1911         creat: New module.
1912         * lib/fcntl.in.h (creat): New declaration.
1913         * lib/creat.c: New file, based on lib/open.c.
1914         * m4/creat.m4: New file.
1915         * m4/open-slash.m4: New file, extracted from m4/open.m4.
1916         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
1917         Invoke gl_OPEN_TRAILING_SLASH_BUG.
1918         * modules/open (Files): Add m4/open-slash.m4.
1919         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
1920         REPLACE_CREAT.
1921         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
1922         * modules/creat: New file.
1923         * tests/test-fcntl-h-c++.cc (creat): Check signature.
1924         * doc/posix-functions/creat.texi: Mention the new module.
1926 2019-09-15  Bruno Haible  <bruno@clisp.org>
1928         open tests: Enhance test.
1929         * tests/test-open.h (test_open): Test the creation of an executable
1930         regular file. Also improve initial cleanup.
1932 2019-09-15  Bruno Haible  <bruno@clisp.org>
1934         intprops tests: Avoid build failure with HP-UX cc.
1935         * tests/test-intprops.c: Disable a check that makes HP cc choke with
1936         "error 4018: Macro param too large after substitution - use -H option.".
1938 2019-09-14  Bruno Haible  <bruno@clisp.org>
1940         Make autoconf tests work with -Werror=implicit-function-declaration.
1941         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
1942         towupper() declaration.
1943         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
1944         declaration.
1946 2019-09-14  Bruno Haible  <bruno@clisp.org>
1948         findprog-in: Better mimic the system on native Windows.
1949         Reported by Paul Smith <psmith@gnu.org>.
1950         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
1951         non-empty suffixes when the file name already contains a '.'.
1953 2019-09-10  Bruno Haible  <bruno@clisp.org>
1955         wctob: Fix autoconf test.
1956         Based on patch by Florian Weimer <fweimer@redhat.com>.
1957         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
1959 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
1961         xhash: provide hash_xinitialize.
1962         Suggested by Egor Pugin <egor.pugin@gmail.com>
1963         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
1964         * modules/xhash, lib/xhash.c: New.
1965         * lib/hash.h (hash_xinitialize): New.
1967 2019-09-09  Bruno Haible  <bruno@clisp.org>
1969         findprog-in: Make exec optimization optional.
1970         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
1971         (find_in_given_path): Add optimize_for_exec parameter.
1972         * lib/findprog-in.c (find_in_given_path): Likewise.
1974 2019-09-08  Bruno Haible  <bruno@clisp.org>
1976         Add option to assume the best, not the worst, when cross-compiling.
1977         Suggested by Jonas Termansen <sortie@maxsi.org>.
1978         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
1979         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
1980         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
1981         lt_cv_sys_argz_works.
1982         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
1983         ac_cv_func_calloc_0_nonnull.
1984         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
1985         --enable-cross-guesses for gl_cv_func_realpath_works.
1986         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
1987         gl_cv_func_cbrtl_ieee.
1988         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
1989         gl_cv_func_ceil_ieee.
1990         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
1991         gl_cv_func_ceilf_ieee.
1992         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
1993         gl_cv_func_ceill_ieee.
1994         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
1995         ac_cv_func_chown_works.
1996         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
1997         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
1998         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
1999         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
2000         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
2001         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
2002         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
2003         gl_cv_func_expl_works.
2004         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
2005         gl_cv_func_expm1_ieee.
2006         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
2007         gl_cv_func_expm1l_works.
2008         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
2009         gl_cv_func_open_directory_works.
2010         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
2011         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
2012         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
2013         gl_cv_func_fchownat_empty_filename_works.
2014         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
2015         gl_cv_func_fdopendir_works.
2016         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
2017         gl_cv_func_floor_ieee.
2018         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
2019         gl_cv_func_floorf_ieee.
2020         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
2021         gl_cv_func_fma_works.
2022         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
2023         gl_cv_func_fmaf_works.
2024         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
2025         gl_cv_func_fmal_works.
2026         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
2027         gl_cv_func_fmod_ieee.
2028         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
2029         gl_cv_func_fmodf_ieee.
2030         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
2031         gl_cv_func_fmodl_ieee.
2032         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
2033         gl_cv_func_fpurge_works.
2034         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
2035         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
2036         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
2037         gl_cv_func_getcwd_null.
2038         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
2039         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
2040         gl_cv_func_working_getdelim.
2041         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
2042         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
2043         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
2044         gl_cv_func_getgroups_works.
2045         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
2046         am_cv_func_working_getline.
2047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
2048         for gl_cv_func_getopt_gnu.
2049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
2050         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
2051         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
2052         gl_cv_func_hypot_ieee.
2053         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
2054         gl_cv_func_hypotf_ieee.
2055         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
2056         gl_cv_func_hypotl_ieee.
2057         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
2058         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
2059         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
2060         gl_cv_func_link_works.
2061         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
2062         gl_cv_func_linkat_slash.
2063         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
2064         gl_cv_func_log_ieee.
2065         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
2066         gl_cv_func_logf_ieee.
2067         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
2068         gl_cv_func_logl_works.
2069         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
2070         gl_cv_func_log10_ieee.
2071         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
2072         gl_cv_func_log10f_ieee.
2073         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
2074         gl_cv_func_log10l_works.
2075         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
2076         gl_cv_func_log1p_ieee.
2077         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
2078         gl_cv_func_log1pf_ieee.
2079         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
2080         gl_cv_func_log1pl_ieee.
2081         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
2082         gl_cv_func_log2_ieee.
2083         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
2084         gl_cv_func_log2f_ieee.
2085         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
2086         --enable-cross-guesses for
2087         gl_cv_func_lstat_dereferences_slashed_symlink.
2088         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
2089         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
2090         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
2091         gl_cv_C_locale_sans_EILSEQ.
2092         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
2093         gl_cv_func_memchr_works.
2094         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
2095         gl_cv_func_memmem_works_always.
2096         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
2097         gl_cv_func_memmem_works_fast.
2098         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
2099         gl_cv_func_mkdir_trailing_slash_works,
2100         gl_cv_func_mkdir_trailing_dot_works.
2101         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
2102         gl_cv_func_mkfifo_works.
2103         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
2104         gl_cv_func_mknod_works.
2105         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
2106         gl_cv_func_working_mkstemp.
2107         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
2108         gl_cv_func_working_mktime.
2109         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
2110         gl_cv_func_modf_ieee.
2111         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
2112         gl_cv_func_modff_ieee.
2113         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
2114         gl_cv_func_modfl_ieee.
2115         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
2116         gl_cv_func_nanosleep.
2117         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
2118         gl_cv_func_perror_works.
2119         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
2120         gl_cv_func_printf_sizes_c99.
2121         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
2122         gl_cv_func_printf_infinite.
2123         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
2124         gl_cv_func_printf_infinite_long_double.
2125         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
2126         gl_cv_func_printf_directive_a.
2127         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
2128         gl_cv_func_printf_directive_f.
2129         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
2130         gl_cv_func_printf_flag_zero.
2131         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
2132         gl_cv_func_printf_enomem.
2133         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
2134         gl_cv_func_snprintf_truncation_c99.
2135         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
2136         gl_cv_func_snprintf_retval_c99.
2137         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
2138         gl_cv_func_snprintf_directive_n.
2139         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
2140         gl_cv_func_vsnprintf_zerosize_c99.
2141         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
2142         gl_cv_func_pselect_detects_ebadf.
2143         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
2144         Obey --enable-cross-guesses for
2145         gl_cv_pthread_rwlock_rdlock_prefer_writer.
2146         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
2147         gl_cv_func_ptsname_sets_errno.
2148         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
2149         gl_cv_func_svid_putenv.
2150         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
2151         gl_cv_func_readlink_works.
2152         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
2153         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
2154         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
2155         gl_cv_func_re_compile_pattern_working.
2156         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
2157         gl_cv_func_remainder_ieee.
2158         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
2159         gl_cv_func_remainderf_ieee.
2160         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
2161         gl_cv_func_remainderl_ieee.
2162         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
2163         gl_cv_func_rintl_works.
2164         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
2165         gl_cv_func_rmdir_works.
2166         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
2167         gl_cv_func_round_ieee.
2168         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
2169         gl_cv_func_roundf_ieee.
2170         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
2171         gl_cv_func_roundl_ieee.
2172         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
2173         gl_cv_func_select_detects_ebadf.
2174         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
2175         gl_cv_func_setenv_works.
2176         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
2177         gl_cv_func_unsetenv_works.
2178         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
2179         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
2180         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
2181         gl_cv_func_sleep_works.
2182         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
2183         gl_cv_func_stat_file_slash.
2184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
2185         gl_cv_func_stpncpy.
2186         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
2187         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
2188         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
2189         gl_cv_func_strcasestr_linear.
2190         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
2191         gl_cv_func_working_strerror.
2192         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
2193         gl_cv_func_strerror_0_works.
2194         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
2195         --enable-cross-guesses for gl_cv_func_strerror_r_works.
2196         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
2197         gl_cv_func_strstr_works_always.
2198         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
2199         gl_cv_func_strstr_linear.
2200         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
2201         gl_cv_func_strtod_works.
2202         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
2203         gl_cv_func_strtold_works.
2204         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
2205         gl_cv_func_symlink_works.
2206         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
2207         gl_cv_func_symlinkat_works.
2208         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
2209         gl_cv_func_trunc_ieee.
2210         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
2211         gl_cv_func_truncf_ieee.
2212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
2213         gl_cv_func_truncl_ieee.
2214         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
2215         gl_cv_func_tzset_clobber.
2216         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
2217         gl_cv_func_ungetc_works.
2218         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
2219         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
2220         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
2221         gl_cv_func_usleep_works.
2222         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
2223         gl_cv_func_futimesat_works.
2224         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
2225         gl_cv_func_working_utimes.
2226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
2227         gl_cv_func_wcwidth_works.
2228         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
2229         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
2230         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
2231         links for testing. Obey --enable-cross-guesses for
2232         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
2233         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
2235 2019-09-08  Bruno Haible  <bruno@clisp.org>
2237         Clarify that cross-compilation guesses are guesses.
2238         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
2239         cross-compiling.
2241 2019-09-08  Bruno Haible  <bruno@clisp.org>
2243         chown: Fix configure output (regression from 2019-03-23).
2244         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
2245         gl_cv_func_chown_follows_symlink variable.
2247 2019-09-08  Bruno Haible  <bruno@clisp.org>
2249         findprog-in: New module.
2250         Suggested by Paul Smith <psmith@gnu.org>.
2251         * lib/findprog.h (find_in_given_path): New declaration.
2252         * lib/findprog-in.c: New file, based on lib/findprog.c.
2253         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
2254         * modules/findprog-in: New file.
2256 2019-09-08  Bruno Haible  <bruno@clisp.org>
2258         findprog: Remove unused dependency.
2259         * modules/findprog (Depends-on): Remove strdup.
2261 2019-09-08  Bruno Haible  <bruno@clisp.org>
2263         findprog: Remove test that is obsolete since 2006-04-24.
2264         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
2266 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
2268         bitset: style changes
2269         * lib/bitset/vector.c (vbitset_resize): Factor computation.
2270         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
2271         xzalloc to xcalloc.
2272         Suggested by Paul Eggert.
2274 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
2276         bitset: check memory allocation
2277         Reported by 江 祖铭 (Zu-Ming Jiang).
2278         With help from Paul Eggert.
2279         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
2280         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
2281         instead of realloc.
2282         When shrinking, accept failures.
2283         * lib/bitset/vector.c (vbitset_resize): Likewise.
2285 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2287         scratch_buffer: sync from glibc
2288         * config/srclist.txt: Add the scratch_buffer source
2289         code from glibc, since these should be in sync.
2290         Autoupdate.
2292 2019-09-07  Bruno Haible  <bruno@clisp.org>
2294         doc: Update for glibc 2.30.
2295         * doc/glibc-functions/gettid.texi: New file.
2296         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
2297         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
2298         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
2299         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
2300         * doc/glibc-functions/sem_clockwait.texi: New file.
2301         * doc/glibc-functions/tgkill.texi: New file.
2302         * doc/glibc-functions/twalk_r.texi: New file.
2303         * doc/gnulib.texi: Include them.
2304         (Glibc semaphore.h): New section.
2305         * doc/pastposix-functions/h_errno.texi: Update.
2306         * doc/posix-functions/*.texi: Likewise.
2308 2019-09-06  Bruno Haible  <bruno@clisp.org>
2310         symlink tests: Avoid test failure on Linux with Lustre file system.
2311         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
2312         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
2313         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
2315 2019-09-01  Bruno Haible  <bruno@clisp.org>
2317         gitsub.sh: Add support for shallow-cloning of subdirectories.
2318         * top/gitsub.sh (func_usage): Document allowed git options with
2319         'git pull'.
2320         (func_pull): Accept GIT_OPTIONS argument.
2321         (pull): Parse git options before complaining about too many arguments.
2322         Pass the git options to func_pull.
2324 2019-08-29  Bruno Haible  <bruno@clisp.org>
2326         lock: Fix cross-compilation guesses.
2327         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
2328         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
2329         platforms.
2331 2019-08-28  Bruno Haible  <bruno@clisp.org>
2333         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
2334         Reported by Martin Storsjö <martin@martin.st> in
2335         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
2336         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
2337         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
2338         files from GCC 6 or newer, use an override through '#define', because
2339         the inline definitions in the platform's <cmath> cannot be overridden
2340         in another way.
2342 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2344         Revert macOS INT_MULTIPLY_WRAPV patch
2345         Problem reported by Bruno Haible in:
2346         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
2347         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
2348         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
2349         Go back to working around the Clang bug on macOS.
2351 2019-08-27  Bruno Haible  <bruno@clisp.org>
2353         libtool-next-version: Fix error output.
2354         * build-aux/libtool-next-version (func_fatal_error): Fix the program
2355         name.
2357 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2359         Speed up INT_MULTIPLY_WRAPV on macOS
2360         Assume that __builtin_mul_overflow works OK with Clang on macOS.
2361         Mattias Engdegård says it’s safe to assume the relevant library
2362         is always available there.
2363         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
2364         New temporary internal macro.
2365         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
2366         No need to work around the Clang bug on macOS.
2368 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
2370         intprops.h, verify.h: port better to clang
2371         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
2372         with Clang.  Problem reported privately by Mattias Engdegård.
2373         Also, insulate intprops.h and verify.h better against each other’s
2374         definitions of __has_builtin on non-Clang hosts.
2375         * lib/intprops.h (__has_builtin): Define a temporary substitute
2376         if __has_builtin is not already defined.
2377         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
2378         New temporary internal macros.
2379         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
2380         Now two separate macros, replacing the old
2381         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
2382         __builtin_mul_overflow is like the rest.  All uses changed.
2383         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
2384         Adjust to above changes.
2385         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
2386         longer relevant.  All uses changed.
2387         * lib/verify.h (__has_builtin): Treat like intprops.h,
2388         so that the two .h files do not collide with each other.
2389         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
2390         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
2392 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2394         intprops: say why not Clang __builtin_add_overflow
2395         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
2396         Mention Clang in comment, responding to a query from
2397         Mattias Engdegård.
2399 2019-08-24  Bruno Haible  <bruno@clisp.org>
2401         doc: Document most of the files outside of modules.
2402         * doc/gnulib.texi (Build Infrastructure Files,
2403         Release Management Files): New chapters.
2405 2019-08-24  Bruno Haible  <bruno@clisp.org>
2407         bootstrap: Keep in sync with the 'gettext' module.
2408         Reported by Assaf Gordon in
2409         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
2410         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
2411         * build-aux/po/remove-potcdate.sin: Likewise.
2413 2019-08-24  Bruno Haible  <bruno@clisp.org>
2415         crypto/gc-sha512: Add tests.
2416         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
2417         * modules/crypto/gc-sha512-tests: New file.
2419         crypto/gc-sha256: Add tests.
2420         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
2421         * modules/crypto/gc-sha256-tests: New file.
2423         crypto/gc-sha256, crypto/gc-sha512: New modules.
2424         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
2425         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
2426         (MAX_DIGEST_SIZE): Set to 64.
2427         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
2428         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
2429         (gc_sha256, gc_sha512): New functions.
2430         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
2431         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
2432         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
2434 2019-08-24  Bruno Haible  <bruno@clisp.org>
2436         crypto/gc-sha1 tests: Improve output when the test fails.
2437         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
2438         output.
2440 2019-08-24  Bruno Haible  <bruno@clisp.org>
2442         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
2443         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
2444         LIBGCRYPT_HAS_MD_SM3.
2445         * lib/gc-libgcrypt.c: Include sm3.h.
2446         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
2447         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
2448         implementation if libgcrypt does not support SM3.
2450 2019-08-24  Bruno Haible  <bruno@clisp.org>
2452         crypto/gc-md2: Optimize and clarify code.
2453         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
2454         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
2455         is not needed.
2457 2019-08-24  Bruno Haible  <bruno@clisp.org>
2459         crypto/gc-md2: Add comment.
2460         * lib/gc-libgcrypt.c: Add comment.
2462 2019-08-24  Bruno Haible  <bruno@clisp.org>
2464         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
2465         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
2466         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
2467         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
2468         variable.
2470 2019-08-24  Bruno Haible  <bruno@clisp.org>
2472         crypto/gc: Fix link error with --with-libgcrypt.
2473         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
2474         AC_LIB_HAVE_LINKFLAGS invocation.
2476 2019-08-24  Bruno Haible  <bruno@clisp.org>
2478         crypto/gc: Access the module indicators correctly.
2479         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
2480         * lib/gc-libgcrypt.c: Likewise.
2482 2019-08-24  Bruno Haible  <bruno@clisp.org>
2484         crypto/gc: Fix configuration with --with-libgcrypt.
2485         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
2486         * modules/crypto/gc (Files): Add it.
2487         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
2489 2019-08-24  Bruno Haible  <bruno@clisp.org>
2491         Remove unused file.
2492         * m4/stat-macros.m4: Remove file.
2494 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
2496         New strip-trailing-space option for srclist-update
2497         * config/srclist-update (fixfile): Support new option.
2498         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
2499         Use it.
2501 2019-08-20  Eric Blake  <eblake@redhat.com>
2503         accept4: Support SOCK_NONBLOCK, if defined
2504         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
2506         accept4: Fix compilation when native accept4() exists.
2507         Reported by Richard W.M. Jones <rjones@redhat.com> in
2508         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
2509         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
2511 2019-08-18  Bruno Haible  <bruno@clisp.org>
2513         Defeat -flto GCC optimization in math autoconf tests.
2514         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
2515         at <https://savannah.gnu.org/bugs/?56109>.
2516         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
2517         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
2518         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
2519         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
2520         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
2521         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
2522         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
2523         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
2524         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
2525         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
2526         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
2527         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
2529 2019-08-17  Bruno Haible  <bruno@clisp.org>
2531         windows-spin: Implement declared functions.
2532         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
2533         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
2534         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
2535         name.
2537 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2539         intprops: port to Oracle Developer Studio 12.6
2540         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
2541         typos that were in a section not compiled by GCC.
2543 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
2545         intprops: support uchar, ushort _WRAPV dests
2546         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
2547         when __builtin_add_overflow etc. and _Generic are not used.
2548         (_GL_INT_OP_WRAPV): Use it to support destinations that
2549         are unsigned char or unsigned short, even in compilers
2550         that lack __typeof__ and are not C11-compatible.
2552         intprops: pacify picky GCC
2553         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
2554         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
2555         possibly-incorrect result.
2556         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
2557         about (A) used as a boolean, when A is an expression like 3 * 4.
2559         intprops: support unsigned *_WRAPV results
2560         Add support for unsigned, unsigned long, and unsigned long long
2561         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
2562         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
2563         bug with unsigned inputs reported by Eli Zaretskii in:
2564         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
2565         * config/srclist.txt: Break the glibc connection for intprops.h
2566         temporarily, while more testing is done in Gnulib-using apps.
2567         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
2568         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
2569         Support unsigned results no narrower than unsigned int.  Report
2570         overflow correctly if some arguments are unsigned.
2571         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
2572         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
2573         the right thing with narrow args.
2574         (_GL_INT_OP_CALC1): Remove.  All callers removed.
2575         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
2576         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
2577         * tests/test-intprops.c: Check for bugs and test new behavior.
2579 2019-08-14  Bruno Haible  <bruno@clisp.org>
2581         get_progname_of: New module.
2582         * lib/get_progname_of.h: New file.
2583         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
2584         * lib/getprogname.c (getprogname): Tweak coding style.
2585         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
2586         * modules/get_progname_of: New file.
2588 2019-08-14  Bruno Haible  <bruno@clisp.org>
2590         get_ppid_of: New module.
2591         * lib/get_ppid_of.h: New file.
2592         * lib/get_ppid_of.c: New file.
2593         * modules/get_ppid_of: New file.
2595 2019-08-13  Bruno Haible  <bruno@clisp.org>
2597         libtextstyle-optional tests: Support the NO_COLOR environment variable.
2598         * tests/test-libtextstyle.c (main): Do not emit styling when the
2599         environment variable NO_COLOR is set.
2601 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
2603         verify: improve diagnostic quality in recent GCC
2604         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
2605         useful line number containing the top-level caller of the macro.
2606         So, bring back the older way of issuing a diagnostic containing
2607         the top-level call’s arg, so that it is easier to diagnose
2608         ‘verify’ failures with recent GCC.
2609         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
2610         Bring back DIAGNOSTIC arg.  All callers changed.
2611         (verify): Just use _GL_VERIFY.
2613 2019-08-11  Bruno Haible  <bruno@clisp.org>
2615         localcharset: Add more aliases for OS/2.
2616         Based on patch by KO Myung-Hun <komh78@gmail.com> in
2617         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
2618         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
2620 2019-08-10  Eric Blake  <eblake@redhat.com>
2622         configmake: Update advice on usage.
2623         * modules/configmake (Include): No longer necessary to include
2624         last, since configmake.h itself worries about collision avoidance.
2626 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
2628         parse-datetime: fix 'T' military timezone handling
2629         * lib/parse-datetime.y (zone):
2630         follow-up to the previous commit: the 'T' case is handled outside the
2631         conversion table (used as either military timezone UTC-7 or ISO8601
2632         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
2633         timezone letters.
2635 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
2637         parse-datetime: fix military timezone letters
2638         Problem and trivial fix reported by Neil Hoggarth in:
2639         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
2640         * lib/parse-datetime.y (military_table):
2641         Do it the right way, not the RFC 822 way.
2643 2019-08-08  Eric Blake  <eblake@redhat.com>
2645         configmake: Avoid namespace pollution issue on mingw.
2646         * modules/configmake (Makefile.am): If the project uses
2647         <winsock2.h>, include that header before defining DATADIR.
2649 2019-07-28  Bruno Haible  <bruno@clisp.org>
2651         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
2652         * tests/test-mbrtowc.c (main): Fix expected value of wc.
2654 2019-07-24  Bruno Haible  <bruno@clisp.org>
2656         pthread-h: Fix definitions of types and macros on mingw.
2657         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
2658         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
2659         not in use.
2660         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
2661         'pthread-once' is not in use.
2662         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
2663         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
2664         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
2665         in use.
2666         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
2667         Define also when module 'pthread-rwlock' is not in use.
2668         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
2669         also when module 'pthread-cond' is not in use.
2670         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
2671         'pthread-tss' is not in use.
2672         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
2673         use.
2675 2019-07-24  Simon Josefsson  <simon@josefsson.org>
2677         crypto/gc: Cope with libgcrypt without SM3.
2678         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
2680 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
2682         backupfile: fix resource leak on memory failure
2683         Problem found by Coverity (CID 1484214).
2684         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
2686 2019-07-22  Bruno Haible  <bruno@clisp.org>
2688         Avoid missing-declarations warning in various tests.
2689         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
2690         test6, test_optional, test7, test8, test9, test10, test11, test12,
2691         test13, test14, test15, test_fun): Declare static.
2692         * tests/test-cnd.c (test_cnd_wait): Likewise.
2693         * tests/test-cond.c (test_cond): Likewise.
2695 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
2697         pthread tests: Avoid missing-declarations warning.
2698         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
2700 2019-07-19  Bruno Haible  <bruno@clisp.org>
2702         parse-datetime: Avoid warnings from bison versions >= 3.3.
2703         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
2704         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
2706 2019-07-19  Bruno Haible  <bruno@clisp.org>
2708         parse-datetime: Require Bison 2.4 or newer.
2709         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
2710         Code taken from gettext's intl.m4.
2711         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
2712         of YACC.
2714 2019-07-19  Bruno Haible  <bruno@clisp.org>
2716         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
2717         * lib/areadlink-with-size.c: Include <string.h>.
2718         * lib/areadlinkat-with-size.c: Likewise.
2719         * lib/xgethostname.c: Likewise.
2720         * lib/xgetdomainname.c: Likewise.
2722 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
2724         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
2725         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
2726         "%pure-parser".  The former is available since Bison 2.3b (2008),
2727         while the latter is marked as obsolete since version 3.4 (May 2019).
2729 2019-07-16  Bruno Haible  <bruno@clisp.org>
2731         update-copyright: Make it work again (regression from 2019-06-15).
2732         Reported by Brian C. Lane <bcl@redhat.com>.
2733         * build-aux/update-copyright: Add back the -0777, -p, -i options.
2735 2019-07-14  Bruno Haible  <bruno@clisp.org>
2737         doc: Update info about <pthread.h>.
2738         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
2739         of 'pthread'.
2741 2019-07-14  Bruno Haible  <bruno@clisp.org>
2743         pthread_sigmask tests: Use new multithread modules.
2744         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
2745         glthread/thread.h.
2746         (main_thread, killer_thread): Change type to pthread_t.
2747         (main): Update accordingly.
2748         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
2749         thread.
2751 2019-07-14  Bruno Haible  <bruno@clisp.org>
2753         pthread-tss: Add tests.
2754         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
2755         tests/test-tss.c.
2756         * modules/pthread-tss-tests: New file.
2758 2019-07-14  Bruno Haible  <bruno@clisp.org>
2760         pthread-cond: Add tests.
2761         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
2762         tests/test-cnd.c.
2763         * modules/pthread-cond-tests: New file.
2765 2019-07-14  Bruno Haible  <bruno@clisp.org>
2767         pthread-rwlock: Add tests.
2768         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
2769         * modules/pthread-rwlock-tests: New file.
2771 2019-07-14  Bruno Haible  <bruno@clisp.org>
2773         pthread-mutex: Add tests.
2774         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
2775         tests/test-mtx.c.
2776         * modules/pthread-mutex-tests: New file.
2778 2019-07-14  Bruno Haible  <bruno@clisp.org>
2780         pthread-once: Add tests.
2781         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
2782         tests/test-call_once.c.
2783         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
2784         tests/test-mtx.c.
2785         * modules/pthread-once-tests: New file.
2787 2019-07-14  Bruno Haible  <bruno@clisp.org>
2789         pthread-thread: Add tests.
2790         * tests/test-pthread-thread.c: New file, based on
2791         tests/test-thread_create.c and tests/test-thrd_create.c.
2792         * modules/pthread-thread-tests: New file.
2794 2019-07-14  Bruno Haible  <bruno@clisp.org>
2796         pthread: Turn into a convenience module.
2797         * lib/pthread.in.h: Remove declarations for extern inline functions.
2798         * lib/pthread.c: Remove file.
2799         * modules/pthread (Files): Remove it.
2800         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
2801         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
2802         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
2803         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
2804         GNULIB_PTHREAD.
2805         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
2807 2019-07-14  Bruno Haible  <bruno@clisp.org>
2809         pthread-spin: New module.
2810         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
2811         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
2812         inline definitions.
2813         * lib/pthread-spin.c: New file.
2814         * m4/pthread-spin.m4: New file.
2815         * modules/pthread-spin: New file.
2816         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
2817         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
2818         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
2819         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
2820         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
2822 2019-07-14  Bruno Haible  <bruno@clisp.org>
2824         pthread-tss: New module.
2825         * lib/pthread-tss.c: New file.
2826         * m4/pthread-tss.m4: New file.
2827         * modules/pthread-tss: New file.
2828         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
2829         * doc/posix-functions/pthread_setspecific.texi: Likewise.
2830         * doc/posix-functions/pthread_getspecific.texi: Likewise.
2831         * doc/posix-functions/pthread_key_delete.texi: Likewise.
2833 2019-07-14  Bruno Haible  <bruno@clisp.org>
2835         pthread-cond: New module.
2836         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
2837         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
2838         * lib/pthread-cond.c: New file.
2839         * m4/pthread-cond.m4: New file.
2840         * modules/pthread-cond: New file.
2841         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
2842         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
2843         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
2844         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
2845         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
2846         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
2847         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
2848         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
2850 2019-07-14  Bruno Haible  <bruno@clisp.org>
2852         pthread-rwlock: New module.
2853         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
2854         * m4/pthread-rwlock.m4: New file.
2855         * modules/pthread-rwlock: New file.
2856         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
2857         and the Android problem.
2858         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
2859         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
2860         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
2861         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
2862         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
2863         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
2864         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
2865         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
2866         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
2867         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
2869 2019-07-14  Bruno Haible  <bruno@clisp.org>
2871         pthread-mutex: New module.
2872         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
2873         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
2874         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
2875         pthread_mutex_unlock): Remove inline definitions.
2876         * lib/pthread-mutex.c: New file.
2877         * m4/pthread-mutex.m4: New file.
2878         * modules/pthread-mutex: New file.
2879         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
2880         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
2881         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
2882         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
2883         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2884         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2885         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
2886         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
2887         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
2888         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
2889         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
2890         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
2892 2019-07-14  Bruno Haible  <bruno@clisp.org>
2894         pthread-once: New module.
2895         * lib/pthread-once.c: New file.
2896         * m4/pthread-once.m4: New file.
2897         * modules/pthread-once: New file.
2898         * doc/posix-functions/pthread_once.texi: Mention the new module.
2900 2019-07-14  Bruno Haible  <bruno@clisp.org>
2902         pthread-thread: New module.
2903         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
2904         inline definitions.
2905         * lib/pthread-thread.c: New file.
2906         * m4/pthread-thread.m4: New file.
2907         * modules/pthread-thread: New file.
2908         * doc/posix-functions/pthread_create.texi: Mention the new module.
2909         * doc/posix-functions/pthread_attr_init.texi: Likewise.
2910         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
2911         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
2912         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
2913         * doc/posix-functions/pthread_self.texi: Likewise.
2914         * doc/posix-functions/pthread_equal.texi: Likewise.
2915         * doc/posix-functions/pthread_detach.texi: Likewise.
2916         * doc/posix-functions/pthread_join.texi: Likewise.
2917         * doc/posix-functions/pthread_exit.texi: Likewise.
2919 2019-07-14  Bruno Haible  <bruno@clisp.org>
2921         pthread-h: Prepare for adding new modules.
2922         * lib/pthread.in.h: Define the types and macros for each of the
2923         facilities separately.
2924         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
2925         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
2926         HAVE_PTHREAD_PROCESS_SHARED.
2927         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
2928         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
2929         HAVE_PTHREAD_PROCESS_SHARED.
2930         * modules/pthread-h (Makefile.am): Substitute
2931         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
2932         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
2934 2019-07-14  Bruno Haible  <bruno@clisp.org>
2936         pthread-h: Add declarations of essential pthread functions.
2937         * lib/pthread.in.h: Include snippets.
2938         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
2939         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
2940         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
2941         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
2942         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
2943         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
2944         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
2945         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
2946         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
2947         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
2948         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
2949         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
2950         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
2951         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
2952         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
2953         pthread_key_create, pthread_setspecific, pthread_getspecific,
2954         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
2955         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
2956         declarations.
2957         (pthread_mutex_timedlock): Move declaration.
2958         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
2959         declared.
2960         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
2961         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
2962         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
2963         HAVE_* and REPLACE_* variables for the new functions.
2964         * modules/pthread-h (Depends-on): Add snippet/c++defs,
2965         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
2966         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
2967         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
2968         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
2969         variables for the new functions. Split the sed script, to avoid the
2970         limit of 99 commands of HP-UX sed.
2971         * tests/test-pthread-c++.cc: Check the signature of the new functions.
2973 2019-07-14  Bruno Haible  <bruno@clisp.org>
2975         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
2976         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
2977         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
2978         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
2979         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
2980         * modules/pthread-h (Depends-on): Add threadlib.
2981         (Link): Change to $(LIBTHREAD).
2982         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
2983         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
2985 2019-07-14  Bruno Haible  <bruno@clisp.org>
2987         pthread-h: Add C++ tests.
2988         * tests/test-pthread-c++.cc: New file.
2989         * modules/pthread-h-c++-tests: New file.
2991 2019-07-14  Bruno Haible  <bruno@clisp.org>
2993         pthread-h: Add tests.
2994         * tests/test-pthread.c: New file.
2995         * modules/pthread-h-tests: New file.
2997 2019-07-14  Bruno Haible  <bruno@clisp.org>
2999         pthread-h: New module.
3000         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
3001         is 1.
3002         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
3003         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
3004         <pthread.h> pollutes the namespace; instead, prepare for generating a
3005         pthread.h always. Substitute HAVE_PTHREAD_H here.
3006         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
3007         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
3008         * modules/pthread-h: New file, based on modules/pthread.
3009         * modules/pthread: Rely on 'pthread-h'.
3010         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
3011         Update.
3012         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
3013         pthread.
3015 2019-07-14  Bruno Haible  <bruno@clisp.org>
3017         sched_yield: New module.
3018         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
3019         (sched_yield): New declaration.
3020         * lib/sched_yield.c: New file.
3021         * m4/sched_yield.m4: New file.
3022         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
3023         provide a replacement sched.h always. Test whether sched_yield is
3024         declared.
3025         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
3026         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
3027         (Makefile.am): Provide a replacement sched.h always. Substitute
3028         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
3029         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
3030         * modules/sched_yield: New file.
3031         * doc/posix-functions/sched_yield.texi: Mention the new module.
3033 2019-07-14  Bruno Haible  <bruno@clisp.org>
3035         windows-spin: New module.
3036         * lib/windows-spin.h: New file.
3037         * lib/windows-spin.c: New file.
3038         * modules/windows-spin: New file.
3040 2019-07-14  Bruno Haible  <bruno@clisp.org>
3042         windows-timedrwlock: New module.
3043         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
3044         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
3045         windows-cond.c.
3046         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
3047         redefinition conflict with windows-timedrwlock.h.
3048         * modules/windows-timedrwlock: New file.
3050 2019-07-14  Bruno Haible  <bruno@clisp.org>
3052         windows-rwlock: New module.
3053         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
3054         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
3055         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
3056         windows-initguard.h.
3057         (gl_rwlock_t): Define using glwthread_rwlock_t.
3058         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
3059         (glthread_rwlock_init): Define using glwthread_rwlock_init.
3060         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
3061         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
3062         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
3063         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
3064         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
3065         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
3066         glthread_rwlock_destroy_func): Remove declarations.
3067         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
3068         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
3069         gl_waitqueue_notify_all, glthread_rwlock_init_func,
3070         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
3071         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
3072         functions.
3073         * modules/windows-rwlock: New file.
3074         * modules/lock (Depends-on): Add windows-rwlock.
3076 2019-07-14  Bruno Haible  <bruno@clisp.org>
3078         windows-thread: Add support for creating a thread in detached state.
3079         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
3080         (glwthread_thread_create): Add attr argument.
3081         * lib/windows-thread.c (glwthread_thread_create): Likewise.
3082         * lib/glthread/thread.h (glthread_create): Update.
3083         * lib/thrd.c (thrd_create): Update.
3085 2019-07-14  Bruno Haible  <bruno@clisp.org>
3087         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
3088         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
3089         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
3090         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
3091         * lib/windows-mutex.h: Update.
3092         * lib/windows-recmutex.h: Likewise.
3093         * lib/windows-timedmutex.h: Likewise.
3094         * lib/windows-timedrecmutex.h: Likewise.
3095         * lib/windows-cond.h: Likewise.
3096         * lib/glthread/lock.h: Likewise.
3097         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
3098         lib/windows-spinlock.h.
3099         * modules/windows-recmutex (Files): Likewise.
3100         * modules/windows-timedmutex (Files): Likewise.
3101         * modules/windows-timedrecmutex (Files): Likewise.
3102         * modules/windows-cond (Files): Likewise.
3103         * modules/threads-h (Files): Likewise.
3105 2019-07-14  Bruno Haible  <bruno@clisp.org>
3107         doc: Fix info about pthread API in HP-UX.
3108         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
3110 2019-07-14  Bruno Haible  <bruno@clisp.org>
3112         threads-h: Fix generation of threads.h.
3113         * modules/threads-h (Makefile.am): Insert the required header file
3114         snippets.
3116 2019-07-09  Bruno Haible  <bruno@clisp.org>
3118         striconveh test: Fix a compilation failure when iconv is not available.
3119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3120         * tests/test-striconveh.c (main): Move iconv_close invocations inside
3121         HAVE_ICONV.
3123 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
3125         argmatch: adjust columns for help2man.
3126         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
3127         requires column 20 or more, return 20.
3129 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
3131         areadlink-with-size: avoid realloc when size==0
3132         * lib/areadlink-with-size.c (areadlink_with_size):
3133         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
3134         Reallocate at the end to the actual size, to avoid memory waste,
3135         as suggested by Bruno Haible.  But when the guessed size is zero -
3136         useful when the size is unknown - do the initial small readlink
3137         into the stack, to avoid that realloc in the usual case.
3139 2019-07-06  Pádraig Brady  <P@draigBrady.com>
3141         areadlink-with-size: guess a buffer size with 0 size
3142         The size is usually taken from st_size, which can be zero,
3143         resulting in inefficient operation.
3144         Instead let zero select an initial memory allocation
3145         of 128 bytes, which most symlinks fit within.
3146         * lib/areadlink-with-size.c (areadlink_with_size):
3147         Start with a 128 byte buffer, for SIZE == 0.
3148         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
3150 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
3152         Replace manually crafted hex regexes with [:xdigit:]
3153         * build-aux/gitlog-to-changelog (parse_amend_file)
3154         (git_dir_option):
3155         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
3156         This patch is backported from Emacs (Bug#36167).
3158 2019-07-06  Bruno Haible  <bruno@clisp.org>
3160         error: Fix documentation.
3161         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
3162         module provides.
3163         * doc/glibc-functions/error_message_count.texi: Likewise.
3164         * doc/glibc-functions/error_one_per_line.texi: Likewise.
3165         * doc/glibc-functions/error_print_progname.texi: Likewise.
3167 2019-07-06  Bruno Haible  <bruno@clisp.org>
3169         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
3170         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
3171         and older is unsupported.
3172         * doc/**/*.texi: Update.
3174 2019-07-06  Bruno Haible  <bruno@clisp.org>
3176         doc: Remove documentation of Linux libc5 as a supported platform.
3177         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
3178         to Linux libc5.
3179         * doc/posix-functions/iswalpha.texi: Likewise.
3180         * doc/posix-functions/iswblank.texi: Likewise.
3181         * doc/posix-functions/iswcntrl.texi: Likewise.
3182         * doc/posix-functions/iswdigit.texi: Likewise.
3183         * doc/posix-functions/iswgraph.texi: Likewise.
3184         * doc/posix-functions/iswlower.texi: Likewise.
3185         * doc/posix-functions/iswprint.texi: Likewise.
3186         * doc/posix-functions/iswpunct.texi: Likewise.
3187         * doc/posix-functions/iswspace.texi: Likewise.
3188         * doc/posix-functions/iswupper.texi: Likewise.
3189         * doc/posix-functions/iswxdigit.texi: Likewise.
3190         * doc/posix-functions/snprintf.texi: Likewise.
3191         * doc/posix-functions/vsnprintf.texi: Likewise.
3193 2019-07-06  Bruno Haible  <bruno@clisp.org>
3195         doc: Remove documentation of Tandem/NSK as a supported platform.
3196         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
3197         Tandem/NSK.
3198         * doc/**/*.texi: Update.
3200 2019-07-06  Bruno Haible  <bruno@clisp.org>
3202         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
3203         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
3204         and older is unsupported.
3205         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
3206         Mac OS X 10.4 and older.
3207         * doc/posix-functions/asinl.texi: Likewise.
3208         * doc/posix-functions/atanl.texi: Likewise.
3209         * doc/posix-functions/cosl.texi: Likewise.
3210         * doc/posix-functions/expl.texi: Likewise.
3211         * doc/posix-functions/frexpl.texi: Likewise.
3212         * doc/posix-functions/gettimeofday.texi: Likewise.
3213         * doc/posix-functions/logl.texi: Likewise.
3214         * doc/posix-functions/mkstemp.texi: Likewise.
3215         * doc/posix-functions/sinl.texi: Likewise.
3216         * doc/posix-functions/sqrtl.texi: Likewise.
3217         * doc/posix-functions/tanl.texi: Likewise.
3218         * doc/posix-functions/wcswidth.texi: Likewise.
3219         * doc/**/*.texi: Update.
3221 2019-07-06  Bruno Haible  <bruno@clisp.org>
3223         doc: Remove documentation of AIX 4 as a supported platform.
3224         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
3225         unsupported.
3226         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
3227         workarounds.
3228         * doc/posix-functions/strnlen.texi: Likewise.
3229         * doc/posix-headers/inttypes.texi: Likewise.
3230         * doc/**/*.texi: Update.
3232 2019-07-06  Bruno Haible  <bruno@clisp.org>
3234         doc: Remove documentation of HP-UX 10 as a supported platform.
3235         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
3236         unsupported.
3237         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
3238         workarounds.
3239         * doc/posix-functions/gmtime_r.texi: Likewise.
3240         * doc/posix-functions/localtime_r.texi: Likewise.
3241         * doc/posix-functions/mkstemp.texi: Likewise.
3242         * doc/**/*.texi: Update.
3244 2019-07-06  Bruno Haible  <bruno@clisp.org>
3246         doc: Remove documentation of Interix 3.5 as a supported platform.
3247         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
3248         unsupported.
3249         * doc/posix-functions/select.texi: Don't mention Interix specific
3250         workarounds.
3251         * doc/posix-headers/signal.texi: Likewise.
3252         * doc/**/*.texi: Update.
3254 2019-07-06  Bruno Haible  <bruno@clisp.org>
3256         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
3257         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
3258         unsupported.
3259         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
3260         workarounds.
3261         * doc/posix-functions/nl_langinfo.texi: Likewise.
3262         * doc/posix-functions/remainder.texi: Likewise.
3263         * doc/posix-functions/towlower.texi: Likewise.
3264         * doc/posix-functions/towupper.texi: Likewise.
3265         * doc/posix-functions/vsnprintf.texi: Likewise.
3266         * doc/posix-functions/wcscat.texi: Likewise.
3267         * doc/posix-functions/wcschr.texi: Likewise.
3268         * doc/posix-functions/wcscmp.texi: Likewise.
3269         * doc/posix-functions/wcscpy.texi: Likewise.
3270         * doc/posix-functions/wcscspn.texi: Likewise.
3271         * doc/posix-functions/wcslen.texi: Likewise.
3272         * doc/posix-functions/wcsncat.texi: Likewise.
3273         * doc/posix-functions/wcsncmp.texi: Likewise.
3274         * doc/posix-functions/wcsncpy.texi: Likewise.
3275         * doc/posix-functions/wcspbrk.texi: Likewise.
3276         * doc/posix-functions/wcsrchr.texi: Likewise.
3277         * doc/posix-functions/wcsspn.texi: Likewise.
3278         * doc/posix-headers/langinfo.texi: Likewise.
3279         * doc/posix-headers/signal.texi: Likewise.
3280         * doc/posix-headers/wchar.texi: Likewise.
3281         * doc/posix-headers/wctype.texi: Likewise.
3282         * doc/**/*.texi: Update.
3284 2019-07-05  Bruno Haible  <bruno@clisp.org>
3286         doc: Remove documentation of OSF/1 as supported platform.
3287         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
3288         unsupported.
3289         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
3290         workarounds.
3291         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
3292         * doc/glibc-functions/ptsname_r.texi: Likewise.
3293         * doc/posix-functions/ceil.texi: Likewise.
3294         * doc/posix-functions/ceilf.texi: Likewise.
3295         * doc/posix-functions/ceill.texi: Likewise.
3296         * doc/posix-functions/fchdir.texi: Likewise.
3297         * doc/posix-functions/floor.texi: Likewise.
3298         * doc/posix-functions/floorf.texi: Likewise.
3299         * doc/posix-functions/fmod.texi: Likewise.
3300         * doc/posix-functions/fmodf.texi: Likewise.
3301         * doc/posix-functions/fmodl.texi: Likewise.
3302         * doc/posix-functions/log.texi: Likewise.
3303         * doc/posix-functions/logf.texi: Likewise.
3304         * doc/posix-functions/logl.texi: Likewise.
3305         * doc/posix-functions/log10.texi: Likewise.
3306         * doc/posix-functions/log10f.texi: Likewise.
3307         * doc/posix-functions/log10l.texi: Likewise.
3308         * doc/posix-functions/log2.texi: Likewise.
3309         * doc/posix-functions/log2f.texi: Likewise.
3310         * doc/posix-functions/log2l.texi: Likewise.
3311         * doc/posix-functions/mbrtowc.texi: Likewise.
3312         * doc/posix-functions/recv.texi: Likewise.
3313         * doc/posix-functions/recvfrom.texi: Likewise.
3314         * doc/posix-functions/remainder.texi: Likewise.
3315         * doc/posix-functions/remainderf.texi: Likewise.
3316         * doc/posix-functions/remainderl.texi: Likewise.
3317         * doc/posix-functions/round.texi: Likewise.
3318         * doc/posix-functions/roundf.texi: Likewise.
3319         * doc/posix-functions/roundl.texi: Likewise.
3320         * doc/posix-functions/send.texi: Likewise.
3321         * doc/posix-functions/sendto.texi: Likewise.
3322         * doc/posix-functions/setenv.texi: Likewise.
3323         * doc/posix-functions/snprintf.texi: Likewise.
3324         * doc/posix-functions/tcgetsid.texi: Likewise.
3325         * doc/posix-functions/trunc.texi: Likewise.
3326         * doc/posix-functions/truncf.texi: Likewise.
3327         * doc/posix-functions/truncl.texi: Likewise.
3328         * doc/posix-functions/ttyname_r.texi: Likewise.
3329         * doc/posix-functions/unsetenv.texi: Likewise.
3330         * doc/posix-functions/wcsrtombs.texi: Likewise.
3331         * doc/posix-headers/sys_select.texi: Likewise.
3332         * doc/posix-headers/wchar.texi: Likewise.
3333         * doc/posix-headers/wctype.texi: Likewise.
3334         * doc/**/*.texi: Update.
3336 2019-07-05  Bruno Haible  <bruno@clisp.org>
3338         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
3339         * doc/**/*.texi: Update.
3341 2019-07-05  Bruno Haible  <bruno@clisp.org>
3343         doc: Remove documentation of Solaris 8 and older as supported platforms.
3344         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
3345         unsupported.
3346         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
3347         workarounds.
3348         * doc/posix-functions/memcmp.texi: Likewise.
3349         * doc/posix-functions/rename.texi: Likewise.
3350         * doc/posix-functions/tzset.texi: Likewise.
3351         * doc/posix-headers/wctype.texi: Likewise.
3352         * doc/**/*.texi: Update.
3354 2019-07-05  Bruno Haible  <bruno@clisp.org>
3356         doc: Remove documentation of Interix 3.5 as a supported platform.
3357         * doc/**/*.texi: Update.
3359 2019-07-05  Bruno Haible  <bruno@clisp.org>
3361         doc: Remove documentation of BeOS as a supported platform.
3362         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
3363         unsupported.
3364         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
3365         * doc/posix-functions/getdelim.texi: Likewise.
3366         * doc/**/*.texi: Update.
3368 2019-07-05  Bruno Haible  <bruno@clisp.org>
3370         thread, lock, cond, tls: Remove support for Pth threads.
3371         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
3372         --enable-threads=pth any more.
3373         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
3374         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
3375         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
3376         threads and ISO C11 threads.
3377         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
3378         * lib/glthread/lock.h: Likewise.
3379         * lib/glthread/lock.c: Likewise.
3380         * lib/glthread/cond.h: Likewise.
3381         * lib/glthread/cond.c: Likewise.
3382         * lib/glthread/tls.h: Likewise.
3383         * lib/glthread/tls.c: Likewise.
3384         * lib/glthread/yield.h: Likewise.
3385         * lib/regex_internal.h: Likewise.
3386         * tests/test-thread_create.c: Likewise.
3387         * tests/test-lock.c: Likewise.
3388         * tests/test-cond.c: Likewise.
3389         * tests/test-tls.c: Likewise.
3390         * tests/test-rwlock1.c: Don't include glthread/yield.h.
3391         (main): Sleep without calling gl_thread_yield.
3393 2019-07-05  Bruno Haible  <bruno@clisp.org>
3395         thread, lock, cond, tls: Remove support for old Solaris threads.
3396         Solaris >= 2.5.1 has POSIX threads.
3397         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
3398         --enable-threads=solaris any more.
3399         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
3400         * lib/glthread/thread.c: Update comment.
3401         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
3402         * lib/glthread/lock.h: Likewise.
3403         * lib/glthread/lock.c: Likewise.
3404         * lib/glthread/cond.h: Likewise.
3405         * lib/glthread/cond.c: Likewise.
3406         * lib/glthread/tls.h: Likewise.
3407         * lib/glthread/tls.c: Likewise.
3408         * lib/glthread/yield.h: Likewise.
3409         * lib/regex_internal.h: Likewise.
3410         * tests/test-thread_create.c: Likewise.
3411         * tests/test-lock.c: Likewise.
3412         * tests/test-cond.c: Likewise.
3413         * tests/test-tls.c: Likewise.
3415 2019-07-05  Bruno Haible  <bruno@clisp.org>
3417         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
3418         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
3419         needed size is equal to the allocated size.
3420         * lib/getcwd.c (__getcwd): Likewise.
3422 2019-07-05  Bruno Haible  <bruno@clisp.org>
3424         xgetdomainname: Don't return an excessive memory allocation.
3425         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
3426         before returning it.
3428 2019-07-05  Bruno Haible  <bruno@clisp.org>
3430         xgethostname: Don't return an excessive memory allocation.
3431         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
3432         returning it.
3434 2019-07-05  Bruno Haible  <bruno@clisp.org>
3436         areadlinkat-with-size: Don't return an excessive memory allocation.
3437         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
3438         before returning it.
3440 2019-07-05  Bruno Haible  <bruno@clisp.org>
3442         areadlink-with-size: Don't return an excessive memory allocation.
3443         Reported by Andreas Dilger <adilger@whamcloud.com>.
3444         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
3445         before returning it.
3447 2019-07-03  Bruno Haible  <bruno@clisp.org>
3449         renameatu: Fix test failure on MSVC.
3450         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
3451         empty string.
3453 2019-07-03  Bruno Haible  <bruno@clisp.org>
3455         mbrtowc: Fix invalid use of mbtowc() on MSVC.
3456         * lib/mbrtowc.c: Include glthread/lock.h.
3457         (mbtowc_lock): New variable.
3458         (mbrtowc): Treat UTF-8 encoding without locking. For the other
3459         encodings, explicitly reset the internal state of mbtowc, and protect
3460         this through a lock.
3461         * modules/mbrtowc (Depends-on): Add lock.
3463 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
3465         argmatch: don't define _ in the header.
3466         Reported by Jim Meyering.
3467         * lib/argmatch.h (N_, _): Don't define.
3468         Use gettext instead.
3469         * lib/argmatch.h (_): Define.
3470         * tests/test-argmatch.c (N_): Define.
3472 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
3474         verify: document ‘assume’ better
3475         * lib/verify.h: Reword doc (Bug#36370).
3477 2019-07-02  Bruno Haible  <bruno@clisp.org>
3479         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
3480         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
3481         "CPutf8".
3482         * lib/nl_langinfo.c (ctype_codeset): Likewise.
3484 2019-07-02  Bruno Haible  <bruno@clisp.org>
3486         getcwd: Fix crash when invoked with size = 0 on MSVC.
3487         * lib/getcwd.c: Include msvc-inval.h.
3488         (getcwd_nothrow): New function/macro.
3489         (getcwd_system): New macro.
3490         (__getcwd): Use it instead of getcwd.
3491         * modules/getcwd (Depends-on): Add msvc-inval.
3492         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
3494 2019-07-02  Bruno Haible  <bruno@clisp.org>
3496         nonblocking-pipe tests: Fix test failure on MSVC.
3497         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
3498         native Windows.
3500 2019-07-02  Bruno Haible  <bruno@clisp.org>
3502         usleep: Implement with millisecond resolution on native Windows.
3503         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
3504         * doc/pastposix-functions/usleep.texi: Update accordingly.
3506 2019-07-02  Bruno Haible  <bruno@clisp.org>
3508         lstat tests: Fix test failure on MSVC.
3509         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
3510         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
3512 2019-07-02  Bruno Haible  <bruno@clisp.org>
3514         stat tests: Fix test failure on MSVC.
3515         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
3516         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
3518 2019-07-02  Bruno Haible  <bruno@clisp.org>
3520         getaddrinfo tests: Fix test failure on MSVC.
3521         * tests/test-getaddrinfo.c: Include sockets.h.
3522         (main): Invoke gl_sockets_startup.
3523         * modules/getaddrinfo-tests (Depends-on): Add sockets.
3525 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
3527         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
3528         * lib/poll.c: Call Windows native select() with Windows native timeval.
3530 2019-06-30  Bruno Haible  <bruno@clisp.org>
3532         argmatch: Fix compilation errors.
3533         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
3534         * tests/test-argmatch.c (main): Update after last-minute function names
3535         change.
3537 2019-06-30  Bruno Haible  <bruno@clisp.org>
3539         Include <stdlib.h> when needed.
3540         * lib/cnd.c: Include <stdlib.h>, needed for abort().
3541         * lib/fcntl.c: Likewise.
3542         * lib/mbscasestr.c: Likewise.
3543         * lib/mbssep.c: Likewise.
3544         * lib/mbsstr.c: Likewise.
3545         * lib/openat.c: Include <stdlib.h>, needed for free().
3546         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
3547         abort().
3549 2019-06-30  Bruno Haible  <bruno@clisp.org>
3551         Include <stdlib.h> when needed.
3552         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
3553         * lib/faccessat.c: Likewise.
3554         * lib/fchmodat.c: Likewise.
3555         * lib/fchownat.c: Likewise.
3556         * lib/fstatat.c: Likewise.
3557         * lib/mkfifoat.c: Likewise.
3558         * lib/mknodat.c: Likewise.
3559         * lib/readlinkat.c: Likewise.
3560         * lib/symlinkat.c: Likewise.
3561         * lib/utimensat.c: Likewise.
3562         * lib/mkdirat.c: Likewise. Include also the specification header.
3564 2019-06-30  Bruno Haible  <bruno@clisp.org>
3566         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
3567         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
3568         from gl_PREREQ_SYS_H_SOCKET.
3569         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
3570         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
3571         gl_PREREQ_SYS_H_WS2TCPIP.
3572         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
3573         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
3574         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
3576 2019-06-30  Bruno Haible  <bruno@clisp.org>
3578         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
3579         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
3580         REPLACE_INET_NTOP to 1 always.
3581         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
3582         REPLACE_INET_PTON to 1 always.
3584 2019-06-30  Bruno Haible  <bruno@clisp.org>
3586         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
3587         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
3588         not REPLACE_INET_NTOP.
3590 2019-06-30  Bruno Haible  <bruno@clisp.org>
3592         poll: Add comment.
3593         * lib/poll.c: Add comment about WSAPoll.
3595 2019-06-30  Bruno Haible  <bruno@clisp.org>
3597         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
3598         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
3599         * lib/poll.in.h: Include <winsock2.h>.
3600         (POLL*, pollfd): Override on native Windows.
3601         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
3602         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
3603         (Makefile.am): Substitute HAVE_WINSOCK2_H.
3605 2019-06-28  Bruno Haible  <bruno@clisp.org>
3607         accept4: Fix compilation error on OpenIndiana.
3608         Reported by Michal Nowak <mnowak@startmail.com>
3609         via Mark H Weaver <mhw@netris.org>.
3610         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
3611         whether it exists as a function.
3613 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
3615         strverscmp: sync from glibc
3616         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
3617         comments, include libc-config.h, define __strverscmp to be
3618         strverscmp, and don’t assume types line uint8_t and int8_t that
3619         that C99 doesn’t guarantee.
3620         [!_LIBC]: Include libc-config.h; define __strverscmp.
3621         Include stdint.h.
3622         (__strverscmp): Assume C99.  Use uint_least8_t
3623         and int_least8_t instead of unsigned char and signed char.
3624         * modules/strverscmp (Depends-on): Add libc-config, stdint.
3626 2019-06-25  Bruno Haible  <bruno@clisp.org>
3628         tss tests: Add tests for destructors and races.
3629         * tests/test-tss.c (worker_thread): Fix typo in debug message.
3630         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
3631         functions.
3632         (main): Invoke them.
3633         * modules/tls-tests (Depends-on): Add mtx.
3635 2019-06-25  Bruno Haible  <bruno@clisp.org>
3637         tls tests: Add tests for destructors and races.
3638         * tests/test-tls.c: Include glthread/lock.h.
3639         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
3640         functions.
3641         (main): Invoke them.
3642         * modules/tls-tests (Depends-on): Add lock.
3644 2019-06-25  Bruno Haible  <bruno@clisp.org>
3646         windows-tls: Implement TLS key destructors for native Windows.
3647         * lib/windows-tls.h (glwthread_tls_process_destructors): New
3648         declaration.
3649         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
3650         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
3651         (dtor_table_init_once, dtor_table_lock: New variables.
3652         (struct dtor): New type.
3653         (dtor_table, dtors_count, dtors_used, dtors_allocated,
3654         dtor_processing_threads): New variables.
3655         (dtor_table_initialize, dtor_table_ensure_initialized,
3656         dtor_table_shrink_used, glwthread_tls_process_destructors): New
3657         functions.
3658         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
3659         handle non-NULL destructors.
3660         * modules/windows-tls (Depends-on): Add windows-once.
3661         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
3662         Use the functions declared in windows-tls.h.
3663         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
3664         GLWTHREAD_DESTRUCTOR_ITERATIONS.
3665         * lib/windows-thread.c: Include windows-tls.h.
3666         (wrapper_func, glwthread_thread_exit): Invoke
3667         glwthread_tls_process_destructors.
3668         * modules/windows-thread (Depends-on): Add windows-tls.
3670 2019-06-25  Bruno Haible  <bruno@clisp.org>
3672         threadlib: Avoid autoconf warning "was expanded before it was required".
3673         * modules/threadlib (configure.ac): Require gl_THREADLIB.
3675 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
3677         argmatch: remove duplicate const qualifier
3678         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
3680 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3682         unistd: stddef.h and sys/types.h namespace cleanup
3683         * lib/unistd.in.h [__GLIBC__]:
3684         Do not include stddef.h or sys/types.h.
3685         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
3686         supposed to declare off_t and ssize_t.  Problem found when looking
3687         at why @GNULIB_PWRITE@ was different from the newly-added
3688         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
3690 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
3692         maintainer-makefile: restore portability to non-GNU awks
3693         Reported by Tim Rühsen.
3694         * top/maint.mk (AWK): New variable.  Use it.
3695         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
3697 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
3699         Document setvbuf _IOLBF problem
3700         * doc/posix-functions/setvbuf.texi (setvbuf):
3701         Document MS-Windows portability problem with _IOLBF.
3703         Document lseek SEEK_DATA/SEEK_HOLE
3704         * doc/posix-functions/lseek.texi (lseek):
3705         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
3707 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
3709         argmatch: put all the docs member last.
3710         Reported by Bruno Haible.
3711         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
3712         member before the docs done.
3713         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
3715 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
3717         argmatch: add support to generate the usage message.
3718         * lib/argmatch.c: Move some #includes and gettext support to...
3719         * lib/argmatch.h: here.
3720         (ARGMATCH_DEFINE_GROUP): New macro.
3721         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
3722         (argmatch_backup_group): New.
3723         (CHECK): New.
3724         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
3725         argmatch_backup_argument and argmatch_backup_usage.
3726         * modules/argmatch: We depend on c99.
3727         * doc/argmatch.texi (Recognizing Option Arguments): New.
3728         * doc/gnulib.texi: Use it.
3730 2019-06-21  Bruno Haible  <bruno@clisp.org>
3732         thrd: Add comment.
3733         * lib/thrd.c (pthread_main_func): Add comment.
3735 2019-06-21  Bruno Haible  <bruno@clisp.org>
3737         threads-h: Define 'thread_local' if and only if it actually works.
3738         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
3739         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
3740         Oracle Solaris Studio C. Compile a simple program, to see whether
3741         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
3742         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
3743         * lib/threads.in.h (thread_local): Undefine if it does not work.
3744         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
3745         (Link): Mention LIBTHREADLOCAL.
3746         * tests/test-threads.c: Don't check that thread_local is defined.
3747         * tests/test-thread_local.c: New file.
3748         * modules/threads-h-tests (Files): Add it and macros.h.
3749         (Depends-on): Add thrd and stdint.
3750         (configure.ac): Test whether 'alarm' is declared.
3751         (Makefile.am): Arrange to build and link test-thread_local.
3752         * doc/posix-headers/threads.texi: Mention the platforms that don't
3753         support 'thread_local'.
3755 2019-06-20  Bruno Haible  <bruno@clisp.org>
3757         threads-h: Simplify link dependencies.
3758         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
3759         Don't set LTLIBSTDTHREAD.
3760         * modules/thrd (Link): Simplify accordingly.
3761         * modules/mtx (Link): Likewise.
3762         * modules/cnd (Link): Likewise.
3763         * modules/tss (Link): Likewise.
3764         * modules/threads (Link): Likewise.
3766 2019-06-20  Bruno Haible  <bruno@clisp.org>
3768         threads-h: Fix link error on FreeBSD 11.
3769         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
3770         also with -lpthread.
3772 2019-06-20  Bruno Haible  <bruno@clisp.org>
3774         threadlib: Fix typo (regression from today).
3775         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
3777 2019-06-20  Bruno Haible  <bruno@clisp.org>
3779         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
3780         * lib/windows-thread.c: Include <errno.h>.
3781         * lib/windows-tls.c: Likewise.
3783 2019-06-20  Bruno Haible  <bruno@clisp.org>
3785         tss tests: Small improvement.
3786         * tests/test-tss.c (test_tss): Pass a different id to each thread.
3788 2019-06-20  Bruno Haible  <bruno@clisp.org>
3790         threads: New module.
3791         * modules/threads: New file.
3793 2019-06-20  Bruno Haible  <bruno@clisp.org>
3795         tss: Add tests.
3796         * tests/test-tss.c: New file, based on tests/test-tls.c.
3797         * modules/tss-tests: New file.
3799 2019-06-20  Bruno Haible  <bruno@clisp.org>
3801         cnd: Add tests.
3802         * tests/test-cnd.c: New file, based on tests/test-cond.c.
3803         * modules/cnd-tests: New file.
3805 2019-06-20  Bruno Haible  <bruno@clisp.org>
3807         mtx: Add tests.
3808         * tests/test-mtx.c: New file, based on tests/test-lock.c.
3809         * tests/test-call_once.c: New file, based on tests/test-once.c.
3810         * modules/mtx-tests: New file.
3812 2019-06-20  Bruno Haible  <bruno@clisp.org>
3814         thrd: Add tests.
3815         * tests/test-thrd_create.c: New file, based on
3816         tests/test-thread_create.c.
3817         * tests/test-thrd_current.c: New file, based on
3818         tests/test-thread_self.c.
3819         * modules/thrd-tests: New file.
3821 2019-06-20  Bruno Haible  <bruno@clisp.org>
3823         tss: New module.
3824         * lib/tss.c: New file.
3825         * modules/tss: New file.
3826         * doc/posix-functions/tss_create.texi: Mention the new module.
3827         * doc/posix-functions/tss_set.texi: Likewise.
3828         * doc/posix-functions/tss_get.texi: Likewise.
3829         * doc/posix-functions/tss_delete.texi: Likewise.
3831 2019-06-20  Bruno Haible  <bruno@clisp.org>
3833         cnd: New module.
3834         * lib/cnd.c: New file.
3835         * modules/cnd: New file.
3836         * doc/posix-functions/cnd_init.texi: Mention the new module.
3837         * doc/posix-functions/cnd_wait.texi: Likewise.
3838         * doc/posix-functions/cnd_timedwait.texi: Likewise.
3839         * doc/posix-functions/cnd_signal.texi: Likewise.
3840         * doc/posix-functions/cnd_broadcast.texi: Likewise.
3841         * doc/posix-functions/cnd_destroy.texi: Likewise.
3843 2019-06-20  Bruno Haible  <bruno@clisp.org>
3845         mtx: New module.
3846         * lib/mtx.c: New file.
3847         * modules/mtx: New file.
3848         * doc/posix-functions/call_once.texi: Mention the new module.
3849         * doc/posix-functions/mtx_init.texi: Likewise.
3850         * doc/posix-functions/mtx_lock.texi: Likewise.
3851         * doc/posix-functions/mtx_trylock.texi: Likewise.
3852         * doc/posix-functions/mtx_timedlock.texi: Likewise.
3853         * doc/posix-functions/mtx_unlock.texi: Likewise.
3854         * doc/posix-functions/mtx_destroy.texi: Likewise.
3856 2019-06-20  Bruno Haible  <bruno@clisp.org>
3858         thrd: New module.
3859         * lib/thrd.c: New file.
3860         * m4/thrd.m4: New file.
3861         * modules/thrd: New file.
3862         * doc/posix-functions/thrd_current.texi: Mention the new module.
3863         * doc/posix-functions/thrd_detach.texi: Likewise.
3864         * doc/posix-functions/thrd_equal.texi: Likewise.
3865         * doc/posix-functions/thrd_exit.texi: Likewise.
3866         * doc/posix-functions/thrd_sleep.texi: Likewise.
3867         * doc/posix-functions/thrd_yield.texi: Likewise.
3868         * doc/posix-functions/thrd_create.texi: Mention the new module and the
3869         AIX bug.
3870         * doc/posix-functions/thrd_join.texi: Mention the new module and the
3871         AIX and Solaris bugs.
3873 2019-06-20  Bruno Haible  <bruno@clisp.org>
3875         threads-h: Add tests.
3876         * tests/test-threads.c: New file.
3877         * modules/threads-h-tests: New file.
3878         * tests/test-threads-c++.cc: New file.
3879         * modules/threads-h-c++-tests: New file.
3881 2019-06-20  Bruno Haible  <bruno@clisp.org>
3883         threads-h: New module.
3884         * lib/threads.in.h: New file.
3885         * m4/threads.m4: New file.
3886         * m4/yield.m4 (gl_YIELD): Update comment.
3887         * modules/threads-h: New file.
3888         * modules/yields (configure.ac): Use AC_REQUIRE.
3889         * doc/posix-headers/threads.texi: Mention the new module and the AIX
3890         bugs.
3892 2019-06-20  Bruno Haible  <bruno@clisp.org>
3894         windows-thread: New module.
3895         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
3896         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
3897         * lib/glthread/thread.h: Include windows-thread.h.
3898         (gl_thread_t): Define using glwthread_thread_t.
3899         (glthread_create): Define using glwthread_thread_create.
3900         (glthread_join): Define using glwthread_thread_join.
3901         (gl_thread_self): Define using glwthread_thread_self.
3902         (gl_thread_exit): Define using glwthread_thread_exit.
3903         (glthread_create_func, glthread_join_func, gl_thread_self_func,
3904         gl_thread_exit_func): Remove declarations.
3905         * lib/glthread/thread.c (self_key): Remove variable.
3906         (do_init_self_key, init_self_key): Remove functions.
3907         (struct gl_thread_struct): Remove type.
3908         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
3909         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
3910         functions.
3911         * modules/windows-thread: New file.
3912         * modules/thread (Depends-on): Add windows-thread.
3914 2019-06-20  Bruno Haible  <bruno@clisp.org>
3916         windows-tls: New module.
3917         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
3918         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
3919         * lib/glthread/tls.h: Include windows-tls.h.
3920         (gl_tls_key_t): Define using glwthread_tls_key_t.
3921         * modules/windows-tls: New file.
3922         * modules/tls (Depends-on): Add windows-tls.
3924 2019-06-20  Bruno Haible  <bruno@clisp.org>
3926         windows-cond: New module.
3927         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
3928         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
3929         * lib/glthread/cond.h: Include windows-cond.h.
3930         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
3931         (gl_cond_t): Define using glwthread_cond_t.
3932         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
3933         (glthread_cond_init): Define using glwthread_cond_init.
3934         (glthread_cond_wait): Define using glwthread_cond_wait.
3935         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
3936         (glthread_cond_signal): Define using glwthread_cond_signal.
3937         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
3938         (glthread_cond_destroy): Define using glwthread_cond_destroy.
3939         (glthread_cond_init_func, glthread_cond_wait_func,
3940         glthread_cond_timedwait_func, glthread_cond_signal_func,
3941         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
3942         declarations.
3943         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
3944         types.
3945         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
3946         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
3947         glthread_cond_init_func, glthread_cond_wait_func,
3948         glthread_cond_timedwait_func, glthread_cond_signal_func,
3949         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
3950         functions.
3951         * modules/windows-cond: New file.
3952         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
3954 2019-06-20  Bruno Haible  <bruno@clisp.org>
3956         windows-timedrecmutex: New module.
3957         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
3958         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
3959         * modules/windows-timedrecmutex: New file.
3961 2019-06-20  Bruno Haible  <bruno@clisp.org>
3963         windows-timedmutex: New module.
3964         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
3965         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
3966         * modules/windows-timedmutex: New file.
3968 2019-06-20  Bruno Haible  <bruno@clisp.org>
3970         windows-recmutex: New module.
3971         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
3972         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
3973         * lib/glthread/lock.h: Include windows-recmutex.h.
3974         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
3975         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
3976         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
3977         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
3978         (glthread_recursive_lock_unlock): Define using
3979         glwthread_recmutex_unlock.
3980         (glthread_recursive_lock_destroy): Define using
3981         glwthread_recmutex_destroy.
3982         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
3983         glthread_recursive_lock_unlock_func,
3984         glthread_recursive_lock_destroy_func): Remove declarations.
3985         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
3986         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
3987         glthread_recursive_lock_destroy_func): Remove functions.
3988         * modules/windows-recmutex: New file.
3989         * modules/lock (Depends-on): Add windows-recmutex.
3991 2019-06-20  Bruno Haible  <bruno@clisp.org>
3993         windows-mutex: New module.
3994         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
3995         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
3996         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
3997         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
3998         (gl_spinlock_t): Remove type.
3999         (gl_lock_t): Define using glwthread_mutex_t.
4000         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
4001         (glthread_lock_init): Define using glwthread_mutex_init.
4002         (glthread_lock_lock): Define using glwthread_mutex_lock.
4003         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
4004         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
4005         (glthread_lock_init_func, glthread_lock_lock_func,
4006         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
4007         declarations.
4008         Use glwthread_spinlock_t instead of gl_spinlock_t.
4009         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
4010         GLWTHREAD_SPINLOCK_INIT.
4011         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
4012         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
4013         functions.
4014         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
4015         gl_spinlock_t.
4016         * modules/windows-mutex: New file.
4017         * modules/lock (Depends-on): Add windows-mutex.
4019 2019-06-20  Bruno Haible  <bruno@clisp.org>
4021         windows-once: New module.
4022         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
4023         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
4024         * lib/glthread/lock.h: Include windows-once.h.
4025         (gl_once_t): Define using glwthread_once_t.
4026         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
4027         (glthread_once): Define using glwthread_once.
4028         (glthread_once_func): Remove declaration.
4029         * lib/glthread/lock.c (glthread_once_func): Remove function.
4030         * modules/windows-once: New file.
4031         * modules/lock (Depends-on): Add windows-once.
4033 2019-06-20  Bruno Haible  <bruno@clisp.org>
4035         lock, cond: Avoid possible counter wraparound on Windows.
4036         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
4037         field of the guard unchanged if it was already positive.
4038         (glthread_rwlock_rdlock_func): Likewise.
4039         (glthread_rwlock_wrlock_func): Likewise.
4040         (glthread_recursive_lock_lock_func): Likewise.
4041         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
4042         (glthread_cond_timedwait_func): Likewise.
4044 2019-06-20  Bruno Haible  <bruno@clisp.org>
4046         cond: Make glthread_cond_timedwait more reliable on Windows.
4047         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
4048         condition variable before looking at the current time.
4050 2019-06-20  Bruno Haible  <bruno@clisp.org>
4052         pthread_mutex_timedlock: New module.
4053         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
4054         new declaration.
4055         * lib/pthread_mutex_timedlock.c: New file.
4056         * m4/pthread_mutex_timedlock.m4: New file.
4057         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
4058         whether pthread_mutex_timedlock is declared.
4059         (gl_PTHREAD_MODULE_INDICATOR): New macro.
4060         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
4061         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
4062         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
4063         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
4064         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
4065         * modules/pthread_mutex_timedlock: New file.
4066         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
4067         module.
4069 2019-06-20  Bruno Haible  <bruno@clisp.org>
4071         thread, lock, cond, tls: Recognize C11 multithreaded applications.
4072         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
4073         * lib/glthread/thread.h (c11_threads_in_use): New macro.
4074         (pthread_in_use, pth_in_use, thread_in_use): Use it.
4075         * lib/glthread/lock.h (c11_threads_in_use): New macro.
4076         (pthread_in_use, pth_in_use, thread_in_use): Use it.
4077         * lib/glthread/cond.h (c11_threads_in_use): New macro.
4078         (pthread_in_use, pth_in_use, thread_in_use): Use it.
4079         * lib/glthread/tls.h (c11_threads_in_use): New macro.
4080         (pthread_in_use, pth_in_use, thread_in_use): Use it.
4082 2019-06-20  Bruno Haible  <bruno@clisp.org>
4084         tls tests: Small improvements.
4085         * tests/test-tls.c: Include <stdint.h>.
4086         (worker_thread): Avoid gcc warning on 64-bit mingw.
4087         (test_tls): Pass a different id to each thread.
4088         * modules/tls-tests (Depends-on): Add stdint.
4090 2019-06-20  Bruno Haible  <bruno@clisp.org>
4092         cond tests: Simplify.
4093         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
4095 2019-06-20  Bruno Haible  <bruno@clisp.org>
4097         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
4098         * tests/test-lock.c (test_once): Don't reference fire_signal if
4099         !ENABLE_LOCKING.
4101 2019-06-19  Bruno Haible  <bruno@clisp.org>
4103         nanosleep: Relicense under LGPLv2+.
4104         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
4105         * modules/nanosleep (License): Change to LGPLv2+.
4107 2019-06-19  Bruno Haible  <bruno@clisp.org>
4109         Reorder pieces of header in perl scripts.
4110         The desired order is
4111         - Prologue part 1 (2 lines with #!)
4112         - Program short description
4113         - Copyright and license notice
4114         - Written-by notice
4115         - Program short description (optional)
4116         - Program long description (optional)
4117         - Prologue part 2
4118         - Time stamp
4119         - Code
4120         Reported by Paul Eggert.
4121         * build-aux/announce-gen: Reorder header.
4122         * build-aux/gitlog-to-changelog: Likewise.
4123         * build-aux/useless-if-before-free: Likewise.
4124         * build-aux/prefix-gnulib-mk: Add copyright notice and short
4125         description.
4126         * build-aux/update-copyright: Likewise. Add short description. Bump
4127         time-stamp-line-limit to 200.
4129 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
4131         verify-tests: work around xlc bug
4132         Problem reported by Bruno Haible in:
4133         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
4134         * tests/test-verify.c (item): Move the arithmetic inside the
4135         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
4137 2019-06-16  Bruno Haible  <bruno@clisp.org>
4139         Restore Emacs time-stamp hook applicability.
4140         Reported by Darshit Shah <darnir@gnu.org>.
4141         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
4142         * build-aux/announce-gen: Likewise.
4143         * build-aux/gitlog-to-changelog: Likewise.
4144         * build-aux/prefix-gnulib-mk: Likewise.
4145         * build-aux/update-copyright: Likewise.
4147 2019-06-15  Bruno Haible  <bruno@clisp.org>
4149         Fix scripts to have valid executable format on Alpine Linux.
4150         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4151         Idea by Paul Eggert.
4152         * build-aux/useless-if-before-free: Use a prologue that starts with
4153         '#!/bin/sh'.
4154         * build-aux/announce-gen: Likewise.
4155         * build-aux/gitlog-to-changelog: Likewise.
4156         * build-aux/prefix-gnulib-mk: Likewise.
4157         * build-aux/update-copyright: Likewise.
4158         * tests/test-update-copyright.sh: Update test program accordingly.
4160 2019-06-10  Bruno Haible  <bruno@clisp.org>
4162         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
4163         Reported by Nikita Ermakov <arei@altlinux.org> in
4164         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
4165         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
4166         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
4168 2019-06-10  Bruno Haible  <bruno@clisp.org>
4170         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
4171         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
4172         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
4173         a copy of the path argument.
4174         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
4175         it.
4177 2019-06-10  Bruno Haible  <bruno@clisp.org>
4179         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
4180         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
4181         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
4182         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
4183         a copy of the path argument.
4184         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
4185         it.
4187 2019-06-10  Bruno Haible  <bruno@clisp.org>
4189         posix_spawn_file_actions_addfchdir: Add tests.
4190         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
4191         * tests/test-posix_spawn5.c: New file.
4192         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
4194 2019-06-10  Bruno Haible  <bruno@clisp.org>
4196         posix_spawn_file_actions_addfchdir: New module.
4197         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
4198         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
4199         union member 'fchdir_action'.
4200         * lib/spawn_faction_addfchdir.c: New file.
4201         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
4202         * m4/posix_spawn_faction_addfchdir.m4: New file.
4203         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
4204         'posix_spawn_file_actions_addfchdir' is present and whether
4205         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
4206         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
4207         posix_spawn_file_actions_addfchdir is declared.
4208         (gl_SPAWN_H_DEFAULTS): Initialize
4209         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
4210         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
4211         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
4212         * modules/spawn (Makefile.am): Substitute
4213         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
4214         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
4215         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
4216         * modules/posix_spawn_file_actions_addfchdir: New file.
4217         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
4218         signature.
4219         * doc/posix-functions/posix_spawn.texi: Mention the new module.
4220         * doc/posix-functions/posix_spawnp.texi: Likewise.
4221         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
4222         Likewise.
4224 2019-06-10  Bruno Haible  <bruno@clisp.org>
4226         doc: Document existence of posix_spawn_file_actions_addchdir module.
4227         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
4228         the posix_spawn_file_actions_addchdir module.
4230 2019-06-10  Bruno Haible  <bruno@clisp.org>
4232         posix_spawn-internal: Fix module description.
4233         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
4234         from here...
4235         * modules/posix_spawnp (configure.ac): ... and here...
4236         * modules/posix_spawn-internal (configure.ac): ... to here.
4238 2019-06-10  Bruno Haible  <bruno@clisp.org>
4240         doc: Update and improve documentation of glibc functions.
4241         This is a series of commits that
4242         - updates the documentation to the state of glibc 2.29,
4243         - adds references to Linux man pages and glibc documentation,
4244         - marks Linux specific functions as such.
4245         These are the commits:
4246         doc: Update after removal of crypt functions from glibc 2.28.
4247         doc: Remove mention of function vm86 (does not exist on x86_64).
4248         doc: Remove mention of functions that are gone from glibc.
4249         doc: Mention that glibc no longer provides h_errno.
4250         doc: Mention the availability of specific functions in glibc versions.
4251         doc: Mention eaccess.
4252         doc: Add references to Linux man pages.
4253         doc: Add references to glibc documentation.
4254         doc: Mention inotify_* functions.
4255         doc: Mention ppoll.
4256         doc: Mention sched_getcpu.
4257         doc: Mention sync_file_range.
4258         doc: Mention epoll_pwait.
4259         doc: Mention eventfd, eventfd_read, eventfd_write.
4260         doc: Mention signalfd.
4261         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
4262         doc: Mention epoll_create1.
4263         doc: Mention getauxval.
4264         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
4265         doc: Mention nextdown, nextup.
4266         doc: Mention more ISO TS 18661-1 <math.h> functions.
4267         doc: Mention ISO TS 18661-1 <fenv.h> functions.
4268         doc: Mention getrandom, getentropy.
4269         doc: Mention strfromf, strfromd, strfroml.
4270         doc: Mention preadv2, pwritev2.
4271         doc: Mention copy_file_range.
4272         doc: Mention memfd_create.
4273         doc: Mention mlock2.
4274         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
4275         doc: Mention more ISO TS 18661-1 <math.h> functions.
4276         doc: Mention renameat2.
4277         doc: Mention statx.
4278         doc: Mention the ISO C11 multithreading header and functions.
4279         doc: Mention getcpu.
4280         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
4281         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
4282         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
4283         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
4284         doc: Some glibc functions also exist on Solaris 11.
4285         doc: Some glibc functions also exist on Solaris 11.4.
4286         doc: Some glibc functions also exist on FreeBSD.
4287         doc: Some glibc functions also exist on BeOS.
4288         doc: Some glibc functions also exist on Haiku.
4289         doc: Mark functions which exist only on Linux.
4290         doc: Mark functions which exist only on Linux and illumos.
4292 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
4294         copy-file: fix typo
4295         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
4297         copy-file-range: simplify into a stub
4298         Based on a comment by Florian Weimer in:
4299         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
4300         It turns out that Emacs (which will use this module) won’t need an
4301         emulation and I suspect other programs won’t either, because these
4302         programs will need to fall back on read+write anyway.  Perhaps I
4303         am wrong and other programs will be able to use an emulation; if
4304         so, this patch can be reverted.
4305         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
4306         Just call it copy_file_range.
4307         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
4308         Check via AC_LINK_IFELSE.
4309         * modules/copy-file-range (Depends-on): Remove modules no longer used.
4311 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
4313         copy-file: prefer copy_file_range
4314         * lib/copy-file.c: Do not include xalloc.h.
4315         (qcopy_file_preserving): Allocate a buffer only if
4316         copy_file_range does not suffice.  If the allocation fails
4317         don't give up; just use a small stack-based buffer.
4318         Prefer copy_file_range if it works.
4319         * modules/copy-file (Depends-on): Add copy-file-range.
4320         Remove xalloc.
4322         copy-file-range: new module
4323         * MODULES.html.sh: Add copy-file-range.
4324         * lib/copy-file-range.c, m4/copy-file-range.m4:
4325         * modules/copy-file-range: New files.
4326         * lib/unistd.in.h (copy_file_range): Declare.
4327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
4328         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
4329         * modules/unistd (unistd.h): Substitute them.
4331 2019-05-28  Bruno Haible  <bruno@clisp.org>
4333         binary-io: Attempted use of O_BINARY on consoles no longer fails.
4334         Reported by KO Myung-Hun <komh78@gmail.com> in
4335         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
4336         * lib/binary-io.h (__gl_setmode_check): Remove function.
4337         (set_binary_mode): Declare as notinline on DJGPP and EMX.
4338         * lib/binary-io.c (__gl_setmode_check): Remove function.
4339         (set_binary_mode): Define here on DJGPP and EMX. Inline
4340         __gl_setmode_check. In case of a tty, don't return an error code.
4342 2019-05-28  James Youngman  <jay@gnu.org>
4344         dirent-safer: Make opendir_safer usable from C++.
4345         * lib/dirent-safer.h: use extern "C".
4347 2019-05-28  James Youngman  <jay@gnu.org>
4349         canonicalize: Make canonicalize_filename_mode usable from C++.
4350         * lib/canonicalize.h: use extern "C".
4352 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
4354         prefix-gnulib-mk: Fix CPPFLAGS migration.
4355         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
4356         _a part of the library name.
4358 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
4360         flexmember: update comments again
4361         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
4363         flexmember: update comment
4364         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
4366 2019-05-20  Bruno Haible  <bruno@clisp.org>
4368         setlocale: Improve fallback on macOS.
4369         * lib/setlocale.c (search): Optimize away a redundant strcmp()
4370         invocation.
4371         (locales_with_principal_territory): New array.
4372         (langcmp, get_main_locale_with_same_language): New functions.
4373         (locales_with_principal_language): New array.
4374         (terrcmp, get_main_locale_with_same_territory): New functions.
4375         (rpl_setlocale): When setlocale_single failed, try again with a locale
4376         that is more likely to exist. Don't warn if the environment variable
4377         SETLOCALE_VERBOSE is not set.
4379 2019-05-19  Bruno Haible  <bruno@clisp.org>
4381         localename: Fix default on macOS.
4382         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
4383         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
4384         (gl_locale_name_environ, gl_locale_name_default): Remove code for
4385         HAVE_CFLOCALECOPYCURRENT.
4386         * lib/localename.h (gl_locale_name_default): Update.
4388 2019-05-19  Karl Berry  <karl@freefriends.org>
4390         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
4391         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
4392         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
4394 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
4396         maintainer-makefile: catch uses of $< in non-implicit rules
4397         * top/maint.mk (sc_prohibit_magic_number_exit): New.
4399 2019-05-18  Bruno Haible  <bruno@clisp.org>
4401         threadlib: Provide an easy way to avoid mingw's winpthreads library.
4402         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
4403         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
4404         gl_use_threads accordingly.
4406 2019-05-18  Bruno Haible  <bruno@clisp.org>
4408         pthread_sigmask: Fix compilation error with --enable-threads=windows.
4409         Reported by Tim Rühsen in
4410         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
4411         and Michele Locati in
4412         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
4413         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
4414         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
4415         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
4416         in use and regardless which threads API is chosen.
4418 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
4420         close-stream, closein, closeout: simplify
4421         I noticed this opportunity for simplification while drafting a
4422         new, related module that I haven’t had time to finish yet.
4423         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
4424         * modules/close-stream (Files): Remove m4/close-stream.m4.
4425         (configure.ac): Omit gl_CLOSE_STREAM.
4426         * modules/closein (Files): Remove m4/closein.m4
4427         (configure.ac): Omit gl_CLOSEIN.
4428         * modules/closeout (Files): Remove m4/closeout.m4.
4429         (configure.ac): Omit gl_CLOSEOUT.
4431 2019-05-12  Bruno Haible  <bruno@clisp.org>
4433         libtool-next-version: New program.
4434         * build-aux/libtool-next-version: New file.
4436 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
4437             Bruno Haible  <bruno@clisp.org>
4439         version-etc: Ease translation.
4440         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
4441         URLs and formatting newlines out of translatable string.
4443 2019-05-11  Bruno Haible  <bruno@clisp.org>
4445         gnupload: Explain how to create symlinks.
4446         * build-aux/gnupload (usage): Add an example that creates symlinks.
4448 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
4450         fpucw: port to gcc -pedantic
4451         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
4452         Use __extension__ if using ({ ... }).
4454         crypto/af_alg: port to strict C compilers
4455         * lib/af_alg.c: Include af_alg.h regardless, so that the
4456         compilation unit is nonempty.
4458 2019-05-10  Bruno Haible  <bruno@clisp.org>
4460         base64: Avoid false positive warning from Coverity.
4461         Reported by Kamil Dudka <kdudka@redhat.com>.
4462         Idea by Paul Eggert.
4463         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
4464         '& 0x3f' to the array index expressions. This convinces Coverity that
4465         there is no out-of-bounds array reference, regardless of the input.
4467 2019-05-09  Bruno Haible  <bruno@clisp.org>
4469         gettext: Update to gettext 0.20.
4470         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
4471         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
4472         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
4473         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
4474         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
4475         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
4476         (configure.ac): Request infrastructure compatible with gettext 0.20.
4477         * m4/glibc2.m4: Remove file.
4478         * m4/intdiv0.m4: Remove file.
4479         * m4/intl.m4: Remove file.
4480         * m4/intldir.m4: Remove file.
4481         * m4/intmax.m4: Remove file.
4482         * m4/printf-posix.m4: Remove file.
4483         * m4/uintmax_t.m4: Remove file.
4484         * m4/gettext.m4: Update from gettext 0.20.
4485         * m4/po.m4: Likewise.
4487 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
4489         verify: remove verify_true
4490         * NEWS: Mention this.
4491         * lib/verify.h (verify_true): Remove.
4492         * tests/test-verify.c (item): Test verify_expr, not verify_true.
4494         Support C2X and C++17 static_assert
4495         C2X and C++17 finally added support for a simple, single-argument
4496         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
4497         doing back in 2005.  Implement static_assert on older platforms.
4498         The only remaining advantage of ‘verify’ is a shorter name.
4499         * doc/posix-headers/assert.texi (assert.h):
4500         * doc/verify.texi (Compile-time Assertions):
4501         Modernize for C2X and C++17.
4502         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
4503         New macros.
4504         (_GL_HAVE__STATIC_ASSERT): Remove.
4505         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
4506         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
4507         string.  All callers changed.
4508         (_GL_VERIFY): Require 3 or more args, of which only the first 2
4509         are used.  All callers changed.
4510         (_Static_assert): Allow either 1 or 2 args, and define if
4511         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
4512         !_GL_HAVE__STATIC_ASSERT.
4513         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
4514         of defining if !_GL_HAVE_STATIC_ASSERT.
4515         (verify_expr, verify): Don’t bother trying to copy the expression
4516         into the diagnostic, since 1-argument static_assert doesn’t.
4517         (verify): Prefer 1-argument _Static_assert if it works.
4518         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
4520 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
4522         Fix _GL_HAVE__STATIC_ASSERT typo
4523         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
4524         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
4526 2019-05-05  Bruno Haible  <bruno@clisp.org>
4528         wcwidth: Ensure width 1, not 2, for ambiguous characters.
4529         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
4530         via Akim Demaille <akim.demaille@gmail.com>.
4531         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
4532         en_US.UTF-8 locale, since that is more likely to be present than an
4533         fr_FR.UTF-8 locale.
4534         * tests/test-wcwidth.c (main): Check the width of U+2202.
4535         * doc/posix-functions/wcwidth.texi: Mention the issue.
4537 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4539         Port manywarnings to GCC 9
4540         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
4541         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
4542         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
4543         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
4544         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
4545         --help=warnings output.
4546         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
4547         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
4548         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
4550 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
4552         Sync lib/mktime-internal.h from glibc
4553         * config/srclist.txt: Add entry for lib/mktime-internal.h.
4554         * lib/mktime-internal.h: Autoupdate.
4556 2019-04-28  Bruno Haible  <bruno@clisp.org>
4558         tls tests: Prevent that the test takes too long.
4559         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
4560         (main): Let the test fail if it takes more than 10 minutes.
4561         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
4563 2019-04-27  Bruno Haible  <bruno@clisp.org>
4565         lock tests: Prevent that the test takes too long.
4566         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
4567         (main): Let the test fail if it takes more than 10 minutes.
4568         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
4570 2019-04-27  Bruno Haible  <bruno@clisp.org>
4572         localename: Fix crash on mingw (regression from 2018-11-23).
4573         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
4574         locale name that is null.
4576 2019-04-27  Bruno Haible  <bruno@clisp.org>
4578         Fix gcc warnings on 64-bit mode mingw.
4579         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
4580         * lib/gl_array_list.c: Likewise.
4581         * lib/gl_array_map.c: Likewise.
4582         * lib/gl_array_set.c: Likewise.
4583         * lib/gl_carray_list.c: Likewise.
4584         * lib/gl_sublist.c: Likewise.
4585         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
4586         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
4587         * lib/gl_hash_map.c (uintptr_t): Likewise.
4588         * lib/gl_hash_set.c (uintptr_t): Likewise.
4589         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
4590         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
4591         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
4592         * lib/iconv.c (uintptr_t): Likewise.
4593         * lib/iconv_close.c (uintptr_t): Likewise.
4594         * tests/test-lock.c: Include <stdint.h>.
4595         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
4596         'long'.
4597         * modules/clean-temp (Depends-on): Add stdint.
4598         * modules/array-list (Depends-on): Likewise.
4599         * modules/array-map (Depends-on): Likewise.
4600         * modules/array-set (Depends-on): Likewise.
4601         * modules/carray-list (Depends-on): Likewise.
4602         * modules/sublist (Depends-on): Likewise.
4603         * modules/lock-tests (Depends-on): Likewise.
4605 2019-04-27  Bruno Haible  <bruno@clisp.org>
4607         error: Tweak indentation.
4608         * lib/error.c: Correct indentation.
4610 2019-04-27  Bruno Haible  <bruno@clisp.org>
4612         term-style-control: Fix gcc warning on mingw.
4613         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
4614         of i.
4616 2019-04-26  Bruno Haible  <bruno@clisp.org>
4618         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
4619         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
4621 2019-04-26  Bruno Haible  <bruno@clisp.org>
4623         relocatable-prog: Fix gcc warning on mingw.
4624         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
4625         on EMX.
4627 2019-04-02  Bruno Haible  <bruno@clisp.org>
4629         gitsub.sh: New file.
4630         * top/gitsub.sh: New file.
4632 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
4634         argmatch: use void* for raw memory pointers
4635         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
4636         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
4637         to "values", keep char* for strings.
4639 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
4641         prefix-gnulib-mk: fix the support for gnulib-po
4642         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
4643         Don't touch HAVE_* variables.
4644         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
4646 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
4648         di-set: allow free with 'ino_map' being NULL.
4649         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
4650         is NULL.  Bug introduced in commit 3703dbbe88dd.
4651         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
4652         as a test.
4654 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
4656         * lib/str-two-way.h: Fix comment typo.
4658 2019-04-13  Bruno Haible  <bruno@clisp.org>
4660         x-to-1: Restore ability to use original calling convention.
4661         * build-aux/x-to-1.in: Add comments. Accept the original form of
4662         HELP2MAN argument as well as the form expected since 2012-12-12.
4664 2019-04-13  Bruno Haible  <bruno@clisp.org>
4666         x-to-1: Avoid failure due to missing perl modules.
4667         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
4668         needs are installed.
4670 2019-04-13  Bruno Haible  <bruno@clisp.org>
4672         openmp-init: New module.
4673         * modules/openmp-init: New file.
4674         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
4675         the changes from 2019-04-09.
4677 2019-04-12  Bruno Haible  <bruno@clisp.org>
4679         signbit: Fix compilation error when gnulib's math.h exists twice.
4680         * lib/math.in.h (GNULIB_defined_signbit): New macro.
4682 2019-04-12  Bruno Haible  <bruno@clisp.org>
4684         openmp: Fix compilation error on platforms without OpenMP.
4685         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
4687 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
4689         mountlist: make parsing /proc/self/mountinfo more robust
4690         Cater for the following issues with mountinfo parsing (the first
4691         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
4692         in <https://bugs.gnu.org/35137>).
4693         1. The fields source, target, mntroot and fstype may contain characters
4694         like '\r'; sscanf(3) fails to read such values with the %s format
4695         specifier because it would stop at such characters.
4696         Example: "mount -t tmpfs tmpfs /foo^Mbar".
4697         The only true separator in that file is the ' ' character.
4698         2. The source field may be an empty string, which happens e.g. with
4699         "mount -t tmpfs '' /target".
4700         3. The fstype field may contain mangled characters as well which need
4701         unescaping.
4702         * lib/mountlist.c (terminate_at_blank): Add utility function.
4703         (read_file_system_list): In the block trying to read the mountinfo file,
4704         avoid using sscanf(3) with %s format; instead, parse the above fields
4705         separated by spaces one by one.
4706         This also handles the case when the source field is an empty string.
4707         Unescape the fstype field.
4709 2019-04-09  Bruno Haible  <bruno@clisp.org>
4711         openmp: Add workaround for 32-bit programs on AIX.
4712         * lib/omp.in.h: New file.
4713         * lib/omp-init.c: New file, based on lib/nproc.c.
4714         * m4/omp_h.m4: New file.
4715         * modules/openmp (Files): Add them.
4716         (Depends-on): Add include_next, c-ctype, setenv.
4717         (configure.ac): Invoke gl_OMP_H.
4718         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
4719         (Include): Mention <omp.h>.
4721 2019-04-09  Bruno Haible  <bruno@clisp.org>
4723         nproc: Fix return value for privileged processes.
4724         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
4725         getpid().
4727 2019-04-07  Bruno Haible  <bruno@clisp.org>
4729         Add copyright notices in several files.
4730         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
4731         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
4732         * lib/libunistring.valgrind: Likewise.
4733         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
4734         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
4735         * lib/memchr.valgrind: Likewise.
4736         * lib/memchr2.valgrind: Likewise.
4737         * lib/rawmemchr.valgrind: Likewise.
4738         * lib/relocatable.valgrind: Likewise.
4739         * lib/strchrnul.valgrind: Likewise.
4741 2019-03-25  Bruno Haible  <bruno@clisp.org>
4743         term-style-control tests: Fix link error.
4744         Reported by Tom G. Christensen in
4745         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
4746         * modules/term-style-control-tests (Makefile.am): Link
4747         test-term-style-control-hello and test-term-style-control-yes against
4748         LIBINTL.
4750 2019-03-24  Bruno Haible  <bruno@clisp.org>
4752         term-style-control: Add tests.
4753         * tests/test-term-style-control-hello.c: New file.
4754         * tests/test-term-style-control-yes.c: New file.
4755         * modules/term-style-control-tests: New file.
4757         term-style-control: New module.
4758         * lib/term-style-control.h: New file, based on libtextstyle's
4759         term-ostream.oo.h and term-ostream.oo.c.
4760         * lib/term-style-control.c: New file, based on libtextstyle's
4761         term-ostream.oo.c.
4762         * modules/term-style-control: New file.
4764 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
4766         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
4767         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
4768         C++98 appears to be supported by Clang, but not by GCC nor ICC.
4770 2019-03-23  Bruno Haible  <bruno@clisp.org>
4772         Support cross-compilation to musl libc.
4773         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
4774         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
4775         musl libc.
4776         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
4777         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4778         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
4779         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
4780         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
4781         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
4782         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
4783         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
4784         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
4785         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
4786         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
4787         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4788         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
4789         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
4790         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
4791         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4792         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4793         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
4794         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4795         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4796         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4797         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
4798         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
4799         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4800         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
4801         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4802         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4803         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4804         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
4805         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
4806         * m4/log.m4 (gl_FUNC_LOG): Likewise.
4807         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4808         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
4809         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
4810         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4811         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
4812         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
4813         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
4814         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
4815         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
4816         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
4817         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
4818         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4819         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4820         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
4821         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4822         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4823         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
4824         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
4825         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
4826         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
4827         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
4828         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
4829         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
4830         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4831         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
4832         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4833         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4834         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4835         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4836         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4837         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4838         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
4839         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
4840         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
4841         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
4842         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4843         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
4844         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
4845         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
4846         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
4847         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
4848         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
4849         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
4850         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4851         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
4852         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4853         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
4855 2019-03-23  Bruno Haible  <bruno@clisp.org>
4857         posix_spawn_file_actions_*: Document musl libc bugs.
4858         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4859         the bug.
4860         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
4861         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
4862         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
4863         cross-compiling to a musl system, guess no.
4864         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
4865         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
4867 2019-03-23  Bruno Haible  <bruno@clisp.org>
4869         futimens: Document musl libc bug.
4870         * doc/posix-functions/futimens.texi: Mention the bug.
4871         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
4872         cross-compiling, guess no on glibc and musl systems.
4874 2019-03-23  Bruno Haible  <bruno@clisp.org>
4876         Clarify that cross-compilation guesses are guesses.
4877         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
4878         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
4879         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
4880         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
4881         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
4882         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
4883         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
4884         gl_cv_glob_lists_symlinks.
4885         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
4886         'guessing ' to ac_cv_func_malloc_0_nonnull.
4887         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
4888         'guessing ' to ac_cv_func_realloc_0_nonnull.
4889         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
4890         'guessing ' to gl_cv_func_poll.
4891         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
4892         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
4893         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
4895 2019-03-23  Bruno Haible  <bruno@clisp.org>
4897         strtold: Fix typo.
4898         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
4900 2019-03-23  Bruno Haible  <bruno@clisp.org>
4902         noreturn: In C++ mode with clang, use _Noreturn as fallback.
4903         Reported by Akim Demaille.
4904         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
4905         [[noreturn]] would not work, use _Noreturn instead.
4907 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
4909         libtextstyle-optional: Fix compiler warnings.
4910         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
4911         as unused.
4913 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4915         bitset: fix memory leaks
4916         Reported by Bruno Haible.
4917         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
4918         * lib/bitset/vector.c (vbitset_free): New.
4919         (vbitset_vtable): Use it.
4921 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4923         bitset: minor changes
4924         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
4925         * lib/bitset/table.c: Formatting changes.
4926         Remove useless braces.
4927         Prefer using else in cascades of if/else-if with returns.
4928         * lib/bitset/vector.c: Reduce scopes.
4930 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
4932         bitset: expose bitset_resize
4933         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
4934         * tests/test-bitset.c (check_attributes): Check bitset_resize.
4935         (main): Use a variable bitset as reference, since fixed does not support resize.
4937 2019-03-19  Bruno Haible  <bruno@clisp.org>
4939         doc: Document the 'stdnoreturn' and 'noreturn' modules.
4940         Reported by Akim Demaille.
4941         * doc/noreturn.texi: New file.
4942         * doc/gnulib.texi: Include it.
4944 2019-03-19  Bruno Haible  <bruno@clisp.org>
4946         doc: Document how to use 'static inline'.
4947         * doc/static-inline.texi: New file.
4948         * doc/gnulib.texi: Include it.
4950 2019-03-19  Bruno Haible  <bruno@clisp.org>
4952         libtextstyle-optional: Add tests.
4953         * tests/test-libtextstyle.c: New file, based on libtextstyle's
4954         adhoc-tests/hello.c.
4955         * tests/test-libtextstyle-default.css: New file, copied from
4956         libtextstyle's adhoc-tests/hello-default.css.
4957         * modules/libtextstyle-optional-tests: New file.
4959         libtextstyle-optional: New module.
4960         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
4961         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
4962         * modules/libtextstyle-optional: New file.
4964 2019-03-19  Bruno Haible  <bruno@clisp.org>
4966         c-stack: Make signal handlers more reliable.
4967         * lib/c-stack.c (progname): New variable.
4968         (die): Use it.
4969         (c_stack_action): Initialize it.
4970         (segv_handler): Save and restore errno.
4972 2019-03-19  Bruno Haible  <bruno@clisp.org>
4974         Help making signal handlers more reliable.
4975         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
4976         _GL_ASYNC_SAFE into config.h.
4977         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
4978         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
4979         argument.
4980         * lib/fatal-signal.c (action_t, uninstall_handlers,
4981         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
4982         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
4983         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
4984         _GL_ASYNC_SAFE.
4985         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
4986         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
4988 2019-03-18  Bruno Haible  <bruno@clisp.org>
4990         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
4991         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
4992         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
4994 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
4996         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
4997         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
4998         GCC 4.8.
5000 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
5002         fts: minor simplification
5003         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
5005 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
5007         bitset, timevar: Depend on c99.
5008         Reported by Bruno Haible.
5009         * modules/bitset, modules/timevar (Depends-on): Add c99.
5011 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
5013         bitset: a bit (...) more tests
5014         * tests/test-bitset.c (check_attributes): Check zero and ones.
5016 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
5018         bitset: fix overflows.
5019         Reported by Bruno Haible.
5020         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
5021         * lib/bitset/table.c (tbitset_test): last_bit is the position of
5022         the bit in the array of bitset_word, so be sure to take its modulo
5023         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
5024         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
5026 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
5028         bitset: style changes.
5029         * lib/bitset/table.c: Use NULL, not 0, for pointers.
5030         Formatting changes.
5031         (tbitset_list): Reduce scopes.
5033 2019-03-16  Bruno Haible  <bruno@clisp.org>
5035         fatal-signal: Pass the signal number to the action.
5036         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
5037         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
5038         (fatal_signal_handler): Pass the signal number to the action.
5039         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
5040         signal number as parameter.
5041         (create_temp_dir): Update.
5042         * lib/wait-process.c (cleanup_slaves_action): New function.
5043         (register_slave_subprocess): Update at_fatal_signal invocation.
5044         * NEWS: Mention the change.
5046 2019-03-16  Bruno Haible  <bruno@clisp.org>
5048         fatal-signal: Add function that lists the fatal signals.
5049         * lib/fatal-signal.h (get_fatal_signals): New declaration.
5050         * lib/fatal-signal.c (get_fatal_signals): New function.
5052 2019-03-14  Bruno Haible  <bruno@clisp.org>
5054         isatty: Make it return true in Cygwin consoles on native Windows.
5055         * lib/isatty.c: Include <string.h>.
5056         (GetProcAddress): New macro.
5057         (GetNamedPipeClientProcessIdFuncType): New type.
5058         (GetNamedPipeClientProcessIdFunc): New variable.
5059         (QueryFullProcessImageNameFuncType): New type.
5060         (QueryFullProcessImageNameFunc): New variable.
5061         (initialized): New variable.
5062         (initialize): New function.
5063         (IsCygwinConsoleHandle): New function.
5064         (isatty): Invoke it.
5065         * doc/posix-functions/isatty.texi: Mention the issue.
5067 2019-03-14  Bruno Haible  <bruno@clisp.org>
5069         all: Update URLs to msdn.microsoft.com.
5070         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
5071         was moved to docs.microsoft.com.
5073 2019-03-13  Bruno Haible  <bruno@clisp.org>
5075         gnulib-tool: Clarify the coding style.
5076         Suggested by Pavel Raiskup <praiskup@redhat.com>.
5077         * gnulib-tool: Add comment about coding style.
5079 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
5081         strtod: fix clash with strtold
5082         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
5083         * lib/strtod.c (compute_minus_zero, minus_zero):
5084         Simplify by remving the macro / external variable,
5085         and having just a function.  User changed.  This avoids
5086         the need for an external variable that might clash.
5088 2019-03-10  Bruno Haible  <bruno@clisp.org>
5090         alloca-opt: Fix conflict mingw's new <alloca.h> file.
5091         Reported by Eli Zaretskii <eliz@gnu.org>.
5092         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
5093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
5094         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
5096 2019-03-10  Bruno Haible  <bruno@clisp.org>
5098         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
5099         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
5100         is in use.
5101         * tests/test-printf-posix2.c: Likewise.
5103 2019-03-10  Bruno Haible  <bruno@clisp.org>
5105         uninorm tests: Free allocated memory.
5106         * tests/uninorm/test-u32-normalize-big.h
5107         (struct normalization_test_file): Remove 'const' from allocated member.
5108         (free_normalization_test_file): New declaration.
5109         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
5110         memory.
5111         (free_normalization_test_file): New function.
5112         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
5113         'struct normalization_test_file' contents.
5114         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
5115         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
5116         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
5118 2019-03-10  Bruno Haible  <bruno@clisp.org>
5120         di-set: Fix memory leak.
5121         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
5122         not free().
5124 2019-03-10  Bruno Haible  <bruno@clisp.org>
5126         tests: Free allocated memory.
5127         Reported by <deltatau@protonmail.com> via Assaf Gordon.
5128         * tests/test-astrxfrm.c (main): Free allocated memory.
5129         * tests/test-bitset.c (compare, check_attributes): Free allocated
5130         bitsets.
5131         * tests/test-filenamecat.c (main): Free allocated memory.
5132         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
5133         * tests/test-freadptr.c (main): Likewise.
5134         * tests/test-freadptr2.c (main): Free allocated memory.
5135         * tests/test-freadseek.c (main): Likewise.
5136         * tests/test-gc-arcfour.c (main): Close allocated context.
5137         * tests/test-gc-arctwo.c (main): Likewise.
5138         * tests/test-gc-des.c (main): Close all allocated contexts.
5139         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
5140         * tests/test-pipe-filter-ii1.c (main): Likewise.
5141         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
5142         allocated file actions.
5143         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
5144         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
5145         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
5146         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
5147         * tests/test-strfmon_l.c (main): Free allocated locales.
5148         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
5149         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
5150         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5151         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
5152         * tests/unistr/test-chr.h (main): Free input32.
5153         * tests/unistr/test-strchr.h (test_strchr): Likewise.
5155 2019-03-10  Bruno Haible  <bruno@clisp.org>
5157         tests: Prepare for using valgrind.
5158         * tests/*.sh: Invoke all test programs through ${CHECKER}.
5159         * tests/*/*.sh: Likewise.
5160         * tests/test-freadptr.c (main): Update accordingly.
5161         * tests/test-freadseek.c (main): Likewise.
5163 2019-03-09  Bruno Haible  <bruno@clisp.org>
5165         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
5166         * lib/get-rusage-as.c (get_rusage_as): When compiled by
5167         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
5168         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
5169         before exiting.
5171 2019-03-09  Jim Meyering  <meyering@fb.com>
5173         test-userspec.c: don't print NULL
5174         * tests/test-userspec.c (main): A test release of gcc,
5175         9.0.1 20190310, warned that this test would attempt to
5176         print a NULL pointer via a %s printf format.  Fix that
5177         and remove the unnecessary preceding "!diag" conjunct.
5178         Also add a comment.
5180 2019-03-03  Bruno Haible  <bruno@clisp.org>
5182         getloadavg: Write NULL for the null pointer.
5183         Reported by Michal Privoznik <mprivozn@redhat.com>.
5184         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
5186 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
5188         alloca, tsearch-tests: Write NULL for the null pointer.
5189         * lib/alloca.c (i00afunc): Write NULL instead of 0.
5190         * tests/test-tsearch.c (mangle_tree): Likewise.
5192 2019-03-09  Bruno Haible  <bruno@clisp.org>
5194         strfmon_l: Fix -fsanitize=address finding.
5195         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
5196         <string.h>.
5197         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
5198         (directive_t, directives_t): New types.
5199         (fmon_parse): New function.
5200         (rpl_strfmon_l): Don't call va_arg more often than needed for the
5201         format string. Consume 'long double' arguments in places where the
5202         format string indicates so.
5203         * modules/strfmon_l (Depends-on): Add 'stdbool'.
5205 2019-03-09  Bruno Haible  <bruno@clisp.org>
5207         crypto/des: Fix undefined behaviour.
5208         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
5209         shift operations on 'int'.
5211 2019-03-09  Bruno Haible  <bruno@clisp.org>
5213         Fix undefined behaviour.
5214         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
5215         'unsigned int', to avoid shift operations on 'int'.
5216         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
5217         * tests/test-count-leading-zeros.c (main): Use a random number that has
5218         as many bits as TYPE, not only 2*15 or 2*31 bits.
5219         * tests/test-count-trailing-zeros.c (main): Likewise.
5220         * tests/test-count-one-bits.c (main): Likewise.
5221         * tests/test-memmem.c: Don't include "null-ptr.h".
5222         (main): Use zerosize_ptr() instead of null_ptr().
5223         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
5225 2019-03-08  Bruno Haible  <bruno@clisp.org>
5227         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
5228         Reported by Jeffrey Walton <noloader@gmail.com>.
5229         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
5230         invoke memset with a zero size.
5231         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5232         Likewise.
5233         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5234         Adjust accordingly.
5236 2019-03-08  Bruno Haible  <bruno@clisp.org>
5238         unistr/*, uniconv/*: Fix undefined behaviour.
5239         Reported by Jeffrey Walton <noloader@gmail.com>.
5240         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
5241         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
5242         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
5243         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5245 2019-03-08  Bruno Haible  <bruno@clisp.org>
5247         unistr/u8-cmp: Fix undefined behaviour.
5248         Reported by Jeffrey Walton <noloader@gmail.com>.
5249         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
5251 2019-03-08  Bruno Haible  <bruno@clisp.org>
5253         unictype/numeric: Fix undefined behaviour.
5254         Reported by Jeffrey Walton <noloader@gmail.com>.
5255         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
5256         on shift overflow, caught by "gcc -fsanitize=undefined".
5257         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
5258         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
5259         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
5261 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
5263         git-version-gen: fix --version copyright year
5264         * build-aux/git-version-gen, build-aux/move-if-change (version):
5265         --version output copyright year is now taken from script year,
5266         so that it no longer needs to be updated by hand.
5268 2019-03-04  Bruno Haible  <bruno@clisp.org>
5270         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
5271         This approach supports relocatable installation of shared libraries
5272         which depend on other shared libraries from the same package.
5273         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
5274         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
5275         wrapper around the original LIBTOOL.
5276         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
5277         token '@loader_path' instead of '$ORIGIN'.
5278         * build-aux/libtool-reloc: New file.
5279         * modules/relocatable-prog (Files): Add it.
5280         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
5281         the recent changes. Document the need to set the *_LDFLAGS of libraries.
5282         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
5283         Makefile.am, not in configure.ac.
5285 2019-03-04  Bruno Haible  <bruno@clisp.org>
5287         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
5288         * build-aux/install-reloc: Revert change.
5289         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
5291 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5293         nstrftime: support the ‘+’ flag
5294         * lib/nstrftime.c (add, __strftime_internal):
5295         Add support for the ‘+’ flag introduced in POSIX.1-2017.
5296         (__strftime_internal): New arg ‘width’.  All uses changed.
5297         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
5299 2019-02-24  Bruno Haible  <bruno@clisp.org>
5301         relocatable-prog: Improve verbose output.
5302         * build-aux/install-reloc (func_verbose): Escape characters that would
5303         be interpreted by the shell.
5305 2019-02-24  Bruno Haible  <bruno@clisp.org>
5307         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
5308         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
5309         "sys/stat.h".
5310         * lib/lstat.c: Likewise.
5311         * lib/fstat.c: Likewise.
5312         * lib/fstatat.c: Likewise.
5314 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
5316         long-options: add parse_gnu_standard_options_only
5317         Discussed in https://bugs.gnu.org/33468 .
5319         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
5320         (parse_gnu_standard_options_only): Add function to process
5321         the GNU default options --help and --version and fail for
5322         any other unknown long or short option. See
5323         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
5324         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
5325         * modules/long-options (depends-on): Add stdbool, exitfail.
5326         * top/maint.mk (sc_prohibit_long_options_without_use): Update
5327         syntax-check rule, add new function name.
5329 2019-02-23  Bruno Haible  <bruno@clisp.org>
5331         relocatable-prog: Update documentation.
5332         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
5333         the recent changes.
5335 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
5337         nstrftime: tweak arg order
5338         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
5339         All callers changed.  Suggested by TAMUKI Shoichi in:
5340         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
5342 2019-02-23  Bruno Haible  <bruno@clisp.org>
5344         relocatable-prog: Use wrapper-free installation also on Mac OS X.
5345         Reported by Paul Smith <psmith@gnu.org>.
5346         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
5347         (func_relativize): New function, from gnulib-tool.
5348         Handle mode 'macosx' through invocations of 'otool' and
5349         'install_name_tool'.
5350         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
5351         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
5352         'install-reloc' invocation with mode 'macosx'.
5354 2019-02-23  Bruno Haible  <bruno@clisp.org>
5356         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
5357         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
5358         Hurd with glibc >= 2.27.
5360 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
5362         nstrftime: merge glibc strftime changes
5363         This incorporates:
5364         2019-02-11 Fix a few whitespace arrangement inconsistencies
5365         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
5366         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
5367         2019-01-11 strftime: use the "L_" macro with character literals
5368         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
5369         callers changed.  Default width of %Ey is now 2.  This is needed
5370         for proper handling of Japanese dates starting on 2019-05-01.
5372 2019-02-19  Bruno Haible  <bruno@clisp.org>
5374         relocatable-prog: Use $ORIGIN trick on more platforms.
5375         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
5376         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
5377         Solaris >= 10, Haiku. But don't use it on Android.
5378         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
5379         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
5381 2019-02-19  Bruno Haible  <bruno@clisp.org>
5383         progreloc: Speed up executable lookup on various platforms.
5384         * lib/progreloc.c: Include <errno.h>.
5385         (safe_read, full_read): New functions.
5386         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
5387         prefer the information from the /proc file system to a PATH search.
5389 2019-02-19  Bruno Haible  <bruno@clisp.org>
5391         progreloc: Simplify code for Android.
5392         * lib/progreloc.c (executable_fd): Don't define on Android.
5393         (maybe_executable, find_executable): Don't use executable_fd on Android.
5395 2019-02-15  Bruno Haible  <bruno@clisp.org>
5397         gnulib-tool: Support --import with just a few tests, not --with-tests.
5398         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
5399         'inctests' when generating files; use 'inctests' only for computing the
5400         transitive closure.
5402 2019-02-14  Bruno Haible  <bruno@clisp.org>
5404         gnulib-tool: Improve handling of multiple --local-dir options.
5405         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
5406         options work.
5407         * gnulib-tool (func_path_prepend): Remove function.
5408         (func_path_foreach): Make IFS handling more robust.
5409         (local_gnulib_path): Collect --local-dir values using func_path_append,
5410         not func_path_prepend.
5411         (func_determine_path_separator): Make IFS handling more robust.
5412         (func_lookup_file_cb): New function.
5413         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
5414         func_lookup_local_file. Apply the patches in the reverse order of their
5415         origin in $local_gnulib_path.
5416         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
5417         * NEWS: Mention that the first --local-dir option is the one with
5418         highest priority.
5420 2019-02-10  Bruno Haible  <bruno@clisp.org>
5422         libtextstyle: New module.
5423         * m4/libtextstyle.m4: New file.
5424         * modules/libtextstyle: New file.
5426 2019-02-05  Bruno Haible  <bruno@clisp.org>
5428         declared.sh: Fix bug with variables of pointer type.
5429         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
5430         before the symbol to be omitted if the preceding character is a '*'.
5432 2019-02-04  Bruno Haible  <bruno@clisp.org>
5434         Add script for running tests under valgrind.
5435         * build-aux/run-test: New file, from GNU libunistring.
5436         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
5437         as well.
5439 2019-02-04  Bruno Haible  <bruno@clisp.org>
5441         declared.sh: Fix --version output.
5442         * build-aux/declared.sh (func_version): Update package name.
5444 2019-02-03  Bruno Haible  <bruno@clisp.org>
5446         Add script for determining the set of symbols to export from a library.
5447         * build-aux/declared.sh: New file, from GNU libunistring.
5448         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
5449         Mention it.
5451 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
5453         vla: add commentary about VLA_ELEMS
5454         * lib/vla.h (VLA_ELEMS): Add commentary,
5455         some inspired by Bruno Haible’s proposal in:
5456         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
5458         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
5459         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
5460         assume the C99 signatures for strtod and strtold.  Programs that
5461         require stricter adherence to C99 should also use the strtod and
5462         strtold modules as needed, and we no longer need the
5463         HAVE_C99_STRTOLD macro.
5464         * NEWS: Mention this.
5465         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
5466         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
5467         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
5468         (Files): Remove m4/c-strtod.m4.
5469         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
5470         exists.
5472 2019-02-02  Bruno Haible  <bruno@clisp.org>
5474         fma: Improve code style.
5475         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
5477 2019-02-02  Colin Watson  <cjwatson@debian.org>
5479         *-map tests: Fix compilation error.
5480         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
5481         * tests/test-hash_map.c: Likewise.
5482         * tests/test-linkedhash_map.c: Likewise.
5484 2019-01-31  Bruno Haible  <bruno@clisp.org>
5486         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
5487         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
5488         GNULIB_defined_strtold_function): New macros.
5489         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
5490         (STRTOD): Ignore HAVE_C99_STRTOLD.
5491         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
5492         deemed buggy. But do use it on platforms where uselocale exists and is
5493         usable.
5494         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
5495         deemed buggy. On platforms where uselocale exists and is usable, use
5496         uselocale and strtod/strtold.
5497         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
5498         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
5499         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
5500         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
5501         (Depends-on): Add strtod.
5502         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
5503         (Depends-on): Add strtold.
5505 2019-01-31  Bruno Haible  <bruno@clisp.org>
5507         strtod, strtold: Use the locale's decimal point.
5508         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
5509         (decimal_point_char): New function, copied from lib/vasnprintf.c.
5510         (parse_number): Add a radixchar argument. Use it instead of '.'.
5511         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
5512         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
5513         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
5514         * tests/test-strtod1.c: New file.
5515         * tests/test-strtod1.sh: New file.
5516         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
5517         locale-fr.m4 and its dependencies.
5518         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
5519         (Makefile.am): Arrange to compile test-strtod1.c and run
5520         test-strtod1.sh.
5521         * tests/test-strtold1.c: New file.
5522         * tests/test-strtold1.sh: New file.
5523         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
5524         locale-fr.m4 and its dependencies.
5525         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
5526         (Makefile.am): Arrange to compile test-strtold1.c and run
5527         test-strtold1.sh.
5529 2019-01-31  Bruno Haible  <bruno@clisp.org>
5531         strtod, strtold tests: Simplify tests.
5532         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
5533         * tests/test-strtold.c (main): Likewise.
5535 2019-01-31  Bruno Haible  <bruno@clisp.org>
5537         strtod, strtold: Avoid unnecessary rounding errors.
5538         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
5539         decimal to DOUBLE conversion.
5541 2019-01-31  Bruno Haible  <bruno@clisp.org>
5543         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
5544         * lib/strtod.c (STRTOD): When there is an extra character after the
5545         exponent marker 'p', reparse the number.
5546         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
5547         * doc/posix-functions/strtold.texi: Likewise.
5549 2019-01-29  Bruno Haible  <bruno@clisp.org>
5551         strtold: Add tests.
5552         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
5553         * modules/strtold-tests: New file.
5555 2019-01-29  Bruno Haible  <bruno@clisp.org>
5557         strtold: New module.
5558         * lib/stdlib.in.h (strtold): New declaration.
5559         * lib/strtold.c: New file.
5560         * lib/strtod.c: Consider USE_LONG_DOUBLE.
5561         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
5562         USE_LDEXP): New macros.
5563         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
5564         USE_LONG_DOUBLE.
5565         (underlying_strtod): Remove function. Replace with some macros.
5566         Re-add the code for a missing underlying function that was removed on
5567         2013-02-19.
5568         * m4/strtold.m4: New file.
5569         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
5570         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
5571         REPLACE_STRTOLD.
5572         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
5573         REPLACE_STRTOLD.
5574         * modules/strtold: New file.
5575         * doc/posix-functions/strtold.texi: Document the new module.
5577 2019-01-29  Bruno Haible  <bruno@clisp.org>
5579         strtod: Fix compilation error on IRIX 6.5.
5580         * modules/strtod (Depends-on): Add 'math'.
5582 2019-01-28  Bruno Haible  <bruno@clisp.org>
5584         Fix build error when building a shared libunistring on Android.
5585         * tests/uninorm/test-nfc.c (n): Don't define on Android.
5586         (main): Add 'volatile', to defeat a GCC optimization that would
5587         eliminate the reference.
5588         * tests/uninorm/test-nfd.c (n): Don't define on Android.
5589         (main): Add 'volatile', to defeat a GCC optimization that would
5590         eliminate the reference.
5591         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
5592         (main): Add 'volatile', to defeat a GCC optimization that would
5593         eliminate the reference.
5594         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
5595         (main): Add 'volatile', to defeat a GCC optimization that would
5596         eliminate the reference.
5598 2019-01-27  Bruno Haible  <bruno@clisp.org>
5600         Avoid build errors due to wrong references between modules.
5601         * lib/uninorm/canonical-decomposition.c: Include
5602         "uninorm/decomposition-table.h", not "decomposition-table.h".
5603         * lib/uninorm/decomposition.c: Likewise.
5604         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
5605         not "decompose-internal.h".
5606         * lib/uninorm/u16-normalize.c: Likewise.
5607         * lib/uninorm/u32-normalize.c: Likewise.
5608         * lib/uninorm/uninorm-filter.c: Likewise.
5609         * lib/uninorm/nfkc.c: Likewise.
5610         * lib/uninorm/nfkd.c: Likewise.
5611         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
5612         "caseprop.h".
5613         * lib/unicase/u8-ct-totitle.c: Likewise.
5614         * lib/unicase/u8-prefix-context.c: Likewise.
5615         * lib/unicase/u8-suffix-context.c: Likewise.
5616         * lib/unicase/u16-casemap.c: Likewise.
5617         * lib/unicase/u16-ct-totitle.c: Likewise.
5618         * lib/unicase/u16-prefix-context.c: Likewise.
5619         * lib/unicase/u16-suffix-context.c: Likewise.
5620         * lib/unicase/u32-casemap.c: Likewise.
5621         * lib/unicase/u32-ct-totitle.c: Likewise.
5622         * lib/unicase/u32-prefix-context.c: Likewise.
5623         * lib/unicase/u32-suffix-context.c: Likewise.
5624         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
5625         "unicasemap.h".
5626         * lib/unicase/u8-toupper.c: Likewise.
5627         * lib/unicase/u8-ct-tolower.c: Likewise.
5628         * lib/unicase/u8-ct-toupper.c: Likewise.
5629         * lib/unicase/u16-tolower.c: Likewise.
5630         * lib/unicase/u16-toupper.c: Likewise.
5631         * lib/unicase/u16-ct-tolower.c: Likewise.
5632         * lib/unicase/u16-ct-toupper.c: Likewise.
5633         * lib/unicase/u32-tolower.c: Likewise.
5634         * lib/unicase/u32-toupper.c: Likewise.
5635         * lib/unicase/u32-ct-tolower.c: Likewise.
5636         * lib/unicase/u32-ct-toupper.c: Likewise.
5637         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
5638         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
5639         * lib/unicase/u16-ct-casefold.c: Likewise.
5640         * lib/unicase/u32-ct-casefold.c: Likewise.
5642 2019-01-27  Bruno Haible  <bruno@clisp.org>
5644         gperf: Fix error when this module is required by some test module.
5645         * modules/gperf (Applicability): Set to 'all'.
5647 2019-01-27  Bruno Haible  <bruno@clisp.org>
5649         tmpfile: Add support for Android.
5650         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
5651         works.
5652         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
5653         Android.
5654         * modules/tmpfile (Depends-on): Add 'stdbool'.
5655         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
5656         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
5658 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
5660         bitsetv: allow free on NULL.
5661         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
5663 2019-01-27  Bruno Haible  <bruno@clisp.org>
5665         test-framework-sh: Improve maintainability.
5666         * tests/init.sh: Clarify what belongs together. Reorder definitions.
5668 2019-01-27  Bruno Haible  <bruno@clisp.org>
5670         tests: Don't assume that /tmp exists.
5671         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
5672         * tests/test-copy-acl-1.sh: Likewise.
5673         * tests/test-file-has-acl-1.sh: Likewise.
5674         * tests/test-copy-file-1.sh: Likewise.
5676 2019-01-27  Bruno Haible  <bruno@clisp.org>
5678         tests: Accommodate a shell that is not in /bin/sh.
5679         * tests/init.sh (setup_): Set srcdir and builddir.
5680         (BOURNE_SHELL): New variable.
5681         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
5682         * modules/file-has-acl-tests (Depends-on): Likewise.
5683         * modules/copy-file-tests (Depends-on): Likewise.
5684         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
5685         scripts through $BOURNE_SHELL.
5686         * tests/test-set-mode-acl-2.sh: Likewise.
5687         * tests/test-copy-acl-1.sh: Likewise.
5688         * tests/test-copy-acl-2.sh: Likewise.
5689         * tests/test-file-has-acl-1.sh: Likewise.
5690         * tests/test-file-has-acl-2.sh: Likewise.
5691         * tests/test-copy-file-1.sh: Likewise.
5692         * tests/test-copy-file-2.sh: Likewise.
5693         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
5694         invoker.
5695         * tests/test-copy-acl.sh (builddir): Likewise.
5696         * tests/test-file-has-acl.sh (builddir): Likewise.
5697         * tests/test-copy-file.sh (builddir): Likewise.
5698         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
5699         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
5700         * tests/test-vc-list-files-git.sh: Likewise.
5702 2019-01-27  Bruno Haible  <bruno@clisp.org>
5704         tests: Fix some "unused variable" warnings.
5705         * tests/test-fts.c (fts_dealloc): Remove unused variable.
5706         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
5707         * tests/test-striconveh.c (main): Move some variable into the
5708         '#if HAVE_ICONV'.
5709         * tests/test-striconveha.c (main): Likewise.
5710         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
5711         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5712         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5713         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
5714         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
5715         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
5716         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5717         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5718         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5719         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
5720         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
5721         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
5722         * tests/test-tsearch.c (main): Move some variable into the
5723         '#if HAVE_INITSTATE'.
5725 2019-01-27  Bruno Haible  <bruno@clisp.org>
5727         unigbrk/uc-grapheme-breaks: Fix build failure.
5728         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
5729         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
5731 2019-01-27  Bruno Haible  <bruno@clisp.org>
5733         mountlist: Merge two .m4 files.
5734         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
5735         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
5736         * m4/ls-mntd-fs.m4: Remove file.
5737         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
5739 2019-01-27  Bruno Haible  <bruno@clisp.org>
5741         tests: Enable Linux specific tests on Android.
5742         * tests/test-flock.c (main): Treat Android like Linux.
5743         * tests/test-openat-safer.c (main): Likewise.
5745 2019-01-27  Bruno Haible  <bruno@clisp.org>
5747         relocatable-prog: Use Linux code on Android.
5748         * lib/progreloc.c: Treat Android like Linux.
5750 2019-01-26  Bruno Haible  <bruno@clisp.org>
5752         getloadavg: Add support for Android.
5753         * lib/getloadavg.c: Treat Android like Linux.
5755 2019-01-26  Bruno Haible  <bruno@clisp.org>
5757         vma-iter: Add support for Android.
5758         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
5759         * lib/vma-iter.c: Treat Android like Linux.
5760         * lib/get-rusage-data.c (get_rusage_data): Likewise.
5762 2019-01-26  Bruno Haible  <bruno@clisp.org>
5764         fts: Optimize on Android.
5765         * lib/fts.c: Treat Android like Linux.
5767 2019-01-26  Bruno Haible  <bruno@clisp.org>
5769         fts: Add support for Android.
5770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
5771         defined by this module and the ones in libc.
5772         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
5774 2019-01-26  Bruno Haible  <bruno@clisp.org>
5776         mountlist: Use Linux code on Android.
5777         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
5778         (unescape_tab, read_file_system_list): Enable Linux code on Android
5779         as well.
5780         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
5781         and endmntent.
5782         * modules/mountlist (Depends-on): Add 'getline'.
5784 2019-01-26  Bruno Haible  <bruno@clisp.org>
5786         localename tests: Fix test failure on Android.
5787         * modules/localename-tests (Depends-on): Add 'setlocale'.
5789 2019-01-26  Bruno Haible  <bruno@clisp.org>
5791         mountlist: Port better to Android.
5792         * lib/mountlist.c (MOUNTED): Redefine on Android.
5793         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
5794         Android.
5796 2019-01-26  Bruno Haible  <bruno@clisp.org>
5798         striconveh: Fix use of uninitialized iconv_t.
5799         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
5800         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
5801         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
5803 2019-01-26  Bruno Haible  <bruno@clisp.org>
5805         nonblocking-socket-tests: Fix test failure on Android 4.3.
5806         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
5807         also on Android.
5809 2019-01-26  Bruno Haible  <bruno@clisp.org>
5811         sh-filename: Add support for Android 4.3.
5812         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
5814 2019-01-26  Bruno Haible  <bruno@clisp.org>
5816         ptsname_r: Work around bug on Android 4.3.
5817         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
5818         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
5819         correct.
5820         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
5821         is defined, just fix the return value.
5822         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
5823         The behaviour of musl libc is nothing to be "fixed", since it is
5824         compliant with the next POSIX standard.
5826 2019-01-26  Bruno Haible  <bruno@clisp.org>
5828         ttyname_r: Work around bug on Android 4.3.
5829         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
5830         * lib/ttyname_r.c (ttyname_r): Implement for Android.
5831         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
5832         * doc/posix-functions/ttyname.texi: Likewise.
5834 2019-01-25  Bruno Haible  <bruno@clisp.org>
5836         getprogname: Port to Android 4.3.
5837         * lib/getprogname.c (getprogname): On Android, take only the last
5838         component of __progname.
5840 2019-01-25  Bruno Haible  <bruno@clisp.org>
5842         wcrtomb: Work around bug on Android 4.3.
5843         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
5844         the C locale.
5845         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
5846         which does not have the 'wctomb' function.
5847         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
5848         * tests/test-wcrtomb.c (main): Accept argument '5'.
5849         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
5851 2019-01-25  Bruno Haible  <bruno@clisp.org>
5853         setlocale: Work around bug on Android 4.3.
5854         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
5855         the "C" locale.
5856         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
5857         * doc/posix-functions/setlocale.texi: Mention the Android bug.
5859 2019-01-24  Bruno Haible  <bruno@clisp.org>
5861         memchr: Work around bug on Android <= 5.0.
5862         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
5863         * doc/posix-functions/memchr.texi: Mention the Android bug.
5865 2019-01-24  Bruno Haible  <bruno@clisp.org>
5867         random: Fix compilation error on Android 4.3.
5868         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
5869         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
5870         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
5871         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
5872         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5873         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
5874         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5875         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
5876         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
5877         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
5878         REPLACE_INITSTATE, REPLACE_SETSTATE.
5879         * doc/posix-functions/random.texi: Correct the description of the
5880         situation on Android.
5881         * doc/posix-functions/srandom.texi: Likewise.
5882         * doc/posix-functions/rand.texi: Likewise.
5883         * doc/posix-functions/srand.texi: Likewise.
5885 2019-01-24  Bruno Haible  <bruno@clisp.org>
5887         mbtowc: Fix compilation error on Android 4.3.
5888         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
5889         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
5890         HAVE_MBTOWC.
5891         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
5892         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
5893         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
5894         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
5895         * doc/posix-functions/mbtowc.texi: Mention the change.
5897 2019-01-24  Bruno Haible  <bruno@clisp.org>
5899         fdatasync: Fix compilation error on Android 4.3.
5900         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
5901         test whether fdatasync() exists.
5903 2019-01-24  Bruno Haible  <bruno@clisp.org>
5905         unlinkat: Fix compilation error on Android 4.3.
5906         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
5907         also on Android.
5908         * doc/posix-functions/unlinkat.texi: Mention the issue.
5910 2019-01-24  Bruno Haible  <bruno@clisp.org>
5912         renameat: Fix compilation error on Android 4.3.
5913         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
5914         * doc/posix-functions/renameat.texi: Mention the issue.
5916 2019-01-24  Bruno Haible  <bruno@clisp.org>
5918         fchownat: Fix compilation error on Android 4.3.
5919         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
5920         use.
5921         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
5922         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
5923         * doc/posix-functions/fchownat.texi: Mention the issue.
5925 2019-01-23  Bruno Haible  <bruno@clisp.org>
5927         gnulib-tool: Support running testdirs on Android.
5928         * build-aux/test-driver.diff: New file.
5929         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
5930         build-aux/test-driver after running automake.
5932 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
5934         relocatable-prog: avoid warnings from Automake
5935         * modules/relocatable-prog: Don't declare PHONY dependencies in
5936         Automake conditionals.
5938 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
5940         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
5941         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
5943 2019-01-23  Bruno Haible  <bruno@clisp.org>
5945         threadlib: Revert commit from 2018-06-25. We now have a better fix.
5946         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
5947         preceding -Wl,--as-needed option. Don't check whether the linker
5948         supports --as-needed/--no-as-needed and --push-state/--pop-state.
5950 2019-01-23  Bruno Haible  <bruno@clisp.org>
5952         thread: Force linking with -lpthread, even when --as-needed is in use.
5953         Reported by Richard W.M. Jones <rjones@redhat.com> in
5954         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
5955         * lib/glthread/thread.h (pthread_create): Don't declare weak.
5957 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
5958             Bruno Haible  <bruno@clisp.org>
5960         relocatable: avoid compiler warnings (-Wshadow)
5961         * lib/relocatable.c (compute_curr_prefix): Rename local variables
5962         to avoid name collisions with global variables.
5964 2019-01-22  Bruno Haible  <bruno@clisp.org>
5966         vasnprintf: Don't use %n on Android.
5967         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
5968         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
5969         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
5971 2019-01-22  Bruno Haible  <bruno@clisp.org>
5973         *printf: Support cross-compilation to Android.
5974         * m4/printf.m4: Add cross-compilation guesses for Android.
5976 2019-01-21  Bruno Haible  <bruno@clisp.org>
5978         diacrit: Mark deprecated.
5979         * modules/diacrit (Status, Notice): Mark as deprecated.
5980         * NEWS: Mention it.
5982 2019-01-20  Bruno Haible  <bruno@clisp.org>
5984         rintl: Override broken implementation on NetBSD.
5985         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
5986         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
5987         REPLACE_RINTL.
5988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
5989         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
5990         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
5991         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
5993 2019-01-20  Bruno Haible  <bruno@clisp.org>
5995         log10l: Work around inaccurate implementation on NetBSD.
5996         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
5997         * lib/log10l.c: Comment out too simplistic override.
5998         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
6000 2019-01-20  Bruno Haible  <bruno@clisp.org>
6002         logl: Work around inaccurate implementation on NetBSD.
6003         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
6004         * lib/logl.c: Comment out unused code.
6005         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
6007 2019-01-20  Bruno Haible  <bruno@clisp.org>
6009         expm1l: Work around inaccurate implementation on NetBSD.
6010         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
6011         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
6012         REPLACE_EXPM1L.
6013         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
6014         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
6015         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
6016         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
6018 2019-01-20  Bruno Haible  <bruno@clisp.org>
6020         expl: Work around inaccurate implementation on NetBSD.
6021         * lib/math.in.h (expl): Test also REPLACE_EXPL.
6022         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
6023         REPLACE_EXPL.
6024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
6025         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
6026         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
6027         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
6029 2019-01-20  Bruno Haible  <bruno@clisp.org>
6031         exp2l: Work around inaccurate implementation on NetBSD.
6032         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
6033         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
6035 2019-01-20  Bruno Haible  <bruno@clisp.org>
6037         floor, floorl: Avoid autoconf warnings.
6038         * modules/floor (configure.ac): Use AC_REQUIRE.
6039         * modules/floorl (configure.ac): Likewise.
6041 2019-01-20  Bruno Haible  <bruno@clisp.org>
6043         Defeat current GCC optimizations in math autoconf tests.
6044         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
6045         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6046         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6047         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6048         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6049         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6050         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6051         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6052         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6053         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6054         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6055         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6056         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
6057         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
6058         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6059         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6060         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
6061         * m4/log.m4 (gl_FUNC_LOG): Likewise.
6062         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
6063         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
6064         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
6065         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6066         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
6067         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6068         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
6069         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
6070         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6071         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6072         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6073         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6074         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
6075         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6076         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6077         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6078         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6079         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6080         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6081         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6083 2019-01-19  Pádraig Brady  <P@draigBrady.com>
6085         gettext: support disabling use of VLAs
6086         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
6088 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
6090         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
6091         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
6093 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
6095         fcntl: Fix syntax error (regression from 2018-10-05).
6096         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
6098 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
6100         relocatable: improve documentation.
6101         * doc/relocatable-maint.texi (Supporting Relocation): For
6102         substitutions performed by config.status, we need more variables
6103         (for instance datarootdir defaults to '${prefix}/share' so we need
6104         prefix).
6106 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
6108         backup: update dependencies
6109         * modules/backup-rename (Depends-on): It now depends on opendirat
6110         instead of opendir.  It also uses stdint, and xalloc-oversized.
6111         But no longer dirfd.
6112         * modules/backupfile (Depends-on): Add xalloc-oversized.
6114 2019-01-13  Bruno Haible  <bruno@clisp.org>
6116         getcwd: Fix test failure when building on a Linux 9p file system.
6117         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
6118         EINVAL from mkdir like ENAMETOOLONG.
6119         * tests/test-getcwd.c (test_long_name): Likewise.
6121 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
6123         Fix typos found by codespell.
6124         * lib/*.[hc]: Fix typos in comments.
6125         * pygnulib/*.py: Fix typos in error messages and comments.
6127 2019-01-12  Bruno Haible  <bruno@clisp.org>
6129         doc: Fix documentation about container data types.
6130         Reported by Werner Lemberg <wl@gnu.org>.
6131         * doc/containers.texi (Container data types): Fix typo.
6133 2019-01-10  Bruno Haible  <bruno@clisp.org>
6135         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
6136         Reported by Reuben Thomas <rrt@sc3d.org>.
6137         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
6139 2019-01-06  Bruno Haible  <bruno@clisp.org>
6141         maintainer-makefile: Make the configure.ac section optional.
6142         * top/maint.mk (GREP, SED): Define if not defined.
6144 2019-01-06  Bruno Haible  <bruno@clisp.org>
6146         localename: Assume setlocale function.
6147         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
6148         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
6150 2019-01-06  Bruno Haible  <bruno@clisp.org>
6152         doc: Add documentation about container data types.
6153         * doc/containers.texi: New file.
6154         * doc/gnulib.texi (Particular Modules): Include it.
6156 2019-01-06  Bruno Haible  <bruno@clisp.org>
6158         doc: Update documentation about 'progname' module.
6159         * doc/progname.texi: Rename from doc/error.texi. Change node name and
6160         title. Rewrite.
6161         * doc/gnulib.texi (Particular Modules): Update.
6163 2019-01-06  Bruno Haible  <bruno@clisp.org>
6165         doc: Document the xstdopen and *-safer modules.
6166         * doc/xstdopen.texi: New file.
6167         * doc/gnulib.texi (Particular Modules): Include it.
6169 2019-01-06  Bruno Haible  <bruno@clisp.org>
6171         xstdopen: Add tests.
6172         * tests/test-xstdopen.c: New file.
6173         * tests/test-xstdopen.sh: New file.
6174         * modules/xstdopen-tests: New file.
6176         xstdopen: New module.
6177         * lib/xstdopen.h: New file.
6178         * lib/xstdopen.c: New file.
6179         * modules/xstdopen: New file.
6181 2019-01-06  Bruno Haible  <bruno@clisp.org>
6183         stdopen: Fix compilation error with IRIX cc.
6184         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
6186 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6188         xfreopen need not include stdio--.h
6189         * lib/xfreopen.c: Do not include stdio--.h.
6191         xfreopen need not depend on freopen-safer
6192         * modules/xfreopen (Depends-on):
6193         Depend on freopen, not freopen-safer.
6195         stdopen: modernize and simplify
6196         * lib/stdopen.c: Update copyright date
6197         Do not include sys/types.h; no longer needed these days.
6198         (stdopen): Use C99-style decl in loop.  Return int errno
6199         value, rather than just a bool.  Do not worry about fd mismatches,
6200         since the caller cares only if 0, 1, 2 are occupied.
6201         * lib/stdopen.h: No need to include <stdbool.h>.
6202         * m4/stdopen.m4: Remove.
6203         * modules/stdopen: New file.
6205         stdopen: copy from last use in coreutils
6206         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
6207         New files, taken from their last commit in coreutils
6208         2007-07-23T12:35:58Z!jim@meyering.net
6209         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
6211 2019-01-05  Bruno Haible  <bruno@clisp.org>
6213         argp: Don't pass an invalid argument to dgettext().
6214         Reported by He X <xw897002528@gmail.com>.
6215         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
6216         dgettext().
6218 2019-01-05  Bruno Haible  <bruno@clisp.org>
6220         argp: Don't pass an invalid argument to dgettext().
6221         Reported by He X <xw897002528@gmail.com>.
6222         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
6223         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
6224         dgettext().
6226 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
6228         stdioext: port to newer 32-bit Android
6229         Problem reported by Tom Yan in:
6230         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
6231         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
6232         (fp_) [__ANDROID__]: Use it.
6234 2019-01-04  Bruno Haible  <bruno@clisp.org>
6236         lock: Fix link error with --enable-threads=pth.
6237         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
6238         Mark as weak.
6240 2019-01-04  Bruno Haible  <bruno@clisp.org>
6242         Fix link errors in unit tests.
6243         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6244         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
6245         * modules/array-map-tests (Makefile.am): Link test-array_map against
6246         libintl.
6247         * modules/array-set-tests (Makefile.am): Link test-array_set against
6248         libintl.
6249         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
6250         libintl.
6251         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
6252         libintl.
6253         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
6254         against libintl.
6255         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
6256         against libintl.
6258 2019-01-04  Bruno Haible  <bruno@clisp.org>
6260         Fix incorrect 'Link' sections.
6261         * modules/regex (Link): Mention the link requirement of module 'lock'.
6262         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
6264 2019-01-04  Bruno Haible  <bruno@clisp.org>
6266         Fix some 'Link' sections.
6267         * modules/c-stack (Link): Add link directive from the 'gettext-h'
6268         dependency.
6269         * modules/getaddrinfo (Link): Likewise.
6271 2019-01-04  Bruno Haible  <bruno@clisp.org>
6273         Remove redundant 'Link' sections.
6274         * modules/canon-host (Link): Remove section.
6275         * modules/timevar (Link): Likewise.
6277 2019-01-04  Bruno Haible  <bruno@clisp.org>
6279         Remove incorrect 'Link' sections.
6280         * modules/acl (Link): Remove section. Use combined 'Link' sections from
6281         the dependencies instead.
6282         * modules/crypto/md5 (Link): Likewise.
6283         * modules/crypto/sha1 (Link): Likewise.
6284         * modules/crypto/sha256 (Link): Likewise.
6285         * modules/crypto/sha512 (Link): Likewise.
6286         * modules/faccessat (Link): Likewise.
6287         * modules/fdutimensat (Link): Likewise.
6288         * modules/iconv_open-utf (Link): Likewise.
6289         * modules/propername (Link): Likewise.
6290         * modules/qacl (Link): Likewise.
6291         * modules/unicodeio (Link): Likewise.
6292         * modules/utimecmp (Link): Likewise.
6293         * modules/utimensat (Link): Likewise.
6294         * modules/xstriconv (Link): Likewise.
6295         * modules/xstriconveh (Link): Likewise.
6297 2019-01-04  Bruno Haible  <bruno@clisp.org>
6299         gnulib-tool: New option --extract-recursive-link-directive.
6300         * gnulib-tool (func_usage): Document the new options
6301         --extract-recursive-dependencies, --extract-recursive-link-directive.
6302         (func_verify_module): Document output variables.
6303         (func_get_dependencies_recursively): New function.
6304         (func_get_link_directive_recursively): New function.
6305         Use them to implement the new options
6306         --extract-recursive-dependencies, --extract-recursive-link-directive.
6307         * doc/gnulib-tool.texi (Link-time requirements): New section.
6309 2019-01-04  Bruno Haible  <bruno@clisp.org>
6311         Clarify meaning of 'Link' section in module description.
6312         * doc/gnulib.texi (Module description): Clarify the meaning of the
6313         'Link' section versus the one of the dependencies.
6314         * NEWS: Mention the change.
6316 2019-01-04  Bruno Haible  <bruno@clisp.org>
6318         pselect: Fix module description.
6319         * modules/pselect (Link): Put one link option per line.
6321 2019-01-04  Bruno Haible  <bruno@clisp.org>
6323         cosl: Fix module description.
6324         * modules/cosl (Link): Fix typo.
6325         * modules/mathl (configure.ac): Likewise.
6327 2019-01-04  Bruno Haible  <bruno@clisp.org>
6329         c-xvasprintf: Fix module dependencies.
6330         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
6332 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
6334         bootstrap: die when some submodules are not initialized
6335         * build-aux/bootstrap: Make sure all submodules are initialized.
6337 2019-01-04  Bruno Haible  <bruno@clisp.org>
6339         bitsetv: Fix module dependencies.
6340         * lib/bitsetv.c: Include xalloc.h.
6341         * modules/bitsetv (Depends-on): Add 'xalloc'.
6343 2019-01-04  Bruno Haible  <bruno@clisp.org>
6345         xmemdup0: Remove redundant code.
6346         * lib/xmemdup0.h (xalloc_die): Remove declaration.
6348 2019-01-04  Bruno Haible  <bruno@clisp.org>
6350         backupfile: Fix module dependencies.
6351         * modules/backupfile (Depends-on): Add 'xalloc'.
6353 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
6355         bitset, crypto/gc: fix conflicts with Solaris 11
6356         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
6357         avoid clash with Solaris 11 <sys/bitset.h>.
6358         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
6359         with Solaris 11 <xorg/gc.h>.
6361 2019-01-04  Bruno Haible  <bruno@clisp.org>
6363         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
6364         Reported by Andy Fiddaman <andy@omniosce.org>.
6365         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
6367 2019-01-03  Eric Blake  <eblake@redhat.com>
6369         maintainer-makefile: fix typo in previous patch
6370         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
6371         of Roman's work.
6373 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
6375         maintainer-makefile: prefer $(GREP) over grep
6376         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
6377         defined.
6378         * top/maint.mk: Use it everywhere.
6380         maintainer-makefile: split long argument lines
6381         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
6382         it would be too long for exec limits on BSD.
6384 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
6386         mkfifo: bring back HAVE_MKFIFO macro
6387         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
6388         Problem reported by Andrew Janke in:
6389         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
6391 2018-12-21  Bruno Haible  <bruno@clisp.org>
6393         Assume Autoconf >= 2.63.
6394         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
6395         versions < 2.60.
6397 2018-12-21  Bruno Haible  <bruno@clisp.org>
6399         memcmp: Mention the clang bug.
6400         * tests/test-memcmp.c: Add comment about a known test failure.
6401         * doc/posix-functions/memcmp.texi: Mention the clang bug.
6403 2018-12-20  Jim Meyering  <meyering@fb.com>
6405         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
6406         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
6407           echo '123-x'|LC_ALL=C grep -E '.\bx'
6408         The goal is to revert the first, but reverting it requires to restore
6409         the function deleted in the second. I ran this to restore the deleted
6410         function:
6411           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
6412             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
6413             | patch -R -p1
6414         * lib/dfa.c (charclass_context): Restore deleted function.
6415         Reverting the primary commit removes this change:
6416         dfa: Simplify a building state
6417         * lib/dfa.c (build_state): Simplify a building state.
6419 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
6421         version-etc: allow zero authors
6422         * lib/version-etc.c (version_etc_arn): If no authors are given,
6423         omit authorship info instead of dumping core.
6425 2018-12-19  Bruno Haible  <bruno@clisp.org>
6427         lchown tests: Be more permissive regarding errno values.
6428         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
6429         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
6430         alternative to ENOSYS.
6431         * modules/lchown-tests (Depends-on): Add 'errno'.
6432         * modules/fchownat-tests (Depends-on): Likewise.
6434 2018-12-18  Bruno Haible  <bruno@clisp.org>
6436         duplocale: Avoid test failure on AIX 7.
6437         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
6438         (configure.ac): Invoke gt_FUNC_USELOCALE.
6439         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
6440         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
6441         works.
6443 2018-12-18  Bruno Haible  <bruno@clisp.org>
6445         localename: Fix test failure on AIX 7.
6446         Reported by Assaf Gordon in
6447         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
6448         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
6449         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
6450         instead of ac_cv_func_uselocale.
6451         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
6452         HAVE_USELOCALE.
6453         * lib/localename-table.h: Likewise.
6454         * lib/localename-table.c: Likewise.
6455         * tests/test-localename.c: Likewise.
6456         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
6458 2018-12-18  Bruno Haible  <bruno@clisp.org>
6460         localename: Update comments regarding Cygwin.
6461         * lib/localename.c: Update comment.
6462         * doc/posix-functions/uselocale.texi: Update platforms list.
6463         * doc/posix-functions/newlocale.texi: Likewise.
6464         * doc/posix-functions/duplocale.texi: Likewise.
6465         * doc/posix-functions/freelocale.texi: Likewise.
6467 2018-12-16  Bruno Haible  <bruno@clisp.org>
6469         c-stack: Fix for Linux/sparc.
6470         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
6471         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
6473 2018-12-16  Bruno Haible  <bruno@clisp.org>
6475         localename: Avoid test failure on some glibc systems.
6476         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
6477         Unset environment variables that might disturb the first setlocale call,
6478         and verify that this setlocale call succeeds.
6480 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
6482         random: Fix build error on native Windows (regression from 2018-06-21).
6483         * lib/random.c (__srandom, __initstate, __setstate, __random,
6484         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
6485         to the symbols without '__' prefix.
6487 2018-12-16  Bruno Haible  <bruno@clisp.org>
6489         obstack, libc-config: Support HP-UX cc in C99 mode.
6490         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
6491         compiler, even when in C99 mode.
6492         * lib/cdefs.h (__flexarr): Likewise.
6493         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
6495 2018-12-16  Bruno Haible  <bruno@clisp.org>
6497         localename: Fix test failure on OpenBSD >= 6.2.
6498         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
6499         locale system. Define HAVE_FAKE_LOCALES in this case.
6500         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
6501         HAVE_USELOCALE.
6502         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
6503         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
6504         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
6505         platforms list.
6506         * doc/posix-functions/newlocale.texi: Likewise.
6507         * doc/posix-functions/duplocale.texi: Update platforms list.
6508         * doc/posix-functions/freelocale.texi: Likewise.
6510 2018-12-16  Bruno Haible  <bruno@clisp.org>
6512         duplocale tests: Re-enable the test on platforms without <monetary.h>.
6513         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
6514         of the test, on platforms without <monetary.h>.
6516 2018-12-16  Bruno Haible  <bruno@clisp.org>
6518         localename: Update comments.
6519         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
6521 2018-12-15  Jim Meyering  <meyering@fb.com>
6523         regex: fix indentation
6524         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
6526 2018-12-15  Bruno Haible  <bruno@clisp.org>
6528         openat-safer tests: Avoid test failure on NetBSD 8.
6529         * tests/test-openat-safer.c (main): Execute a Linux specific test only
6530         on Linux.
6532 2018-12-15  Jim Meyering  <meyering@fb.com>
6534         regex: work around a bug in glibc-2.27 and prior
6535         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
6536         assertion for /0|()0|\1|0/.
6537         * tests/test-regex.c (main): Add the same test here.
6539 2018-12-15  Bruno Haible  <bruno@clisp.org>
6541         localename: Fix use of uninitialized shell variable.
6542         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
6543         gt_cv_locale_solaris114 always before use. Remove assignment without
6544         effect.
6546 2018-12-15  Bruno Haible  <bruno@clisp.org>
6548         dfa tests: Avoid test failure on Alpine Linux.
6549         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
6550         command found on Alpine Linux.
6552 2018-12-15  Jim Meyering  <meyering@fb.com>
6554         dfa: avoid new warnings from gcc
6555         These would prevent building with -Werror and a Dec snapshot of gcc.
6556         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
6557         Rename each inner instance to "p".
6558         (charclass_context): Remove unused static function.
6560 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6562         mkdir-p: improve diagnostic for FUSE mounts
6563         Problem reported by Niklas Hambüchen in:
6564         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
6565         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
6566         errno to mkdir errno if the stat errno is likely more interesting.
6568 2018-12-14  Bruno Haible  <bruno@clisp.org>
6570         hash-map: Add tests.
6571         * tests/test-hash_map.c: New file.
6572         * modules/hash-map-tests: New file.
6574         linkedhash-map: Add tests.
6575         * tests/test-linkedhash_map.c: New file.
6576         * modules/linkedhash-map-tests: New file.
6578         array-map: Add tests.
6579         * tests/test-array_map.c: New file.
6580         * modules/array-map-tests: New file.
6582         xmap: New module.
6583         * lib/gl_xmap.h: New file.
6584         * lib/gl_xmap.c: New file.
6585         * modules/xmap: New file.
6587         hash-map: New module.
6588         * lib/gl_hash_map.h: New file.
6589         * lib/gl_hash_map.c: New file.
6590         * modules/hash-map: New file.
6592         linkedhash-map: New module.
6593         * lib/gl_linkedhash_map.h: New file.
6594         * lib/gl_linkedhash_map.c: New file.
6595         * lib/gl_anyhash1.h: Update comments.
6596         * lib/gl_anyhash2.h: Likewise.
6597         * modules/linkedhash-map: New file.
6599         array-map: New module.
6600         * lib/gl_array_map.h: New file.
6601         * lib/gl_array_map.c: New file.
6602         * modules/array-map: New file.
6604         map: New module.
6605         * lib/gl_map.h: New file.
6606         * lib/gl_map.c: New file.
6607         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
6608         conflict with gl_map.h.
6609         * modules/map: New file.
6611 2018-12-13  Bruno Haible  <bruno@clisp.org>
6613         select tests: Avoid test failure on Cygwin.
6614         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
6616 2018-12-13  Bruno Haible  <bruno@clisp.org>
6618         localtime-buffer: Avoid endless recursion in localtime and gmtime.
6619         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
6621 2018-12-13  Bruno Haible  <bruno@clisp.org>
6623         localeconv tests: Avoid test failure on Cygwin.
6624         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
6625         'mon_grouping' tests.
6627 2018-12-11  Bruno Haible  <bruno@clisp.org>
6629         omap: Don't dispose the old value when the function returns it.
6630         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
6631         here.
6632         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
6633         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
6634         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
6635         here.
6637         array-omap, avltree-omap, rbtree-omap: Tweak style.
6638         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
6639         false.
6640         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
6642         rbtree-omap: Add tests.
6643         * tests/test-rbtree_omap.c: New file.
6644         * modules/rbtree-omap-tests: New file.
6646         avltree-omap: Add tests.
6647         * tests/test-avltree_omap.c: New file.
6648         * modules/avltree-omap-tests: New file.
6650         array-omap: Add tests.
6651         * tests/test-array_omap.c: New file.
6652         * modules/array-omap-tests: New file.
6654         xomap: New module.
6655         * lib/gl_xomap.h: New file.
6656         * lib/gl_xomap.c: New file.
6657         * modules/xomap: New file.
6659         rbtree-omap: New module.
6660         * lib/gl_rbtree_omap.h: New file.
6661         * lib/gl_rbtree_omap.c: New file.
6662         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
6663         Parameterize.
6664         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
6665         * modules/rbtree-omap: New file.
6666         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
6667         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
6669         avltree-omap: New module.
6670         * lib/gl_avltree_omap.h: New file.
6671         * lib/gl_avltree_omap.c: New file.
6672         * lib/gl_avltree_ordered.h: Code moved to here from
6673         lib/gl_avltree_oset.c. Parameterize.
6674         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
6675         * lib/gl_anytree_omap.h: New file.
6676         * modules/avltree-omap: New file.
6677         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
6678         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
6680         array-omap: New module.
6681         * lib/gl_array_omap.h: New file.
6682         * lib/gl_array_omap.c: New file.
6683         * modules/array-omap: New file.
6685         omap: New module.
6686         * lib/gl_omap.h: New file.
6687         * lib/gl_omap.c: New file.
6688         * modules/omap: New file.
6690 2018-12-11  Bruno Haible  <bruno@clisp.org>
6692         hash-set, linkedhash-set: Reduce code duplication.
6693         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
6694         lib/gl_anyhash_set1.h.
6695         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
6696         lib/gl_anyhash_set2.h. Parameterize.
6697         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
6698         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
6699         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
6700         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
6701         * lib/gl_rbtreehash_list.c: Likewise.
6702         * lib/gl_linkedhash_list.c: Likewise.
6703         (hash_resize_after_add): Remove function.
6704         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
6705         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
6706         * gl_hash_set.c: Likewise.
6707         * modules/avltreehash-list (Files, Makefile.am): Update file list.
6708         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
6709         * modules/linkedhash-list (Files, Makefile.am): Likewise.
6710         * modules/linkedhash-set (Files, Makefile.am): Likewise.
6711         * modules/hash-set (Files, Makefile.am): Likewise.
6713 2018-12-11  Bruno Haible  <bruno@clisp.org>
6715         array-set: Optimize.
6716         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
6717         outside the loop, not inside the loop.
6719 2018-12-11  Bruno Haible  <bruno@clisp.org>
6721         times: Fix tests.
6722         * tests/test-times.c (doublecmp): Implement a total order.
6724 2018-12-11  Bruno Haible  <bruno@clisp.org>
6726         array-set, linkedhash-set, hash-set: Fix tests.
6727         * tests/test-array_set.c (cmp_objects_in_array): New function.
6728         (check_equals): Use it.
6729         * tests/test-hash_set.c: Likewise.
6730         * tests/test-linkedhash_set.c: Likewise.
6732 2018-12-08  Bruno Haible  <bruno@clisp.org>
6734         Fix comments.
6735         * lib/gl_list.h (gl_list_free): Clarify what it does.
6736         * lib/gl_oset.h (gl_oset_free): Likewise.
6737         * lib/gl_set.h (gl_set_free): Likewise.
6738         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
6739         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
6740         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
6741         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
6743 2018-12-03  Bruno Haible  <bruno@clisp.org>
6745         hash-set: Add tests.
6746         * tests/test-hash_set.c: New file.
6747         * modules/hash-set-tests: New file.
6749         linkedhash-set: Add tests.
6750         * tests/test-linkedhash_set.c: New file.
6751         * modules/linkedhash-set-tests: New file.
6753         array-set: Add tests.
6754         * tests/test-array_set.c: New file.
6755         * modules/array-set-tests: New file.
6757         xset: New module.
6758         * lib/gl_xset.h: New file.
6759         * lib/gl_xset.c: New file.
6760         * modules/xset: New file.
6762         hash-set: New module.
6763         * lib/gl_hash_set.h: New file.
6764         * lib/gl_hash_set.c: New file.
6765         * modules/hash-set: New file.
6767         linkedhash-set: New module.
6768         * lib/gl_linkedhash_set.h: New file.
6769         * lib/gl_linkedhash_set.c: New file.
6770         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
6771         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
6772         * lib/gl_anyhash_primes.h: New file, extracted from
6773         lib/gl_anyhash_list2.h.
6774         * lib/gl_anyhash_list2.h: Include it.
6775         (primes, next_prime): Remove definitions.
6776         * modules/linkedhash-set: New file.
6777         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
6778         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6779         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
6780         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6781         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
6782         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
6784         array-set: New module.
6785         * lib/gl_array_set.h: New file.
6786         * lib/gl_array_set.c: New file.
6787         * modules/array-set: New file.
6789         set: New module.
6790         * lib/gl_set.h: New file.
6791         * lib/gl_set.c: New file.
6792         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
6793         gl_set.h.
6794         * modules/set: New file.
6796 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
6798         bison: don't force the Yacc mode
6799         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
6800         errors when Bison features are used in the grammar file.  Some of
6801         these features (such as %expect) were flagged non-yacc recently.  Most
6802         of the time, -y is actually used to please Automake's ylwrap which
6803         expects the output to be y.tab.c.
6804         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
6806 2018-12-01  Bruno Haible  <bruno@clisp.org>
6808         gnupload: Document short options.
6809         * build-aux/gnupload (usage): Document the short options.
6811 2018-11-28  Ben Elliston  <bje@gnu.org>
6813         gnupload: Support option -h as alias of --help.
6814         * build-aux/gnupload: Support -h.
6816 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
6818         memrchr: port better to clang
6819         * lib/memrchr.c (__memrchr): Cast to void * instead of to
6820         longword *, to pacify clang -Wcast-align (Bug#33544).
6822 2018-11-29  Eric Blake  <eblake@redhat.com>
6824         docs: mention printf %m considerations
6825         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
6826         is not portable, and is easy enough to work around.
6827         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
6828         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
6829         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
6830         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6831         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6832         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6833         * doc/posix-functions/printf.texi (printf): Likewise.
6834         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
6835         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
6836         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
6837         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6838         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6839         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6840         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6841         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6842         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6843         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
6844         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6845         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6847 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
6849         bitset: rename ebitset/expandable.* as tbitset/table.*
6850         See
6851         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
6852         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
6853         * lib/bitset/table.h, lib/bitset/table.c: these.
6854         Rename all the ebitset* symbols as tbitset*.
6855         Adjust dependencies.
6857 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6859         bitset: check the operations
6860         * tests/test-bitset.c (bitset_random): New.
6861         Use it.
6862         * lib/bitset/expandable.c (ebitset_not): Fix typo.
6864 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6866         bitset: properly use false/true instead of 0/1 for Booleans
6867         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
6868         0/1, as Booleans.
6870 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
6872         bitset: rename BITSET_VARRAY as BITSET_VECTOR
6873         For consistency with the name of the file.
6874         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
6875         * lib/bitset/stats.c, lib/bitset/vector.c
6876         (BITSET_VARRAY): Rename as...
6877         (BITSET_VECTOR): this.
6879 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
6881         strerror_r-posix: memmove, not memcpy
6882         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
6883         since the source and destination might overlap in the call
6884         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
6885         Simplify.
6887 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6889         bitsetv: new module
6890         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
6892 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6894         bitset: add tests and doc
6895         First stabs at providing a documentation and test for the bitset
6896         module.
6897         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
6899 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
6901         bitset: new module
6902         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
6903         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
6904         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
6905         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
6906         * lib/bitset/vector.h, modules/bitset:
6907         New.
6909 2018-11-23  Bruno Haible  <bruno@clisp.org>
6911         localename: Fix gettext test failures on mingw.
6912         * lib/localename.c (gl_locale_name_posix): Convert the result of
6913         gl_locale_name_environ to XPG syntax.
6915 2018-11-23  Karl Berry  <karl@freefriends.org>
6917         * config/srclistvars.txt,
6918         * config/srclist.txt: remove all gettext references;
6919         the gettext maintainers will sync as needed.
6921 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
6923         mktime: add libc-config dependency
6924         I missed this when we synced from glibc.
6925         * modules/mktime (Depends-on): Add libc-config.
6927 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
6929         longlong: fix comment typo
6930         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
6932 2018-11-11  Bruno Haible  <bruno@clisp.org>
6934         havelib: Remove the need to include asm-underscore.m4.
6935         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
6936         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
6937         gl_HOST_CPU_C_ABI.
6938         * modules/havelib (Files): Add host-cpu-c-abi.m4.
6939         (Depends-on): Remove host-cpu-c-abi.
6941 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6943         parse-datetime: simplify test for mktime failure
6944         * lib/parse-datetime.y (mktime_ok): Simplify.
6945         Remove args TZ and T; no longer needed.  Callers changed.
6947         posixtm: simplify test for mktime failure
6948         * lib/posixtm.c (posixtime): Simplify.
6950         nstrftime: simplify test for mktime failure
6951         * lib/nstrftime.c (__strftime_internal): Simplify.
6953 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
6955         gnulib-common.m4: port _Noreturn to C++
6956         Problem reported by Akim Demaille in:
6957         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
6958         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
6959         Merge adjustments from _Noreturn.h and from glibc into the non-C++
6960         version.
6961         * lib/_Noreturn.h: Match gnulib-common.
6963 2018-10-30  Bruno Haible  <bruno@clisp.org>
6965         gnu-make: Fix for NetBSD 8 'make'.
6966         Reported by Reuben Thomas in
6967         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
6968         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
6969         output, ignoring exit codes.
6971 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
6973         maintainer-makefile: fix syntax-check rule for "same.h"
6974         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
6975         for 'same_nameat', too.
6977 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6979         havelib: fix nested ‘configure’ chatter
6980         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
6981         AC_CACHE_CHECK calls, which resulted in confusing output like
6982         “checking for the common suffixes of directories in the library
6983         search path... checking for 64-bit host... no lib,lib”.
6985         backupfile: tweak for better code
6986         * lib/backupfile.c: Sort include directives, and remove
6987         unnecessary <limits.h> include.
6988         (FALLTHROUGH): New macro, copied from other modules.
6989         (backupfile_internal): Use it to avoid code duplication.
6990         This lets GCC 8.2.1 generate better code by inlining the
6991         call to check_extension.
6993 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
6995         backupfile: new dir_fd args
6996         New module opendirat with code taken from fts.
6997         Use this module to let backupfile use a directory file descriptor.
6998         * NEWS: Document the incompatible change.
6999         * lib/backup-find.c (find_backup_file_name):
7000         * lib/backup-rename.c (backup_file_rename):
7001         New arg DIR_FD.
7002         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
7003         (SIZE_MAX): Remove.
7004         Include opendirat.h rather than dirent--.h.
7005         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
7006         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
7007         (backupfile_internal): New arg DIR_FD.  All callers changed.
7008         * lib/fts.c: Include opendirat.h.
7009         (opendirat): Move to opendirat.c.
7010         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
7011         * modules/backupfile (Depends-on): Remove dirfd, opendir.
7012         Add opendirat.
7013         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
7014         Add opendirat.
7016 2018-10-23  Bruno Haible  <bruno@clisp.org>
7018         localename: Simplify support for per-thread locales on Solaris 11.4.
7019         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
7020         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
7021         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
7022         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
7023         specific code.
7024         * lib/localename-table.h: Update comments.
7025         * lib/localename-table.c: Update comments.
7026         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
7027         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
7028         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
7029         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
7030         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
7031         HAVE_NAMELESS_LOCALES here.
7032         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
7033         m4/intlsolaris.m4.
7034         * modules/gettext (Files): Likewise.
7036 2018-10-22  Bruno Haible  <bruno@clisp.org>
7038         std-gnu11: Support Autoconf versions < 2.64.
7039         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
7040         when _AC_DO_LIMIT does not exist.
7042 2018-10-22  Bruno Haible  <bruno@clisp.org>
7044         Assume Autoconf >= 2.63.
7045         * DEPENDENCIES: Mention the requirement.
7047         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
7048         (func_get_filelist): Don't list m4/onceonly.m4 any more.
7049         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
7050         * m4/onceonly.m4: Remove file.
7052         * m4/openmp.m4: Remove file.
7053         * modules/openmp (Files): Remove m4/openmp.m4.
7055         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
7056         htmldir, dvidir, pdfdir, psdir, localedir.
7057         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
7059         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
7060         Autoconf < 2.60.
7061         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
7062         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
7064         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
7065         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
7066         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
7068         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
7069         exists.
7070         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
7072         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
7073         Autoconf < 2.61.
7075         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
7076         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
7077         Autoconf >= 2.52.
7079         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
7080         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
7081         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
7083 2018-10-22  Bruno Haible  <bruno@clisp.org>
7085         Assume Automake >= 1.11.
7086         * m4/configmake.m4: Update comments.
7087         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
7088         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
7089         of 'eval'.
7090         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
7091         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
7092         requires Automake >= 1.11.
7094 2018-10-22  Bruno Haible  <bruno@clisp.org>
7096         localename: Fix typo in comment.
7097         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
7099 2018-10-22  Bruno Haible  <bruno@clisp.org>
7101         Fix failure of 'gnulib-tool --create-testdir' with all modules.
7102         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
7104 2018-10-21  Bruno Haible  <bruno@clisp.org>
7106         locale: Ease integration with GNU libintl.
7107         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
7108         GNULIB_defined_freelocale): New macros.
7110 2018-10-21  Bruno Haible  <bruno@clisp.org>
7112         localename: Fine-tune support for per-thread locales on Solaris 11.4.
7113         * lib/localename-table.h: New file, extracted from lib/localename.c.
7114         * lib/localename-table.c: Likewise.
7115         * lib/localename.c: Include localename-table.h.
7116         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
7117         locale_hash_function instead of pointer_hash.
7118         * modules/localename (Files): Add lib/localename-table.h,
7119         lib/localename-table.c.
7120         (lib_SOURCES): Add localename-table.c.
7121         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
7122         for Solaris 11.4 locale system only on Solaris. Test for it
7123         independently whether getlocalename_l exists.
7124         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
7125         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
7126         HAVE_NAMELESS_LOCALES.
7127         * modules/gettext (Files): Add m4/intlsolaris.m4.
7129 2018-10-21  Bruno Haible  <bruno@clisp.org>
7131         Small update from gettext.
7132         * m4/intl.m4: Update from gettext:
7133         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
7134         mode on AIX.
7135         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
7136         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
7138 2018-10-16  Bruno Haible  <bruno@clisp.org>
7140         mountlist: Remove support for Cray with UNICOS 9.
7141         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
7142         MOUNTED_LISTMNTENT.
7143         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
7145 2018-10-16  Bruno Haible  <bruno@clisp.org>
7147         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
7148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
7149         STAT_STATFS2_FS_DATA.
7150         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
7151         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
7152         MOUNTED_GETMNT.
7153         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
7154         * lib/getloadavg.c (decstation): Remove definition and case.
7155         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
7156         * lib/getgroups.c: Likewise.
7157         * doc/posix-functions/getgroups.texi: Likewise.
7158         * lib/time.in.h: Update comments.
7160 2018-10-16  Bruno Haible  <bruno@clisp.org>
7162         getloadavg: Remove support for ConvexOS.
7163         * lib/getloadavg.c: Remove convex case.
7165 2018-10-16  Bruno Haible  <bruno@clisp.org>
7167         getloadavg: Remove support for Sony NEWS.
7168         * lib/getloadavg.c: Remove sony_news case.
7170 2018-10-16  Bruno Haible  <bruno@clisp.org>
7172         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
7173         * lib/fsusage.c: Remove _SEQUENT_ case.
7174         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
7175         * lib/mountlist.c: Don't test for MNTTABNAME.
7176         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
7177         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
7178         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
7179         * lib/stat-size.h: Don't mention the Sequent bug.
7180         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
7182 2018-10-16  Bruno Haible  <bruno@clisp.org>
7184         fsusage: Remove support for AIX 3.
7185         * lib/fsusage.c: Remove code for AIX 3.
7186         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
7188 2018-10-16  Bruno Haible  <bruno@clisp.org>
7190         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
7191         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
7192         * lib/fsusage.c: Remove code for AIX PS/2.
7193         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
7194         * lib/getloadavg.c: Likewise.
7196 2018-10-16  Bruno Haible  <bruno@clisp.org>
7198         getloadavg: Remove support for HP-UX on m68k.
7199         * lib/getloadavg.c: Remove hp9000s300 case.
7201 2018-10-16  Bruno Haible  <bruno@clisp.org>
7203         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
7204         * lib/fsusage.c: Remove DOLPHIN case.
7205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
7206         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
7208 2018-10-16  Bruno Haible  <bruno@clisp.org>
7210         getloadavg: Remove support for Alliant FX/2800.
7211         * lib/getloadavg.c: Remove alliant case.
7213 2018-10-16  Bruno Haible  <bruno@clisp.org>
7215         getloadavg: Remove support for tek4300.
7216         * lib/getloadavg.c: Remove tek4300 case.
7218 2018-10-16  Bruno Haible  <bruno@clisp.org>
7220         getloadavg: Remove support for Ardent.
7221         * lib/getloadavg.c: Remove ardent case.
7223 2018-10-16  Bruno Haible  <bruno@clisp.org>
7225         mountlist: Remove support for SVR2.
7226         Reported by Andrew Borodin <aborodin@vmail.ru> in
7227         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
7228         * lib/mountlist.c: Remove MOUNTED_FREAD case.
7229         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
7230         MOUNTED_FREAD.
7232 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
7234         libc-config: merge from glibc
7235         * lib/cdefs.h (__glibc_has_attribute): New macro.
7237         regex: depend on libc-config
7238         * modules/regex (Depends-on): Add libc-config.
7239         This is needed after the recent autoupdate from glibc.
7241 2018-10-14  Bruno Haible  <bruno@clisp.org>
7243         localename: Add support for per-thread locales on Solaris 11.4.
7244         * lib/locale.in.h (newlocale, freelocale): New declarations.
7245         (duplocale): Declare also when the 'localename' module requests it.
7246         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
7247         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
7248         (struniq): Update.
7249         (struct locale_categories_names, struct locale_hash_node): New types.
7250         (LOCALE_HASH_TABLE_SIZE): New constant.
7251         (locale_hash_table, locale_lock): New variables.
7252         (pointer_hash, get_locale_t_name): New functions.
7253         (newlocale, duplocale, freelocale): New overridden functions.
7254         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
7255         * m4/intlsolaris.m4: New file.
7256         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
7257         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
7258         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
7259         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
7260         declared.
7261         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
7262         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
7263         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
7264         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
7265         * modules/localename (Files): Add intlsolaris.m4.
7266         (Depends-on): Add 'locale'.
7267         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
7268         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
7269         the signatures.
7271 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
7273         timevar: use gethrxtime to get wall clock time
7274         clock_gettime is not portable.  gethrxtime takes the best available
7275         option to get the wall clock time, including clock_gettime (monotonic
7276         clock), and gettime (non monotonic).
7277         Also, using xtime_t instead of float preserves the precision.
7278         Suggested by Bruno Haible.
7279         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
7280         * modules/timevar (Depends-on): We need gethrxtime.
7281         We no longer use times().
7282         (Link): Update.
7283         * lib/timevar.h (timevar_time_def): Use xtime_t.
7284         * lib/timevar.c (set_to_current_time): Use gethrxtime.
7285         (timevar_print): Instead of checking whether the timings themselves
7286         are large enough for the timevar to be printed, check the percentages.
7288 2018-10-14  Bruno Haible  <bruno@clisp.org>
7290         wcsnrtombs: Work around Solaris 11.4 bug.
7291         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
7292         macro.
7293         (gl_FUNC_WCSNRTOMBS): Invoke it.
7294         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
7296 2018-10-14  Bruno Haible  <bruno@clisp.org>
7298         mbsnrtowcs: Work around Solaris 11.4 bug.
7299         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
7300         macro.
7301         (gl_FUNC_MBSNRTOWCS): Invoke it.
7302         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
7304 2018-10-14  Bruno Haible  <bruno@clisp.org>
7306         doc: Update for Solaris 11.4.
7307         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
7308         mention Solaris 11.4.
7309         * m4/printf.m4: Update comments about Solaris.
7310         * m4/log.m4: Likewise.
7311         * m4/log10.m4: Likewise.
7312         * m4/logb.m4: Likewise.
7313         * m4/logbf.m4: Likewise.
7314         * m4/logbl.m4: Likewise.
7315         * m4/rename.m4: Likewise.
7316         * m4/wcrtomb.m4: Likewise.
7317         * m4/hostent.m4: Likewise.
7318         * m4/servent.m4: Likewise.
7320 2018-10-14  Bruno Haible  <bruno@clisp.org>
7322         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
7323         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
7324         pointer.
7325         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
7326         pointer.
7327         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
7328         pointer.
7329         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
7330         pointer.
7331         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
7332         pointer.
7334 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7336         bootstrap: fix wget command for po files.
7337         * build-aux/bootstrap (po_download_command_format): Fix comment,
7338         and adjust callers.
7340 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7342         timevar: improve the output format
7343         Suggested by Bruno Haible.
7344         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
7345         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
7346         wall, since its resolution is much higher.
7348 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
7350         timevar: expect that getrusage is available.
7351         Don't keep both times and getrusage as backend: both are guaranteed by
7352         gnulib, a single one suffices.  Using getrusage is open to possibly
7353         tracking other types of resources in the future.
7354         * modules/timevar (Depends-on): Add getrusage.
7355         (configure.ac): Remove gl_TIMEVAR.
7356         (Files): Remove m4/timevar.m4.
7357         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
7358         * lib/timevar.h (timevar_enabled): Clarify documentation.
7359         * lib/timevar.c: Remove all the code about times.
7360         Remove all the CPP guards about getrusage: expect it to be present
7361         (courtesy of gnulib).
7363 2018-10-12  Bruno Haible  <bruno@clisp.org>
7365         mountlist: Improve support for Solaris in 64-bit mode.
7366         Reported by David Wood <David.Wood@deshaw.com> in
7367         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
7368         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
7369         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
7370         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
7372 2018-10-12  Bruno Haible  <bruno@clisp.org>
7374         mountlist: Add support for Minix.
7375         Reported by Assaf Gordon in
7376         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
7377         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
7378         AC_CHECK_FUNCS to check for 'getmntinfo'.
7379         * lib/mountlist.c: Update comments.
7381 2018-10-12  Bruno Haible  <bruno@clisp.org>
7383         Make better use of Autoconf.
7384         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
7385         * m4/manywarnings.m4: Likewise.
7386         * m4/manywarnings-c++.m4: Likewise.
7387         * m4/socklen.m4: Likewise.
7388         * m4/sockpfaf.m4: Likewise.
7389         * m4/stdarg.m4: Likewise.
7390         * m4/visibility.m4: Likewise.
7391         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
7392         indentation.
7393         * m4/ls-mntd-fs.m4: Likewise.
7395 2018-10-11  Bruno Haible  <bruno@clisp.org>
7397         mountlist: Modernize platform lists.
7398         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
7399         platforms, deemphasizing the obsolete ones.
7400         * lib/mountlist.c: Likewise.
7402 2018-10-11  Bruno Haible  <bruno@clisp.org>
7404         getprogname: Add support for 32-bit programs on HP-UX.
7405         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
7406         try the similar functions 32-bit programs on 64-bit HP-UX.
7408 2018-10-11  Bruno Haible  <bruno@clisp.org>
7410         getprogname: Work around program name truncation when possible.
7411         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
7412         possibly use pst_cmd instead.
7414 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7416         fts: cleanup after FTS_NOATIME removal
7417         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
7418         (FTS_STOP): Shrink to minimal values.  We don’t need to
7419         worry about binary compatibility in Gnulib, and the old way
7420         of doing things had a hole in the user options that caused
7421         FTS_OPTIONMASK to not work as desired.
7423 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
7425         fts: remove FTS_NOATIME
7426         This reverts commit da4d6974013c822af1498941e32db774b2031765.
7427         We cannot guarantee that O_NOATIME works: e.g. openat fails
7428         with EPERM if the effective user ID of the caller does not match
7429         the owner of the file and the caller is not privileged.
7430         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
7431         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
7432         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
7433         (FTS_OPTIONMASK): Adjust.
7434         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
7435         (fd_ring_check): Likewise.
7437 2018-10-08  Bruno Haible  <bruno@clisp.org>
7439         csharpcomp*, csharpexec*: Remove support for pnet.
7440         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
7441         HAVE_CSCC.
7442         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
7443         Don't test HAVE_CSCC.
7444         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
7445         (compile_csharp_class): Don't invoke it.
7446         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
7447         HAVE_ILRUN.
7448         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
7449         Don't test HAVE_ILRUN.
7450         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
7451         (execute_csharp_program): Don't invoke it.
7452         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
7453         any more.
7455 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
7457         renameatu: prefer renameat2 to syscall
7458         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
7459         Use renameat2 instead of syscall (Bug#32796).
7460         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
7462 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
7464         bootstrap, gnulib-tool: use https instead of insecure rsync
7465         * build-aux/bootstrap (download_po_files, po_download_command_format):
7466         Don't try using rsync; always use wget over https to fetch PO files.
7467         * gnulib-tool (func_import): Likewise.
7468         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7470 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
7472         bootstrap, gnulib-tool: correct the translations wget command
7473         * build-aux/bootstrap (po_download_command_format2): Restrict
7474         recursion to a single level.
7475         * gnulib-tool (func_import): Likewise.
7476         * pygnulib/GLImport.py (GLImport.execute): Likewise.
7478 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
7480         doc: the gnulib snapshots are not maintained
7481         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
7483 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
7485         timevar: add to lib_SOURCES
7486         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
7488 2018-10-07  Bruno Haible  <bruno@clisp.org>
7490         dirent: Update documentation.
7491         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
7493 2018-10-05  Bruno Haible  <bruno@clisp.org>
7495         strpbrk: Make it possible to namespace the defined symbol.
7496         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
7498 2018-10-05  Bruno Haible  <bruno@clisp.org>
7500         strcspn: Make it possible to namespace the defined symbol.
7501         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
7503 2018-10-05  Bruno Haible  <bruno@clisp.org>
7505         raise: Make it possible to namespace the defined symbol.
7506         * lib/raise.c (raise): Undefine only after the replacement function has
7507         been defined.
7508         (raise): Renamed from rpl_raise.
7509         (raise_nothrow): Move to the end of the compilation unit.
7511 2018-10-05  Bruno Haible  <bruno@clisp.org>
7513         memcmp: Make it possible to namespace the defined symbol.
7514         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
7516 2018-10-05  Bruno Haible  <bruno@clisp.org>
7518         explicit_bzero: Make it possible to namespace the defined symbol.
7519         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
7520         glibc.
7522 2018-10-05  Bruno Haible  <bruno@clisp.org>
7524         mkdir-p: Depend on 'mkdir'.
7525         * modules/mkdir-p (Depends-on): Add 'mkdir'.
7527 2018-10-05  Bruno Haible  <bruno@clisp.org>
7529         tempname: Depend on 'mkdir'.
7530         Reported by Maarten Bosmans <mkbosmans@gmail.com>
7531         at <https://savannah.gnu.org/bugs/?33379>.
7532         * modules/tempname (Depends-on): Add 'mkdir'.
7534 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
7536         timevar: rely on gnulib modules for time portability.
7537         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
7538         * m4/timevar.m4: Don't check for clock_t and struct tms,
7539         guaranteed by gnulib.
7540         * lib/timevar.h: Use extern "C" protection.
7541         Include <stdio.h> for FILE.
7542         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
7543         they are guaranteed by gnulib.
7544         Remove uses of clock as (now useless) fallback.
7546 2018-10-04  Bruno Haible  <bruno@clisp.org>
7548         sh-filename: New module.
7549         * m4/sh-filename.m4: New file.
7550         * modules/sh-filename: New file.
7551         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
7552         "/bin/sh".
7553         * tests/test-posix_spawn1.c (main): Likewise.
7554         * tests/test-posix_spawn2.c (main): Likewise.
7555         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
7556         is_envjavac_gcj43): Likewise.
7557         * lib/javaexec.c (execute_java_class): Likewise.
7558         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
7559         * modules/posix_spawnp-tests (Depends-on): Likewise.
7560         * modules/javacomp (Depends-on): Likewise.
7561         * modules/javaexec (Depends-on): Likewise.
7563 2018-10-04  Bruno Haible  <bruno@clisp.org>
7565         spawn-pipe tests: Avoid test failure on native Windows.
7566         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
7567         that fd 2 is closed.
7569 2018-10-04  Bruno Haible  <bruno@clisp.org>
7571         fcntl: Make it possible to namespace the defined symbol.
7572         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
7573         been defined.
7574         (fcntl): Renamed from rpl_fcntl.
7575         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
7576         from fcntl.
7577         (klibc_fcntl): Move to the end of the compilation unit.
7579 2018-10-02  Bruno Haible  <bruno@clisp.org>
7581         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
7582         * tests/test-vasnprintf.c (test_function): Change the test added on
7583         2018-09-23 to check only the 18 most significant digits.
7585         vasnprintf tests: Avoid test failure on Cygwin.
7586         * tests/test-vasnprintf.c (test_function): Change the test added on
7587         2018-09-23 to check only the 42 most significant digits.
7589 2018-10-01  Bruno Haible  <bruno@clisp.org>
7591         mkostemp, mkostemps: Update documentation.
7592         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
7593         * doc/glibc-functions/mkostemps.texi: Likewise.
7595 2018-10-01  Tom Tromey  <tom@tromey.com>
7597         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
7598         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
7599         on OS X.
7601 2018-09-30  Pádraig Brady  <P@draigBrady.com>
7603         hmac-*: refactor to remove repetitive code
7604         * lib/hmac.c: A new parameterized single implementation.
7605         * lib/hmac-md5.c: Define parameters and include implementation.
7606         * lib/hmac-sha1.c: Likewise.
7607         * lib/hmac-sha256.c: Likewise.
7608         * lib/hmac-sha512.c: Likewise.
7609         * modules/crypto/hmac-md5: Reference the new implementation file.
7610         * modules/crypto/hmac-sha1: Likewise.
7611         * modules/crypto/hmac-sha256: Likewise.
7612         * modules/crypto/hmac-sha512: Likewise.
7613         * tests/test-hmac-md5.c: Refactor common code to a single function.
7614         * tests/test-hmac-sha1.c: Likewise.
7615         * tests/test-hmac-sha256.c: Likewise.
7616         * tests/test-hmac-sha512.c: Likewise.
7618 2018-09-30  Zhang Qing  <zhangqingl@126.com>
7620         hmac-sha512: fix hash for keys > blocksize (128 bytes)
7621         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
7622         key length to that output by sha512, not the blocksize.
7623         Otherwise uninitialized data from the stack
7624         is used when computing the hash.
7625         * tests/test-hmac-sha512.c: Add a shortened key test case.
7626         Reported at https://github.com/coreutils/gnulib/pull/5
7628 2018-09-30  Bruno Haible  <bruno@clisp.org>
7630         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
7631         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7632         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
7633         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
7634         'unsigned int' before comparison with an unsigned value.
7636 2018-09-30  Bruno Haible  <bruno@clisp.org>
7638         grantpt: Remove unnecessary dependency.
7639         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
7641 2018-09-30  Bruno Haible  <bruno@clisp.org>
7643         timevar: Small tweaks.
7644         * lib/timevar.h: Fix comments. Add parameter names to function
7645         declarations.
7646         * lib/timevar.c: Include timevar.h immediately after config.h.
7647         * lib/timevar.def: Fix comments.
7648         * modules/timevar (Maintainer): List Akim Demaille.
7650 2018-09-30  Bruno Haible  <bruno@clisp.org>
7652         timevar: Include documentation in gnulib manual.
7653         * doc/timevar.texi: Change node and section name to 'Profiling of
7654         program phases'.
7655         In the code snippets, tweak the #includes and use GNU coding style.
7656         * doc/gnulib.texi: Include timevar.texi.
7658 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
7660         timevar: import from Bison.
7661         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
7662         New files.
7663         * lib/timevar.def: New file.
7664         * doc/timevar.texi: New file.
7666 2018-09-26  Bruno Haible  <bruno@clisp.org>
7668         javacomp-script, javacomp: Add preliminary support for Java 12..17.
7669         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
7670         * lib/javacomp.c (default_target_version): Likewise.
7672 2018-09-26  Bruno Haible  <bruno@clisp.org>
7674         javacomp-script, javacomp: Add support for Java 11.
7675         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
7676         target-version 11.
7677         * lib/javaversion.h: Update comments.
7678         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
7679         source_version_index, get_goodcode_snippet, get_failcode_snippet,
7680         TARGET_VERSION_BOUND, target_version_index,
7681         corresponding_classfile_version): Accept source_version 11 and
7682         target_version 11.
7683         * lib/javacomp.h: Update comments accordingly.
7685 2018-09-23  Bruno Haible  <bruno@clisp.org>
7687         vasnprintf: Fix heap memory overrun bug.
7688         Reported by Ben Pfaff <blp@cs.stanford.edu> in
7689         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
7690         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
7691         memory.
7692         * tests/test-vasnprintf.c (test_function): Add another test.
7694 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
7696         maint: mktime.c now shared with glibc
7697         * config/srclist.txt: intprops.h, timegm.c and mktime.c
7698         are now the same in Gnulib and glibc.
7700         mktime: fix _LIBC typo
7701         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
7703 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7705         dfa: optimization for state merge
7706         * lib/dfa.c (merge2): New function.
7707         (merge_nfa_state): Use it.
7709 2018-09-18  Jim Meyering  <meyering@fb.com>
7711         dfa: trivial comment fix: s/is/if/
7712         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
7714 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7716         dfa: use more-informative function name
7717         * lib/dfa.c (maybe_disable_superset_dfa):
7718         Rename from dfautf8noss.  Use change.
7720         dfa: tweak allocation performance
7721         * lib/dfa.c (merge_nfa_state, dfaoptimize):
7722         Prefer ptrdiff_t for indexes some more.
7723         Use char for flags, as it’s wide enough.
7724         Allocate queue and flags together, with one malloc call.
7725         No need to use xnmalloc since the multiplication and
7726         addition cannot overflow (it’s already been checked by
7727         earlier allocation).  Prefer memset to open-coding.
7729         dfa: prune states as we go
7730         * lib/dfa.c (prune): Remove.
7731         dfa: reorder enum for efficiency
7732         (merge_nfa_state): Prune as we go instead of at the end.
7733         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
7735         * lib/dfa.c (END): Now -1 again.  Reorder other elements
7736         of the enumeration to make it easier for GCC to generate
7737         efficient code by using fewer comparisons to check for
7738         ranges of values.
7739         (atom): Take advantage of the reordering.
7741 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
7743         dfa: optimize alternation in NFA
7744         Even when similar states exist in alternation, the DFA treats them
7745         as separate items, which may complicate the transition in NFA and
7746         cause slowdown.  This change assembles the states into one.  For
7747         example, ab|ac is changed into a(b|c).  This change speeds-up
7748         matching for many branched patterns.  For example, grep speeds up
7749         more than 30× in:
7751           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
7752           time -p env LC_ALL=C grep -vf in in
7754         * lib/dfa.c (prune): New function.
7755         (merge_nfa_state): New function.  It merges similar NFA states.
7756         (dfaoptimize): New function.  It seeks merged and removed nodes.
7757         (dfaanalyze): Call new function.
7758         (dfautf8noss): Change name from dfaoptimize because of addition of new
7759         function.
7760         (dfacomp): Update caller.
7762         dfa: simplify initial state
7763         Simplifying the initial state enables easier optimization of the NFA.
7764         * lib/dfa.c (enum token): Add new element BEG.
7765         (prtok): Adjust due to adding element BEG.
7766         (dfaparse): Put BEG at a head of tokens.
7767         (state_index): Adjust due to adding element BEG.
7768         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
7769         build initial state.
7770         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
7772 2018-09-18  Bruno Haible  <bruno@clisp.org>
7774         file-has-acl: Fix test failure on Cygwin 2.9.
7775         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
7776         * lib/acl-internal.h: Likewise.
7777         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
7778         * lib/acl-internal.c: Update comments regarding Cygwin.
7779         * lib/acl_entries.c: Likewise.
7780         * lib/file-has-acl.c: Likewise.
7781         (file_has_acl): For Cygwin, use a different way to determine whether
7782         the "default" ACL of a directory is nontrivial.
7783         * lib/get-permissions.c: Update comments regarding Cygwin.
7784         * lib/set-permissions.c: Likewise.
7786 2018-09-18  Bruno Haible  <bruno@clisp.org>
7788         stat-time tests: Fix test failure on Cygwin.
7789         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
7791 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7793         doc: OS X 10.11 lacked ns time functions
7794         According to <https://github.com/zeromq/libzmq/issues/2175>,
7795         nanosecond-resolution timestamp functions were introduced
7796         in macOS 10.12, so document the last version (OS X 10.11)
7797         where they were absent.
7799         gettime: nanotime never existed
7800         Problem reported by Bruno Haible in:
7801         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
7802         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
7803         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
7805 2018-09-18  Bruno Haible  <bruno@clisp.org>
7807         doc: Update statement about target platforms.
7808         Reported by Simon Sobisch.
7809         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
7810         restrictions on MSVC versions.
7812 2018-09-18  Bruno Haible  <bruno@clisp.org>
7814         posix_spawn tests: Fix link error on 64-bit Cygwin.
7815         * tests/test-posix_spawn1.c (environ): Remove declaration.
7816         * tests/test-posix_spawn2.c (environ): Likewise.
7817         * tests/test-posix_spawn3.c (environ): Likewise.
7818         * tests/test-posix_spawn4.c (environ): Likewise.
7819         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
7820         * modules/posix_spawnp-tests (Depends-on): Likewise.
7822 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
7824         timespec: new function current_timespec
7825         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
7826         and don’t worry about it failing on a CLOCK_REALTIME arg.
7827         POSIX requires it to succeed and I don’t know of any
7828         counterexamples where the fallbacks would work.
7829         (current_timespec): New function, taken from Emacs.  It is more
7830         convenient than gettime, and can help register allocation.
7831         * lib/timespec.h: Include arg-nonnull.h.
7832         (current_timespec): New declaration.
7833         (gettime, settime): Declare args to be nonnull.
7834         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
7836 2018-09-16  Bruno Haible  <bruno@clisp.org>
7838         setlocale: Improve locale handling on macOS 10.12 or newer.
7839         * lib/setlocale.c: Include header files for CoreFoundation. Declare
7840         gl_locale_name_canonicalize.
7841         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
7842         and LC_MESSAGES.
7843         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
7845 2018-09-16  Bruno Haible  <bruno@clisp.org>
7847         Update list of locale names with scripts on macOS.
7848         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
7849         match Mac OS X 10.13 and recent glibc.
7851 2018-09-16  Bruno Haible  <bruno@clisp.org>
7853         gettext: Use newer macOS APIs when possible.
7854         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
7855         CFLocaleCopyPreferredLanguages.
7857 2018-09-16  Bruno Haible  <bruno@clisp.org>
7859         localename: Revisit macOS specific code.
7860         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
7861         Fix comments about Mac OS X versions.
7863 2018-09-15  Bruno Haible  <bruno@clisp.org>
7865         setlocale: Improve support for locales not supported by libc.
7866         Reported by Dapeng Gao <peter@dpgao.cc> at
7867         <https://savannah.gnu.org/bugs/?54479>.
7868         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
7869         (libintl_setlocale): Use a more error-tolerant strategy when the locale
7870         to be set is not supported by libc: Emit warnings instead of failing.
7872 2018-09-15  Bruno Haible  <bruno@clisp.org>
7874         strstr, strcasestr: Add workaround against glibc-2.28 bug.
7875         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
7876         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
7877         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
7878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
7879         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
7880         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
7881         * doc/glibc-functions/strcasestr.texi: Likewise.
7883 2018-09-14  Bruno Haible  <bruno@clisp.org>
7885         doc: Fix bottom of top-level page.
7886         Reported by Akim Demaille <akim.demaille@gmail.com> in
7887         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
7888         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
7889         mode.
7890         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
7891         accordingly.
7893 2018-09-12  Bruno Haible  <bruno@clisp.org>
7895         Add test case from a recent glibc bug.
7896         * tests/test-strstr.c (main): Add test of long needle.
7897         * tests/test-strcasestr.c (main): Likewise.
7898         * tests/test-c-strstr.c (main): Likewise.
7899         * tests/test-c-strcasestr.c (main): Likewise.
7900         * tests/test-memmem.c (main): Likewise.
7902 2018-09-12  Bruno Haible  <bruno@clisp.org>
7904         Apply Eric Blake's improvements from 2011-02-25 to more tests.
7905         * tests/test-c-strstr.c (main): Add the same tests here as well.
7907 2018-09-12  Bruno Haible  <bruno@clisp.org>
7909         Apply Jim Meyering's fix from 2015-01-11 to more tests.
7910         * tests/test-memmem.c (main): Free haystack.
7911         * tests/test-strcasestr.c (main): Likewise.
7912         * tests/test-c-strcasestr.c (main): Likewise.
7914 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
7916         xstrtol: fix missing-TYPE_SIGNED typo
7917         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
7919 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
7921         timespec: fix resolution confusion
7922         In normal usage, clock resolution is given in seconds, but the
7923         code was mistakenly using inverse seconds and calling it
7924         “resolution”.  Fix this, partly by renaming two identifiers.
7925         The old names will be kept for a bit, to ease transition.
7926         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
7927         New constants, replacing TIMESPEC_RESOLUTION and
7928         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
7929         All uses changed.
7931 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
7933         mktime: simplify in prep for glibc merge
7934         * lib/mktime.c, lib/timegm.c [_LIBC]:
7935         Include mktime-internal.h (a small file just for glibc)
7936         instead of using a typedef.
7938 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
7940         intprops: minor clarification of code
7941         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
7942         Use _GL_INT_CONVERT rather than reinventing it.
7944 2018-09-07  Bruno Haible  <bruno@clisp.org>
7946         Fix a comment.
7947         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
7949 2018-09-07  Bruno Haible  <bruno@clisp.org>
7951         posix_spawn_file_actions_addchdir: Add tests.
7952         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
7953         * tests/test-posix_spawn4.c: New file.
7954         * modules/posix_spawn_file_actions_addchdir-tests: New file.
7956 2018-09-07  Bruno Haible  <bruno@clisp.org>
7958         posix_spawn_file_actions_addchdir: New module.
7959         Suggested by Eric Blake in
7960         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
7961         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
7962         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
7963         union member 'chdir_action'.
7964         * lib/spawn_faction_addchdir.c: New file.
7965         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
7966         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
7967         HAVE_WORKING_POSIX_SPAWN.
7968         * lib/spawn_faction_adddup2.c: Likewise.
7969         * lib/spawn_faction_addopen.c: Likewise.
7970         * m4/posix_spawn_faction_addchdir.m4: New file.
7971         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
7972         'posix_spawn_file_actions_addchdir' is present and whether
7973         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
7974         instead of HAVE_WORKING_POSIX_SPAWN.
7975         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
7976         posix_spawn_file_actions_addchdir is declared.
7977         (gl_SPAWN_H_DEFAULTS): Initialize
7978         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7979         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7980         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
7981         * modules/spawn (Makefile.am): Substitute
7982         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7983         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
7984         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
7985         * modules/posix_spawn_file_actions_addchdir: New file.
7986         * modules/posix_spawn_file_actions_addclose (Depends-on,
7987         configure.ac): Test also REPLACE_POSIX_SPAWN.
7988         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
7989         configure.ac): Likewise.
7990         * modules/posix_spawn_file_actions_addopen (Depends-on,
7991         configure.ac): Likewise.
7992         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
7993         signature.
7994         * doc/posix-functions/posix_spawn.texi: Mention the new module.
7995         * doc/posix-functions/posix_spawnp.texi: Likewise.
7997 2018-09-06  Bruno Haible  <bruno@clisp.org>
7999         stddef: Override max_align_t on NetBSD 8.0/x86.
8000         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
8001         the value of __alignof__ (max_align_t).
8002         * doc/posix-headers/stddef.texi: Mention the issue.
8004 2018-09-06  Bruno Haible  <bruno@clisp.org>
8006         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
8007         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
8008         system fcntl.
8009         * doc/posix-functions/fcntl.texi: Document the issue.
8011 2018-09-06  Bruno Haible  <bruno@clisp.org>
8013         count-trailing-zeros tests: Rely on limits-h module.
8014         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
8015         definition.
8016         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
8018 2018-09-06  Bruno Haible  <bruno@clisp.org>
8020         count-leading-zeros tests: Rely on limits-h module.
8021         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
8022         definition.
8023         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
8025 2018-09-06  Bruno Haible  <bruno@clisp.org>
8027         count-one-bits tests: Rely on limits-h module.
8028         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
8029         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
8031 2018-09-06  Bruno Haible  <bruno@clisp.org>
8033         xstrtoll: Rely on limits-h module.
8034         * lib/xstrtol.c: Don't include intprops.h.
8035         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
8036         * modules/xstrtol (Depends-on): Remove 'intprops'.
8037         * modules/xstrtoll (Depends-on): Add 'limits-h'.
8039 2018-09-06  Bruno Haible  <bruno@clisp.org>
8041         strtoll, strtoull: Rely on limits-h module.
8042         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
8043         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
8044         * modules/strtoll (Depends-on): Add limits-h.
8045         * modules/strtoull (Depends-on): Likewise.
8047 2018-09-06  Bruno Haible  <bruno@clisp.org>
8049         intprops tests: Fix compilation error with pre-C99 compiler.
8050         * tests/test-intprops.c (verify_stmt): New macro.
8051         (VERIFY, main): Use it.
8053 2018-09-06  Bruno Haible  <bruno@clisp.org>
8055         limits-h: Provide numerical limits macros.
8056         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
8057         IRIX and for GCC.
8058         (WORD_BIT, LONG_BIT): Define.
8059         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
8060         <limits.h> does not define LLONG_MAX or WORD_BIT.
8061         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
8062         TYPE_MAXIMUM): New macros, from intprops.h.
8063         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
8064         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
8065         provides.
8067 2018-09-05  Bruno Haible  <bruno@clisp.org>
8069         fcntl: Don't access nonexistent optional argument.
8070         Reported by Frank Busse <f.busse@imperial.ac.uk> in
8071         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
8072         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
8073         don't consume an argument. For actions that take an 'int' argument,
8074         consume an 'int' argument.
8076 2018-09-05  Eric Blake  <eblake@redhat.com>
8078         doc: mention environ pitfall
8079         * doc/posix-functions/environ.texi (environ): Assigning NULL to
8080         environ is a glibc extension.
8082 2018-09-03  Bruno Haible  <bruno@clisp.org>
8084         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
8085         Reported by Antoine Luong <antoine.luong@c-s.fr> in
8086         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
8087         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
8088         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
8089         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
8091 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
8093         mktime: fix unlikely race+overflow bug
8094         Problem reported by Alexandre Oliva in:
8095         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
8096         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
8097         to avoid an unlikely race if the compiler delays a load and
8098         if this cascades into a signed integer overflow.
8100 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
8102         mktime, timegm: simplify glibc time64_t
8103         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
8104         Now long int, not time_t, since long int is the longstanding type
8105         for this in glibc and there is no need to change it even if time_t
8106         becomes 64 bits - even int would do, though this would be a change
8107         to the glibc generated code.  When this change is merged into
8108         glibc, it should simplify the time_t vs time64_t situation.
8110         mktime, timegm: simplify merge to glibc
8111         Move code around to make a merge to glibc easier to audit.
8112         This should not change behavior.
8113         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
8114         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
8115         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
8116         simplify later conditionals; default the others to zero.  In uses
8117         of these conditionals, explicitly spell out how _LIBC affects
8118         things, so it’s easier to review from a glibc viewpoint.
8119         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
8120         compartmentalize tzset issues.  Move system-dependent tzsettish
8121         code here from mktime.
8122         (mktime): Move tzsettish code to my_tzset, and move
8123         localtime_offset to within mktime so that it doesn’t
8124         need a separate ifdef.
8126 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
8128         intprops: avoid evaluation of some expressions
8129         This makes EXPR_SIGNED (e) easier to use, as it no longer
8130         evaluates the expression E.  Formerly, E was required to be free
8131         of side effects.
8132         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
8133         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
8134         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
8136 2018-08-23  Bruno Haible  <bruno@clisp.org>
8138         getcwd: Add cross-compilation guesses.
8139         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
8140         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
8141         Based on a patch by Paul Eggert.
8142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
8143         guesses for all GNU systems.
8145 2018-08-19  Bruno Haible  <bruno@clisp.org>
8147         glob-h: Formalize side effects from other modules.
8148         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
8149         * m4/glob.m4 (gl_GLOB): Invoke it.
8151         fnmatch-h: Formalize side effects from other modules.
8152         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
8153         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
8155         limits-h: Formalize side effects from other modules.
8156         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
8157         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
8159 2018-08-19  Bruno Haible  <bruno@clisp.org>
8161         getpass: Move declaration to <unistd.h>.
8162         * lib/unistd.in.h (getpass): New declaration.
8163         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
8164         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
8165         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
8166         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
8167         On glibc systems, don't set REPLACE_GETPASS to 1.
8168         * modules/getpass (Depends-on): Add 'unistd'.
8169         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
8170         (Include): Specify <unistd.h> instead of "getpass.h".
8171         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
8172         (configure.ac): Sync with the configure.ac section of modules/getpass.
8173         (Include): Specify <unistd.h> instead of "getpass.h".
8174         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
8175         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
8176         REPLACE_GETPASS.
8177         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
8178         REPLACE_GETPASS.
8179         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
8180         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
8181         and musl.
8182         * NEWS: Mention the change.
8184 2018-08-19  Bruno Haible  <bruno@clisp.org>
8186         glob: Fix over-optimization due to attribute __nonnull__.
8187         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
8189 2018-08-19  Bruno Haible  <bruno@clisp.org>
8191         glob: Fix another compilation error when glob.h is not replaced.
8192         Reported by Reuben Thomas <rrt@sc3d.org> in
8193         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
8194         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
8195         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
8197 2018-08-18  Bruno Haible  <bruno@clisp.org>
8199         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
8200         Reported by Reuben Thomas <rrt@sc3d.org> in
8201         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
8202         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
8203         in config.h.
8205 2018-08-18  Bruno Haible  <bruno@clisp.org>
8207         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
8208         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
8209         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
8210         Solution proposed by Eli Zaretskii.
8211         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
8212         * lib/gettimeofday.c (GetProcAddress): Likewise.
8213         * lib/link.c (GetProcAddress): Likewise.
8214         * lib/physmem.c (GetProcAddress): Likewise.
8215         * lib/poll.c (GetProcAddress): Likewise.
8216         * lib/select.c (GetProcAddress): Likewise.
8217         * lib/stat-w32.c (GetProcAddress): Likewise.
8219 2018-08-18  Bruno Haible  <bruno@clisp.org>
8221         glob: Fix another compilation error when glob.h is not replaced.
8222         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
8223         * lib/globfree.c: Include <libc-config.h>.
8225 2018-08-18  Bruno Haible  <bruno@clisp.org>
8227         glob: Fix compilation error when glob.h is not replaced.
8228         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
8229         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
8230         * lib/glob_pattern_p.c: Include <libc-config.h>.
8231         * modules/glob (Depends-on): Add libc-config.
8233 2018-08-18  Bruno Haible  <bruno@clisp.org>
8235         scratch_buffer: Add tests.
8236         * tests/test-scratch-buffer.c: New file.
8237         * modules/scratch_buffer-tests: New file.
8239 2018-08-18  Bruno Haible  <bruno@clisp.org>
8241         scratch_buffer: Fix include file.
8242         Reported by Reuben Thomas <rrt@sc3d.org> in
8243         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
8244         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
8245         double-inclusion guard.
8247 2018-08-18  Bruno Haible  <bruno@clisp.org>
8249         glob-h: Revert Paul Eggert's revert.
8250         * m4/glob_h.m4: Revert to previous state.
8251         * modules/glob-h: Likewise.
8253 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
8255         glob-h: always build glob.h
8256         This works around a problem reported by Reuben Thomas in:
8257         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
8258         This workaround always builds glob.h, even on platforms that
8259         do not need it; perhaps this could be improved someday.
8260         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
8261         is always created now.
8262         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
8264 2018-08-13  Bruno Haible  <bruno@clisp.org>
8266         monetary: Simplify m4 code.
8267         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
8268         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
8270 2018-08-13  Bruno Haible  <bruno@clisp.org>
8272         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
8273         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
8274         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
8275         and by Paul J. Lucas <paul@lucasmail.org> in
8276         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
8277         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
8279 2018-08-11  Bruno Haible  <bruno@clisp.org>
8281         setlocale: Trivial simplification.
8282         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
8284 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
8286         verify: port 'assume' to traditional tools
8287         * lib/verify.h (assume): Port better to Oracle Studio 12.6
8288         and other tools that use /*NOTREACHED*/ comments.
8290 2018-08-10  Bruno Haible  <bruno@clisp.org>
8292         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
8293         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
8294         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
8295         'fnmatch-gnu' is in use.
8297 2018-08-07  Bruno Haible  <bruno@clisp.org>
8299         glob-h: Add tests.
8300         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
8301         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
8302         tests/test-glob-h.c.
8303         * modules/glob-h-tests: New file.
8304         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
8305         conditions.
8306         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
8307         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
8309 2018-08-07  Bruno Haible  <bruno@clisp.org>
8311         glob-h: New module.
8312         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
8313         replacements.
8314         * lib/glob.c: Include <config.h>.
8315         * m4/glob_h.m4: New file.
8316         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
8317         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
8318         REPLACE_GLOB_PATTERN_P as appropriate.
8319         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
8320         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
8321         * modules/glob-h: New file.
8322         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
8323         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
8324         lstat, sys_stat. Change conditions.
8325         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
8326         REPLACE_GLOB_PATTERN_P. Set module indicator.
8327         (Makefile.am): Remove code that is moved to glob-h.
8328         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
8329         * modules/posixcheck (Depends-on): Add glob-h.
8331 2018-08-06  Bruno Haible  <bruno@clisp.org>
8333         Force generation of substitute .h file when C++ support is enabled.
8334         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
8335         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
8336         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
8337         FNMATCH_H to non-empty.
8338         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
8339         ICONV_H to non-empty.
8340         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
8341         MONETARY_H to non-empty.
8342         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
8343         non-empty.
8345 2018-08-06  Bruno Haible  <bruno@clisp.org>
8347         fnmatch-h: Fix test compilation error on mingw (regression from today).
8348         * lib/fnmatch.in.h: Fix conditions.
8350 2018-08-06  Bruno Haible  <bruno@clisp.org>
8352         sys_resource: Relicense under LGPLv2+.
8353         John Malmberg's approval is in
8354         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
8355         * modules/sys_resource (License): Change to LGPLv2+.
8357 2018-08-06  Bruno Haible  <bruno@clisp.org>
8359         fnmatch-h: Add tests.
8360         * tests/test-fnmatch-h.c: New file.
8361         * modules/fnmatch-h-tests: New file.
8362         * tests/test-fnmatch-h-c++.cc: New file.
8363         * modules/fnmatch-h-c++-tests: New file.
8365 2018-08-06  Bruno Haible  <bruno@clisp.org>
8367         fnmatch-h: New module.
8368         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
8369         replacements.
8370         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
8371         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
8372         'posixcheck' warning.
8373         * m4/fnmatch_h.m4: New file.
8374         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
8375         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
8376         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
8377         as appropriate.
8378         * modules/fnmatch-h: New file.
8379         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
8380         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
8381         conditions.
8382         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
8383         indicator.
8384         (Makefile.am): Remove code that is moved to fnmatch-h.
8385         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
8386         REPLACE_FNMATCH.
8387         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
8388         * modules/posixcheck (Depends-on): Add fnmatch-h.
8390 2018-08-06  Bruno Haible  <bruno@clisp.org>
8392         Enable more C++ tests.
8393         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
8394         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
8395         * modules/strings-tests (Depends-on): Add strings-c++-tests.
8396         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
8397         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
8399 2018-08-06  Bruno Haible  <bruno@clisp.org>
8401         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
8402         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
8403         getopt.h.
8404         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
8406 2018-08-05  Bruno Haible  <bruno@clisp.org>
8408         utime-h: Generate header file when module 'posixcheck' is in use.
8409         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
8410         UTIME_H to non-empty.
8412 2018-08-05  Bruno Haible  <bruno@clisp.org>
8414         monetary: Generate header file when module 'posixcheck' is in use.
8415         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
8416         use, set MONETARY_H to non-empty.
8418 2018-08-05  Bruno Haible  <bruno@clisp.org>
8420         iconv-h: Generate header file when module 'posixcheck' is in use.
8421         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
8422         set ICONV_H to non-empty.
8424 2018-08-05  Bruno Haible  <bruno@clisp.org>
8426         Optimize the "checking whether ... is declared without a macro" checks.
8427         Suggested by Paul Eggert in
8428         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
8429         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
8430         Gnulib module 'posixcheck' is not in use.
8432 2018-08-05  Bruno Haible  <bruno@clisp.org>
8434         iconv-h: Enable 'posixcheck' warnings.
8435         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
8436         iconv_open.
8437         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
8439 2018-08-05  Bruno Haible  <bruno@clisp.org>
8441         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
8442         * m4/extern-inline.m4: Add more comments.
8443         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
8444         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
8445         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
8447 2018-08-04  Bruno Haible  <bruno@clisp.org>
8449         New module 'posixcheck'.
8450         * modules/posixcheck: New file.
8451         * m4/posixcheck.m4: New file.
8452         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
8453         (Which modules?): Reference it.
8455 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
8457         dfa: fix memory leak
8458         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
8460 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
8462         ieee754-h: new module
8463         It looks like Emacs can use this for some NaN processing.
8464         Emacs uses it only on double NaNs so it should be safe.
8465         * MODULES.html.sh (func_all_modules): Add ieee754-h.
8466         * config/srclist.txt: Mention ieee754.h in a comment.
8467         * doc/glibc-headers/ieee754.texi (ieee754.h):
8468         Gnulib now has a substitute that should work
8469         except for long double and for non-IEEE platforms.
8470         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
8471         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
8473 2018-07-27  Bruno Haible  <bruno@clisp.org>
8475         iswcntrl: Mention minor problem on macOS.
8476         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
8478 2018-07-26  Colin Watson  <cjwatson@debian.org>
8480         bootstrap, gnulib-tool: fix translations rsync
8481         Previously, we created files such as $pobase/Makefile.in.in and then the
8482         subsequent rsync would immediately delete them.
8483         * build-aux/bootstrap (po_download_command_format): Avoid deleting
8484         non-.po files in target directory when rsyncing translations.
8485         * gnulib-tool (func_import): Likewise.
8486         * pygnulib/GLImport.py (GLImport.execute): Likewise.
8488 2018-07-25  Jim Meyering  <meyering@fb.com>
8490         bootstrap: reinstate definition fo gnulib_mk.
8491         That variable is used at least by cppi.
8492         * build-aux/bootstrap (gnulib_mk): Restore definition.
8493         This reverts the deletion from v0.1-1844-gc66dba9ba.
8495 2018-07-23  Bruno Haible  <bruno@clisp.org>
8497         doc: For module names, use texinfo markup @code{} or @samp{}.
8498         * doc/alloca.texi: Mark gnulib module names with @code.
8499         * doc/alloca-opt.texi: Likewise.
8500         * doc/quote.texi: Likewise.
8501         * doc/posix-functions/freopen.texi: Likewise.
8502         * doc/posix-functions/open.texi: Likewise.
8503         * doc/posix-functions/readlink.texi: Likewise.
8504         * doc/posix-functions/readlinkat.texi: Likewise.
8505         * doc/posix-functions/stdout.texi: Likewise.
8506         * doc/posix-functions/stderr.texi: Likewise.
8507         * doc/posix-functions/unlink.texi: Likewise.
8508         * doc/posix-functions/unlinkat.texi: Likewise.
8509         * doc/posix-functions/utime.texi: Likewise.
8510         * doc/posix-functions/utimensat.texi: Likewise.
8511         * doc/posix-functions/utimes.texi: Likewise.
8512         * doc/posix-headers/stdint.texi: Likewise.
8513         * doc/glibc-functions/futimesat.texi: Likewise.
8514         * doc/glibc-functions/lutimes.texi: Likewise.
8515         * doc/glibc-functions/memmem.texi: Likewise.
8517 2018-07-23  Werner LEMBERG  <wl@gnu.org>
8519         doc: Avoid some overfull lines in the TeX output.
8520         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
8521         @example.
8522         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
8523         newline before the long URL.
8524         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
8525         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
8526         Add line breaks in code snippets.
8528 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
8530         hard-locale: simplify by removing hard-locale.m4
8531         * m4/hard-locale.m4: Remove.
8532         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
8533         (configure.ac): Do not call gl_HARD_LOCALE.
8535         gnulib-tool: limit line length for git send-email
8536         * gnulib-tool (func_import): Break actioncmd log line
8537         into multiple lines.
8539 2018-07-16  Bruno Haible  <bruno@clisp.org>
8541         ffs: Ensure declaration on mingw.
8542         Reported by Daniel P. Berrangé <berrange@redhat.com>
8543         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
8544         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
8545         also declared.
8547 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
8549         regex-tests: add dependency
8550         * modules/regex-tests (Depends-on): Add gettext-h.
8551         This is needed given the recent changes to regex,
8552         which no longer depends on gettext-h.
8554 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8556         regex: now in sync with glibc
8557         * config/srclist.txt: Gnulib and glibc regex code
8558         are synchronized again.
8560 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8562         renameatu: rename from renameat2
8563         It's looking like Glibc will add a renameat2 function
8564         that is incompatible with Gnulib renameat2; see:
8565         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
8566         To help avoid future confusion, rename renameat2 to something else.
8567         Use the name 'renameatu', as the Gnulib function is close to the
8568         Glibc function.  Perhaps someday there will also be a renameat2
8569         Gnulib module, which mimicks the future glibc renameat2, but that
8570         can wait as nobody seems to need such a module now.
8571         * NEWS: Mention this.
8572         * lib/renameatu.c: Rename from lib/renameat2.c.
8573         * lib/renameatu.h: Rename from lib/renameat2.h.
8574         * modules/renameatu: Rename from modules/renameat2.
8575         * modules/renameatu-tests: Rename from modules/renameat2-tests.
8576         All uses of "renameat2" in identifiers or file name
8577         changed to "renameatu", except for two instances in
8578         lib/renameatu.c that deal with the Linux kernel's
8579         renameat2 syscall.
8581 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
8583         gnulib-tool: minor tweaks for --gnu-make
8584         * gnulib-tool: Do not allow --gnu-make in test modes,
8585         since they all require automake.
8586         (func_emit_lib_Makefile_am): Don’t emit automake comment
8587         if --gnu-make.
8589         regex: work around conditional-dependencies glitch
8590         * modules/regex (Depends-on): Add langinfo.
8591         Without this change, I had problems building an experimental
8592         version of GNU Emacs.  The symptom of the bug was a message
8593         ‘./configure: line 12726: test: =: unary operator expected’.
8594         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
8595         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
8596         was unset.  Although gl_FUNC_NL_LANGINFO has
8597         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
8598         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
8599         --conditional-dependencies sometimes arranges for the
8600         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
8601         code.  Since the regex code includes <langinfo.h> it should be
8602         depending on the langinfo module anyway, and this happens to work
8603         around the bug, so install that as a workaround for now.  To
8604         reproduce the original problem, run the following shell script on
8605         the version of Gnulib just before this patch was installed.
8606                 rm -fr foo
8607                 mkdir foo
8608                 cat >foo/configure.ac <<'EOF'
8609                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
8610                 gl_EARLY
8611                 gl_INIT
8612                 AC_OUTPUT
8613                 EOF
8614                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
8615                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
8616                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
8617                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
8618                 cd foo
8619                 aclocal -I m4
8620                 autoconf
8621                 ./configure --with-included-regex
8623 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8625         wchar: fix bug when checking for ‘inline’
8626         I discovered this when looking into using the regex module
8627         with Emacs.
8628         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
8629         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
8630         conftest1.c and conftest2.c but these files were not created.
8631         As far as I can see, this check never worked and nobody reported
8632         it until now, which is a bit worrisome.
8634 2018-06-30  Jim Meyering  <meyering@fb.com>
8636         bootstrap: s/--option val/--option=val/
8637         * build-aux/bootstrap (gnulib_tool_options): Change the
8638         spelling of "--option val" pairs to "--option=val", for
8639         aesthetics, and also so that this file no longer triggers
8640         a common help2man syntax-check warning when copied into
8641         projects like grep, gzip, etc.
8643 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
8645         manywarnings: omit -Wswitch-default
8646         This should make things more consistent, as we already ignore
8647         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
8648         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
8649         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
8650         Add -Wswitch-default.
8651         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
8652         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
8653         Remove -Wswitch-default.
8655         regex: revert most trimming
8656         Problems reported by Bruno Haible in:
8657         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
8658         * modules/regex (Depends-on): Add lock, memcmp, memmove,
8659         and wctype back in.  lock because regex users shouldn’t
8660         need to know that regex needs locking, and the rest because
8661         gnulib-tool should ordinarily ignore them anyway.
8663 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8665         regex: trim module dependencies
8666         * modules/regex (Depends-on): Remove gettext-h and lock,
8667         since the regex code should work OK without these modules,
8668         and Emacs uses it that way.  Also remove memcmp, memmove,
8669         and wctype, as these modules are obsolete and should not be
8670         needed any more.
8672 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
8674         regex: glibc does not use intprops.h
8675         Maybe we can talk glibc into using intprops.h someday, but
8676         now doesn’t seem to be a good time.
8677         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
8678         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
8679         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
8681 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
8683         regex: port to recently proposed glibc regex merge
8684         This patch is inspired by Adhemerval Zanella's recent proposal
8685         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
8686         to merge glibc and Gnulib regex.  It aims to simplify the merge on
8687         the glibc side, without keeping Gnulib portable.
8688         * lib/regex.h: Fix a problem with glibc installed-header checking,
8689         as follows:
8690         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
8691         (_Restrict_arr_): Prefer __restrict_arr if defined,
8692         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
8693         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
8694         (build_wcs_upper_buffer, build_upper_buffer)
8695         (re_string_translate_buffer, re_string_context_at):
8696         Move decls here from lib/regex_internal.h, for glibc internal tests.
8697         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
8698         glibc BZ #18496.
8699         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
8700         -Wunused-value.
8701         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
8702         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
8703         (bitset_mask): Now static inline, and without any __attribute__
8704         ((unused)) decoration, for glibc internal tests.
8706 2018-06-25  Bruno Haible  <bruno@clisp.org>
8708         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
8709         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
8710         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
8711         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
8712         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
8713         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
8714         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
8715         / -lthread / -lpth does not get optimized away by a preceding
8716         --as-needed option.
8718 2018-06-25  Bruno Haible  <bruno@clisp.org>
8720         Continue to use spaces for indentation, not tabs.
8721         * MODULES.html.sh: Untabify.
8722         * doc/regex.texi: Likewise.
8723         * lib/acl-internal.c: Likewise.
8724         * lib/dfa.c: Likewise.
8725         * lib/exclude.c: Likewise.
8726         * lib/exclude.h: Likewise.
8727         * lib/get-permissions.c: Likewise.
8728         * lib/gettimeofday.c: Likewise.
8729         * lib/parse-datetime.y: Likewise.
8730         * lib/pselect.c: Likewise.
8731         * lib/set-permissions.c: Likewise.
8732         * lib/time.in.h: Likewise.
8733         * m4/canonicalize.m4: Likewise.
8734         * m4/gc.m4: Likewise.
8735         * m4/gnulib-common.m4: Likewise.
8736         * m4/pthread_sigmask.m4: Likewise.
8737         * m4/vararrays.m4: Likewise.
8738         * tests/test-digest.h: Likewise.
8739         * tests/test-fcntl-h.c: Likewise.
8740         * tests/test-timespec.c: Likewise.
8741         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
8743 2018-06-25  Bruno Haible  <bruno@clisp.org>
8745         manywarnings: Don't enable -Wjump-misses-init warnings by default.
8746         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
8747         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
8748         -Wjump-misses-init.
8750 2018-06-25  Jim Meyering  <meyering@fb.com>
8752         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
8753         * lib/acl-internal.h (free_permission_context): Remove that
8754         attribute directive.  Otherwise, it would provoke this from GCC 9:
8755         lib/acl-internal.h:300:3: error: 'const' attribute on function \
8756           returning 'void' [-Werror=attributes]
8758 2018-06-24  Jim Meyering  <meyering@fb.com>
8760         parse-datetime: accommodate gcc-4.8.5
8761         Bruno Haible reported the build failure in
8762         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
8763         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
8764         on declaration of new local.
8766 2018-06-24  Bruno Haible  <bruno@clisp.org>
8768         af_alg: Fail in continuable manner on Linux/powerpc64le.
8769         Reported by Assaf Gordon <assafgordon@gmail.com>
8770         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
8771         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
8772         byte send() as the first round.
8774 2018-06-24  Bruno Haible  <bruno@clisp.org>
8776         af_alg: Fix state of stream after sendfile() succeeds.
8777         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
8778         the stream is correctly positioned afterwards.
8779         * modules/crypto/af_alg (Depends-on): Add fflush.
8780         * tests/test-digest.h (test_digest_on_files): Verify that after the
8781         operation the stream is positioned at end of file.
8783 2018-06-24  Jim Meyering  <meyering@fb.com>
8785         canon-host: take GCC9's advice rather than ignoring warning
8786         Pádraig Brady suggested not to ignore this GCC9 advice.
8787         * lib/canon-host.c: Undo preceding change.
8788         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
8790         parse-datetime.y: avoid spurious GCC 9 warning
8791         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
8792         a function local prior to the first "goto fail".  The prior use would
8793         evoke this:
8794         parse-datetime.y: In function 'parse_datetime2':
8795         parse-datetime.y:1791:19: error: jump skips variable initialization \
8796           [-Werror=jump-misses-init]
8797         parse-datetime.y:2385:2: note: label 'fail' defined here
8798         parse-datetime.y:188:43: note: '({anonymous})' declared here
8799         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
8801         canon-host.c: avoid spurious GCC 9 warning
8802         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
8804         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
8805         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
8806         * m4/manywarnings.m4: Remove them.
8807         Otherwise, building coreutils, I would see this:
8808         cc1: error: deprecated command line option '-Wchkp' [-Werror]
8809         cc1: error: -Wabi won't warn about anything [-Werror=abi]
8810         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
8811           which is also used by default
8812         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
8814 2018-06-24  Bruno Haible  <bruno@clisp.org>
8816         af_alg tests: Add another test.
8817         * tests/test-digest.h (test_digest_on_files): Also check a large file
8818         with a skipped header.
8819         * tests/test-md5.c: Include macros.h.
8820         * tests/test-sha1.c: Likewise.
8821         * tests/test-sha256.c: Likewise.
8822         * tests/test-sha512.c: Likewise.
8823         * modules/crypto/md5-tests (Files): Add tests/macros.h.
8824         * modules/crypto/sha1-tests (Files): Likewise.
8825         * modules/crypto/sha256-tests (Files): Likewise.
8826         * modules/crypto/sha512-tests (Files): Likewise.
8828 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8830         maint: clarify comments about sticky EOF
8831         * lib/af_alg.c: Be more direct that we can't
8832         assume stickiness of EOF for portability reasons.
8833         * lib/md5.c: Clarify that this isn't just a glibc issue.
8834         * lib/sha1.c: Likewise.
8835         * lib/sha256.c: Likewise.
8836         * lib/sha512.c: Likewise.
8838 2018-06-24  Bruno Haible  <bruno@clisp.org>
8840         af_alg: Comment and style improvements.
8841         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
8842         (afalg_buffer, afalg_stream): Improve comments.
8844 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8846         af_alg: disable kernel hash functions by default
8847         All the kernel routines were seen to be significantly slower
8848         with these relatively recent components on an i3-2310M system:
8849           kernel-4.10.6-200.fc25.x86_64
8850           openssl-1.0.2m-1.fc25.x86_64
8851         sha1 was nearly twice as slow in the kernel for example.
8852         Further considerations why this should not be the default, at:
8853         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
8855         * m4/af_alg.m4: Require --with-linux-crypto to enable.
8856         * m4/gl-openssl.m4: Tweak accordingly.
8858 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8860         af_alg: avoid hangs when reading from streams
8861         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
8862         and thus avoid doing a fread() when feof() is set.
8863         * lib/md5.c: Ensure feof() is called before fread().
8864         * lib/sha1.c: Likewise.
8865         * lib/sha256.c: Likewise.
8866         * lib/sha512.c: Likewise.
8868 2018-06-24  Pádraig Brady  <P@draigBrady.com>
8870         af_alg: fix error handling when hash not returned
8871         * lib/af_alg.c (afalg_stream): Handle the case where we've
8872         successfully written data to the kernel in the read/write loop,
8873         but the kernel doesn't respond with the hash.
8875 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
8877         libc-config: merge from glibc
8878         * lib/cdefs.h (__inline, __restrict):
8879         Copy from current glibc.  This fixes glibc bug 17721,
8880         which Gnulib had already fixed in a different way.
8881         (__nonnull): Lessen the distance from glibc by using the
8882         glibc definition inside an ‘#ifndef __nonnull’.
8883         (__attribute_nonstring__): New macro, copied from
8884         current glibc.
8885         * lib/libc-config.h (__attribute_nonstring__): New undef.
8886         (__restrict): Remove; workaround no longer needed.
8887         Keep the __inline workaround, though, as it uses HAVE___INLINE to
8888         support more compilers than the glibc __inline can.
8890 2018-06-24  Bruno Haible  <bruno@clisp.org>
8892         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
8893         * lib/mbrtowc.c (enc_t): New enum type.
8894         (locale_enc, locale_enc_cached): New functions.
8895         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
8896         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
8897         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
8898         instead.
8899         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
8900         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
8901         * modules/wcwidth (configure.ac): Invoke it.
8903 2018-06-24  Bruno Haible  <bruno@clisp.org>
8905         wchar-single: Fix test failure in wcwidth tests.
8906         * tests/test-wcwidth.c (main): If the wchar-single module is present,
8907         skip the tests in the C locale.
8909 2018-06-23  Pádraig Brady  <P@draigBrady.com>
8911         crypto: mention --without-linux-crypto in --with-openssl --help
8912         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
8913         routines take precedence in --with-openssl help output.
8915 2018-06-23  Pádraig Brady  <P@draigBrady.com>
8917         wchar-single: a new module to enable optimizations in wchar replacements
8918         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
8919         GNULIB_WCHAR_SINGLE is enabled.
8920         * lib/wcwidth.c (wcwidth): Likewise.
8922 2018-06-23  Bruno Haible  <bruno@clisp.org>
8924         libc-config: Fix conflict with FreeBSD include files.
8925         * lib/cdefs.h (__nonnull): Remove definition.
8926         * lib/libc-config.h (__nonnull): Remove undefinition.
8928 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
8930         random_r: do not crash if state is unaligned
8931         Problem reported by Bruce Korb in:
8932         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
8933         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
8934         with 'cc -O2 -xmemalign=8s'.
8935         * lib/random_r.c: Include string.h, for memcpy.
8936         (get_int32, set_int32): New functions.
8937         (__srandom_r, __initstate_r, __setstate_r, __random_r):
8938         Use them to avoid assumption that state pointer is aligned.
8939         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
8940         * tests/test-random_r.c (test_failed): New function.
8941         (main): Use it, to test for alignment bugs.
8943         random_r: omit unnecessary include
8944         * lib/random_r.c: Do not include limits.h.
8946         random, random_r: merge from glibc
8947         * lib/random.c, lib/random_r.c:
8948         Include libc-config.h if !_LIBC, not config.h unilaterally.
8949         * lib/random.c:
8950         Do not include stdint.h or time.h; not needed.
8951         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
8952         (unsafe_state): Rename from generator.  All uses changed.
8953         Use C99-style initializers.
8954         (__random, __srandom, __initstate, __setstate): Rename from
8955         non-underscored version, but define it to non-underscored version
8956         on Gnulib.  Add a lock.
8957         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
8958         Likewise.
8959         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
8960         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
8961         (__srandom_r): Use int32_t instead of long int where int32_t will do.
8962         (__random_r): Use uint32 to fix glibc bug 17343.
8963         * modules/random, modules/random_r (Depends-on): Add libc-config.
8964         Depend on stdint only if $HAVE_RANDOM = 0.
8966 2018-06-19  Jim Meyering  <meyering@fb.com>
8968         README-release: also run any check-very-expensive tests
8969         * top/README-release: Adjust instructions so they run the
8970         check-very-expensive tests when there is such a target.
8972 2018-06-18  Bruno Haible  <bruno@clisp.org>
8974         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
8975         * m4/pthread_rwlock_rdlock.m4: Add comment.
8976         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
8977         are reader-preferring in glibc.
8978         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
8979         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
8981 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
8983         crypto: use byteswap
8984         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8985         * lib/sm3.c: Include <byteswap.h>.
8986         (SWAP): Use its macros rather than reinventing the wheel.
8987         * modules/crypto/md4, modules/crypto/md5-buffer:
8988         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
8989         * modules/crypto/sha512-buffer, modules/crypto/sm3:
8990         (Depends-on): Add byteswap.
8992 2018-06-17  Pádraig Brady  <P@draigBrady.com>
8994         gendocs.sh: fix support for legacy --texi2html
8995         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
8996         to the default makeinfo invocation.
8997         Reported by Bruce Korb
8999 2018-06-17  Bruno Haible  <bruno@clisp.org>
9001         gettext po infrastructure: Update from current gettext git.
9002         Reported by Akim Demaille <akim@lrde.epita.fr>.
9003         * build-aux/po/Makefile.in.in: Update from current gettext git.
9004         * build-aux/po/remove-potcdate.sin: Likewise.
9005         * config/srclist.txt: Temporarily disable sync for these files.
9007 2018-06-17  Bruno Haible  <bruno@clisp.org>
9009         getloadavg: Return 0 on Windows without Cygwin.
9010         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
9012 2018-06-17  Paul Smith  <psmith@gnu.org>
9014         getloadavg: Allow building on Windows without Cygwin
9015         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
9016         * m4/getloadavg.m4: Check for unistd.h.
9018 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
9020         Port crypto/af_alg to GCC 4.8.4
9021         Problem reported by Peter Simons in:
9022         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
9023         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
9025 2018-05-27  Colin Watson  <cjwatson@debian.org>
9027         bootstrap: document source fetching in --help
9028         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
9030 2018-04-09  Colin Watson  <cjwatson@debian.org>
9032         bootstrap: allow non-submodule control of gnulib
9033         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
9034         bootstrap.conf when fetching gnulib using "git clone" or via
9035         GNULIB_SRCDIR.
9037 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
9039         crypto: omit stream ops Emacs doesn’t need
9040         * lib/md5.c (md5_stream):
9041         * lib/sha1.c (sha1_stream):
9042         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
9043         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
9044         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
9045         defined.  Emacs needs this, as it does not use the stream
9046         operations and doesn’t need all the af_alg stuff we’ve recently
9047         added.  Perhaps a similar change is needed to the other crypto
9048         modules, but this patch changes only those needed for Emacs.
9049         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
9050         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
9051         New modules, used by Emacs.
9052         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9053         * modules/crypto/sha512: Rewrite to depend on the new modules.
9055 2018-05-20  Pádraig Brady  <P@draigBrady.com>
9057         fts: avoid a memory leak edge case
9058         * lib/fts.c (fts_open): Set an appropriate fts_level
9059         so that an immediate fts_close() will free the allocation.
9060         * tests/test-fts.c (fts_dealloc): Add a test case which
9061         will trigger under valgrind or address sanitizer.
9062         Fixes https://bugs.gnu.org/31439
9064 2018-05-20  Bruno Haible  <bruno@clisp.org>
9066         wcwidth tests: Fix link error.
9067         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
9068         $(LIBUNISTRING).
9070 2018-05-20  Bruno Haible  <bruno@clisp.org>
9072         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
9073         * modules/regex (Files): Add m4/glibc21.m4.
9075 2018-05-20  Bruno Haible  <bruno@clisp.org>
9077         localcharset: Optimize.
9078         * lib/localcharset.c (alias_table): Comment out no-op mappings for
9079         platforms where these don't matter. This reduces the table size,
9080         which in turn reduces the lookup time.
9082 2018-05-19  Bruno Haible  <bruno@clisp.org>
9084         localcharset: Map the locale encodings found in newer OSes.
9085         * lib/localcharset.c (alias_table): Add mapping for locale encodings
9086         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
9087         IRIX 6.5, Minix 3.3.
9088         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
9090 2018-05-19  Bruno Haible  <bruno@clisp.org>
9092         localcharset: Move mapping tables into the code. Use a binary search.
9093         * lib/localcharset.h: Document the GNU canonical names for character
9094         encodings here.
9095         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
9096         relocatable.h, configmake.h.
9097         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
9098         macros.
9099         (charset_aliases): Remove variable.
9100         (get_charset_aliases): Remove function.
9101         (struct table_entry): New type.
9102         (alias_table, locale_table): New constants.
9103         (locale_charset): Use the alias_table or locale_table to get the
9104         canonicalized encoding name.
9105         * lib/config.charset: Remove file.
9106         * lib/ref-add.sin: Remove file.
9107         * lib/ref-del.sin: Remove file.
9108         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
9109         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
9110         * modules/localcharset (Notice): Remove.
9111         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
9112         glibc21.m4.
9113         (Depends-on): Remove configmake.
9114         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
9115         (Makefile.am): Simplify.
9116         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
9118 2018-05-19  Bruno Haible  <bruno@clisp.org>
9120         localcharset: Add a manual test.
9121         * tests/test-localcharset.c: New file.
9122         * modules/localcharset-tests: New file.
9124 2018-05-19  Bruno Haible  <bruno@clisp.org>
9126         localcharset: Remove support for obsolete platforms.
9127         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
9128         Mac OS X 10.2. Comment out dubious entry for Solaris.
9130 2018-05-19  Jim Meyering  <meyering@fb.com>
9132         gnupload: adjust comment
9133         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
9134         more likely we'll remove the just-added code in a year or two.
9136 2018-05-19  Bruno Haible  <bruno@clisp.org>
9138         gnupload: Fix "gpg-agent is not available in this session" error.
9139         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
9141 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
9143         crypto/af_alg: fix --help
9144         * m4/af_alg.m4: Avoid spurious newline in --help output.
9146 2018-05-13  Bruno Haible  <bruno@clisp.org>
9148         nl_langinfo: Fix compilation error on Android.
9149         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
9150         INT_CURR_SYMBOL, etc. only if these items are defined.
9152 2018-05-13  Bruno Haible  <bruno@clisp.org>
9154         truncate: Fix compilation error on Android.
9155         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
9156         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
9157         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
9158         HAVE_TRUNCATE.
9159         * modules/truncate: Likewise.
9160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
9161         not HAVE_TRUNCATE.
9162         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
9163         HAVE_TRUNCATE.
9164         * doc/posix-functions/truncate.texi: Mention the issue.
9166 2018-05-13  Bruno Haible  <bruno@clisp.org>
9168         pthread: Fix compilation error on Android.
9169         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
9170         recursive inclusion of this file.
9172 2018-05-13  Bruno Haible  <bruno@clisp.org>
9174         posix_spawn: Fix compilation error on Android.
9175         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
9176         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
9177         (posix_spawn_file_actions_t): Consider also the case
9178         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
9180 2018-05-13  Bruno Haible  <bruno@clisp.org>
9182         tsearch: Move from K&R C to ANSI C.
9183         * lib/tsearch.c (tfind): Convert definition to ANSI C.
9185 2018-05-13  Bruno Haible  <bruno@clisp.org>
9187         tsearch: Fix compilation error on Android.
9188         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
9189         is 0.
9190         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
9191         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
9192         GNULIB_defined_tsearch is true.
9193         (twalk): Define only if GNULIB_defined_twalk is true.
9194         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
9195         is 0.
9196         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
9197         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
9198         * modules/search (Makefile.am): Substitute HAVE_TWALK.
9200 2018-05-13  Bruno Haible  <bruno@clisp.org>
9202         imaxdiv: Fix compilation error on Android.
9203         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
9204         is not defined.
9205         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
9206         HAVE_DECL_IMAXDIV, is 0.
9207         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
9208         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
9210 2018-05-13  Bruno Haible  <bruno@clisp.org>
9212         Support selective inclusion mechanism of recent mingw.org header files.
9213         Reported by Eli Zaretskii <eliz@gnu.org>.
9214         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
9215         __need_ssize_t, or __need_time_t is defined, just include the system's
9216         <sys/types.h>.
9217         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
9218         include the system's <locale.h>.
9220 2018-05-13  Bruno Haible  <bruno@clisp.org>
9222         Avoid compilation error due to 'mmap' on Android.
9223         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
9224         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
9225         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
9226         Undefine on Android.
9228 2018-05-13  Bruno Haible  <bruno@clisp.org>
9230         Add cross-compilation guesses for Linux systems without glibc.
9231         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
9232         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
9233         * m4/link.m4 (gl_FUNC_LINK): Likewise.
9234         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
9235         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
9236         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
9237         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
9238         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
9239         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
9240         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
9241         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9242         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9243         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
9244         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9245         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
9246         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9247         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9248         * m4/utimens.m4 (gl_UTIMENS): Likewise.
9250 2018-05-13  Bruno Haible  <bruno@clisp.org>
9252         getpagesize: Fix compilation error on Android.
9253         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
9254         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
9255         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
9256         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
9257         HAVE_GETPAGESIZE accordingly.
9258         * modules/getcwd (Files): Add m4/getpagesize.m4.
9260 2018-05-13  Bruno Haible  <bruno@clisp.org>
9262         tcgetsid: Fix compilation error on Android.
9263         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
9264         AC_CHECK_FUNC.
9266 2018-05-13  Bruno Haible  <bruno@clisp.org>
9268         getpass: Fix configure test for Android.
9269         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
9270         AC_CHECK_FUNC.
9272 2018-05-13  Bruno Haible  <bruno@clisp.org>
9274         ffs: Fix compilation error on Android.
9275         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
9277 2018-05-13  Bruno Haible  <bruno@clisp.org>
9279         mkfifo: Fix compilation error on Android.
9280         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
9281         AC_CHECK_FUNC.
9283 2018-05-13  Bruno Haible  <bruno@clisp.org>
9285         c-strtod: Fix configure test for Android.
9286         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
9287         AC_CHECK_FUNC.
9289 2018-05-13  Bruno Haible  <bruno@clisp.org>
9291         random: Fix compilation error on Android.
9292         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
9293         AC_CHECK_FUNC.
9295 2018-05-13  Bruno Haible  <bruno@clisp.org>
9297         grantpt: Fix compilation error on Android.
9298         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
9299         AC_CHECK_FUNC.
9301 2018-05-13  Bruno Haible  <bruno@clisp.org>
9303         stdioext: Fix compilation errors with newer Android headers.
9304         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
9305         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
9306         fallbacks for Android.
9307         * lib/fpending.c: Update comments.
9308         * lib/fpurge.c: Likewise.
9309         * lib/freadable.h: Likewise.
9310         * lib/freadable.c: Likewise.
9311         * lib/freadahead.c: Likewise.
9312         * lib/freading.h: Likewise.
9313         * lib/freadptr.c: Likewise.
9314         * lib/fseterr.c: Likewise.
9315         * lib/fwritable.h: Likewise.
9316         * lib/fwritable.c: Likewise.
9317         * lib/fwriting.h: Likewise.
9318         * lib/fwriting.c: Likewise.
9320 2018-05-13  Bruno Haible  <bruno@clisp.org>
9322         doc: Add info about Android versions 2.0 to 8.1.
9323         * doc/**/*.texi: Add info about functions in all released versions of
9324         Bionic.
9326 2018-05-12  Bruno Haible  <bruno@clisp.org>
9328         fseeko: On mingw, don't use the hidden function _fseeki64.
9329         Reported by Eli Zaretskii <eliz@gnu.org>.
9330         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
9331         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
9333 2018-05-12  Bruno Haible  <bruno@clisp.org>
9335         glob: Choose 'dirent_type' in a way that works better on mingw.
9336         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
9337         * lib/glob.c (dirent_type): Define as uint_fast32_t.
9339 2018-05-12  Bruno Haible  <bruno@clisp.org>
9341         execute, spawn-pipe: Avoid warning about redefining 'close'.
9342         Reported by Eli Zaretskii <eliz@gnu.org>.
9343         * lib/execute.c: Undefine 'close' before redefining it.
9344         * lib/spawn-pipe.c: Likewise.
9346 2018-05-12  Bruno Haible  <bruno@clisp.org>
9348         nanosleep: Avoid test failure on mingw when it has nanosleep.
9349         Reported by Eli Zaretskii <eliz@gnu.org>.
9350         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
9351         If it does not exist, use a simpler test program that does not call
9352         alarm().
9354 2018-05-10  Bruno Haible  <bruno@clisp.org>
9356         lock, cond, thread, tls: Use a different symbol as libpthread witness.
9357         Reported by Devin Hussey <husseydevin@gmail.com>.
9358         Based on a patch by Paul Eggert.
9359         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
9360         as witness of libpthread.
9361         * lib/glthread/cond.h (pthread_in_use): Likewise.
9362         * lib/glthread/thread.h (pthread_in_use): Likewise.
9363         * lib/glthread/tls.h (pthread_in_use): Likewise.
9365 2018-05-10  Bruno Haible  <bruno@clisp.org>
9367         cond tests: Fix compilation error on Solaris.
9368         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
9369         macro.
9371 2018-05-10  Bruno Haible  <bruno@clisp.org>
9373         doc: Add partial info about Android 4.3.
9374         * doc/*-functions/*.texi: Add info about functions that were added
9375         to Bionic between Android 4.3 and Android 9.0.
9377 2018-05-10  Bruno Haible  <bruno@clisp.org>
9379         doc: Add info about Android 9.0.
9380         * doc/**/*.texi: Add info about functions and headers in Bionic from
9381         Android 9.0.
9383 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
9385         af_alg: fix my typo in afalg_buffer
9386         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
9387         (afalg_stream): Simplify and avoid the need for a runtime test
9388         at the end.
9390         af_alg: recover better from crypto failures
9391         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
9392         input stream is seekable, by repositioning the stream back to
9393         where it was, possibly by just calling sendfile with an offset
9394         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
9395         cases, which lets our callers try again with user-mode code.
9396         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
9397         instead of on fflush and lseek.
9399         af_alg: distiguish I/O errors better
9400         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
9401         not -EIO, if it’s OK for the caller to try again with user-mode code.
9402         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
9403         some other error number) if fflush fails, as the caller should not
9404         try again that case.
9406         af_alg: avoid gotos
9407         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
9408         gotos, as they were a source of unreliability and made the code a
9409         bit harder to follow.
9411         af_alg: don’t leak file descriptors into children
9412         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
9413         This code should be compiled only on recent GNU/Linux platforms
9414         so we shouldn’t have to also depend on the accept4 module.
9416         af_alg: coalesce socket creation
9417         * lib/af_alg.c (alg_socket): New function.
9418         (afalg_buffer, afalg_stream): Use it.  This avoids some
9419         code duplication and gotos.
9421         af_alg: fix file descriptor leak
9422         * lib/af_alg.c (afalg_stream): Close leak.
9424         af_alg: Pacify --enable-gcc-warnings on GCC 8
9425         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
9426         and checking to pacify gcc -Wjump-misses-init on GCC 8.
9428 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
9430         af_alg: Pacify --enable-gcc-warnings
9431         Problem reported by Assaf Gordon in:
9432         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
9433         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
9434         gcc -Wjump-misses-init.
9435         * lib/sha512.c (shaxxx_stream): Now static.
9437 2018-05-06  Bruno Haible  <bruno@clisp.org>
9439         af_alg: Add ability to use Linux kernel crypto API on data in memory.
9440         * lib/af_alg.h (afalg_buffer): New declaration.
9441         * lib/af_alg.c (afalg_buffer): New function.
9443 2018-05-06  Bruno Haible  <bruno@clisp.org>
9445         af_alg: Avoid warnings.
9446         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
9447         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
9449 2018-05-06  Bruno Haible  <bruno@clisp.org>
9451         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
9452         * tests/bench-digest.h: New file.
9453         * tests/bench-md5.c: New file.
9454         * tests/bench-sha1.c: New file.
9455         * tests/bench-sha224.c: New file.
9456         * tests/bench-sha256.c: New file.
9457         * tests/bench-sha384.c: New file.
9458         * tests/bench-sha512.c: New file.
9459         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
9460         tests/bench-digest.h.
9461         (Depends-on): Add getrusage, gettimeofday.
9462         (Makefile.am): Add variables to build bench-md5.
9463         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
9464         tests/bench-digest.h.
9465         (Depends-on): Add getrusage, gettimeofday.
9466         (Makefile.am): Add variables to build bench-sha1.
9467         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
9468         tests/bench-sha256.c, tests/bench-digest.h.
9469         (Depends-on): Add getrusage, gettimeofday.
9470         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
9471         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
9472         tests/bench-sha512.c, tests/bench-digest.h.
9473         (Depends-on): Add getrusage, gettimeofday.
9474         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
9476 2018-05-06  Bruno Haible  <bruno@clisp.org>
9478         af_alg: Fix a resource leak.
9479         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
9480         New local variable 'result'.
9482 2018-05-06  Bruno Haible  <bruno@clisp.org>
9484         af_alg: Fix bug with streams that are not at position 0.
9485         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
9486         assume that the stream is positioned at position 0.
9487         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
9488         of the stream.
9489         * lib/md5.h (md5_stream): Likewise.
9490         * lib/sha1.h (sha1_stream): Likewise.
9491         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
9492         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
9493         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
9495         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
9496         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
9497         stream that is not positioned at the beginning.
9499 2018-05-06  Bruno Haible  <bruno@clisp.org>
9501         af_alg: Add configure option to enable/disable use of Linux crypto API.
9502         Suggested by Assaf Gordon <assafgordon@gmail.com>.
9503         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
9504         USE_LINUX_CRYPTO_API.
9505         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
9506         * lib/af_alg.c: Likewise.
9508 2018-05-06  Bruno Haible  <bruno@clisp.org>
9510         Followup to 'af_alg: New module.'.
9511         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
9512         * modules/crypto/sha1 (Depends-on): Likewise.
9513         * modules/crypto/sha256 (Depends-on): Likewise.
9514         * modules/crypto/sha512 (Depends-on): Likewise.
9516 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9518         crypto/{md5,sha1,sha256,sha512}: simplify
9519         * lib/md5.c (md5_stream):
9520         * lib/sha1.c (sha1_stream):
9521         * lib/sha256.c (shaxxx_stream):
9522         Simplify, partly by assuming C99.
9523         * lib/sha256.c (shaxxx_stream):
9524         New function, which implements both sha256 and sha224.
9525         Simplify, partly by assuming C99.
9526         (sha256_stream, sha224_stream):
9527         Use it to avoid code duplication, removing a FIXME.
9528         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
9529         Likewise.
9531         af_alg: Improve comments.
9532         * lib/af_alg.h: Use imperatives and tighten up wording.
9534 2018-05-05  Bruno Haible  <bruno@clisp.org>
9536         af_alg: Improve comments.
9537         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
9539 2018-05-05  Bruno Haible  <bruno@clisp.org>
9541         af_alg: New module.
9542         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
9543         * lib/af_alg.c: Include "af_alg.h" before the other header files.
9544         * lib/md5.c: Include "af_alg.h" unconditionally.
9545         (md5_stream): Invoke afalg_stream unconditionally.
9546         * lib/sha1.c: Include "af_alg.h" unconditionally.
9547         (sha1_stream): Invoke afalg_stream unconditionally.
9548         * lib/sha256.c: Include "af_alg.h" unconditionally.
9549         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
9550         * lib/sha512.c: Include "af_alg.h" unconditionally.
9551         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
9552         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
9553         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
9554         * modules/crypto/af_alg: New file.
9555         * modules/crypto/md5 (Files): Remove files that are now in the
9556         'crypto/af_alg' module.
9557         (Depends-on): Add crypto/af_alg.
9558         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9559         (Makefile.am): Don't mention af_alg.c here.
9560         * modules/crypto/sha1 (Files): Remove files that are now in the
9561         'crypto/af_alg' module.
9562         (Depends-on): Add crypto/af_alg.
9563         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9564         (Makefile.am): Don't mention af_alg.c here.
9565         * modules/crypto/sha256 (Files): Remove files that are now in the
9566         'crypto/af_alg' module.
9567         (Depends-on): Add crypto/af_alg.
9568         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9569         (Makefile.am): Don't mention af_alg.c here.
9570         * modules/crypto/sha512 (Files): Remove files that are now in the
9571         'crypto/af_alg' module.
9572         (Depends-on): Add crypto/af_alg.
9573         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
9574         (Makefile.am): Don't mention af_alg.c here.
9576 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9578         crypto tests: pacify GCC
9579         * tests/test-digest.h (test_digest_on_files):
9580         Don’t assume digest size fits in int (!).
9582         af_alg: minor style improvements
9583         * lib/af_alg.c (afalg_stream): Prefer C99 style
9584         decl-after-statement, since we’re already assuming C99.  Clarify
9585         by strengthening the bind test and omit unnecessary assignment.
9587 2018-05-05  Bruno Haible  <bruno@clisp.org>
9589         af_alg: Fix bug on empty files.
9590         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
9591         stream is empty.
9593 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
9595         sys-limits.h: new file for crypto and safe I/O
9596         * lib/af_alg.c: Include sys-limits.h.
9597         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
9598         (afalg_stream): Also reject negative sizes for sendfile; they
9599         should not happen and the code is a bit cleaner and faster this way.
9600         * lib/safe-read.c: Include sys-limits.h.
9601         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
9602         * lib/sys-limits.h: New file, with values and commentary derived
9603         from the old safe-read.c and from GNU Emacs sysdep.c.
9604         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9605         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
9606         Add lib/sys-limits.h to Files section.
9608 2018-05-05  Bruno Haible  <bruno@clisp.org>
9610         af_alg: Improve function signature.
9611         * lib/af_alg.h (afalg_stream): Swap second and third argument.
9612         * lib/af_alg.c (afalg_stream): Likewise.
9613         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
9615 2018-05-05  Bruno Haible  <bruno@clisp.org>
9617         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
9618         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
9619         * modules/crypto/sha1 (Depends-on): Likewise.
9620         * modules/crypto/sha256 (Depends-on): Likewise.
9621         * modules/crypto/sha512 (Depends-on): Likewise.
9623 2018-05-05  Bruno Haible  <bruno@clisp.org>
9625         crypto/{md5,sha1,sha256,sha512}: Fix module description.
9626         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
9627         * modules/crypto/sha1 (Depends-on): Likewise.
9628         * modules/crypto/sha256 (Depends-on): Likewise.
9629         * modules/crypto/sha512 (Depends-on): Likewise.
9631 2018-05-05  Bruno Haible  <bruno@clisp.org>
9633         af_alg: Add documentation.
9634         * lib/af_alg.h: Add comments.
9636 2018-05-05  Bruno Haible  <bruno@clisp.org>
9638         sha512: Add tests.
9639         * tests/test-sha512.c: New file.
9640         * modules/crypto/sha512-tests: New file.
9642 2018-05-05  Bruno Haible  <bruno@clisp.org>
9644         sha256: Add tests.
9645         * tests/test-sha256.c: New file.
9646         * modules/crypto/sha256-tests: New file.
9648 2018-05-05  Bruno Haible  <bruno@clisp.org>
9650         sha1 tests: Add test for sha1_stream.
9651         * tests/test-sha1.c: Include test-digest.h.
9652         (main): Invoke test_digest_on_files on 'sha1_stream'.
9653         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
9655 2018-05-05  Bruno Haible  <bruno@clisp.org>
9657         md5 tests: Add test for md5_stream.
9658         * tests/test-digest.h: New file.
9659         * tests/test-md5.c: Include test-digest.h.
9660         (main): Invoke test_digest_on_files on 'md5_stream'.
9661         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
9663 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9665         md5sum: Use AF_ALG when available.
9666         * lib/md5.c: Include af_alg.h.
9667         (md5_stream): Use afalg_stream when available.
9668         * modules/crypto/md5 (Files): Add the af_alg files.
9669         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9670         (Makefile.am): Add af_alg.c.
9672 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9674         sha512sum: Use AF_ALG when available.
9675         * lib/sha512.c: Include af_alg.h.
9676         (sha512_stream, sha384_stream): Use afalg_stream when available.
9677         * modules/crypto/sha512 (Files): Add the af_alg files.
9678         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9679         (Makefile.am): Add af_alg.c.
9681 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9683         sha256sum: Use AF_ALG when available.
9684         * lib/sha256.c: Include af_alg.h.
9685         (sha256_stream, sha224_stream): Use afalg_stream when available.
9686         * modules/crypto/sha256 (Files): Add the af_alg files.
9687         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9688         (Makefile.am): Add af_alg.c.
9690 2018-04-28  Matteo Croce  <mcroce@redhat.com>
9692         sha1sum: Use AF_ALG when available.
9693         * lib/af_alg.h: New file.
9694         * lib/af_alg.c: New file.
9695         * lib/sha1.c: Include af_alg.h.
9696         (sha1_stream): Use afalg_stream when available.
9697         * m4/linux-if-alg.m4: New file.
9698         * modules/crypto/sha1 (Files): Add the new files.
9699         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
9700         (Makefile.am): Add af_alg.c.
9702 2018-05-05  Bruno Haible  <bruno@clisp.org>
9704         all: Replace more http URLs by https URLs.
9705         * lib/localename.c: Use https: URL.
9706         * lib/timespec.h: Likewise.
9708 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
9710         maint: port more modules to GCC 8
9711         * lib/dirname.h (base_name):
9712         * lib/exclude.h (new_exclude):
9713         * lib/xstrndup.h (xstrndup):
9714         Add malloc attribute.
9715         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
9716         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
9717         This pacifies GCC 8.
9718         * m4/gnulib-common.m4 (gl_COMMON_BODY):
9719         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
9721 2018-05-03  Bruno Haible  <bruno@clisp.org>
9723         Simplify code. Drop support for Borland C++ on Windows.
9724         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
9725         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
9726         'defined _WIN32'.
9727         * lib/canonicalize-lgpl.c: Likewise.
9728         * lib/classpath.c: Likewise.
9729         * lib/clean-temp.c: Likewise.
9730         * lib/csharpexec.c: Likewise.
9731         * lib/ctime.c: Likewise.
9732         * lib/dosname.h: Likewise.
9733         * lib/dup2.c: Likewise.
9734         * lib/errno.in.h: Likewise.
9735         * lib/error.c: Likewise.
9736         * lib/euidaccess.c: Likewise.
9737         * lib/execute.c: Likewise.
9738         * lib/fcntl.in.h: Likewise.
9739         * lib/fcntl.c: Likewise.
9740         * lib/filename.h: Likewise.
9741         * lib/findprog.c: Likewise.
9742         * lib/flock.c: Likewise.
9743         * lib/fopen.c: Likewise.
9744         * lib/freopen.c: Likewise.
9745         * lib/fstat.c: Likewise.
9746         * lib/fsync.c: Likewise.
9747         * lib/gc-gnulib.c: Likewise.
9748         * lib/get-rusage-data.c: Likewise.
9749         * lib/getaddrinfo.c: Likewise.
9750         * lib/getdelim.c: Likewise.
9751         * lib/getdtablesize.c: Likewise.
9752         * lib/gethostname.c: Likewise.
9753         * lib/getlogin.c: Likewise.
9754         * lib/getlogin_r.c: Likewise.
9755         * lib/getopt.c: Likewise.
9756         * lib/getpagesize.c: Likewise.
9757         * lib/getpass.c: Likewise.
9758         * lib/getrusage.c: Likewise.
9759         * lib/gettimeofday.c: Likewise.
9760         * lib/glob.c: Likewise.
9761         * lib/inttypes.in.h: Likewise.
9762         * lib/isapipe.c: Likewise.
9763         * lib/javaexec.c: Likewise.
9764         * lib/link.c: Likewise.
9765         * lib/localcharset.c: Likewise.
9766         * lib/localename.h: Likewise.
9767         * lib/localename.c: Likewise.
9768         * lib/localtime.c: Likewise.
9769         * lib/lseek.c: Likewise.
9770         * lib/mbsinit.c: Likewise.
9771         * lib/mkdir.c: Likewise.
9772         * lib/msvc-nothrow.h: Likewise.
9773         * lib/nanosleep.c: Likewise.
9774         * lib/nl_langinfo.c: Likewise.
9775         * lib/nonblocking.c: Likewise.
9776         * lib/nproc.c: Likewise.
9777         * lib/open.c: Likewise.
9778         * lib/openpty.c: Likewise.
9779         * lib/pathmax.h: Likewise.
9780         * lib/pipe-filter-aux.c: Likewise.
9781         * lib/pipe-filter-gi.c: Likewise.
9782         * lib/pipe-filter-ii.c: Likewise.
9783         * lib/pipe.c: Likewise.
9784         * lib/pipe2.c: Likewise.
9785         * lib/poll.c: Likewise.
9786         * lib/popen.c: Likewise.
9787         * lib/posix_openpt.c: Likewise.
9788         * lib/printf-parse.c: Likewise.
9789         * lib/progreloc.c: Likewise.
9790         * lib/putenv.c: Likewise.
9791         * lib/read.c: Likewise.
9792         * lib/relocatable.c: Likewise.
9793         * lib/rename.c: Likewise.
9794         * lib/same-inode.h: Likewise.
9795         * lib/secure_getenv.c: Likewise.
9796         * lib/select.c: Likewise.
9797         * lib/sethostname.c: Likewise.
9798         * lib/setlocale.c: Likewise.
9799         * lib/sigaction.c: Likewise.
9800         * lib/sigprocmask.c: Likewise.
9801         * lib/sleep.c: Likewise.
9802         * lib/spawn-pipe.h: Likewise.
9803         * lib/spawn-pipe.c: Likewise.
9804         * lib/spawni.c: Likewise.
9805         * lib/stat-time.h: Likewise.
9806         * lib/stat-w32.c: Likewise.
9807         * lib/stat.c: Likewise.
9808         * lib/stdio.in.h: Likewise.
9809         * lib/stdio-impl.h: Likewise.
9810         * lib/stdio-read.c: Likewise.
9811         * lib/stdio-write.c: Likewise.
9812         * lib/stdlib.in.h: Likewise.
9813         * lib/strerror_r.c: Likewise.
9814         * lib/strftime-fixes.c: Likewise.
9815         * lib/sys_stat.in.h: Likewise.
9816         * lib/sys_types.in.h: Likewise.
9817         * lib/sys_wait.in.h : Likewise.
9818         * lib/system-quote.h: Likewise.
9819         * lib/system-quote.c: Likewise.
9820         * lib/tmpdir.c: Likewise.
9821         * lib/tzset.c: Likewise.
9822         * lib/uname.c: Likewise.
9823         * lib/unistd.in.h: Likewise.
9824         * lib/utime.in.h: Likewise.
9825         * lib/utime.c: Likewise.
9826         * lib/utimecmp.c: Likewise.
9827         * lib/utimens.c: Likewise.
9828         * lib/vasnprintf.c: Likewise.
9829         * lib/vma-iter.h: Likewise.
9830         * lib/vma-iter.c: Likewise.
9831         * lib/wait-process.c: Likewise.
9832         * lib/wcsftime.c: Likewise.
9833         * lib/wctype.in.h: Likewise.
9834         * lib/write.c: Likewise.
9835         * tests/nap.h: Likewise.
9836         * tests/test-cloexec.c: Likewise.
9837         * tests/test-dup-safer.c: Likewise.
9838         * tests/test-dup2.c: Likewise.
9839         * tests/test-dup3.c: Likewise.
9840         * tests/test-fcntl.c: Likewise.
9841         * tests/test-get-rusage-data.c: Likewise.
9842         * tests/test-getaddrinfo.c: Likewise.
9843         * tests/test-getlogin.h: Likewise.
9844         * tests/test-isatty.c: Likewise.
9845         * tests/test-localename.c: Likewise.
9846         * tests/test-mbrtowc-w32.c: Likewise.
9847         * tests/test-nonblocking.c: Likewise.
9848         * tests/test-nonblocking-pipe-main.c: Likewise.
9849         * tests/test-nonblocking-socket-main.c: Likewise.
9850         * tests/test-nonblocking-socket.h: Likewise.
9851         * tests/test-pipe.c: Likewise.
9852         * tests/test-pipe2.c: Likewise.
9853         * tests/test-poll.c: Likewise.
9854         * tests/test-pthread_sigmask1.c: Likewise.
9855         * tests/test-select.h: Likewise.
9856         * tests/test-sethostname2.c: Likewise.
9857         * tests/test-sigprocmask.c: Likewise.
9858         * tests/test-spawn-pipe-child.c: Likewise.
9859         * tests/test-stat-time.c: Likewise.
9860         * tests/test-system-quote-main.c: Likewise.
9861         * tests/test-utimens-common.h: Likewise.
9862         * tests/test-wcrtomb-w32.c: Likewise.
9863         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
9864         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
9865         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
9866         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
9867         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
9868         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
9869         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
9870         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
9871         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
9872         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
9873         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
9874         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
9875         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
9876         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
9877         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
9878         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9880 2018-05-02  Bruno Haible  <bruno@clisp.org>
9882         localename: Fix test failures on mingw.
9883         * lib/localename.c (gl_locale_name_thread): Remove code specific to
9884         native Windows.
9885         (gl_locale_name_posix): Move code specific to native Windows here.
9886         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
9887         Accept result without charset suffix, as it appears on mingw.
9889 2018-04-28  Paul Smith  <psmith@gnu.org>
9891         bootstrap: Avoid gnulib operations if not needed
9892         * build-aux/bootstrap: Remove unused variable gnulib_mk.
9893         Set $gnulib_extra_files early so it can be overridden in .conf.
9894         Remove redundant --import flag from $gnulib_tool_options.
9895         Set $use_gnulib to false if no gnulib modules or files are needed.
9896         If $use_gnulib is false, don't do anything related to gnulib.
9897         A lot of this is just whitespace (indentation) changes.
9899 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
9901         manywarnings: port to GCC 8.0
9902         * build-aux/gcc-warning.spec: Add -Wcatch-value,
9903         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
9904         fact that the GCC help message now mentions operands for
9905         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
9906         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
9907         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
9908         and -Wunused-const-variable.
9909         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
9910         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
9911         -Wmissing-attributes, -Wmultistatement-macros,
9912         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
9913         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
9915 2018-04-24  Bruno Haible  <bruno@clisp.org>
9917         sys_socket: Make SO_REUSEPORT available across platforms.
9918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9919         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
9920         * doc/posix-headers/sys_socket.texi: Mention the issue.
9921         * tests/test-poll.c (SO_REUSEPORT): Remove.
9922         * tests/test-select.h: Include <sys/socket.h>.
9923         (SO_REUSEPORT): Remove.
9924         * modules/select-tests (Depends-on): Add 'sys_socket'.
9926 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
9928         localcharset: short-circuit the search for an alias on a Mac
9929         * lib/localcharset.c (get_charset_aliases): Add a tautological
9930         UTF-8 entry to speed up the search for this case.
9931         Most machines default to a UTF-8 locale nowadays, so begin the
9932         list of aliases with a dummy UTF-8 entry so it will be found
9933         immediately and a time-consuming search through the rest of
9934         the list is avoided.
9936 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
9938         fts: add comment
9939         * lib/fts.c (fts_build): Explain why ==, not >.
9940         See remark by Bernhard Voelker in:
9941         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
9943         fts: fix bug in find across filesystems
9944         This fixes a bug I introduced last summer.
9945         Problem reported by Kamil Dudka in:
9946         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
9947         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
9948         (leaf_optimization):
9949         New arg for file descriptor.  All callers changed.
9950         (fts_build): Check for whether inodes should be sorted
9951         before closing the directory.
9953 2018-04-07  Bruno Haible  <bruno@clisp.org>
9955         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
9956         Reported by Genki Sky <sky@genki.is>.
9957         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
9958         version 0.9.10 or newer.
9959         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
9960         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
9961         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
9962         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
9963         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
9965 2018-04-07  Bruno Haible  <bruno@clisp.org>
9967         execute: Update comment.
9968         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
9970 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9972         fts: treat CIFS like NFS
9973         Problem reported by Kamil Dudka in:
9974         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
9975         * lib/fts.c (S_MAGIC_CIFS): New macro.
9976         (dirent_inode_sort_may_be_useful, leaf_optimization):
9977         Treat CIFS like NFS.
9979 2018-03-28  Bruno Haible  <bruno@clisp.org>
9981         c-stack: Fix possible build failure on some platforms.
9982         * lib/c-stack.c (die): Define whenever this function is referenced.
9984 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
9986         time_rz: fix workaround for Mac OS X 10.6 infloop
9987         Problems reported by Charles A. Roelli (Bug#27736#117).
9988         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
9989         Also, discard output, which clutters the 'configure' log.
9991 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
9993         havelib: port to Solaris 10 /bin/sh
9994         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
9995         instead of '! test EXPR'.
9997 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
9999         time_rz: work around Mac OS X 10.6 infloop
10000         * doc/posix-functions/localtime.texi:
10001         * doc/posix-functions/localtime_r.texi: Mention the bug.
10002         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
10003         better to fix localtime and localtime_r instead, but that would be
10004         more work and is not needed to fix the Emacs problem.
10005         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
10007 2018-03-24  Jim Meyering  <meyering@fb.com>
10009         test-version-etc.sh: don't use diff directly: use init.sh's compare
10010         We'd rather not sacrifice readable "diff -u" output even for
10011         "diff -c" output (not supported by busybox) or for even less
10012         readable ed-style "diff" output.  So use init.sh's compare function
10013         * tests/test-version-etc.sh: Source init.sh and add "." to path.
10014         Remove "./" from invocation of test-version-etc, so we use path.
10015         And s/diff/compare/.
10016         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
10017         to get init.sh.
10018         Prompted by Eric Blake's comments in
10019         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
10021 2018-03-24  Bruno Haible  <bruno@clisp.org>
10023         javacomp-script, javacomp: Add support for Java 10.
10024         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
10025         target-version 10.
10026         * lib/javaversion.h: Update comments.
10027         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
10028         source_version_index, get_goodcode_snippet, get_failcode_snippet,
10029         TARGET_VERSION_BOUND, target_version_index,
10030         corresponding_classfile_version): Accept source_version 10 and
10031         target_version 10.
10032         * lib/javacomp.h: Update comments accordingly.
10034 2018-03-24  Bruno Haible  <bruno@clisp.org>
10036         javacomp-script, javacomp: Update comments.
10037         * m4/javacomp.m4: Update comments regarding gcj.
10038         * lib/javacomp.h: Likewise.
10040 2018-03-24  Bruno Haible  <bruno@clisp.org>
10042         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
10043         * lib/javaversion.h: Update comments.
10044         * lib/javacomp.h: Likewise.
10045         * lib/javacomp.c (default_target_version, source_version_index,
10046         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
10047         "1.9".
10048         (TARGET_VERSION_BOUND): Bump to 9.
10049         (target_version_index, corresponding_classfile_version): Recognize "9"
10050         instead of "1.9".
10051         (get_source_version_for_javac): New function.
10052         (is_envjavac_nongcj_usable, is_javac_usable): Add
10053         source_version_for_javac argument.
10054         (compile_java_class): Determine and pass source_version_for_javac.
10055         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
10056         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
10057         appropriate.
10059 2018-03-23  Jim Meyering  <meyering@fb.com>
10061         test-version-etc.sh: port to diff without -c
10062         * tests/test-version-etc.sh: Don't use diff's -c option.
10063         This caused spurious test failure on Alpine Linux, which
10064         uses busybox's diff. Reported by Assaf Gordon in
10065         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
10067 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
10069         c-stack: port to recent GCC build
10070         Problem reported by The Fireplace (Bug#30913).
10071         * lib/c-stack.c (die): Define only if used.
10073 2018-03-20  Bruno Haible  <bruno@clisp.org>
10075         euidaccess: Port to native Windows.
10076         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
10077         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
10079 2018-03-19  Bruno Haible  <bruno@clisp.org>
10081         javacomp: Add support for Java 7, 8, 9.
10082         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
10083         source_version_index, get_goodcode_snippet, get_failcode_snippet,
10084         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
10085         and target_version 1,7, 1.8, 1.9.
10086         * lib/javacomp.h: Update comments accordingly.
10088 2018-03-19  Bruno Haible  <bruno@clisp.org>
10090         javacomp-script: Add support for Java 9.
10091         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
10092         target-version 1.9.
10094 2018-03-16  Bruno Haible  <bruno@clisp.org>
10096         glob: Don't compile replacements on recent glibc systems.
10097         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
10098         REPLACE_GLOB is 0, include the system's <glob.h> and use
10099         _GL_CXXALIAS_SYS.
10100         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
10101         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
10102         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
10103         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
10104         Remove snippet/warn-on-use.
10105         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
10106         (Makefile.am): Create glob.h always. Update list of substitutions in
10107         glob.h. Don't depend on $(WARN_ON_USE_H).
10109 2018-03-16  Bruno Haible  <bruno@clisp.org>
10111         glob: Fix link error on native Windows.
10112         * modules/glob (Depends-on): Add 'lstat'.
10114 2018-03-15  Bruno Haible  <bruno@clisp.org>
10116         glob: Fix compilation error in C++ mode.
10117         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
10119 2018-03-15  Bruno Haible  <bruno@clisp.org>
10121         host-cpu-c-abi: Support for RISC-V CPU.
10122         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
10123         riscv32 and riscv64 ABIs.
10124         References:
10125         https://github.com/riscv/riscv-toolchain-conventions
10126         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
10127         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
10129 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
10131         fflush: be more paranoid about libio.h change
10132         Suggested by Eli Zaretskii in:
10133         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
10134         * lib/fbufmode.c (fbufmode):
10135         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
10136         (disable_seek_optimization, rpl_fflush):
10137         * lib/fpending.c (__fpending):
10138         * lib/fpurge.c (fpurge):
10139         * lib/freadable.c (freadable):
10140         * lib/freadahead.c (freadahead):
10141         * lib/freading.c (freading):
10142         * lib/freadptr.c (freadptr):
10143         * lib/freadseek.c (freadptrinc):
10144         * lib/fseeko.c (fseeko):
10145         * lib/fseterr.c (fseterr):
10146         * lib/fwritable.c (fwritable):
10147         * lib/fwriting.c (fwriting):
10148         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
10150 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
10152         maint: write-file-hooks -> before-save-hook
10153         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
10154         it's time to use the recommended replacement.
10155         Problem reported by Glenn Morris in:
10156         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
10157         * build-aux/announce-gen, build-aux/bootstrap:
10158         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
10159         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
10160         * build-aux/gnu-web-doc-update, build-aux/gnupload:
10161         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
10162         * build-aux/update-copyright, build-aux/useless-if-before-free:
10163         * build-aux/vc-list-files:
10164         Update hook usage for files where Gnulib is the canonical source.
10166 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
10168         binary-io: pacify gcc -Wunused-parameter
10169         Problem reported by Reuben Thomas in:
10170         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
10171         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
10172         Use _GL_UNUSED where appropriate.
10174         fflush: adjust to glibc 2.28 libio.h removal
10175         Problem reported by Daniel P. Berrangé in:
10176         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
10177         * lib/fbufmode.c (fbufmode):
10178         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
10179         (disable_seek_optimization, rpl_fflush):
10180         * lib/fpending.c (__fpending):
10181         * lib/fpurge.c (fpurge):
10182         * lib/freadable.c (freadable):
10183         * lib/freadahead.c (freadahead):
10184         * lib/freading.c (freading):
10185         * lib/freadptr.c (freadptr):
10186         * lib/freadseek.c (freadptrinc):
10187         * lib/fseeko.c (fseeko):
10188         * lib/fseterr.c (fseterr):
10189         * lib/fwritable.c (fwritable):
10190         * lib/fwriting.c (fwriting):
10191         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
10192         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
10193         Define if not already defined.
10195 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
10197         environ: fix link error on 32-bit Cygwin
10198         Problem reported for GNU Emacs by Ken Brown in:
10199         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
10200         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
10202 2018-02-24  Bruno Haible  <bruno@clisp.org>
10204         mbrtowc tests: Fix regression on glibc.
10205         Reported by Bernhard Voelker.
10206         * tests/test-mbrtowc.c (main): Fix expected value of wc.
10208 2018-02-24  Bruno Haible  <bruno@clisp.org>
10210         striconveha, uniconv/*: Avoid test failures on musl libc.
10211         * tests/iconvsupport.c: New file.
10212         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
10213         does not support the ISO-2022-JP-2 encoding.
10214         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
10215         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10216         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10217         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10218         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10219         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10220         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
10221         (Makefile.am): Link test-striconveha with iconvsupport.o.
10222         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
10223         tests/iconvsupport.c.
10224         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
10225         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
10226         tests/iconvsupport.c.
10227         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
10228         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
10229         tests/iconvsupport.c.
10230         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
10231         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
10232         tests/iconvsupport.c.
10233         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
10234         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
10235         tests/iconvsupport.c.
10236         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
10237         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
10238         tests/iconvsupport.c.
10239         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
10241 2018-02-24  Bruno Haible  <bruno@clisp.org>
10243         localename: Add support for musl libc.
10244         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
10245         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
10246         on Linux platforms which define NL_LOCALE_NAME.
10248 2018-02-24  Bruno Haible  <bruno@clisp.org>
10250         mbrtowc tests: Don't make assumptions about the charset the C locale.
10251         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
10252         particular mapping in the C locale.
10254 2018-02-24  Bruno Haible  <bruno@clisp.org>
10256         ptsname_r: Don't expect that this function sets errno.
10257         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
10258         from ptsname_r().
10259         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
10261 2018-02-23  Bruno Haible  <bruno@clisp.org>
10263         xmalloca: pacify gcc -Wbad-function-cast
10264         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
10266 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
10268         nl_langinfo: pacify gcc -Wunused-function
10269         * lib/nl_langinfo.c (ctype_codeset): Do not define if
10270         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
10271         this case.  Without this change, I got a diagnostic when building
10272         coreutils on Fedora 27 with gcc 7.3.1 20180130.
10274         same: pacify gcc -Wunused-variable
10275         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
10276         Omit unused variable.
10278         malloca: pacify gcc -Wbad-function-cast
10279         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
10280         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
10281         To pacify GCC, I had to cast alloca’s result to some type other
10282         than void * before casting that to uintptr_t.
10284 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
10286         utimecmp: new function utimecmpat
10287         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
10288         Do not include utimens.h.
10289         (utimecmpat): New function, generalizing utimecmp.
10290         (utimecmp): Now a thin layer around utimecmpat.
10291         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
10292         utimensat instead of on lstat and utimens.
10294         same: new function same_nameat
10295         * lib/same.c: Include fcntl.h.
10296         * lib/same.c (same_nameat): New function, generalizing same_name.
10297         (same_name): Now a thin layer around same_nameat.
10298         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
10299         * modules/same (Depends-on): Depend on fstatat, openat.
10301 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
10303         warnings: Add support for Objective C.
10304         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
10305         macro.
10307 2018-02-17  Bruno Haible  <bruno@clisp.org>
10309         lock: Fix test-once1 crash on FreeBSD11.
10310         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
10311         'pthread_create', not 'pthread_cancel'.
10313 2018-02-17  Bruno Haible  <bruno@clisp.org>
10315         lock: Add test of gl_once.
10316         * tests/test-once.c: New file.
10317         * modules/lock-tests (Files): Add it.
10318         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
10320 2018-02-17  Bruno Haible  <bruno@clisp.org>
10322         thread: Fix compilation error on IRIX.
10323         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
10324         needed; include it outside the C++ extern "C" {} block.
10325         * doc/posix-headers/pthread.texi: Mention the problem with
10326         pthread_atfork on IRIX.
10328 2018-02-04  Bruno Haible  <bruno@clisp.org>
10330         nl_langinfo: Override the system's nl_langinfo() when needed.
10331         Reported by Jim Meyering.
10332         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
10333         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
10335 2018-02-04  Bruno Haible  <bruno@clisp.org>
10337         signal-h, monetary, strings: Fix build failure in some cases.
10338         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10339         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
10340         as delimiter in sed command, not '|'.
10341         * modules/monetary (Makefile.am): Likewise.
10342         * modules/strings (Makefile.am): Likewise.
10344 2018-02-03  Jim Meyering  <meyering@fb.com>
10346         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
10347         * top/maint.mk (sc_file_system): Don't complain about
10348         "/proc/filesystems".
10350 2018-02-03  Bruno Haible  <bruno@clisp.org>
10352         stdlib: Fix compilation error on OpenIndiana.
10353         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
10354         <sys/time.h>.
10355         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10356         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
10358 2018-02-03  Bruno Haible  <bruno@clisp.org>
10360         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
10361         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
10362         and use $EGREP instead of 'grep -E'.
10363         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
10364         'grep -E'.
10366 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
10368         malloca: Add a compile-time verification.
10369         * lib/malloca.c (small_t): Verify that it is wide enough.
10370         * modules/malloca (Depends-on): Add verify.
10372 2018-02-02  Bruno Haible  <bruno@clisp.org>
10374         malloca: Add an argument check.
10375         Suggested by Paul Eggert.
10376         * lib/malloca.c (freea): Check against an invalid argument.
10378 2018-02-02  Bruno Haible  <bruno@clisp.org>
10380         localename: Add support for OpenIndiana.
10381         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
10382         Solaris 11 variants with uselocale() but without getlocalename_l().
10384 2018-02-02  Bruno Haible  <bruno@clisp.org>
10386         malloca, xmalloca: Make multithread-safe.
10387         Reported by Florian Weimer <fweimer@redhat.com>.
10388         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
10389         * lib/malloca.h (malloca): In the stack allocation case, return a
10390         pointer that is a multiple of 2 * sa_alignment_max.
10391         (sa_increment): Remove enum item.
10392         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
10393         a pointer that is a multiple of 2 * sa_alignment_max.
10394         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
10395         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
10396         HASH_TABLE_SIZE, mmalloca_results): Remove.
10397         (small_t): New type.
10398         (mmalloca, free): Rewritten.
10399         * lib/malloca.valgrind: Remove file.
10400         * modules/malloca (Files): Remove it.
10401         (Depends-on): Remove verify.
10403 2018-01-31  Bruno Haible  <bruno@clisp.org>
10405         environ: Fix link error on 64-bit Cygwin.
10406         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
10407         __declspec(dllimport) attribute.
10408         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
10410 2018-01-30  Bruno Haible  <bruno@clisp.org>
10412         get-rusage-data: Add support for Minix 3.
10413         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
10415 2018-01-30  Bruno Haible  <bruno@clisp.org>
10417         vma-iter: Add support for Minix 3.
10418         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
10419         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
10421 2018-01-27  Bruno Haible  <bruno@clisp.org>
10423         Fix malfunction of socket functions on HP-UX in 64-bit mode.
10424         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
10425         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
10426         _HPUX_ALT_XOPEN_SOCKET_API.
10427         * modules/accept (Depends-on): Add 'extensions'.
10428         * modules/getpeername (Depends-on): Likewise.
10429         * modules/getsockname (Depends-on): Likewise.
10430         * modules/getsockopt (Depends-on): Likewise.
10431         * modules/recvfrom (Depends-on): Likewise.
10432         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
10433         * doc/posix-functions/getpeername.texi: Likewise.
10434         * doc/posix-functions/getsockname.texi: Likewise.
10435         * doc/posix-functions/getsockopt.texi: Likewise.
10436         * doc/posix-functions/recvfrom.texi: Likewise.
10438 2018-01-27  Bruno Haible  <bruno@clisp.org>
10440         getsockname tests: More tests.
10441         * tests/test-getsockname.c (open_server_socket): New function, mostly
10442         copied from test-poll.c.
10443         (main): Check that getsockname fills in addr.
10444         * modules/getsockname-tests (Depends-on): Add the necessary
10445         dependencies.
10446         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
10448 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
10450         manywarnings: fix maintainer comment
10451         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
10452         it does not mistakenly think that ‘-1)’ is an option.
10454 2018-01-26  Bruno Haible  <bruno@clisp.org>
10456         langinfo: Fix last commit.
10457         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10458         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
10460 2018-01-24  Bruno Haible  <bruno@clisp.org>
10462         langinfo, nl_langinfo: Add support for alternative month names.
10463         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
10464         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
10465         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
10466         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
10467         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
10468         * doc/posix-functions/nl_langinfo.texi: Likewise.
10470 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
10472         Merge strftime.c changes from glibc
10473         This incorporates:
10474         2017-11-14 [BZ #10871] Implement alternative month names
10475         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
10476         2017-06-20 Use locale_t, not __locale_t, throughout glibc
10477         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
10478         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
10479         Use locale_t, not __locale_t.
10480         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
10481         (__strftime_internal): Add support for alternate months.
10483 2018-01-23  Bruno Haible  <bruno@clisp.org>
10485         doc: Mention another prerequisite for using Gnulib.
10486         Reported at <https://stackoverflow.com/questions/48378214/>.
10487         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
10488         AC_CONFIG_HEADERS.
10490 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
10492         build: GuixSD doesn't have /bin/bash
10493         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
10495 2018-01-21  Bruno Haible  <bruno@clisp.org>
10497         Avoid test failures on Microsoft Windows Subsystem for Linux.
10498         * tests/test-fcntl.c (main): Allow a different errno.
10499         * tests/test-rename.h (test_rename): Likewise.
10500         * tests/test-renameat.c (main): Likewise.
10501         * tests/test-renameat2.c (main): Likewise.
10503 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
10505         filenamecat: make base a suffix of result
10506         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
10507         (mfile_name_concat): Always make BASE a suffix of the result, as
10508         cp expects this.  To implement this, separate with '.' instead of
10509         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
10510         * tests/test-filenamecat.c (main): Adjust tests to match
10511         current behavior.  Check that BASE_IN_RESULT points to
10512         a copy of BASE and is a suffix of the resultk, and that DIR
10513         is a prefix of the result that is no longer than the prefix
10514         indicated by BASE_IN_RESULT.
10516 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
10518         update-copyright: Handle use of ©
10519         * build-aux/update-copyright ($circle_c_re): Update regex to
10520         handle use of © in headers.
10522 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
10524         Fix -Wundef warning in user-included header lib/cdefs.h.
10525         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
10527 2018-01-04  Bruno Haible  <bruno@clisp.org>
10529         pthread_sigmask: Avoid compilation error on mingw.
10530         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10531         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
10532         macro.
10534 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
10536         test-framework-sh: ‘ps -ef’, not ‘ps ef’
10537         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
10538         Suggested by Bob Proulx (Bug#29968).
10539         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
10541 2018-01-02  Eric Blake  <eblake@redhat.com>
10543         stat-time: silence -Wunused-parameter regression
10544         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
10545         Prefer attribute over cast-to-void.
10546         (stat_time_normalize): Mark st as potentially unused.
10548 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10550         test-framework-sh: avoid netstat
10551         Problem reported by Kristýna Streitová (Bug#29947).
10552         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
10553         deprecated on SuSE and it's not that important anyway.
10555 2018-01-01  Jim Meyering  <meyering@fb.com>
10557         update-copyright: add code to handle more special cases
10558         After running "make update-copyright" this year, five files
10559         required additional manual changes.  Automate those adjustments
10560         for next year.
10561         * Makefile (_year_and_prev): Define.
10562         (update-copyright): Add perl commands to induce this year's post-
10563         update-copyright adjustments.
10565 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10567         version-etc: new year
10568         * build-aux/gendocs.sh (version):
10569         * doc/gendocs_template:
10570         * doc/gendocs_template_min:
10571         * doc/gnulib.texi:
10572         * lib/version-etc.c (COPYRIGHT_YEAR):
10573         Update copyright dates by hand in templates and the like.
10575         maint: fix 'make update-copyright'
10576         * Makefile (update-copyright): Adjust to 2016-11-23 change
10577         to config/srclist-update, which changed the format of srclist.txt.
10579 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10581         chdir-safer: remove this module
10582         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
10583         * NEWS: Document removal.
10584         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
10585         * modules/chdir-safer: Remove these files.
10587 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
10589         Add cross-compilation results for GNU/Hurd.
10590         * m4/calloc.m4: Add GNU/Hurd guess.
10591         * m4/cbrtl.m4: Likewise.
10592         * m4/ceil.m4: Likewise.
10593         * m4/ceilf.m4: Likewise.
10594         * m4/ceill.m4: Likewise.
10595         * m4/chown.m4: Likewise.
10596         * m4/duplocale.m4: Likewise.
10597         * m4/exp2l.m4: Likewise.
10598         * m4/expm1.m4: Likewise.
10599         * m4/fchdir.m4: Likewise.
10600         * m4/floor.m4: Likewise.
10601         * m4/floorf.m4: Likewise.
10602         * m4/fmod.m4: Likewise.
10603         * m4/fmodf.m4: Likewise.
10604         * m4/fmodl.m4: Likewise.
10605         * m4/getcwd.m4: Likewise.
10606         * m4/getgroups.m4: Likewise.
10607         * m4/gettimeofday.m4: Likewise.
10608         * m4/hypot.m4: Likewise.
10609         * m4/hypotf.m4: Likewise.
10610         * m4/hypotl.m4: Likewise.
10611         * m4/link-follow.m4: Likewise.
10612         * m4/link.m4: Likewise.
10613         * m4/linkat.m4: Likewise.
10614         * m4/log.m4: Likewise.
10615         * m4/log10.m4: Likewise.
10616         * m4/log10f.m4: Likewise.
10617         * m4/log1p.m4: Likewise.
10618         * m4/log1pf.m4: Likewise.
10619         * m4/log1pl.m4: Likewise.
10620         * m4/log2.m4: Likewise.
10621         * m4/log2f.m4: Likewise.
10622         * m4/logf.m4: Likewise.
10623         * m4/lstat.m4: Likewise.
10624         * m4/malloc.m4: Likewise.
10625         * m4/mbrlen.m4: Likewise.
10626         * m4/mbrtowc.m4: Likewise.
10627         * m4/mkdir.m4: Likewise.
10628         * m4/mkfifo.m4: Likewise.
10629         * m4/mknod.m4: Likewise.
10630         * m4/mkstemp.m4: Likewise.
10631         * m4/modf.m4: Likewise.
10632         * m4/modff.m4: Likewise.
10633         * m4/modfl.m4: Likewise.
10634         * m4/printf.m4: Likewise.
10635         * m4/pselect.m4: Likewise.
10636         * m4/ptsname.m4: Likewise.
10637         * m4/putenv.m4: Likewise.
10638         * m4/readlink.m4: Likewise.
10639         * m4/realloc.m4: Likewise.
10640         * m4/remainder.m4: Likewise.
10641         * m4/remainderf.m4: Likewise.
10642         * m4/remainderl.m4: Likewise.
10643         * m4/rmdir.m4: Likewise.
10644         * m4/round.m4: Likewise.
10645         * m4/roundf.m4: Likewise.
10646         * m4/roundl.m4: Likewise.
10647         * m4/select.m4: Likewise.
10648         * m4/setenv.m4: Likewise.
10649         * m4/signbit.m4: Likewise.
10650         * m4/sleep.m4: Likewise.
10651         * m4/stat.m4: Likewise.
10652         * m4/strerror.m4: Likewise.
10653         * m4/strtok_r.m4: Likewise.
10654         * m4/symlink.m4: Likewise.
10655         * m4/symlinkat.m4: Likewise.
10656         * m4/trunc.m4: Likewise.
10657         * m4/truncf.m4: Likewise.
10658         * m4/truncl.m4: Likewise.
10659         * m4/tzset.m4: Likewise.
10660         * m4/ungetc.m4: Likewise.
10661         * m4/usleep.m4: Likewise.
10662         * m4/wcwidth.m4: Likewise.
10664 2017-12-28  Bruno Haible  <bruno@clisp.org>
10666         gnulib-tool: Make --conditional-dependencies work better.
10667         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
10668         * gnulib-tool (Options): Don't reject the combination of
10669         --conditional-dependencies with --with-tests.
10670         (func_emit_autoconf_snippets): Add argument referenceable_modules.
10671         Don't reference $modules.
10672         (func_import, func_create_testdir): Pass it.
10674 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10676         regex: use re_malloc etc. consistently
10677         Problem and original patch reported by Arnold Robbins in:
10678         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
10679         * lib/regcomp.c (re_comp):
10680         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
10681         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
10683 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
10684             Paul Eggert  <eggert@cs.ucla.edu>
10686         glob: Silence warning about void pointer arithmetic.
10687         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
10688         arithmetic.
10690 2017-12-15  Bruno Haible  <bruno@clisp.org>
10692         spawn-pipe: Silence a clang warning.
10693         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
10694         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
10695         in this file.
10697 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10699         explicit_bzero: port to macOS + Clang 9.0.0
10700         Problem reported by Marcus Johnson (Bug#29658).
10701         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
10702         Don’t use asm.
10704 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
10706         doc: Improve explanation of supporting relocatable libraries.
10707         * doc/relocatable-maint.texi (Supporting Relocation): Explain
10708         properly how to build the relocatable module for
10709         libraries. (Method and example code from Bruno Haible.)
10711 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
10713         doc: Use better texinfo tags in a few cases.
10714         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
10715         instead of @samp in a few places.
10717 2017-12-11  Bruno Haible  <bruno@clisp.org>
10719         unistr/base: Update comment.
10720         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
10722 2017-12-10  Pádraig Brady  <P@draigBrady.com>
10724         test-faccessat.c: unlink temp file to avoid subsequent test failure
10725         * tests/test-faccessat.c: Remove the file to avoid failure
10726         to open the file on subsequent runs due to being created
10727         with no permissions.
10729 2017-12-10  Bruno Haible  <bruno@clisp.org>
10731         doc: New sect. "Modifying the build rules of a Gnulib import directory".
10732         * doc/gnulib-tool.texi (Modified build rules): New node.
10734 2017-12-10  Bruno Haible  <bruno@clisp.org>
10736         doc: Tweak wording.
10737         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
10738         "binaries".
10740 2017-12-05  Sam Steingold  <sds@gnu.org>
10741             Bruno Haible  <bruno@clisp.org>
10743         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
10744         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
10745         AC_EGREP_CPP pattern.
10747 2017-12-03  Bruno Haible  <bruno@clisp.org>
10749         all: Replace more http URLs by https URLs.
10750         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
10751         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
10752         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
10753         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
10755 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
10757         Port better to CentOS 5
10758         Problems reported by Tom G. Christensen in:
10759         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
10760         * doc/glibc-functions/strverscmp.texi (strverscmp):
10761         Document strverscmp bug with glibc 2.9 and earlier.
10762         * doc/posix-functions/tzset.texi (tzset):
10763         Document that TZ with angle brackets is POSIX-2001 and later.
10764         * tests/test-nstrftime.c: Include unistd.h.
10765         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
10766         (TZ): Use it to skip tests with angle brackets in TZ,
10767         for older systems.
10769         stat: add missing module dependencies
10770         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
10771         Add stat-time.
10773 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
10775         stat: fix compilation failure on macOS Sierra
10776         Reported by Marius Schamschula <mschamschula@gmail.com> in:
10777         https://savannah.gnu.org/bugs/?52546
10778         * lib/stat.c: Add missing include of stat-time.h.
10780 2017-11-28  Jim Meyering  <meyering@fb.com>
10782         test-faccessat.c: correct BASE definition to avoid parallel test failure
10783         * tests/test-faccessat.c (BASE): Define using this file's name, not
10784         that of test-lstat.c.  Using the latter caused this test to fail
10785         sometimes when run concurrently with test-lstat.
10787 2017-11-27  Daiki Ueno  <ueno@gnu.org>
10789         unicase: fix VPATH build
10790         * modules/unicase/special-casing (Makefile.am): Ensure that the
10791         base directory is created when generating
10792         unicase/special-casing.h.
10794 2017-11-27  Daiki Ueno  <ueno@gnu.org>
10796         libunistring: update to Unicode 9.0.0
10797         * lib/gen-uni-tables.c (fill_properties): Recognize
10798         Sentence_Terminal and Prepended_Concatenation_Mark.
10799         (is_property_default_ignorable_code_point): Exclude U+08E2.
10800         (fill_arabicshaping): Allow missing whitespace when parsing;
10801         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
10802         (output_blocks): Increase the element size of the level1 table to
10803         accommodate more blocks.
10804         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
10805         Update each class according to the standard.
10806         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
10807         E_Base_GAZ characters.
10808         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
10809         Glue_After_Zwj, and E_Base_GAZ characters.
10810         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
10811         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
10812         enum value.
10813         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
10814         value.
10815         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
10816         LBP_ZWJ, LBP_EB, and LBP_EM.
10817         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
10818         enum value.
10819         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
10820         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
10821         declaration.
10822         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
10823         (uniwbrk_table): Implement WB14.
10824         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
10825         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
10826         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
10827         uc-is-grapheme-break.
10828         * modules/unigbrk/uc-grapheme-breaks: New module.
10829         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
10830         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
10831         enum value.
10832         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
10833         * lib/unigbrk/u-grapheme-breaks.h: New file.
10834         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
10835         u-grapheme-breaks.h instead of uc_is_grapheme_break.
10836         * lib/unigbrk/uc-grapheme-breaks.c: New file.
10837         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
10838         29.
10839         * tests/unigbrk/test-uc-gbrk-prop.c
10840         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
10841         GBP_GAZ, and GBP_EBG.
10842         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
10843         * tests/unigbrk/test-uc-is-grapheme-break.c
10844         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
10845         GBP_GAZ, and GBP_EBG.
10846         (main): Skip unsupported rules involving 3 or more characters,
10847         namely GB10, GB12, and GB13.
10848         * lib/uniwidth/width.c (nonspacing_table_data): Update.
10849         * all generated files under lib/uni* and tests/uni*: Regenerate.
10850         * all the affected modules: Bump version.
10852 2017-11-26  Bruno Haible  <bruno@clisp.org>
10854         strfmon_l: Fix compilation error with glibc 2.5.
10855         Reported by Tom G. Christensen <tgc@jupiterrise.com>
10856         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
10857         * lib/monetary.in.h: Include also <locale.h>.
10859 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
10861         posixtm: remove PDS_LEADING_YEAR
10862         This changes the API slightly, in a hopefully-innocuous way.
10863         Without this change the code had undefined behavior when a
10864         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
10865         Problem reported by Pádraig Brady in:
10866         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
10867         * NEWS: Mention this.
10868         * lib/posixtm.c (posix_time_parse): Treat the absence of
10869         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
10870         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
10871         present, but define it as zero, for compatibility with existing
10872         source code).  All other PDS_* values moved up.
10873         * tests/test-posixtm.c (LY): New macro.
10874         (T): Use it.  Do not expect a particular numeric encoding
10875         for PDS_CENTURY etc.
10877 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
10879         stat: work around Solaris bug with tv_nsec < 0
10880         * doc/posix-functions/fstat.texi (fstat):
10881         * doc/posix-functions/fstatat.texi (fstatat):
10882         * doc/posix-functions/lstat.texi (lstat):
10883         * doc/posix-functions/stat.texi (stat):
10884         Mention Solaris 11 bug.
10885         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
10886         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
10887         * lib/lstat.c (rpl_lstat):
10888         * lib/stat.c (rpl_stat):
10889         Normalize resulting timestamps.
10890         * lib/fstatat.c (normal_fstatat): New function.
10891         (rpl_fstatat): Use it.
10892         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
10893         (stat_time_normalize): New function.
10894         * m4/fstat.m4 (gl_FUNC_FSTAT):
10895         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
10896         * m4/lstat.m4 (gl_FUNC_LSTAT):
10897         * m4/stat.m4 (gl_FUNC_STAT):
10898         Replace on Solaris.
10899         * modules/fstat (Depends-on):
10900         * modules/fstatat (Depends-on):
10901         Add stat-time.
10902         * modules/stat-time (Depends-on): Add errno, intprops.
10904 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
10906         regex: merge from glibc
10907         * lib/regcomp.c (init_word_char): Add comments.
10909 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
10911         regex: merge from glibc
10912         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
10913         * lib/regex_internal.h (internal_function): Remove.
10914         All uses removed.
10916 2017-11-20  Bruno Haible  <bruno@clisp.org>
10918         crypto/gc-sm3: Fix buffer overrun.
10919         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
10920         Reported by Coverity.
10922 2017-11-12  Jim Meyering  <meyering@fb.com>
10924         maint: shorten https://lists.gnu.org/archive/html/... links
10925         Each /archive/html/ part can be replace with /r/.
10926         Run this to induce the change:
10927         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
10928         * ChangeLog: Perform that substitution.
10929         * Makefile: Likewise.
10930         * STATUS-libposix: Likewise.
10931         * build-aux/bootstrap: Likewise.
10932         * doc/maintain.texi: Likewise.
10933         * gnulib-tool: Likewise.
10934         * lib/allocator.h: Likewise.
10935         * lib/argp-ba.c: Likewise.
10936         * lib/argp-pv.c: Likewise.
10937         * lib/canon-host.c: Likewise.
10938         * lib/canonicalize-lgpl.c: Likewise.
10939         * lib/float.in.h: Likewise.
10940         * lib/fstat.c: Likewise.
10941         * lib/getdelim.c: Likewise.
10942         * lib/getprogname.c: Likewise.
10943         * lib/glthread/thread.h: Likewise.
10944         * lib/intprops.h: Likewise.
10945         * lib/mbsrtowcs-state.c: Likewise.
10946         * lib/safe-read.c: Likewise.
10947         * lib/signal.in.h: Likewise.
10948         * lib/stat.c: Likewise.
10949         * lib/stdbool.in.h: Likewise.
10950         * lib/stdio-impl.h: Likewise.
10951         * lib/stdio.in.h: Likewise.
10952         * lib/sysexits.in.h: Likewise.
10953         * lib/timespec.h: Likewise.
10954         * lib/wcsrtombs-state.c: Likewise.
10955         * m4/alloca.m4: Likewise.
10956         * m4/extern-inline.m4: Likewise.
10957         * m4/fstatat.m4: Likewise.
10958         * m4/gnulib-common.m4: Likewise.
10959         * m4/lib-ignore.m4: Likewise.
10960         * m4/printf.m4: Likewise.
10961         * m4/regex.m4: Likewise.
10962         * m4/stat-size.m4: Likewise.
10963         * m4/std-gnu11.m4: Likewise.
10964         * m4/stdbool.m4: Likewise.
10965         * m4/sys_types_h.m4: Likewise.
10966         * m4/threadlib.m4: Likewise.
10967         * m4/vararrays.m4: Likewise.
10968         * pygnulib/GLImport.py: Likewise.
10969         * tests/test-exp.h: Likewise.
10970         * tests/test-exp2.h: Likewise.
10971         * tests/test-expm1.h: Likewise.
10972         * tests/test-fflush2.c: Likewise.
10973         * tests/test-getopt_long.h: Likewise.
10974         * tests/test-intprops.c: Likewise.
10975         * tests/test-log.h: Likewise.
10976         * tests/test-log10.h: Likewise.
10977         * tests/test-log1p.h: Likewise.
10978         * tests/test-log2.h: Likewise.
10979         * tests/test-printf-posix.h: Likewise.
10980         * tests/test-regex.c: Likewise.
10981         * tests/test-snprintf-posix.h: Likewise.
10982         * tests/test-sprintf-posix.h: Likewise.
10983         * tests/test-stdalign.c: Likewise.
10984         * tests/test-stdbool.c: Likewise.
10985         * tests/test-vasnprintf-posix.c: Likewise.
10986         * tests/test-vasprintf-posix.c: Likewise.
10987         * top/maint.mk: Likewise.
10989 2017-11-12  Bruno Haible  <bruno@clisp.org>
10991         faccessat: Make the last change more robust.
10992         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
10993         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
10995 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
10997         faccessat: port to macOS (Bug#29231)
10998         macOS faccessat has the same bug that lstat does: if the file
10999         name ends in '/' it ignores the trailing slash.
11000         Problem reported for Emacs by Vincent Zhang.
11001         * doc/posix-functions/faccessat.texi (faccessat): Document this.
11002         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
11003         around the initial includes.  Include errno.h, string.h, sys/stat.h.
11004         (orig_faccessat) [HAVE_FACCESSAT]: New function.
11005         Include "unistd.h" after defining it.
11006         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
11007         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
11008         Handle in the usual way.
11009         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
11010         lstat dereferences symlinks, since faccessat is likely to
11011         have the same problem.
11012         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
11013         * modules/faccessat (Depends-on): Add fstatat.
11014         Depend if REPLACE_FACCESSAT is 1, too.
11015         (configure.ac): Link if REPLACE_FACCESSAT is 1.
11016         * modules/faccessat-tests (Depends-on): Add symlink.
11017         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
11018         * tests/test-faccessat.c (main): Test for the bug.
11020 2017-11-11  Bruno Haible  <bruno@clisp.org>
11022         getprogname: Fix compilation error on IRIX.
11023         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
11024         'namesize'.
11026 2017-11-11  Bruno Haible  <bruno@clisp.org>
11028         year2038: Tweak last patch.
11029         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
11031 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11033         year2038: be more insistent about 64-bit time_t
11034         Applications requiring access to arbitrary files should not be
11035         built with 32-bit time_t on hosts that have 64-bit timestamps,
11036         as this can lead to real trouble at runtime.
11037         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
11038         Check on all systems, not just MinGW.  Use a heuristic involving
11039         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
11040         output a failure or just a warning, to make it more likely that
11041         builders will select 64-bit time_t.
11043 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
11045         havelib: fix typo in previous change
11046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
11048         Don’t use AC_EGREP_CPP if affected by CFLAGS
11049         * m4/float_h.m4 (gl_FLOAT_H):
11050         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
11051         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
11052         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
11053         * m4/year2038.m4 (gl_YEAR2038):
11054         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
11055         likely to be affected by the choice of CFLAGS, since CFLAGS are
11056         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
11057         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
11059         fstatat: pacify GCC on unusual platform
11060         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
11061         Omit, as it’s unused in this case.
11063 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
11065         timespec: prefer ‘assume’ to ‘assure’
11066         This avoids some runtime tests.  The rest of the module makes
11067         similar assumptions and there is little point to testing here.
11068         * lib/timespec.h: Include verify.h instead of assure.h.
11069         (timespec_cmp): Use ‘assume’, not ‘assure’.
11070         Also, remove an unnecessary cast to ‘int’, as lots of other
11071         code in this module now causes -Wconversion to complain, and
11072         this is a problem with -Wconversion not with the code.
11074         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
11076         Port recent gnulib-tool change to Dash
11077         * gnulib-tool (func_create_testdir): Don't assume that the shell
11078         retokenizes after expanding "$@" inside the call to
11079         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
11081 2017-10-27  Jim Meyering  <meyering@fb.com>
11083         timespec.h: use "assure" to avoid a spurious warning
11084         * lib/timespec.h: Include "assure.h" and use it to help
11085         gcc7's -Wstrict-overflow avoid a false positive warning
11086         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
11087         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
11088         * modules/timespec (Depends-on): Add assure.
11090 2017-10-29  Bruno Haible  <bruno@clisp.org>
11092         Avoid several test failures with traditional locales on Haiku.
11093         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
11094         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
11095         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
11096         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
11097         LOCALE_ZH_CN=none.
11099 2017-10-29  Bruno Haible  <bruno@clisp.org>
11101         strerror_r-posix: Fix behaviour and test failure on Haiku.
11102         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
11103         are positive. Work around return value 0 instead of ERANGE on Haiku.
11104         For unknown error numbers, use a format string consistent with perror().
11105         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
11106         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
11107         are positive.
11109 2017-10-29  Bruno Haible  <bruno@clisp.org>
11111         get-rusage-data: Avoid crash on Haiku.
11112         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
11114 2017-10-29  Bruno Haible  <bruno@clisp.org>
11116         get-rusage-as: Avoid crash on Haiku.
11117         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
11119 2017-10-29  Bruno Haible  <bruno@clisp.org>
11121         ilogbl: Ensure replacement on Haiku.
11122         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
11123         REPLACE_ILOGBL if ilogbl does not work.
11124         (gl_FUNC_ILOGBL_WORKS): New macro.
11125         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
11126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
11127         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
11128         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
11129         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
11131 2017-10-29  Bruno Haible  <bruno@clisp.org>
11133         expl: Ensure replacement on Haiku.
11134         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
11135         zero.
11136         * doc/posix-functions/expl.texi: Mention the Haiku problem.
11138 2017-10-29  Bruno Haible  <bruno@clisp.org>
11140         math: Fix test failure on Haiku.
11141         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
11142         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
11143         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
11144         * doc/posix-headers/math.texi: Mention the Haiku problem.
11146 2017-10-29  Bruno Haible  <bruno@clisp.org>
11148         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
11149         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
11150         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
11152 2017-10-29  Bruno Haible  <bruno@clisp.org>
11154         crypto/*: Verify that the header file is self-contained.
11155         * tests/test-gc-*.c: Include the module's header file immediately after
11156         <config.h>.
11157         * tests/test-hmac-*.c: Likewise.
11158         * tests/test-arcfour.c: Likewise.
11159         * tests/test-arctwo.c: Likewise.
11160         * tests/test-des.c: Likewise.
11161         * tests/test-md2.c: Likewise.
11162         * tests/test-md4.c: Likewise.
11163         * tests/test-md5.c: Likewise.
11164         * tests/test-rijndael.c: Likewise.
11165         * tests/test-sha1.c: Likewise.
11166         * tests/test-sm3.c: Likewise.
11168 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
11169             Bruno Haible  <bruno@clisp.org>
11171         crypto/gc: fix build failure with -Werror=suggest-attribute=const
11172         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
11174 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
11176         New module: crypto/gc-sm3
11177         * lib/gc.h: Declare SM3-related stuffs.
11178         * lib/gc-gnulib.c: Support sm3 in internal functions.
11179         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
11180         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
11181         * modules/crypto/gc-sm3: Define gc-sm3 module.
11182         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
11183         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
11184         * MODULES.html.sh: List gc-sm3 module.
11186 2017-10-29  Bruno Haible  <bruno@clisp.org>
11188         random, random_r: Mention different prototypes on Haiku.
11189         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
11190         * doc/glibc-functions/random_r.texi: Likewise.
11191         * doc/glibc-functions/initstate_r.texi: Likewise.
11192         * doc/glibc-functions/setstate_r.texi: Likewise.
11194 2017-10-28  Bruno Haible  <bruno@clisp.org>
11196         posix_spawn: Avoid spurious message in configure output.
11197         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
11198         'cmp' command.
11200 2017-10-28  Bruno Haible  <bruno@clisp.org>
11202         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
11203         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
11204         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11206 2017-10-28  Bruno Haible  <bruno@clisp.org>
11208         ioctl: Override non-POSIX declaration on Haiku.
11209         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
11210         * lib/sys_ioctl.in.h: Add comment about Haiku.
11211         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
11212         * doc/glibc-headers/sys_ioctl.texi: Likewise.
11214 2017-10-28  Bruno Haible  <bruno@clisp.org>
11216         crypto/sm3: Add overview documentation to the .h file.
11217         * lib/sm3.h: Add comments.
11219 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
11221         New module: crypto/sm3
11222         This new module can be used to compute SM3 message digest of files or
11223         memory blocks according to the specification GM/T 004-2012
11224         Cryptographic Hash Algorithm SM3, published by State Cryptography
11225         Administration, China.
11226         The official SM3 cryptographic hash algorithm specification is
11227         available at
11228         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
11229         * lib/sm3.h: Declare the APIs of sm3 module.
11230         * lib/sm3.c: Implement SM3 hash algorithm.
11231         * m4/sm3.m4: m4 file for sm3 module.
11232         * modules/crypto/sm3: Define sm3 module.
11233         * tests/test-sm3.c: Implement SM3 test case.
11234         * modules/crypto/sm3-tests: Define sm3 test module.
11235         * MODULES.html.sh: List sm3 module.
11237 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
11239         gc-libgcrypt: fix undefined enum type in switch statement
11240         Resolve the following build failure:
11241         lib/gc-libgcrypt.c: In function 'gc_hash_open':
11242         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
11243         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
11244              case 0:
11245              ^~~~
11246         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
11247         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
11249 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
11251         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
11252         Resolve the following build failure:
11253         lib/gc-libgcrypt.c: In function 'gc_hash_read':
11254         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
11255         in signedness [-Werror=pointer-sign]
11256             digest = gcry_md_read (ctx->gch, 0);
11257                    ^
11258         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
11260 2017-10-26  Bruno Haible  <bruno@clisp.org>
11262         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
11263         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
11264         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
11266 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
11268         glob: fix another heap buffer overflow
11269         Problem reported by Tim Rühsen in:
11270         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
11271         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
11273 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11275         quotearg: pacify compiler re unsigned
11276         * lib/quotearg.c (quotearg_n_options):
11277         Rewrite to avoid diagnostic from overly-picky compiler.
11278         Problem reported by Sami Kerola in:
11279         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
11281         glob: fix heap buffer overflow
11282         * lib/glob.c (glob): Fix off-by-one error introduced into
11283         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
11284         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
11285         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
11286         Fix suggested by Bruno Haible.
11288 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
11290         glob: pacify fuzzer for mempcpy
11291         Problem reported by Tim Rühsen in:
11292         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
11293         * lib/glob.c (glob): Do not pass NULL to mempcpy.
11295 2017-10-12  Bruno Haible  <bruno@clisp.org>
11297         doc: Fix syntax error (regression from 2017-10-03).
11298         * doc/posix-functions/strncpy.texi: Fix syntax error.
11300 2017-10-12  Bruno Haible  <bruno@clisp.org>
11302         doc: Update for Solaris 11.3.
11303         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
11304         mention Solaris 11.3.
11305         * m4/log2.m4: Fix comments.
11306         * m4/log2f.m4: Likewise.
11307         * m4/printf.m4: Update comments.
11308         * m4/rename.m4: Likewise.
11309         * m4/strncat.m4: Likewise.
11311         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
11313 2017-10-10  Bruno Haible  <bruno@clisp.org>
11315         doc: Improve doc about ioctl.
11316         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
11317         prototype.
11319 2017-10-09  Bruno Haible  <bruno@clisp.org>
11321         wcwidth: Don't use obsolete syntax of 'test'.
11322         Reported by Eric Blake.
11323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
11324         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
11326 2017-10-09  Bruno Haible  <bruno@clisp.org>
11328         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
11329         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
11330         and Daniel P. Berrange <berrange@redhat.com>.
11331         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
11332         on glibc systems. The getopt-pfx-core.h file declares exactly what
11333         unistd.h needs, nothing more.
11335 2017-10-08  Bruno Haible  <bruno@clisp.org>
11337         vma-iter: Improve support for FreeBSD.
11338         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
11339         vma_iterate.
11340         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
11342 2017-10-08  Bruno Haible  <bruno@clisp.org>
11344         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
11345         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
11347 2017-10-07  KO Myung-Hun  <komh@chollian.net>
11349         test-framework-sh: Fix 'invalid path dir' error.
11350         On OS/2, a path separator is ';' not ':'. And ':' is used as a
11351         separator between a drive letter and directory parts.
11352         As a result, an absolute path such as x:/path/to/dir on OS/2 is
11353         treated as an invalid path dir.
11354         * tests/init.sh (PATH_SEPARATOR): Set at startup.
11355         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
11356         instead of hard coded ':'.
11358 2017-10-07  Bruno Haible  <bruno@clisp.org>
11360         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
11361         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
11362         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
11363         (rof_open): On Linux, do multiple read() calls and make sure
11364         MIN_LEFTOVER bytes are left when read() returns.
11366 2017-10-07  Bruno Haible  <bruno@clisp.org>
11368         vma-iter: Improve support for GNU/Hurd.
11369         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
11370         API, not the /proc file system.
11372 2017-10-07  Bruno Haible  <bruno@clisp.org>
11374         test-framework-sh: Don't require bash on Windows and OS/2.
11375         Reported by KO Myung-Hun.
11376         * tests/test-init.sh: Use 'shopt' only when running in bash.
11378 2017-10-06  KO Myung-Hun  <komh@chollian.net>
11380         wcwidth: check a macro version of wcwidth () as well
11381         * lib/wchar.in.h: Revert commit from 2016-01-14.
11382         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
11384 2017-10-06  Bruno Haible  <bruno@clisp.org>
11386         getopt-posix: Clarify copyright header.
11387         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
11388         * lib/getopt-pfx-core.h: Likewise.
11389         * lib/getopt-pfx-ext.h: Likewise.
11390         * lib/getopt-cdefs.in.h: Likewise.
11392 2017-10-03  Bruno Haible  <bruno@clisp.org>
11394         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
11395         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
11396         gl_HOST_CPU_C_ABI.
11398 2017-10-03  Bruno Haible  <bruno@clisp.org>
11400         doc: warn about misuse of strncpy and wcsncpy.
11401         * doc/posix-functions/strcpy.texi: Describe requirements on prior
11402         memory allocation.
11403         * doc/posix-functions/wcscpy.texi: Likewise.
11404         * doc/posix-functions/strncpy.texi: Describe what this function is not
11405         useful for.
11406         * doc/posix-functions/wcsncpy.texi: Likewise.
11408 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
11410         fsuage: fix typo in previous change
11411         * lib/fsusage.c: Remove stray include of full-read.h.
11412         Problem reported by Sam Steingold for macOS (Bug#28669).
11414 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
11416         fsusage: remove SVR2 support
11417         SVR2 was obsolete by 1986 and is no longer supported by anybody,
11418         and its code was getting in the way of use of this module by
11419         Emacs, which has its own ‘read’ function anyway.
11420         * lib/fsusage.c: Do not include sys/filsys.h.
11421         (get_fs_usage): Remove SVR2-specific code.
11422         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
11423         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
11424         * modules/fsusage (Depends-on): Do not depend on full-read.
11426         Simplify autoupdate of licenses
11427         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
11428         place.
11430 2017-10-01  Bruno Haible  <bruno@clisp.org>
11432         vma-iter: Add support for GNU/Hurd.
11433         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
11434         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
11436 2017-09-30  Bruno Haible  <bruno@clisp.org>
11438         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
11439         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
11440         fail when module 'largefile' is in use.
11441         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
11442         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
11443         Don't test HAVE_SYS_PROCFS_H.
11445 2017-09-30  Bruno Haible  <bruno@clisp.org>
11447         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
11448         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
11449         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
11450         * modules/havelib (Depends-on): Add host-cpu-c-abi.
11452 2017-09-30  Bruno Haible  <bruno@clisp.org>
11454         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
11455         * lib/uniname/uniname.c (unicode_name_character): Add braces around
11456         scope of local variables.
11458 2017-09-28  Bruno Haible  <bruno@clisp.org>
11460         string: code style
11461         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
11462         substitutable variables.
11463         * modules/string (Makefile.am): Likewise.
11465 2017-09-26  Bruno Haible  <bruno@clisp.org>
11467         uniname/uniname-tests: Tighten code.
11468         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
11469         local variables into one.
11471 2017-09-26  Bruno Haible  <bruno@clisp.org>
11473         vma-iter: Improvements for Linux and BSD platforms.
11474         - Add support for DragonFly BSD.
11475         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
11476         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
11477         Read the entire file into memory in a single system call.
11478         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
11479         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
11481 2017-09-26  Bruno Haible  <bruno@clisp.org>
11483         vma-iter: Provide the protection flags on FreeBSD.
11484         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
11485         skip three fields between the addresses and the protection flags.
11487 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11489         glob: remove bogus extern decl
11490         * lib/glob.c (__glob_pattern_type): Remove now-spurious
11491         extern declaration.  Problem reported by Adhemerval Zanella in:
11492         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
11494 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
11496         uniname/uniname-tests: integer overflow fix
11497         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
11498         Check for integer overflow.
11500         duplocale-tests: fix unlikely crash
11501         * tests/test-duplocale.c (get_locale_dependent_values):
11502         Don’t crash with absurdly long month names.
11504         maint: fix overflow checking in nap.h
11505         * modules/chown-tests:
11506         * modules/fchownat-tests, modules/fdutimensat-tests:
11507         * modules/futimens-tests, modules/lchown-tests:
11508         * modules/stat-time-tests, modules/utime-tests:
11509         * modules/utimens-tests, modules/utimensat-tests:
11510         Depend on intprops.
11511         * tests/nap.h: Include intprops.h.
11512         (diff_timespec): Handle overflow properly.
11514         sys_types: update URL
11515         * m4/sys_types_h.m4: Use https: URL.
11517         parse-datetime: fix dependency
11518         * modules/parse-datetime (Depends-on): Depend
11519         on nstrftime, not strftime.
11521         parse-datetime, posixtm: avoid uninit access
11522         * lib/parse-datetime.y (parse_datetime2):
11523         * lib/posixtm.c (posixtime):
11524         Do not access uninitialized storage, even though the resulting
11525         value is never used.
11527 2017-09-25  Bruno Haible  <bruno@clisp.org>
11529         vma-iter: Improvements for BSD platforms.
11530         - Add support for GNU/kFreeBSD.
11531         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
11532         - Speed up on OpenBSD.
11533         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
11534         (vma_iterate_bsd): New function.
11535         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
11536         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
11537         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
11538         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
11540 2017-09-23  Bruno Haible  <bruno@clisp.org>
11542         strfmon_l: New module.
11543         * modules/strfmon_l: New file.
11544         * lib/strfmon_l.c: New file.
11545         * m4/strfmon_l.m4: New file.
11546         * doc/posix-functions/strfmon_l.texi: Mention the new module.
11547         * modules/strfmon_l-tests: New file.
11548         * tests/test-strfmon_l.c: New file.
11550         monetary: New module.
11551         * modules/monetary: New file.
11552         * lib/monetary.in.h: New file.
11553         * m4/monetary_h.m4: New file.
11554         * doc/posix-headers/monetary.texi: Mention the new module.
11555         * modules/monetary-tests: New file.
11556         * tests/test-monetary.c: New file.
11557         * modules/monetary-c++-tests: New file.
11558         * tests/test-monetary-c++.cc: New file.
11559         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
11561 2017-09-23  Bruno Haible  <bruno@clisp.org>
11563         duplocale tests: Fix test crash on Linux/x86.
11564         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
11565         locale from the current thread before freeing it.
11567 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
11569         mktime: port to OpenVMS
11570         Problem reported by John E. Malmberg in:
11571         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
11572         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
11574 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11576         manywarnings: port to GCC on 64-bit MS-Windows
11577         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
11578         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
11579         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
11581 2017-09-13  Bruno Haible  <bruno@clisp.org>
11583         all: Replace many more http URLs by https URLs. Update stale URLs.
11584         * users.txt: Remove mention of 'newts'.
11585         * lib/localename.c: Update comment about LANG_SOTHO.
11587 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11589         all: Replace many http URLs by https URLs.
11591 2017-09-12  Bruno Haible  <bruno@clisp.org>
11593         doc: Prefer https URLs where possible.
11594         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
11595         * doc/ld-output-def.texi: Remove unavailable URL.
11597 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
11599         maintainer-makefile: FTP -> HTTPS
11600         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
11601         of FTP, which is planned to be decommissioned on 2017-11-01.
11603 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
11605         libc-config: Fix __GNUC_PREREQ macro.
11606         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
11607         __GNUC_MINOR.
11609 2017-09-09  Bruno Haible  <bruno@clisp.org>
11611         gnulib-tool: Simplify commit from 2015-08-20.
11612         * gnulib-tool (func_add_or_update): Remove local variable
11613         is_binary_file.
11615 2017-09-08  Bruno Haible  <bruno@clisp.org>
11617         stddef: Avoid conflict with system-defined max_align_t.
11618         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
11619         Reported by Werner Lemberg <wl@gnu.org> in
11620         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
11621         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
11622         (max_align_t): Define as a macro.
11623         (GNULIB_defined_max_align_t): New macro. Guards against multiple
11624         definitions of rpl_max_align_t in different copies of gnulib-generated
11625         <stddef.h>.
11627 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11629         libc-config: port to MSVC
11630         Problems reported by Gisle Vanem in:
11631         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
11632         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
11633         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
11634         * m4/__inline.m4: New file.
11635         * modules/libc-config (Files): Add it.
11636         (Depends-on): Use it.
11638         glob: Use enum for __glob_pattern_type result
11639         From a patch proposed by Adhemerval Zanella in:
11640         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
11641         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
11642         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
11643         * lib/glob_internal.h (__glob_pattern_type):
11644         * lib/glob.c (glob):
11645         * lib/glob_pattern_p.c (__glob_pattern_p):
11646         Use them.
11648         glob: fix for use in glibc
11649         Problem reported by Adhemerval Zanella in:
11650         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
11651         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
11652         Do not redefine if _LIBC.
11654 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11656         glob: fix bugs with long login names
11657         Problem reported by Adhemerval Zanella in:
11658         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
11659         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
11660         (glob): Use the same scratch buffer for both getlogin_r and
11661         getpwnam_r.  Don’t require preallocation of the login name.  This
11662         simplifies storage allocation, and corrects the handling of
11663         long login names.
11665 2017-09-02  Bruno Haible  <bruno@clisp.org>
11667         dirent: Update doc.
11668         * doc/posix-headers/dirent.texi: More concrete list of platforms.
11670 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11672         glob: fix getpwnam_r errno typo
11673         * lib/glob.c (glob): Fix longstanding misuse of errno after
11674         getpwnam_r, which returns an error number rather than setting
11675         errno.
11677         glob: fix typo in recent change
11678         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
11679         Fix recently-introduced typo.
11681 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
11683         glob: don't save and restore errno unnecessarily
11684         * lib/glob.c (glob): Don't save and restore errno
11685         merely because we have getpwnam_r.
11687         glob: don't assume getpwnam_r
11688         * lib/glob.c (glob): Port recent patches to platforms
11689         lacking getpwnam_r.
11691         scratch_buffer: don’t use private glibc API
11692         Suggested by Florian Weimer in:
11693         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
11694         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
11695         * lib/scratch_buffer_grow.c: Rename to
11696         lib/malloc/scratch_buffer_grow.c.
11697         * lib/scratch_buffer_grow_preserve.c: Rename to
11698         lib/malloc/scratch_buffer_grow_preserve.c.
11699         * lib/scratch_buffer_set_array_size.c: Rename to
11700         lib/malloc/scratch_buffer_set_array_size.c.
11701         * lib/scratch_buffer.h: New file.
11702         * modules/scratch_buffer (Files, Makefile.am):
11703         Adjust to source-file renaming.
11705 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
11707         glob: use scratch_buffer instead of extend_alloca
11708         Much of the lib/glob.c part of this patch comes from a glibc patch
11709         proposed by Adhemerval Zanella in:
11710         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
11711         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
11712         included via glob.h, does this for us now.
11713         (__set_errno): Remove, as libc-config does this for us now.
11714         Include <scratch_buffer.h>.
11715         (GETPW_R_SIZE_MAX): Remove.
11716         (glob): Use struct scratch_buffer instead of extend_alloca.
11717         * lib/glob.in.h: Include libc-config.h rather than
11718         including <sys/cdefs.h> conditionally.
11719         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
11720         (__glibc_unlikely, __restrict, weak_alias):
11721         Remove, as libc-config does this for us now.
11722         * m4/glob.m4 (gl_PREREQ_GLOB):
11723         Remove sys/cdefs.h tests; no longer needed.
11724         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
11725         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
11727         scratch_buffer: new module
11728         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
11729         * lib/scratch_buffer_grow_preserve.c:
11730         * lib/scratch_buffer_set_array_size.c:
11731         New files, copied from glibc with very minor changes that can be
11732         copied back.
11733         * modules/scratch_buffer: New file.
11735         libc-config: new module
11736         * MODULES.html.sh: Add libc-config.
11737         * lib/cdefs.h: New file, copied from the GNU C Library with very
11738         minor changes that can be copied back.
11739         * lib/libc-config.h, modules/libc-config: New files.
11741 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
11743         glob: match dangling symlinks
11744         This fixes a bug I inadvertently introduced to Gnulib when I
11745         merged glibc glob back into gnulib on 2007-10-16.  This fix is
11746         inspired by a patch proposed for glibc by Adhemerval Zanella in:
11747         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
11748         * doc/posix-functions/glob.texi: Update list of affected platforms.
11749         * lib/glob.c (__lstat64): New macro.
11750         (is_dir): New function.
11751         (glob, glob_in_dir): Match symlinks even if they are dangling.
11752         (link_stat, link_exists_p): Remove.  All uses removed.
11753         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
11754         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
11755         * modules/glob-tests (Depends-on): Add symlink.
11756         * tests/test-glob.c: Include errno.h, unistd.h.
11757         (BASE): New macro.
11758         (main): Test dangling symlinks, if symlinks are supported.
11760         glob, backupfile: inode 0 is a valid inode number
11761         * doc/posix-functions/readdir.texi (readdir):
11762         * doc/posix-headers/dirent.texi (dirent.h):
11763         Document more readdir portability issues.
11764         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
11765         (numbered_backup): Don’t treat inode 0 any differently from
11766         other inode values.
11767         * lib/glob.c (struct readdir_result): Remove skip_entry member.
11768         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
11769         All uses removed.
11770         * modules/glob (Depends-on): Remove d-ino.
11772         glob: simplify symlink detection
11773         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
11774         uint8_t, as C99 does not require uint8_t.
11775         (struct readdir_result): Use it.  Do not define skip_entry unless
11776         it is needed; this saves a byte on platforms lacking d_ino.
11777         (readdir_result_type, readdir_result_skip_entry):
11778         New functions, replacing ...
11779         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
11780         ... these functions, which were removed.  This makes the callers
11781         easier to read.  All callers changed.
11782         (D_INO_TO_RESULT): Now empty if there is no d_ino.
11784 2017-08-30  Pádraig Brady  <P@draigBrady.com>
11786         fts-tests: tag as a longrunning-test so not included by default
11787         * modules/fts-tests: This test takes about 20s on current systems,
11788         and uses about 285M of space on ext4.
11790 2017-08-30  Pádraig Brady  <P@draigBrady.com>
11792         renameat2: fix compilation on alpine linux
11793         * m4/renameat.m4: Check for <linux/fs.h> presence.
11794         * lib/renameat2.h: Only include <linux/fs.h> if present.
11795         Reported by Assaf Gordon on Alpine Linux.
11797 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11799         glob: try to port recent changes to MS-Windows
11800         Problem reported by Bruno Haible in:
11801         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
11802         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
11803         * lib/glob.in.h (__glob_pattern_p): ... to here.
11805 2017-08-24  Eric Blake  <eblake@redhat.com>
11807         warnings: fix compilation with old autoconf
11808         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
11809         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
11810         AC_DEFUN.
11811         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
11812         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
11814 2017-08-24  Bruno Haible  <bruno@clisp.org>
11816         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
11817         * modules/glob (Depends-on): Add c99.
11819 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
11821         glob: fix typo that broke platforms lacking d_ino
11822         This typo also hurt performance on GNU/Linux and similar hosts.
11823         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
11824         in previous change.
11826 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
11828         glob: merge from glibc with Zanella glob changes
11829         Merge glob from glibc, with changes for glob proposed
11830         by Adhemerval Zanella in the thread starting here:
11831         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
11832         plus some fixes for this merge.
11833         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
11834         New files, ported from glibc.
11835         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
11836         with __restrict.
11837         (__size_t): Remove.  All uses replaced by size_t.
11838         (size_t): Define by defining __need_size_t and including <stddef.h>.
11839         This should work even in non-glibc platforms, where any name
11840         pollution is OK.
11841         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
11842         (struct stat64): Don’t worry about __GLOB_GNULIB.
11843         (glob, globfree, glob_pattern_p): Remove macros for
11844         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
11845         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
11846         but set errno.
11847         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
11848         removed since the glibc behavior works on null pointers.
11849         Do not include stdio.h; old SunOS is irrelevant now.
11850         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
11851         Include glob_internal.h.
11852         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
11853         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
11854         worked only coincidentally.
11855         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
11856         Remove macros; now done in glob.in.h.
11857         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
11858         (glob): Properly initialize glob structure with
11859         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
11860         Remove old code using SHELL since Bash no longer
11861         uses this.
11862         (glob, prefix_array): Separate MS code better.
11863         (glob, glob_in_dir): Use C99 decls before statements when glibc
11864         does.
11865         (glob_in_dir): Remove old Amiga and VMS code.
11866         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
11867         separate files.
11868         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
11869         (__glibc_unlikely):
11870         Move here from glob.c.
11871         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
11872         (weak_alias): New macro.
11873         (__size_t): Remove.  All uses replaced by size_t.
11874         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
11875         * modules/glob (Files): Add +lib/glob_internal.h,
11876         lib/glob_pattern_p.c, lib/globfree.c.
11877         (Depends-on): Remove snippet/arg-nonnull.
11879 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
11881         glob: port to clang's Undefined Sanitizer
11882         Problem reported by Tim Rühsen in:
11883         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
11884         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
11885         (glob_in_dir): Do not rely on undefined behavior in accessing
11886         struct members beyond their bounds.  Use a flexible array member
11887         instead.
11889 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
11891         vc-list-files: port to Solaris 10
11892         * build-aux/vc-list-files: Don't assume test -e works.
11894 2017-08-21  Karl Berry  <karl@freefriends.org>
11896         * doc/posix-functions/srandom.texi (srandom): typo }.
11898 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
11900         git-version-gen: port to Solaris 10
11901         Problem reported by Dagobert Michelsen in:
11902         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
11903         * build-aux/git-version-gen (v_from_git):
11904         Use expr instead of shell substitution.
11906 2017-08-19  Bruno Haible  <bruno@clisp.org>
11908         host-cpu-c-abi: Improve detection of MIPS ABI.
11909         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
11910         _MIPS_SIM.
11912 2017-08-17  Bruno Haible  <bruno@clisp.org>
11914         hypot tests: Fix test failure on FreeBSD 11.0/x86.
11915         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
11917 2017-08-17  Bruno Haible  <bruno@clisp.org>
11919         float: Fix LDBL_MIN value on FreeBSD/x86.
11920         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
11922 2017-08-17  Bruno Haible  <bruno@clisp.org>
11924         random: Fix test compilation failure on Cygwin 1.5.25.
11925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
11926         HAVE_DECL_SETSTATE.
11927         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
11928         declared.
11929         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
11930         HAVE_DECL_SETSTATE.
11931         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
11932         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
11933         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
11934         * doc/posix-functions/random.texi: Likewise.
11935         * doc/posix-functions/setstate.texi: Likewise.
11936         * doc/posix-functions/srandom.texi: Likewise.
11938 2017-08-16  Bruno Haible  <bruno@clisp.org>
11940         stdnoreturn: Fix test compilation failure on Cygwin.
11941         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
11942         <stdnoreturn.h> replacement.
11943         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
11944         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
11946 2017-08-16  Bruno Haible  <bruno@clisp.org>
11948         thread: Fix conflict with pthread_sigmask module.
11949         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
11950         it's defined as a macro.
11951         * modules/thread (Depends-on): Add pthread_sigmask.
11953 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
11955         rename: port better to NetBSD
11956         * doc/posix-functions/rename.texi (rename): NetBSD 7
11957         does not have the link-count bug.
11958         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
11959         broken merely because rename ("a", "b") removes "a" when the two
11960         names are hard links to the same file.
11962 2017-08-16  Bruno Haible  <bruno@clisp.org>
11964         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
11965         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
11966         the target file names with '$(srcdir)/'.
11967         * modules/unicase/locale-language (Makefile.am): Likewise.
11968         * modules/unicase/special-casing (Makefile.am): Likewise.
11969         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
11970         * modules/unictype/category-byname (Makefile.am): Likewise.
11971         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
11972         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
11973         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
11974         * modules/unictype/property-byname (Makefile.am): Likewise.
11975         * modules/unictype/scripts (Makefile.am): Likewise.
11976         * modules/uninorm/composition (Makefile.am): Likewise.
11978 2017-08-16  Bruno Haible  <bruno@clisp.org>
11980         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
11981         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
11982         value for OpenBSD.
11984 2017-08-16  Bruno Haible  <bruno@clisp.org>
11986         rename, renameat: Update doc regarding NetBSD.
11987         * doc/posix-functions/rename.texi: Clarify that when using
11988         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
11989         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
11990         version.
11992 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
11994         renameat2: port better to macOS
11995         * lib/renameat2.c (renameat2): Use renameatx_np if available.
11997         futimens: don’t assume struct timespec layout
11998         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
11999         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
12000         * tests/test-fdutimensat.c (main):
12001         * tests/test-futimens.h (test_futimens):
12002         * tests/test-lutimens.h (test_lutimens):
12003         * tests/test-utimens.h (test_utimens):
12004         * tests/test-utimensat.c (main):
12005         Don’t assume that struct timespec is a two-member structure in
12006         tv_sec, tv_nsec order.  Although this is true on all platforms we
12007         know about, POSIX does not guarantee it.
12009         rename: document+test NetBSD rename
12010         Test failure reported by Bruno Haible in:
12011         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
12012         This is an area where NetBSD is better-behaved than POSIX,
12013         so allow the NetBSD behavior in tests.
12014         * doc/posix-functions/rename.texi:
12015         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
12016         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
12018 2017-08-15  Bruno Haible  <bruno@clisp.org>
12020         renameat: Ensure declaration in <stdio.h> on NetBSD.
12021         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
12022         * doc/posix-functions/renameat.texi: Mention this problem.
12024 2017-08-15  Bruno Haible  <bruno@clisp.org>
12026         duplocale: Work around NetBSD 7.0 bug.
12027         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
12028         * lib/duplocale.c: Add comment about NetBSD problem.
12029         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
12031 2017-08-15  Bruno Haible  <bruno@clisp.org>
12033         duplocale tests: Verify use with *_l functions.
12034         * modules/duplocale-tests (configure.ac): Test for uselocale and
12035         some *_l functions.
12036         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
12037         from main.
12038         (get_locale_dependent_values_from, test_with_locale_parameter): New
12039         functions.
12040         (main): Test both test_with_uselocale and test_with_locale_parameter.
12042 2017-08-15  Bruno Haible  <bruno@clisp.org>
12044         extensions: Enable NetBSD specific extensions.
12045         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
12047 2017-08-14  Bruno Haible  <bruno@clisp.org>
12049         open, openat: Update doc about O_CLOEXEC.
12050         * doc/posix-functions/open.texi: More concrete list of platforms.
12051         * doc/posix-functions/openat.texi: Likewise.
12053 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12055         open: support O_CLOEXEC
12056         * NEWS, doc/posix-functions/open.texi:
12057         * doc/posix-functions/openat.texi: Document this.
12058         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
12059         (GNULIB_defined_O_CLOEXEC): New symbol.
12060         * lib/open.c: Include cloexec.h.
12061         (open): Support O_CLOEXEC.
12062         * lib/openat.c: Include cloexec.h.
12063         (rpl_openat): Support O_CLOEXEC.
12064         * lib/popen-safer.c: Do not include cloexec.h.
12065         (open_noinherit): Remove.
12066         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
12067         * lib/save-cwd.c: Do not include cloexec.h.
12068         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
12069         * m4/open-cloexec.m4: New file.
12070         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
12071         Replace 'open' if O_CLOEXEC is not present.
12072         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
12073         Replace 'openat' if O_CLOEXEC is not present.
12074         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
12075         * modules/open (Files): Add m4/open-cloexec.m4.
12076         (Depends-on): Depend on cloexec if replacing 'open'.
12077         * modules/openat (Files): Add m4/open-cloexec.m4.
12078         (Depends-on): Depend on cloexec if replacing openat.
12079         * modules/popen-safer (Depends-on): Remove cloexec.
12080         * modules/save-cwd (Depends-on): Remove cloexec, and add
12081         fd-safer-flag and 'open'.
12083 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
12085         reallocarray: minor fixes
12086         * doc/glibc-functions/reallocarray.texi: Update version numbers.
12087         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
12088         * modules/reallocarray (License): Change from GPL to LGPL.
12089         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
12090         Indent properly and don't use tabs.
12092 2017-08-13  Darshit Shah  <darnir@gnu.org>
12094         reallocarray: New module
12095         reallocarray is a new function in glibc 2.26 to safely allocate an array
12096         of memory locations with integer overflow protection.
12097         * MODULES.html.sh: Add reallocarray.
12098         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
12099         * lib/reallocarray.c: New file to implement module reallocarray.
12100         * lib/stdlib.in.h: Add function declarations for reallocarray.
12101         * m4/reallocarray.m4: New file.
12102         * m4/stdlib_h.m4: Declare reallocarray.
12103         * modules/reallocarray: New file.
12104         * modules/reallocarray-test: New file.
12105         * modules/stdlib: Coerce stdlib.h to export reallocarray.
12106         * tests/test-reallocarray.c: New test.
12108 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12110         dirent-safer: fix cloexec race
12111         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
12112         (opendir_safer): Use F_DUPFD_CLOEXEC.
12113         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
12114         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
12115         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
12116         instead of dup_safer.
12118         fts: fix cloexec races
12119         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
12120         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
12121         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
12122         (fd_ring_check): Set cloexec flag on new file descriptors.
12123         (fts_build, fd_ring_check): While we’re at it, make sure the
12124         resulting file descriptor is not 0, 1, or 2, since that is easy.
12126 2017-08-11  Bruno Haible  <bruno@clisp.org>
12128         fts tests: Fix link error.
12129         Reported by Tom G. Christensen in
12130         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
12131         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
12133 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12135         fts: port recent changes to CentOS 6
12136         Problem reported by Tom G. Christensen in:
12137         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
12138         * lib/fts.c (fsword): New type.
12139         (struct dev_type, filesystem_type): Use it.
12140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
12141         Also, check for f_type only if fstatfs and sys/vfs.h work.
12143 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12145         tempname: do not depend on secure_getenv
12146         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
12147         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
12148         * modules/tempname (Depends-on): Remove secure_getenv.
12150 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
12152         extensions: add _OPENBSD_SOURCE
12153         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
12155 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
12156             Bruno Haible  <bruno@clisp.org>
12158         manywarnings: Add support for C++.
12159         * build-aux/g++-warning.spec: New file.
12160         * m4/manywarnings-c++.m4: New file.
12161         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
12162         redirects to manywarnings-c++.m4.
12163         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
12165 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
12167         git-version-gen: another fix for tags with "-"
12168         * build-aux/git-version-gen: Improve fix for tags containing "-".
12169         Suggested by Markus Armbruster in:
12170         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
12172 2017-08-06  Bruno Haible  <bruno@clisp.org>
12174         warnings, manywarnings: Add support for multiple languages, not just C.
12175         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
12176         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
12177         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
12178         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
12179         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
12180         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
12181         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
12182         of the current language. If C++ is the current language, modify
12183         WARN_CXXFLAGS instead of WARN_CFLAGS.
12184         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
12185         gl_MANYWARN_ALL_GCC.
12186         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
12188 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
12190         git-version-gen: Fix for tags containing '-'
12192         Really old versions of git-describe (before v1.5.0, Feb 2007)
12193         don't have the number of commits in their long format output,
12194         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
12195         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
12196         recognizes both patterns, and normalizes the old format to the new one.
12198         Unfortunately, this normalization code gets confused when the tag
12199         contains '-'.  Reproducer:
12201             $ git-tag -m test v0.2-rc1
12202             $ build-aux/git-version-gen .tarball-version; echo
12203             build-aux/git-version-gen: WARNING: git rev-list failed
12204             UNKNOWN
12206         We take exact tag "v0.2-rc1" for the old format, extract the presumed
12207         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
12208         commits since tha tag.  Fails, because tag "v0.2" does not exist.
12210         * git-version-gen: We could perhaps drop support for versions from
12211         more than a decade ago.  But tightening the pattern match is easy
12212         enough, so do that.  Still breaks when you use version tags ending in
12213         something matching -g????, but you arguably get what you deserve then.
12215 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
12217         valgrind-tests: use ls, and cache
12218         * m4/valgrind-tests.m4: Test ls, not bash.
12219         Problem reported by Reuben Thomas.
12220         Also, cache the result so that it can be overridden.
12222 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
12224         manywarnings: port to 64-bit GCC builds of Emacs
12225         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
12226         object size rather than hardwiring 2147483647.  This is needed to
12227         build GNU Emacs, which has one conditional (and used
12228         only-in-theory) call to malloc with a literal greater than
12229         2147483647.
12231 2017-08-04  Bruno Haible  <bruno@clisp.org>
12233         Relax the license of some modules with no runtime code.
12234         * modules/std-gnu11 (License): Set to 'unlimited'.
12235         * modules/c99 (License): Likewise.
12236         Reported by Reuben Thomas <rrt@sc3d.org>.
12237         * modules/d-ino (License): Set to 'LGPL'.
12238         * modules/host-os (License): Likewise.
12239         * modules/longlong (License): Likewise.
12241 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
12243         renameat2: port to RHEL 7 + NFS
12244         * lib/renameat2.c (renameat2) [SYS_renameat2]:
12245         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
12246         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
12248 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
12250         renameat2: port to non-renameat platforms
12251         Problem reported for MSVC-2015 by Gisle Vanem in:
12252         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
12253         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
12254         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
12256 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
12258         manywarnings: port to 32-bit GCC bug
12259         Problem reported by Pino Toscano in:
12260         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
12261         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
12262         not 2**63 - 1, to work around the following GCC bug:
12263         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
12265 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
12267         backupfile: new function to validate backup suffix
12268         * lib/backupfile.c (set_simple_backup_suffix): New function.
12269         (backupfile_internal): Use it.
12271         canonicalize: fix EOVERFLOW commentary
12272         Problem reported by Bruno Haible in:
12273         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
12274         * lib/canonicalize.c (canonicalize_filename_mode):
12275         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
12277         Don't interpret EOVERFLOW to mean nonexistence
12278         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
12279         may be EOVERFLOW; this is likely more useful than reporting the
12280         stat errno.
12281         * lib/glob.c (link_stat): Rename from link_exists2_p and
12282         return -1/0 instead of 0/1.  Caller changed.
12283         * lib/glob.c (link_exists_p):
12284         * lib/renameat2.c (rename_noreplace, renameat2):
12285         * lib/tempname.c (try_nocreate):
12286         If errno == EOVERFLOW then the directory entry exists, so do not
12287         act as if it does not exist.
12289         backup-rename: new module
12290         It is like backupfile, except it avoids some race conditions,
12291         and it does not output to stderr or exit.
12292         * MODULES.html.sh: Add backup-rename.
12293         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
12294         * modules/backup-rename: New files.
12295         * lib/backupfile.c: Turn this into an internals file, which
12296         contains code common to backupfile and backup_rename.  Include
12297         backupfile-internal.h instead of backupfile.h.  Do not include
12298         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
12299         renameat2.h and fcntl.h.
12300         (BACKUP_NOMEM): New constant.
12301         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
12302         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
12303         (backupfile_internal): Rename from find_backup_file_name.
12304         Support new arg RENAME.
12305         (backup_args, backup_types, get_version, xget_version):
12306         Move to lib/backup-find.c.
12307         * lib/backupfile.h (backup_file_rename): New decl.
12308         * modules/backupfile (Files): Add lib/backup-internal.h,
12309         lib/backup-find.c.
12310         (Depends-on): Add dirfd, fcntl, renameat2.
12311         (lib_SOURCES): Add backup-find.c.
12313         renameat2: port better to older Solaris
12314         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
12315         Add goto to use a label, to silence picky compilers.
12317         fts-tests: port to gcc -Wwrite-strings
12318         * tests/test-fts.c (base, base_d): New static vars.
12319         (argv, remove_tree, main): Use them.
12321 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
12323         relocatable-lib{,-lgpl}: improve documentation
12324         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
12325         Various other updates.
12327 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
12328             Bruno Haible  <bruno@clisp.org>
12330         relocatable-lib{,-lgpl}: add Valgrind suppressions
12331         * lib/relocatable.valgrind: New file.
12332         * modules/relocatable-lib (Files): Add relocatable.valgrind.
12333         * modules/relocatable-lib-lgpl: Likewise.
12335 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
12337         relocatable: Make the license on the sources the GPL.
12338         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
12339         LGPL, which was a special case so that the relocatable source files
12340         could be used without gnulib-tool, to GPL. They can still be used under
12341         the LGPL, using the --lgpl option to gnulib-tool.
12343 2017-07-30  Bruno Haible  <bruno@clisp.org>
12345         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
12346         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
12347         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
12348         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
12349         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
12351 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
12353         faccessat: document AT_SYMLINK_NOFOLLOW issue
12354         * doc/posix-functions/faccessat.texi: Modernize platform list.
12355         Document AT_SYMLINK_NOFOLLOW limitation.
12357         renameat2: port to Solaris 10
12358         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
12359         with AT_SYMLINK_NOFOLLOW (which is not portable).
12360         (renameat): Undef before using, to avoid endless recursion when
12361         the replacement renameat calls renameat2 which calls the
12362         replacement renameat.
12363         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
12364         * modules/renameat2 (Depends-on): Remove faccessat.
12365         * modules/renameat-tests (test_renameat_LDADD):
12366         * modules/renameat2-tests (test_renameat2_LDADD):
12367         Remove $(LIB_EACCESS).
12369         renameat2: new module
12370         Although the Linux syscall renameat2 is not in glibc (yet?), it is
12371         useful to have access to its RENAME_NOREPLACE flag.
12372         * MODULES.html.sh (func_all_modules): Add renameat2.
12373         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
12374         * modules/renameat2-tests, tests/test-renameat2.c: New files.
12375         * lib/renameat.c (renameat): Move most of the implementation
12376         to renameat2, and just call renameat2.
12377         * modules/renameat (Files): Remove lib/at-func2.c.
12378         (Depends-on): Depend only on renameat2.
12379         (Include): Remove <fcntl.h>.
12380         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
12381         since renameat (via renameat2) might use faccessat.
12383 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
12385         vc-list-files: Adjust the script to support git worktrees
12386         * build-aux/vc-list-files: Require existence, not directory.
12388 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12390         doc: bring MODULES.html.sh up to date
12391         Somehow a few months ago we stopped updating MODULES.html.sh.
12392         I don’t recall explicitly deciding this, so I updated it now.
12393         Alternatively I suppose we could remove it.
12394         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
12395         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
12396         truncate, utime, utime-h, windows-stat-inodes,
12397         windows-stat-override, windows-stat-timespec, year2038.  Sort.
12399 2017-07-26  Jim Meyering  <meyering@fb.com>
12401         fprintftime: fix build-break caused by recent renaming
12402         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
12403         "strftime.c".
12404         * modules/fprintftime: Depend directly on nstrftime.
12406 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
12408         regex: work with GCC7's -Werror=implicit-fallthrough=
12409         * lib/regex_internal.h (FALLTHROUGH): New macro.
12410         * lib/regcomp.c (peek_token_bracket, parse_expression):
12411         * lib/regexec.c (check_node_accept): Use it.
12413 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12415         fts: simplify fts_build
12416         * lib/fts.c (fts_build): Simplify, and be lazier about
12417         calling leaf_optimization.
12419         fts: three levels of leaf optimization
12420         * lib/fts.c (enum leaf_optimization): New type with three values.
12421         (S_MAGIC_AFS): New macro.  Sort them.
12422         (leaf_optimization): Rename from leaf_optimization_applies, and
12423         return enum leaf_optimization instead of bool.  All uses changed.
12424         Add cases for unknown type and for AFS.
12425         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
12427         fts: cache dirent_inode_sort_may_be_useful too
12428         * lib/fts.c (struct dev_type): New struct.
12429         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
12430         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
12431         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
12432         Now takes FTSENT const *, not int.  All uses changed.  Use
12433         filesystem_type to cache.
12434         (link_count_optimize_ok): Remove.  Caller changed to use
12435         leaf_optimization_applies, which now uses shared cache.
12437         fts: introduce MIN_DIR_NLINK
12438         * lib/fts.c (MIN_DIR_NLINK): New constant.
12439         Use it instead of 2, whenever we are talking about link counts.
12441         fts: nlink_t signedness fixups
12442         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
12443         so that root need not be a special case later.
12444         (fts_read): Remove now-redundant test for fts_level.
12445         Do not assume that nlink_t is signed.
12446         (fts_build): Remove useless decrement of nlinks.
12447         (fts_stat): Avoid unlikely signed integer overflow later, if
12448         nlink_t is signed.
12450         fts-tests: new module
12451         * modules/fts-tests, tests/test-fts.c: New files.
12453 2017-07-23  Bruno Haible  <bruno@clisp.org>
12455         Rename module 'strftime' to 'nstrftime'.
12456         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
12457         * lib/nstrftime.c: Renamed from lib/strftime.c.
12458         * modules/nstrftime: Renamed from modules/strftime.
12459         (Files, Makefile.am): Update.
12460         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
12461         Fix comment.
12462         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
12463         (Files, Makefile.am): Update.
12464         * modules/strftime: New file, an obsolete indirection.
12465         * doc/posix-functions/strftime.texi: Update reference.
12466         * config/srclist.txt: Update info.
12467         * NEWS: Mention the change.
12469 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
12471         malloca: Silence a warning from clang's memory sanitizer.
12472         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
12473         (freea): Use it.
12475 2017-07-18  Bruno Haible  <bruno@clisp.org>
12477         host-cpu-c-abi: Fix detection of MIPS ABI.
12478         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
12479         ABI, not the CPU instruction set.
12481 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12483         explicit_bzero: new module
12484         The explicit_bzero function has been added to glibc.
12485         This module is intended to supports its use in GNU programs.
12486         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
12487         * m4/explicit_bzero.m4, modules/explicit_bzero:
12488         New files.
12489         * doc/gnulib.texi (Glibc string.h): Link to new doc.
12490         * lib/string.in.h (explicit_bzero): Declare.
12491         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
12492         * modules/string (string.h): Substitute its vars.
12494 2017-07-16  Bruno Haible  <bruno@clisp.org>
12496         threadlib: Support static linking.
12497         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
12498         set gl_cv_have_weak to 'no'.
12500 2017-07-16  Bruno Haible  <bruno@clisp.org>
12502         unicase/locale-language: Fix link dependencies.
12503         * modules/unicase/locale-language (Link): New section.
12504         * modules/unicase/locale-language-tests (Makefile.am): Link
12505         test-locale-language program with $(LIBTHREAD).
12507 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12509         sys_socket: Add support for OpenVMS.
12510         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
12511         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
12513 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12515         sys_resource: Add support for OpenVMS.
12516         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
12517         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
12519 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
12520             Bruno Haible  <bruno@clisp.org>
12522         math: Add support for OpenVMS.
12523         * lib/math.in.h [__VMS]: Include <fp.h>.
12524         * doc/posix-headers/math.texi: Mention OpenVMS issues.
12526 2017-07-15  Bruno Haible  <bruno@clisp.org>
12528         getdtablesize: Add minimal support for OpenVMS.
12529         Reported by John E. Malmberg <wb8tyw@qsl.net>.
12530         * modules/getdtablesize (Description): Fix.
12531         * lib/getdtablesize.c: Fix comment.
12532         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
12533         getdtablesize() function, even though the test fails.
12534         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
12535         limitation on OpenVMS.
12537 2017-07-13  Bruno Haible  <bruno@clisp.org>
12539         Revisit cross-compilation guesses.
12540         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
12542 2017-07-13  Bruno Haible  <bruno@clisp.org>
12544         Improve cross-compilation guesses for native Windows.
12545         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
12546         Windows.
12547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
12548         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
12549         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
12550         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
12551         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
12552         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
12553         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12554         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12555         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12556         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
12557         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12558         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
12559         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
12560         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12561         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
12562         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
12563         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
12564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
12565         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
12566         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
12567         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
12568         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12569         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
12570         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
12571         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
12572         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
12573         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
12574         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
12575         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
12576         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
12577         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12578         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
12579         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
12580         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
12581         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
12582         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
12583         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
12584         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12585         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12586         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
12587         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12588         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
12589         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
12590         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
12591         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
12592         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
12593         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
12594         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
12595         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
12596         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
12597         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
12598         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
12599         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
12600         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
12601         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
12602         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
12603         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
12604         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
12605         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
12606         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
12607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
12608         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
12609         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
12610         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
12611         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
12612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12613         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
12614         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
12615         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
12616         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
12617         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
12618         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
12619         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12620         * m4/regex.m4 (gl_REGEX): Likewise.
12621         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
12622         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
12623         gl_FUNC_REMAINDERF_WORKS): Likewise.
12624         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
12625         gl_FUNC_REMAINDERL_WORKS): Likewise.
12626         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
12627         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12628         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
12629         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12632         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12633         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12634         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
12635         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12636         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
12637         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
12638         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
12639         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
12640         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
12641         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12642         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12644         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
12645         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12646         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
12647         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12648         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
12649         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
12650         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
12651         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
12652         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12653         Likewise.
12654         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12655         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
12656         Windows. Enable also on Autoconf 2.70.
12657         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
12658         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
12659         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
12660         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
12661         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12662         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
12663         for native Windows.
12664         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
12665         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
12667 2017-07-13  Bruno Haible  <bruno@clisp.org>
12669         Improve cross-compilation guesses for native Windows.
12670         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
12671         Windows.
12672         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
12673         memchr.m4.
12674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
12676 2017-07-13  Bruno Haible  <bruno@clisp.org>
12678         Improve cross-compilation guesses for native Windows.
12679         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
12680         native Windows.
12681         (gl_FUNC_FFLUSH): Update accordingly.
12682         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
12683         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
12685 2017-07-11  Bruno Haible  <bruno@clisp.org>
12687         More systematic m4 quoting and indentation.
12688         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
12689         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
12690         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
12691         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12692         * m4/host-os.m4 (gl_HOST_OS): Likewise.
12693         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
12694         gl_WINSIZE_IN_PTEM): Likewise.
12695         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
12696         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
12697         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
12698         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
12699         Correct indentation.
12700         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12701         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12702         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
12703         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12704         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
12705         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
12707 2017-07-10  Bruno Haible  <bruno@clisp.org>
12709         round, roundf: Avoid compiler warning in configure test.
12710         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
12711         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12713 2017-07-10  Bruno Haible  <bruno@clisp.org>
12715         getlogin tests: Avoid #ifdefs when sharing code between modules.
12716         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
12717         * modules/getlogin-tests (Files): Likewise. Remove
12718         tests/test-getlogin_r.c.
12719         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
12720         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
12721         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
12722         getlogin().
12724 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
12726         getlogin: don’t assume one name per uid
12727         Problem reported by Wolfgang F. Muthmann (Bug#27640).
12728         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
12729         (ttyname): Remove test.
12730         * modules/getlogin_r-tests (ttyname): Remove test.
12731         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
12732         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
12733         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
12734         getlogin rather than getlogin_r.  This avoids code duplication.
12735         (main): Use isatty and fstat rather than ttyname and stat.
12736         Use getpwnam instead of getpwuid, to be portable to test platforms
12737         that have multiple login names for the same uid.
12739 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
12740             Bruno Haible  <bruno@clisp.org>
12742         glob: Fix more memory leaks.
12743         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
12744         returning.
12745         Reported by Tim Rühsen.
12747 2017-07-10  Bruno Haible  <bruno@clisp.org>
12749         Make sure $host and $host_os are defined when used.
12750         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
12751         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
12752         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
12753         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12754         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12755         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
12756         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
12757         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
12758         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
12759         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
12760         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
12761         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
12762         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
12763         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
12764         m4_ifdef block.
12766 2017-07-09  Bruno Haible  <bruno@clisp.org>
12768         *printf: Fix cross-compilation guess for Solaris.
12769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
12770         2010-12-21.
12772 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
12773             Bruno Haible  <bruno@clisp.org>
12775         vasnprintf: port to macOS 10.13
12776         Problem reported by comex in:
12777         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
12778         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
12780 2017-07-06  Bruno Haible  <bruno@clisp.org>
12782         imaxdiv tests: Fix logic.
12783         * tests/test-imaxdiv.c (main): Use == instead of =.
12784         Reported by Coverity.
12786 2017-07-06  Bruno Haible  <bruno@clisp.org>
12788         uninorm/filter: Fix use-after-free bug.
12789         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
12790         sortbuf == filter->sortbuf invariant.
12791         Reported by Coverity.
12793 2017-07-06  Bruno Haible  <bruno@clisp.org>
12795         glob: Fix more memory leaks.
12796         * lib/glob.c (glob): Free dirname before returning.
12797         Reported by Coverity and Tim Rühsen.
12799 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
12801         parse-datetime: fix uninit var bug
12802         Reported by Bruno Haible in:
12803         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
12804         * lib/parse-datetime.y (parse_datetime2): Do not use
12805         uninitialized.
12807 2017-07-05  Bruno Haible  <bruno@clisp.org>
12809         doc: Update for MSVC 14.
12810         * doc/posix-headers/*.texi: Add info about MSVC 14.
12811         * doc/posix-functions/*.texi: Likewise.
12812         * doc/pastposix-functions/*.texi: Likewise.
12813         * doc/glibc-headers/*.texi: Likewise.
12814         * doc/glibc-functions/*.texi: Likewise.
12816 2017-07-05  Bruno Haible  <bruno@clisp.org>
12818         sched: Fix build failure on native Windows (regression from 2017-06-19).
12819         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
12821 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
12823         stdioext: Port to OpenVMS.
12824         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
12825         * lib/fpending.c (fpending): Remove non-working VMS specific code.
12826         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
12827         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
12828         * lib/fpurge.c (fpurge): Likewise.
12829         * lib/freadable.c (freadable): Likewise.
12830         * lib/freadahead.c (freadahead): Likewise.
12831         * lib/freading.c (freading): Likewise.
12832         * lib/freadptr.c (freadptr): Likewise.
12833         * lib/freadseek.c (freadseek): Likewise.
12834         * lib/fseeko.c (fseeko): Likewise.
12835         * lib/fseterr.c (fseterr): Likewise.
12836         * lib/fwritable.c (fwriteable): Likewise.
12837         * lib/fwriting.c (fwriting): Likewise.
12839 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
12841         glob: Declare variables at the very start of their scope.
12842         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
12843         its separate scope, so the functions will compile on Haiku.
12845 2017-07-01  Bruno Haible  <bruno@clisp.org>
12847         logbl: Work around a glibc bug on PowerPC64LE.
12848         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
12849         numbers.
12850         * doc/posix-functions/logbl.texi: Update.
12852 2017-06-29  Bruno Haible  <bruno@clisp.org>
12854         stat, fstat: Compile stat-w32.c only on platforms that need it.
12855         Suggested by Paul Eggert.
12856         * modules/stat (configure.ac): Request stat-w32.o only on native
12857         Windows.
12858         * modules/fstat (configure.ac): Likewise.
12860 2017-06-25  Bruno Haible  <bruno@clisp.org>
12862         stat: Improve last change.
12863         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
12865 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
12867         stat: port to xlc 12.01
12868         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
12869         12.01 complains "Compilation unit is empty."
12871 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12873         xalloc-oversized: port to icc
12874         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
12875         __builtin_mul_overflow if ICC is defined, as this results in
12876         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
12877         20170213.
12879 2017-06-19  Bruno Haible  <bruno@clisp.org>
12881         classpath: Avoid including config.h twice, as it produces warnings.
12882         Reported by John E. Malmberg <wb8tyw@gmail.com>.
12883         * lib/classpath.h: Conditionalize the include of config.h.
12885 2017-06-19  Bruno Haible  <bruno@clisp.org>
12886             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
12888         sched: Fix compilation failure on OpenVMS.
12889         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
12890         test whether <pthread.h> exists and defines struct sched_param.
12891         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
12893 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
12895         diffseq: port to GCC 7 with --enable-gcc-warnings
12896         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
12897         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
12898         not complain about big_snake being defined but not used.
12900 2017-06-15  Bruno Haible  <bruno@clisp.org>
12902         gettext-h: Update theoretical condition for use of variable size arrays.
12903         Reported by Paul Eggert.
12904         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
12905         to include the theoretical condition for availability of variable size
12906         arrays, if we could trust the value of __STDC_VERSION__.
12908 2017-06-12  Bruno Haible  <bruno@clisp.org>
12910         Relicense some modules under LGPLv2+.
12911         Daiki Ueno's approval is in
12912         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
12913         * modules/uniwidth/base (License): Change to LGPLv2+.
12914         * modules/uniwidth/width (License): Likewise.
12916 2017-06-11  Bruno Haible  <bruno@clisp.org>
12918         localename: Fix test failure on DragonFly BSD.
12919         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
12920         like FreeBSD.
12922 2017-06-11  Bruno Haible  <bruno@clisp.org>
12924         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
12925         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
12926         * lib/float.in.h: Likewise.
12927         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
12929 2017-06-11  Bruno Haible  <bruno@clisp.org>
12931         gnulib-tool: Clean up after autotools.
12932         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
12933         useless directory left over by the Autotools.
12935 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
12937         getopt-posix: port to glibc 2.25.90
12938         Problem reported by Daniel P. Berrange in:
12939         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
12940         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
12941         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
12942         #undef if __GETOPT_PREFIX is defined.
12944 2017-06-11  Bruno Haible  <bruno@clisp.org>
12946         strtod-obsolete: Fix license.
12947         * modules/strtod-obsolete (License): Change to LGPL.
12949 2017-06-10  Jim Meyering  <meyering@fb.com>
12951         maint: update to work with GCC7's -Werror=implicit-fallthrough=
12952         * lib/savewd.c (FALLTHROUGH): Define.
12953         (savewd_save, savewd_restore): Use this, rather than a comment,
12954         whenever one switch case falls through into the next.
12956 2017-06-08  Bruno Haible  <bruno@clisp.org>
12958         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
12959         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
12960         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
12961         case.
12963 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12965         doc: remove robots, add prereqs
12966         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
12967         builds.  Simon's robot site does not seem to be up, so remove
12968         mentions of it for now.
12970 2017-06-08  Bruno Haible  <bruno@clisp.org>
12972         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
12973         * gnulib-tool (func_symlink_target): New function, extracted from
12974         func_symlink.
12975         (func_symlink, func_symlink_if_changed): Use it.
12977 2017-06-08  Bruno Haible  <bruno@clisp.org>
12979         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
12980         * gnulib-tool (func_ln_s): Determine cp_src correctly.
12982 2017-06-07  Bruno Haible  <bruno@clisp.org>
12984         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
12985         Reported by John E. Malmberg <wb8tyw@gmail.com> in
12986         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
12987         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
12988         override, pass 2 arguments to getcwd, not 3.
12990 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12992         same-inode: port better to VMS 8.2 and later
12993         Problem reported by John E. Malmberg in:
12994         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
12995         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
12996         Use the usual POSIX definition.
12997         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
12999 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
13001         error: fix POSIX violation for va_end
13002         Problem reported by Bruno Haible in:
13003         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
13004         * lib/error.c (error_tail): Do not call va_end here.
13005         (error, error_at_line): Call it here instead.
13007 2017-05-28  Bruno Haible  <bruno@clisp.org>
13009         c-strtod: Make it usable in C++ mode.
13010         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
13012 2017-05-25  Jim Meyering  <meyering@fb.com>
13014         quotearg: fix compilation failure due to FALLTHROUGH misuse
13015         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
13016         macro back to /* fall through */ comment.  The macro can apply only
13017         to a following case statement.  Reported by Assaf Gordon.
13019 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
13021         intprops: port to recent icc
13022         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
13023         but does not support __builtin_add_overflow etc.
13024         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
13025         Define to 0.
13027 2017-05-23  Karl Berry  <karl@freefriends.org>
13029         * config/srclist.txt (iconv.m4): sync broken, comment out
13030         until (hopefully) the next gettext release.
13032 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
13034         Remove repeated words in comments.
13036 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
13038         fallthrough: reinstate a FALLTHROUGH instance in quotearg
13039         quotearg.c: Reinstate this instance which is significant
13040         when the if branch is not taken.
13042 2017-05-21  Bruno Haible  <bruno@clisp.org>
13044         gnulib-tool: Add options to create hard links.
13045         * gnulib-tool (func_usage): Document options --hardlink,
13046         --local-hardlink, --more-hardlinks.
13047         (func_symlink): Renamed from func_ln.
13048         (func_symlink_if_changed): Renamed from func_ln_if_changed.
13049         (func_hardlink): New function.
13050         (copymode, lcopymode): New variables.
13051         (symbolic, lsymbolic): Remove variables.
13052         (Options): Implement options --hardlink, --local-hardlink,
13053         --more-hardlinks.
13054         (func_should_link): Renamed from func_should_symlink. Set copyaction.
13055         (func_add_file, func_update_file): Update invocation of
13056         func_should_link. Invoke func_hardlink when appropriate.
13057         (func_import): Update comments.
13058         (func_create_testdir): Update invocation of func_should_link. Invoke
13059         func_hardlink when appropriate.
13060         Finally, invoke 'git update-index --refresh' to mitigate the effects of
13061         the hard links on git.
13063 2017-05-20  Bruno Haible  <bruno@clisp.org>
13065         argp: Simplify bit manipulation.
13066         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
13067         on a signed integer type.
13069 2017-05-20  Bruno Haible  <bruno@clisp.org>
13071         Avoid wrong configure results with gcc -fsanitize=address.
13072         This completes the work done on 2016-02-06 on this topic.
13073         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
13074         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13075         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13076         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13077         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
13078         returning.
13079         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
13080         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
13081         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
13082         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
13083         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
13084         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
13085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
13086         free allocated memory before returning.
13087         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13088         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
13089         objects before returning.
13090         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
13091         returning.
13093 2017-05-20  Bruno Haible  <bruno@clisp.org>
13095         gnulib-tool: Don't create hard links between gnulib and its testdirs.
13096         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
13098 2017-05-20  Bruno Haible  <bruno@clisp.org>
13100         argp, tsearch tests: Fix file list.
13101         * modules/argp-tests (Files): Add tests/macros.h.
13102         * modules/tsearch-tests (Files): Likewise.
13104 2017-05-20  Bruno Haible  <bruno@clisp.org>
13106         getopt-posix tests: Remove redundant include.
13107         * tests/test-getopt.h: Don't include "macros.h". It's already included
13108         by tests/test-getopt-main.h.
13110 2017-05-19  Jim Meyering  <meyering@fb.com>
13112         dfa: two small simplifications
13113         * lib/dfa.c (build_state): Avoid repeating longer expressions.
13115 2017-05-18  Jim Meyering  <meyering@fb.com>
13117         fallthrough: update for GCC 7/8
13118         * lib/quotearg.c (FALLTHROUGH): New macro.
13119         Use it whenever one switch case falls through into the next,
13120         replacing "/* Fall through */" comments.  This exposed one
13121         instance of an unwarranted "fall through" comment: unwarranted
13122         because it preceded a "goto" label not a case statement.
13123         * lib/freopen-safer.c (freopen_safer): Likewise.
13124         * lib/fts.c (leaf_optimization_applies): Likewise.
13125         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
13126         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
13127         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
13128         tests/macros.h for the definition.
13129         * tests/test-argp.c (group1_parser): Likewise.
13130         * tests/test-getopt.h (getopt_loop): Likewise.
13132 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13134         argp: fix shift bug
13135         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
13136         behavior on shift overflow, caught by gcc -fsanitize=undefined.
13138         argp: fix pointer-subtraction bug
13139         * lib/argp-help.c (hol_append): Don’t subtract pointers to
13140         different arrays, as this can run afoul of -fcheck-pointer-bounds.
13141         See the thread containing Bruno Haible’s report in:
13142         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
13144 2017-05-19  Bruno Haible  <bruno@clisp.org>
13146         printf-posix tests: Avoid test failure with "gcc --coverage".
13147         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13148         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
13149         than 5000000.
13150         * tests/test-fprintf-posix2.c (main): Likewise.
13152 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
13154         closeout: don’t close stderr when sanitizing
13155         * NEWS: Document this.
13156         * lib/closeout.c (__has_feature): New macro, if not already defined.
13157         (SANITIZE_ADDRESS): New constant.
13158         (close_stdout): Don’t close stderr if sanitizing addresses.
13160 2017-05-19  Bruno Haible  <bruno@clisp.org>
13162         get-rusage-data tests: Avoid failure on Linux/glibc.
13163         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
13164         on glibc systems.
13166 2017-05-18  Bruno Haible  <bruno@clisp.org>
13168         localename: Include necessary header files on Cygwin.
13169         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
13170         where NL_LOCALE_NAME is defined.
13172 2017-05-18  Bruno Haible  <bruno@clisp.org>
13174         gettext: Update macros from gettext git.
13175         * m4/intldir.m4: Require Autoconf >= 2.60.
13176         * m4/progtest.m4: Fix typos in copyright notice.
13178 2017-05-18  Bruno Haible  <bruno@clisp.org>
13180         copy-file tests: Fix link error (regression from 2017-05-01).
13181         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13182         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
13183         $(LIB_CLOCK_GETTIME).
13185 2017-05-18  Bruno Haible  <bruno@clisp.org>
13187         unicase/special-casing: Fix incompatibility with gperf-3.0.4
13188         (regression from 2017-02-13).
13189         * lib/unicase/special-casing.in.h: Renamed from
13190         lib/unicase/special-casing.h.
13191         * modules/unicase/special-casing (Files): Add
13192         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
13193         (Makefile.am): Add rule for generating unicase/special-casing.h.
13194         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
13195         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
13196         not "special-casing.h".
13197         * lib/unicase/u*.c: Likewise.
13199 2017-05-17  Bruno Haible  <bruno@clisp.org>
13201         README: Don't ask people to read a TeXinfo file.
13202         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
13203         * README: Tell people how to read the HTML formatted manual.
13205 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
13207         parse-datetime: Fix memleak
13208         * lib/parse-datetime.y (parse_datetime2): Cleanup on
13209         localtime_rz() failure.
13211 2017-05-16  Bruno Haible  <bruno@clisp.org>
13213         javacomp: Fix handle leak.
13214         Found by Coverity.
13215         * lib/javacomp.c (get_classfile_version): Close fd before returning.
13217 2017-05-16  Bruno Haible  <bruno@clisp.org>
13219         relocate: Make it easier to reclaim allocated memory.
13220         * lib/relocatable.h (relocate2): New declaration/macro.
13221         * lib/relocatable.c (relocate2): New function.
13222         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
13223         relocate2 function.
13224         * lib/localcharset.c (relocate2): Define fallback.
13225         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
13226         allocated memory.
13227         * lib/javaversion.c (relocate2): Define fallback.
13228         (javaexec_version): Invoke relocate2 instead of relocate. Free the
13229         allocated memory.
13231 2017-05-16  Bruno Haible  <bruno@clisp.org>
13233         relocate: Simplify EMX specific code.
13234         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
13235         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
13237 2017-05-16  Bruno Haible  <bruno@clisp.org>
13239         sigpipe tests: Fix file list.
13240         * modules/sigpipe-tests (Files): Add tests/macros.h.
13242 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
13244         manywarnings: update for GCC 7
13245         * build-aux/gcc-warning.spec:
13246         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
13247         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
13248         requires a non-comment fallthrough attribute.  This is a bit
13249         cleaner than the comment versions.
13250         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
13251         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
13252         Use it whenever one switch case falls through into the next.
13253         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
13254         Use FALLTHROUGH macro.
13256 2017-05-15  Bruno Haible  <bruno@clisp.org>
13258         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
13259         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
13260         @ALLOCA@, not @LTALLOCA@.
13262 2017-05-15  Bruno Haible  <bruno@clisp.org>
13264         sys_select: Avoid "was expanded before it was required" warning.
13265         * modules/sys_select (configure.ac): Require, not invoke,
13266         gl_HEADER_SYS_SELECT.
13268 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
13270         gnulib-tool: improve GNU Make debugging
13271         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
13272         Report autoconf diagnostics when it fails, in the output makefile.
13274 2017-05-14  Bruno Haible  <bruno@clisp.org>
13276         stat-time tests: Improve comment.
13277         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
13279 2017-05-14  Bruno Haible  <bruno@clisp.org>
13281         same-inode: Adapt for windows-stat-inodes.
13282         * lib/same-inode.h: Include <sys/types.h>.
13283         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
13284         * modules/same-inode (Depends-on): Add sys_types.
13286 2017-05-14  Bruno Haible  <bruno@clisp.org>
13288         windows-stat-inodes: New module.
13289         * m4/windows-stat-inodes.m4: New file.
13290         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
13291         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
13292         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
13293         (_GL_WINDOWS_STAT_INODES): New macro.
13294         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
13295         (GetFileInformationByHandleExFunc): New variable.
13296         (initialize): Initialize it.
13297         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
13298         st_ino appropriately.
13299         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
13300         a fallback, because it does not provide st_dev and st_ino values.
13301         * modules/fstat (Depends-on): Add 'verify'.
13302         * modules/windows-stat-inodes: New file.
13303         * doc/windows-stat-inodes.texi: New file.
13304         * doc/gnulib.texi: Include it.
13305         * doc/posix-headers/sys_stat.texi: Mention the new module.
13307 2017-05-14  Bruno Haible  <bruno@clisp.org>
13309         stat-time tests: Workaround for native Windows.
13310         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
13311         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
13312         New variables.
13313         (initialize_filenames): New function.
13314         (main): Invoke it.
13315         (cleanup, prepare_test): Update.
13317 2017-05-14  Bruno Haible  <bruno@clisp.org>
13319         stat-time: Adapt for windows-stat-timespec.
13320         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
13321         entire st_ctim field.
13323 2017-05-13  Jim Meyering  <meyering@fb.com>
13325         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
13326         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
13327         file that uses the assume macro, claiming that verify.h is unused.
13329 2017-05-13  Bruno Haible  <bruno@clisp.org>
13331         Use symbolic values for _WIN32_WINNT.
13332         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
13333         * lib/sethostname.c (_WIN32_WINNT): Likewise.
13335 2017-05-13  Bruno Haible  <bruno@clisp.org>
13337         year2038: New module.
13338         * m4/year2038.m4: New file.
13339         * modules/year2038: New file.
13340         * doc/year2038.texi: New file.
13341         * doc/gnulib.texi: Include it.
13343 2017-05-13  Bruno Haible  <bruno@clisp.org>
13345         largefile: Simplify.
13346         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
13347         of _GL_WINDOWS_64_BIT_ST_SIZE.
13349 2017-05-13  Bruno Haible  <bruno@clisp.org>
13351         largefile: Improve and document.
13352         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
13353         the mingw headers already define 'stat' appropriately.
13354         * modules/largefile (Description): Clarify.
13355         * doc/largefile.texi: New file.
13356         * doc/gnulib.texi: Include it.
13357         * doc/posix-headers/sys_types.texi: Update.
13359 2017-05-13  Bruno Haible  <bruno@clisp.org>
13361         truncate: New module.
13362         * lib/unistd.in.h (truncate): New declaration.
13363         * lib/truncate.c: New file.
13364         * m4/truncate.m4: New file.
13365         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
13366         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
13367         REPLACE_TRUNCATE.
13368         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
13369         HAVE_TRUNCATE, REPLACE_TRUNCATE.
13370         * modules/truncate: New file.
13371         * tests/test-unistd-c++.cc (truncate): Test signature.
13372         * doc/posix-functions/truncate.texi: Mention the new module.
13374         * tests/test-truncate.c: New file.
13375         * modules/truncate-tests: New file.
13377 2017-05-13  Bruno Haible  <bruno@clisp.org>
13379         windows-stat-timespec: New module.
13380         * modules/windows-stat-timespec: New file.
13381         * m4/windows-stat-timespec.m4: New file.
13382         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
13383         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
13384         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
13385         fields st_atim, st_mtim, st_ctim.
13386         (st_atime, st_mtime, st_ctime): Define as macros.
13387         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
13388         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
13389         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
13390         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
13391         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
13392         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
13393         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
13394         FILETIME to 'struct timespec', not 'time_t'.
13395         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
13396         FILETIME to 'struct timespec', not 'time_t'.
13397         * lib/stat-time.h (STAT_TIMESPEC): Define also if
13398         _GL_WINDOWS_STAT_TIMESPEC.
13399         * doc/windows-stat-timespec.texi: New file.
13400         * doc/gnulib.texi: Include it.
13402 2017-05-13  Bruno Haible  <bruno@clisp.org>
13404         windows-stat-override: New module.
13405         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
13406         definition. Define GNULIB_defined_struct_stat.
13407         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
13408         link error if this symbol is used and the corresponding module is not
13409         in use.
13410         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
13411         GNULIB_OVERRIDES_STRUCT_STAT.
13412         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
13413         GNULIB_OVERRIDES_STRUCT_STAT.
13414         * modules/sys_stat (Makefile.am): Substitute
13415         GNULIB_OVERRIDES_STRUCT_STAT.
13416         * modules/windows-stat-override: New file.
13418 2017-05-13  Bruno Haible  <bruno@clisp.org>
13420         fstat: Fix module dependency conditions.
13421         * modules/fstat (Depends-on): Fix typo.
13423 2017-05-13  Bruno Haible  <bruno@clisp.org>
13425         stat, fstat: Complete removal of old native Windows code.
13426         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
13427         * lib/fstat.c: Likewise.
13428         * lib/stat-w32.c: Likewise.
13430 2017-05-13  Bruno Haible  <bruno@clisp.org>
13432         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
13433         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
13435 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
13437         getopt-posix: port to mingw
13438         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
13439         Problem reported by Daniel P. Berrage in:
13440         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
13442 2017-05-11  Bruno Haible  <bruno@clisp.org>
13444         gettimeofday: Increase precision on mingw.
13445         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
13446         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
13447         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
13448         GetSystemTimePreciseAsFileTime based implementation always.
13449         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
13450         mingw.
13452 2017-05-11  Bruno Haible  <bruno@clisp.org>
13454         poll: Fix confusion between SOCKETs and FDs on native Windows.
13455         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
13456         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
13458 2017-05-11  Bruno Haible  <bruno@clisp.org>
13460         doc: Clarify doc about socket functions on native Windows.
13461         This reworks doc that was added on 2008-09-29.
13462         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
13463         clearer wording.
13464         * doc/posix-functions/accept.texi: Use clearer wording.
13465         * doc/posix-functions/bind.texi: Likewise.
13466         * doc/posix-functions/connect.texi: Likewise.
13467         * doc/posix-functions/getpeername.texi: Likewise.
13468         * doc/posix-functions/getsockname.texi: Likewise.
13469         * doc/posix-functions/getsockopt.texi: Likewise.
13470         * doc/posix-functions/ioctl.texi: Likewise.
13471         * doc/posix-functions/listen.texi: Likewise.
13472         * doc/posix-functions/recv.texi: Likewise.
13473         * doc/posix-functions/recvfrom.texi: Likewise.
13474         * doc/posix-functions/send.texi: Likewise.
13475         * doc/posix-functions/sendto.texi: Likewise.
13476         * doc/posix-functions/setsockopt.texi: Likewise.
13477         * doc/posix-functions/shutdown.texi: Likewise.
13478         * doc/posix-functions/socket.texi: Likewise.
13480 2017-05-10  Bruno Haible  <bruno@clisp.org>
13482         poll: Fix link error on native Windows.
13483         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
13485 2017-05-10  Bruno Haible  <bruno@clisp.org>
13487         time: Fix missing initialization of HAVE_TIMEZONE_T.
13488         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
13489         here...
13490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
13491         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
13492         gl_HEADER_SYS_TIME_H_DEFAULTS.
13493         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
13494         (configure.ac): Remove useless quoting.
13496 2017-05-10  Bruno Haible  <bruno@clisp.org>
13498         Implement a way to opt out from MSVC support, part 2.
13499         * modules/msvc-inval (Include): Document recommended idiom.
13500         * modules/msvc-nothrow (Include): Likewise.
13502         Implement a way to opt out from MSVC support.
13503         This is useful for Emacs.
13504         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
13505         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
13506         * lib/error.c: Likewise.
13507         * lib/fcntl.c: Likewise.
13508         * lib/flock.c: Likewise.
13509         * lib/fstat.c: Likewise.
13510         * lib/fsync.c: Likewise.
13511         * lib/ioctl.c: Likewise.
13512         * lib/isapipe.c: Likewise.
13513         * lib/lseek.c: Likewise.
13514         * lib/nonblocking.c: Likewise.
13515         * lib/poll.c: Likewise.
13516         * lib/select.c: Likewise.
13517         * lib/sockets.h: Likewise.
13518         * lib/sockets.c: Likewise.
13519         * lib/stdio-read.c: Likewise.
13520         * lib/stdio-write.c: Likewise.
13521         * lib/utimens.c: Likewise.
13522         * lib/w32sock.h: Likewise.
13523         * lib/w32spawn.h: Likewise.
13524         * tests/test-cloexec.c: Likewise.
13525         * tests/test-dup-safer.c: Likewise.
13526         * tests/test-dup2.c: Likewise.
13527         * tests/test-dup3.c: Likewise.
13528         * tests/test-fcntl.c: Likewise.
13529         * tests/test-pipe.c: Likewise.
13530         * tests/test-pipe2.c: Likewise.
13531         * lib/ftruncate.c: Likewise.
13532         (chsize_nothrow): Renamed from chsize.
13533         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
13534         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
13535         * lib/close.c: Likewise.
13536         * lib/dup.c: Likewise.
13537         * lib/fclose.c: Likewise.
13538         * lib/raise.c: Likewise.
13539         * tests/test-fgetc.c: Likewise.
13540         * tests/test-fputc.c: Likewise.
13541         * tests/test-fread.c: Likewise.
13542         * tests/test-fwrite.c: Likewise.
13543         * lib/getdtablesize.c: Likewise.
13544         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
13545         * lib/isatty.c: Don't include msvc-inval.h if
13546         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
13547         Include <io.h> as an alternative to msvc-nothrow.h.
13548         * lib/read.c: Likewise.
13549         * lib/write.c: Likewise.
13550         * lib/dup2.c: Likewise.
13551         (dup2_nothrow): New function.
13552         (ms_windows_dup2): Use it.
13553         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
13554         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
13555         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
13556         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
13557         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
13558         * m4/read.m4 (gl_FUNC_READ): Likewise.
13559         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
13560         * doc/windows-without-msvc.texi: New file.
13561         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
13562         section.
13564 2017-05-10  Bruno Haible  <bruno@clisp.org>
13566         wait-process: Adjust native Windows support.
13567         * lib/wait-process.c: Use the usual condition for recognizing a native
13568         Windows platform.
13570 2017-05-10  Bruno Haible  <bruno@clisp.org>
13572         doc: New chapter "Native Windows Support".
13573         * doc/gnulib.texi (Native Windows Support): New chapter.
13574         * doc/windows-libtool.texi: Small wording changes.
13575         * doc/windows-sockets.texi: Small wording and formatting changes.
13577 2017-05-10  Bruno Haible  <bruno@clisp.org>
13579         doc: Move section "Library version handling".
13580         * doc/gnulib.texi: Move section "Library version handling"
13581         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
13583 2017-05-10  Bruno Haible  <bruno@clisp.org>
13585         doc: Move section "Running self-tests under valgrind".
13586         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
13587         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
13589 2017-05-10  Bruno Haible  <bruno@clisp.org>
13591         doc: New chapter "Build Infrastructure Modules".
13592         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
13594 2017-05-10  Bruno Haible  <bruno@clisp.org>
13596         Prepare for reordering sections in the manual.
13597         * doc/gnulib.texi: Move several sections to separate files. Include
13598         these files.
13599         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
13600         * doc/obsolete.texi: Likewise.
13601         * doc/extra-tests.texi: Likewise.
13602         * doc/transversal.texi: Likewise.
13603         * doc/namespace.texi: Likewise.
13604         * doc/check-version.texi: Likewise.
13605         * doc/windows-sockets.texi: Likewise.
13606         * doc/windows-libtool.texi: Likewise.
13607         * doc/licenses-texi.texi: Likewise.
13608         * doc/build-automation.texi: Likewise.
13609         * doc/c-locale.texi: Likewise.
13611 2017-05-10  Bruno Haible  <bruno@clisp.org>
13613         Fix instructions how to update manual on www.gnu.org.
13614         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
13616 2017-05-09  Bruno Haible  <bruno@clisp.org>
13618         tzset: Expand comment about TZ problem on native Windows.
13619         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
13620         Paul Eggert.
13621         * lib/ctime.c (rpl_ctime): Likewise.
13622         * lib/localtime.c (rpl_localtime): Likewise.
13623         * lib/mktime.c (mktime): Likewise.
13624         * lib/strftime-fixes.c (rpl_strftime): Likewise.
13625         * lib/wcsftime.c (rpl_wcsftime): Likewise.
13627 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
13629         intprops: don’t depend on ‘verify’
13630         Problem reported by Ævar Arnfjörð Bjarmason in:
13631         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
13632         * lib/intprops.h: Do not include verify.h, and move compile-time
13633         checks from here ...
13634         * tests/test-intprops.c (main): ... to here, if they’re not here
13635         already.  Check widths of other standard integer types.
13636         * modules/intprops (Depends-on): Remove ‘verify’.
13638 2017-05-07  Bruno Haible  <bruno@clisp.org>
13640         utimens: On native Windows, support 100ns resolution also if fd < 0.
13641         * lib/utime.in.h: Include <time.h>.
13642         (_gl_utimens_windows): New declaration.
13643         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
13644         (utime): Invoke it.
13645         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
13646         instead of utime.
13647         * modules/utime (Depends-on): Add 'time'.
13649 2017-05-07  Bruno Haible  <bruno@clisp.org>
13651         utimens: Improve error code on native Windows.
13652         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
13653         error code EACCES, not EINVAL.
13655 2017-05-07  Bruno Haible  <bruno@clisp.org>
13657         utime: Handle more Windows error codes.
13658         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
13659         Based on explanations by Billy O'Neal.
13661 2017-05-05  Bruno Haible  <bruno@clisp.org>
13663         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
13664         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
13665         union.
13666         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
13667         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
13668         value of cipher->IV.
13670 2017-05-05  Bruno Haible  <bruno@clisp.org>
13672         wctype-h-c++-tests: Update.
13673         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
13675 2017-05-05  Bruno Haible  <bruno@clisp.org>
13677         wchar-c++-tests: Update.
13678         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
13680 2017-05-05  Bruno Haible  <bruno@clisp.org>
13682         utime-h-c++-tests: New module.
13683         * tests/test-utime-h-c++.cc: New file.
13684         (utime): Declare, missing since 2017-04-30.
13685         * modules/utime-h-c++-tests: New file.
13687 2017-05-05  Bruno Haible  <bruno@clisp.org>
13689         unistd-c++-tests: Update.
13690         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
13691         (read): Declare, missing since 2011-04-15.
13692         (sethostname): Declare, missing since 2011-12-03.
13694 2017-05-05  Bruno Haible  <bruno@clisp.org>
13696         time-c++-tests: Update.
13697         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
13698         (localtime, gmtime): Declare, missing since 2017-04-30.
13699         (ctime): Declare, missing since 2017-04-30.
13700         (strftime): Declare, missing since 2017-04-30.
13701         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
13702         2015-07-24.
13704 2017-05-05  Bruno Haible  <bruno@clisp.org>
13706         sys_resource-c++-tests: New module.
13707         * tests/test-sys_resource-c++.cc: New file.
13708         (getrusage): Declare, missing since 2012-04-13.
13709         * modules/sys_resource-c++-tests: New file.
13711 2017-05-05  Bruno Haible  <bruno@clisp.org>
13713         strings-c++-tests: New module.
13714         * tests/test-strings-c++.cc: New file.
13715         (ffs): Declare, missing since 2011-07-12.
13716         * modules/strings-c++-tests: New file.
13718 2017-05-05  Bruno Haible  <bruno@clisp.org>
13720         string-c++-tests: Update.
13721         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
13722         (ffsll): Declare, missing since 2011-07-15.
13724 2017-05-05  Bruno Haible  <bruno@clisp.org>
13726         stdlib-c++-tests: Update.
13727         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
13728         2011-10-18.
13729         (ptsname_r): Declare, missing since 2011-11-07.
13730         (qsort_r): Declare, missing since 2014-08-29.
13731         (random, srandom, initstate, setstate): Declare, missing since
13732         2012-01-14.
13733         (secure_getenv): Declare, missing since 2013-02-05.
13735 2017-05-05  Bruno Haible  <bruno@clisp.org>
13737         stdio-c++-tests: Update.
13738         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
13740 2017-05-05  Bruno Haible  <bruno@clisp.org>
13742         signal-h-c++-tests: Update.
13743         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
13745 2017-05-05  Bruno Haible  <bruno@clisp.org>
13747         math-c++-tests: Update.
13748         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
13749         (fma): Declare, missing since 2011-10-17.
13750         (fmal): Declare, missing since 2011-10-17.
13752 2017-05-05  Bruno Haible  <bruno@clisp.org>
13754         locale-c++-tests: Update.
13755         * tests/test-locale-c++.cc (localeconv): Declare, missing since
13756         2012-03-25.
13758 2017-05-05  Bruno Haible  <bruno@clisp.org>
13760         inttypes-c++-tests: New module.
13761         * tests/test-inttypes-c++.cc: New file.
13762         (strtoimax): Declare, missing since 2012-01-05.
13763         (strtoumax): Declare, missing since 2012-01-05.
13764         * modules/inttypes-c++-tests: New file.
13766 2017-05-05  Bruno Haible  <bruno@clisp.org>
13768         dirent-c++-tests: Update.
13769         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
13770         (rewinddir): Declare, missing since 2011-09-13.
13771         (dirfd): Declare, missing since 2010-03-08.
13773 2017-05-04  Bruno Haible  <bruno@clisp.org>
13775         argp: Fix mistake in 2017-04-23 commit.
13776         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
13777         assume that strerror_r returns 'int', not 'char *'.
13779 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
13781         argp: Fix typo.
13782         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
13784 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
13786         utimens: port to Emacs + MS-Windows
13787         Skip the new MS-Windows-specific code if Emacs.
13788         * lib/utimens.c [EMACS_CONFIGUATION]:
13789         Avoid new MS-Windows-specific code.
13790         (USE_SETFILETIME): New macro.
13791         (fdutimens): Use it.
13793 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
13795         tzset: update doc for TZ problems on MS-Windows
13796         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
13797         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
13798         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
13799         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
13800         * doc/posix-functions/wcsftime.texi:
13801         Mention some issues with TZ under MS-Windows.
13803 2017-05-01  Bruno Haible  <bruno@clisp.org>
13805         copy-file: Fix build error on mingw.
13806         * modules/copy-file (Depends-on): Add 'close'.
13808 2017-05-01  Bruno Haible  <bruno@clisp.org>
13810         tzset: Work around TZ problem on native Windows.
13811         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
13812         Windows, set REPLACE_TZSET to 1.
13813         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
13814         invoke '_tzset' instead of 'tzset'.
13815         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
13817         * modules/time_rz (Depends-on): Add tzset.
13818         * lib/time_rz.c (tzset): Remove fallback definition.
13819         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
13821 2017-05-01  Bruno Haible  <bruno@clisp.org>
13823         mktime: Fix dependencies.
13824         * modules/mktime (Depends-on): Add 'time'.
13826 2017-05-01  Bruno Haible  <bruno@clisp.org>
13828         New module 'localtime-buffer', split off from module 'gettimeofday'.
13829         * lib/localtime-buffer.h: New file.
13830         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
13831         * lib/time.in.h (tzset): New declaration.
13832         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
13833         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
13834         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
13835         moved to lib/localtime-buffer.c or lib/tzset.c.
13836         * m4/localtime-buffer.m4: New file.
13837         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
13838         HAVE_TZSET, REPLACE_TZSET.
13839         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
13840         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
13841         gl_LOCALTIME_BUFFER_NEEDED.
13842         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
13843         since 2007-01-18.
13844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
13845         tzset.
13846         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
13847         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
13848         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
13849         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
13850         * modules/localtime-buffer: New file.
13851         * modules/time (Depends-on): Remove 'gettimeofday'.
13852         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
13853         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
13854         * modules/tzset (Description): Enable hyperlink to POSIX spec.
13855         (Files): Add lib/tzset.c.
13856         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
13857         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
13858         gl_TIME_MODULE_INDICATOR.
13859         * modules/gettimeofday (Depends-on): Add localtime-buffer.
13861 2017-05-01  Bruno Haible  <bruno@clisp.org>
13863         copy-file: Preserve sub-second time stamps.
13864         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
13865         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
13866         transport the time stamps from the original file to the destination
13867         file.
13868         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
13869         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
13870         utime-h.
13872 2017-05-01  Bruno Haible  <bruno@clisp.org>
13874         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
13875         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
13876         also on MSVC.
13877         Reported by Eli Zaretskii <eliz@gnu.org>.
13879 2017-05-01  Bruno Haible  <bruno@clisp.org>
13881         wchar: Fix compilation error with the original mingw.org mingw.
13882         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
13883         <stddef.h> instead.
13884         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
13885         gl_WCTYPE_H.
13886         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
13887         gl_TYPE_WINT_T_PREREQ instead.
13888         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
13889         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
13890         Reported by Eli Zaretskii <eliz@gnu.org>.
13892 2017-04-30  Bruno Haible  <bruno@clisp.org>
13894         utimecmp: Add support for native Windows.
13895         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
13897 2017-04-30  Bruno Haible  <bruno@clisp.org>
13899         utimens: Add support for native Windows.
13900         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
13901         (fdutimens): Provide a native Windows implementation, like utime.c with
13902         added tv_nsec support.
13903         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
13904         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
13906 2017-04-30  Bruno Haible  <bruno@clisp.org>
13908         wcsftime: New module.
13909         * lib/wchar.in.h (wcsftime): New declaration.
13910         * lib/wcsftime.c: New file.
13911         * m4/wcsftime.m4: New file.
13912         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
13913         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
13914         HAVE_WCSFTIME, REPLACE_WCSFTIME.
13915         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
13916         HAVE_WCSFTIME, REPLACE_WCSFTIME.
13917         * modules/wcsftime: New file.
13918         * doc/posix-functions/wcsftime.texi: Mention the new module.
13920 2017-04-30  Bruno Haible  <bruno@clisp.org>
13922         strftime-fixes: New module.
13923         * lib/time.in.h (strftime): New declaration.
13924         * lib/strftime-fixes.c: New file.
13925         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
13926         (gl_FUNC_STRFTIME): Remove macro.
13927         * m4/strftime-fixes.m4: New file.
13928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
13929         REPLACE_STRFTIME.
13930         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
13931         REPLACE_STRFTIME.
13932         * modules/strftime-fixes: New file.
13933         * doc/posix-functions/strftime.texi: Mention the new module.
13935 2017-04-30  Bruno Haible  <bruno@clisp.org>
13937         mktime: Work around TZ problem on native Windows.
13938         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
13939         from the native Windows workaround.
13940         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
13941         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
13942         'guessing no'.
13943         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
13944         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
13945         NEED_MKTIME_WINDOWS.
13946         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
13947         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
13948         NEED_MKTIME_INTERNAL.
13949         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
13950         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
13951         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
13952         not REPLACE_MKTIME.
13953         * doc/posix-functions/mktime.texi: Mention the native Windows
13954         workaround.
13956 2017-04-30  Bruno Haible  <bruno@clisp.org>
13958         localtime: New module.
13959         * lib/time.in.h (localtime): Declare also if requested by module
13960         'localtime'.
13961         * lib/localtime.c: New file.
13962         * m4/localtime.m4: New file.
13963         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
13964         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
13965         * modules/localtime: New file.
13966         * doc/posix-functions/localtime.texi: Mention the new module.
13968 2017-04-30  Bruno Haible  <bruno@clisp.org>
13970         ctime: New module.
13971         * lib/time.in.h (ctime): New declaration.
13972         * lib/ctime.c: New file.
13973         * m4/ctime.m4: New file.
13974         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
13975         REPLACE_CTIME.
13976         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
13977         * modules/ctime: New file.
13978         * doc/posix-functions/ctime.texi: Mention the new module.
13980 2017-04-30  Bruno Haible  <bruno@clisp.org>
13982         gettimeofday: Provide higher resolution on native Windows.
13983         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
13984         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
13985         (initialize): Initialize it.
13986         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
13987         'struct timeval'. Don't use _ftime().
13988         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
13989         <sys/timeb.h> and _ftime.
13991 2017-04-30  Bruno Haible  <bruno@clisp.org>
13993         Document the problem with the Cygwin environment variable TZ.
13994         * doc/posix-functions/tzset.texi: Add note about TZ.
13995         * doc/posix-functions/ctime.texi: Likewise.
13996         * doc/posix-functions/localtime.texi: Likewise.
13997         * doc/posix-functions/mktime.texi: Likewise.
13998         * doc/posix-functions/strftime.texi: Likewise.
13999         * doc/posix-functions/wcsftime.texi: Likewise.
14000         * doc/pastposix-functions/ftime.texi: Likewise.
14002 2017-04-30  Bruno Haible  <bruno@clisp.org>
14004         utime-tests: New module.
14005         * tests/test-utime.c: New file, based on tests/test-utimens.h.
14006         * tests/test-utimens-common.h: Include <sys/stat.h>.
14007         * modules/utime-tests: New file.
14009 2017-04-29  Bruno Haible  <bruno@clisp.org>
14011         utime: New module.
14012         * lib/utime.in.h: Add comment for snippets.
14013         (utime): New declaration.
14014         * lib/utime.c: New file.
14015         * m4/utime.m4: New file.
14016         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
14017         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
14018         REPLACE_UTIME.
14019         * modules/utime-h (Depends-on): Add snippets.
14020         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
14021         Insert snippets.
14022         * modules/utime: New file.
14023         * doc/posix-functions/utime.texi: Mention the new module.
14025 2017-04-29  Bruno Haible  <bruno@clisp.org>
14027         utime-h: Modernize handling of 'struct utimbuf'.
14028         * lib/utime.in.h: Include next <utime.h> if it exists.
14029         (utimbuf): Define to _utimbuf on native Windows.
14030         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
14031         Set UTIME_H on native Windows.
14032         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
14033         * modules/utime-h (Depends-on): Add include_next.
14034         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
14035         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
14037         * lib/utimens.c (utimbuf): Remove fallback definition.
14038         * m4/utimens.m4 (gl_UTIMENS): Don't require
14039         gl_CHECK_TYPE_STRUCT_UTIMBUF.
14040         * m4/utimbuf.m4: Remove file.
14041         * modules/utimens (Files): Remove m4/utimbuf.m4.
14043 2017-04-29  Bruno Haible  <bruno@clisp.org>
14045         Make use of module 'utime-h'.
14046         * modules/copy-file (Depends-on): Add utime-h.
14047         * lib/copy-file.c: Assume that <utime.h> exists.
14048         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
14050         * modules/utimens (Depends-on): Add utime-h.
14051         * lib/utimens.c: Assume that <utime.h> exists.
14053 2017-04-29  Bruno Haible  <bruno@clisp.org>
14055         utime-h: New module.
14056         * m4/utime_h.m4: New file.
14057         * lib/utime.in.h: New file.
14058         * modules/utime-h: New file.
14059         * doc/posix-headers/utime.texi: Mention the new module.
14061         * tests/test-utime-h.c: New file.
14062         * modules/utime-h-tests: New file.
14064 2017-04-30  Bruno Haible  <bruno@clisp.org>
14066         Fix a few typos.
14067         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
14068         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
14069         * doc/posix-functions/fstat.texi: Fix a plural typo.
14070         * doc/posix-functions/stat.texi: Likewise.
14071         * m4/include_next.m4: Update comments.
14073 2017-04-29  Bruno Haible  <bruno@clisp.org>
14075         error: Fix mistake in 2017-04-23 commit.
14076         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
14077         assume that strerror_r returns 'int', not 'char *'.
14079 2017-04-29  Bruno Haible  <bruno@clisp.org>
14081         stat: Fix time_t values and other problems on native Windows platforms.
14082         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
14083         implementations of stat().
14084         * lib/stat.c: Include filename.h instead of dosname.h. Include
14085         malloca.h, stat-w32.h.
14086         (is_unc_root): New function.
14087         (rpl_stat): New implementation for native Windows. Remove
14088         REPLACE_FUNC_STAT_DIR code.
14089         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
14090         Don't define REPLACE_FUNC_STAT_DIR.
14091         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
14092         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
14093         (Depends-on): Remove dosname. Add filename, malloca.
14094         (configure.ac): Also compile lib/stat-w32.c.
14096 2017-04-29  Bruno Haible  <bruno@clisp.org>
14098         fstat: Fix time_t values on native Windows platforms.
14099         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
14100         * lib/stat-w32.h: New file.
14101         * lib/stat-w32.c: New file.
14102         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
14103         stat-w32.h instead.
14104         (fstat_nothrow): Remove function.
14105         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
14106         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
14107         always.
14108         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
14109         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
14110         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
14111         (configure.ac): Also compile lib/stat-w32.c.
14113 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14115         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
14116         Problem reported by Assaf Gordon and Gavin Smith in:
14117         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
14118         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
14119         #define this, too.
14121 2017-04-29  Bruno Haible  <bruno@clisp.org>
14123         strerror_r-posix: Fixes for MSVC 14.
14124         * lib/strerror_r.c: Include <stdarg.h>.
14125         (strerror_r): Provide error messages for errno values 100...140.
14126         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
14128 2017-04-28  Bruno Haible  <bruno@clisp.org>
14130         noreturn: New module.
14131         * lib/noreturn.h: New file.
14132         * modules/noreturn: New file.
14133         * tests/test-noreturn.c: New file.
14134         * modules/noreturn-tests: New file.
14135         * tests/test-noreturn-c++.cc: New file.
14136         * modules/noreturn-c++-tests: New file.
14138 2017-04-27  Bruno Haible  <bruno@clisp.org>
14140         wctype-h: Fix compilation error with the original mingw.org mingw.
14141         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
14142         HAVE_CRTDEFS_H.
14143         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
14144         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
14145         <stddef.h> instead.
14146         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
14148 2017-04-26  Pádraig Brady  <P@draigBrady.com>
14150         nap.h: Fix compilation on non windows platforms
14151         * tests/nap.h: Move misplaced endif.
14153 2017-04-26  Pádraig Brady  <P@draigBrady.com>
14154         and Paul Eggert  <eggert@cs.ucla.edu>
14156         time_rz: fix heap buffer overflow vulnerability
14157         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
14158         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
14159         whether there is enough buffer space available, thus avoiding
14160         the problematic promotion of signed to unsigned causing an invalid
14161         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
14162         the start of the buffer.
14163         * tests/test-parse-datetime.c (main): Add a test case written by
14164         Paul Eggert, which overwrites enough of the heap so that
14165         standard glibc will fail with "free(): invalid pointer"
14166         without the patch applied.
14168 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14170         xalloc: add missing integer overflow check
14171         * lib/xalloc.h (x2nrealloc): Also check for multiplication
14172         overflow when P is null.
14174 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14176         parse-datetime: make it standalone
14177         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
14178         (_GL_ATTRIBUTE_FORMAT): New macro.
14179         These are needed to get './gnulib-tool --test parse-datetime' to work.
14181 2017-04-23  Bruno Haible  <bruno@clisp.org>
14183         nap.h: Port to native Windows.
14184         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
14185         use nap_fd instead. On native Windows, close and reopen nap_fd.
14186         (nap_works): Don't compare the ctimes, because on native Windows, these
14187         are the creation times.
14188         (nap): Update.
14190 2017-04-23  Bruno Haible  <bruno@clisp.org>
14192         nap.h: Fix logic.
14193         * tests/nap.h (nap): Avoid signed integer overflow in loop.
14195 2017-04-23  Bruno Haible  <bruno@clisp.org>
14197         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
14198         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
14199         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
14200         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
14201         * lib/argp-help.c (__argp_failure): Likewise.
14203 2017-04-23  Bruno Haible  <bruno@clisp.org>
14205         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
14206         * m4/strerror_r.m4: Revert changes since 2016-10-16.
14207         * lib/strerror_r.c: Likewise.
14209 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
14211         Target a C99 subset, not a C89 subset
14212         For many years Gnulib has targeted C89 and has resisted using C99
14213         features, as some Gnulib-using programs still wanted to target
14214         C89.  As this no longer seems to be the case, relax the porting
14215         requirements to allow some C99 features.  This is merely a change
14216         to the documentation, to give other Gnulib developers a chance to
14217         weigh in on the topic.
14218         * doc/extern-inline.texi (extern inline):
14219         * doc/gnulib-readme.texi (Portability guidelines):
14220         * doc/gnulib-tool.texi (Initial import):
14221         * doc/gnulib.texi (Header files):
14222         Modernize to talk about C99 and C11 instead of C89 and C99.
14223         * doc/gnulib-readme.texi (Portability guidelines):
14224         Now a section, not merely a subsection, so that it
14225         can be split up.  Modernize a bit.
14226         (C language versions, C99 features assumed)
14227         (C99 features avoided):
14228         New sections.
14230 2017-04-23  Bruno Haible  <bruno@clisp.org>
14232         doc: New section "Modules that modify the way other modules work".
14233         * doc/gnulib.texi (Modules that modify the way other modules work): New
14234         section.
14236 2017-04-23  Bruno Haible  <bruno@clisp.org>
14238         stat-time: Update comments.
14239         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
14240         * tests/test-utimens-common.h: Add reference regarding st_ctime on
14241         Windows.
14243 2017-04-01  Bruno Haible  <bruno@clisp.org>
14245         glob: Fix more memory leaks.
14246         * lib/glob.c (glob): Free allocated memory before returning.
14247         Reported by Coverity via Tim Rühsen.
14249 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14251         poll: improve fast check for out-of-range NFD
14252         * lib/poll.c: Do not include intprops.h.
14253         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
14254         * modules/poll (Depends-on): Remove intprops.
14256         ftoastr: cite a newer paper
14257         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
14258         instead of Loitsch 2010.
14260 2017-04-22  Bruno Haible  <bruno@clisp.org>
14262         poll: Enable argument check also in the Windows implementation.
14263         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
14264         Reported by Paul Eggert.
14266 2017-04-22  Bruno Haible  <bruno@clisp.org>
14268         getlogin_r: Work around bug in Mac OS X 10.12.
14269         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
14270         bug.
14271         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
14272         given size minus 1, call getlogin_r a second time, on a larger buffer.
14273         * modules/getlogin_r (Depends-on): Add malloca.
14274         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
14276 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14278         parse-datetime: fix %z and prefer signed int
14279         %z problem reported by Pádraig Brady in:
14280         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
14281         While fixing it, I decided to prefer signed ints to size_t, as
14282         they are less error-prone (e.g., ubsan catches overflow).
14283         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
14284         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
14285         counts, since signed integers make for better debugging.
14286         (date): Don’t assume %z works in printf formats.
14287         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
14288         sizes of buffers known to be small, e.g., because we’re using snprintf.
14289         (parse_datetime2): Simplify call to debug_mktime_not_ok.
14291 2017-04-22  Bruno Haible  <bruno@clisp.org>
14293         *printf: Work around rounding bug on Mac OS X.
14294         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
14295         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
14296         Mac OS X and FreeBSD.
14297         * doc/glibc-functions/*printf.texi: Likewise.
14299 2017-04-22  Bruno Haible  <bruno@clisp.org>
14301         vasnprintf tests: Avoid warnings.
14302         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
14303         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
14304         test.
14306 2017-04-22  Bruno Haible  <bruno@clisp.org>
14308         sys_file tests: Avoid warning.
14309         * tests/test-sys_file.c (main): Add a default clause to the switch
14310         statement.
14312 2017-04-22  Bruno Haible  <bruno@clisp.org>
14314         sethostname: Update doc.
14315         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
14316         Mac OS X.
14318 2017-04-22  Bruno Haible  <bruno@clisp.org>
14320         quotearg tests: Avoid warnings.
14321         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
14322         false.
14324 2017-04-22  Bruno Haible  <bruno@clisp.org>
14326         poll: Enable argument check.
14327         * lib/poll.c: Include intprops.h.
14328         (poll): Check value of nfd correctly.
14329         * modules/poll (Depends-on): Add intprops.
14331 2017-04-22  Bruno Haible  <bruno@clisp.org>
14333         get-rusage-data: Avoid warnings on Mac OS X.
14334         * lib/get-rusage-data.c: On Mac OS X, don't define
14335         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
14336         (get_rusage_data) [Mac OS X]: Just return 0.
14338 2017-04-22  Bruno Haible  <bruno@clisp.org>
14340         xbinary-io: Fix build error.
14341         * modules/xbinary-io (Depends-on): Add gettext-h.
14342         * lib/xbinary-io.c: Include gettext.h and define _().
14343         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
14344         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
14346 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
14348         parse-datetime: overflow and debug cleanups
14349         This long patch was triggered by this bug report from Ruediger Meier:
14350         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
14351         I fixed the bug he noted, then found some others nearby, and then
14352         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
14353         up some of the code to follow GNU standards while I was at it.
14354         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
14355         use c_isdigit.
14356         (EPOCH_YEAR): Remove; unused.
14357         (TM_YEAR_BASE): Now an enum rather than a macro.
14358         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
14359         time zone offset, since timezones now are in terms of seconds and
14360         not minutes.
14361         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
14362         appropriate.  Verify that intmax_t is wide enough.
14363         (time_overflow, time_zone_str): New functions, used to deal
14364         more reliably with overflow.
14365         (dbg_printf): Add printf attribute, to help catch integer width errors.
14366         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
14367         (%union, to_hour, yylex, parse_datetime2):
14368         Use intmax_t instead of long int and/or long_time_t.
14369         All uses changed.
14370         (DBGBUFSIZE): Move earlier.
14371         (relative_time, set_hhmmss, parser_control):
14372         Just use int for nanoseconds and for time zones; that’s wide enough.
14373         (parser_control): Use bool for members like year_seen that can
14374         be booleans instead of counters.  All uses changed.
14375         Remove debug_default_input_timezone; no longer needed.
14376         All uses removed.
14377         (apply_relative_time): Return a bool overflow flag.
14378         All uses changed to check for overflow.
14379         (apply_relative_time, zone, date, relunit, relunit_snumber)
14380         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
14381         Check for integer overflow portably.
14382         (str_days): Use just int for N, as it’s wide enough.
14383         Prefer 2D char arrays to arrays of char * when it looks like
14384         2D is a win on typical platforms.
14385         Prefer snprintf to strncpy/strncat, for simplicity;
14386         all buffers are smaller than INT_MAX so this is safe.
14387         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
14388         (debug_print_current_time): Don’t assume tv_nsec is of type long,
14389         as this is not true on x32.  Output "." before any nanoseconds.
14390         (debug_print_current_time, parse_datetime2):
14391         Output local zones using a more-consistent format.
14392         (debug_print_current_time, date, parse_datetime2):
14393         (main) [TEST]:
14394         Don’t assume time_t is the same width as long.
14395         (print_rel_part): New function, replacing ...
14396         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
14397         (debug_print_relative_time): Use bool for boolean.
14398         (local_zone): dsts_seen now counts only tDST instances.
14399         (date): Fix printf of size_t to use %z.  Do not assume numeric
14400         tokens have negative values merely because the context suggests
14401         a syntax with "-" separating tokens.
14402         (time_zone_hhmm): Return bool success indicator, which checks for
14403         overflow.  Store result into PC->time_zone instead.  All callers
14404         changed.
14405         (tm_year_str): New function.  Return a bool success indicator and
14406         store the result into a buffer.  All callers changed.  Output the
14407         numerically correct string even if adding 1900 to the year would
14408         overflow.
14409         (to_tm_year): New function, replacing the old to_year.  All
14410         callers changed.
14411         (tm_diff): Sync with glibc.
14412         (lookup_word): Use to_uchar instead of doing it by hand.
14413         (TZBUFSIZE): Now local to the only function that needs it.
14414         (debug_strfdatetime): Simplify now that time zones are int seconds.
14415         (debug_strfdate): Work even if tm_year + 1900 would overflow.
14416         (get_effective_timezone): Remove.  All uses removed.
14417         (parse_datetime2): Use fprintf in pieces instead of snprintfing
14418         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
14419         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
14420         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
14421         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
14422         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
14423         * modules/parse-datetime (Depends-on): Add inttypes.
14425 2017-04-21  Bruno Haible  <bruno@clisp.org>
14427         gettext-h: Avoid -Wundef warning.
14428         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
14429         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
14430         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
14432 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
14434         error: Avoid "function declaration isn't a prototype" warning.
14435         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
14437 2017-04-21  Bruno Haible  <bruno@clisp.org>
14439         vasnprintf: Fix for MSVC 14.
14440         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
14441         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
14442         of !HAVE_SNPRINTF_RETVAL_C99.
14444 2017-04-21  Bruno Haible  <bruno@clisp.org>
14446         mbrtowc tests: Fix test failures on MSVC 14.
14447         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
14448         behaviour for invalid input.
14450 2017-04-21  Bruno Haible  <bruno@clisp.org>
14452         mbsinit: Fix for MSVC 14.
14453         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
14454         implementation that is in sync with mbrtowc.c. On other platforms, use
14455         an adequate ad-hoc implementation.
14457 2017-04-21  Bruno Haible  <bruno@clisp.org>
14459         Fix test-mbrtowc5.sh failure on native Windows.
14460         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
14461         "C".
14463 2017-04-21  Bruno Haible  <bruno@clisp.org>
14465         Avoid accidental use of native Windows APIs on Cygwin.
14466         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
14467         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
14468         * lib/localename.c (WINDOWS_NATIVE): Likewise.
14470 2017-04-20  Bruno Haible  <bruno@clisp.org>
14472         Remove red warnings from the generated MODULES.html.
14473         * modules/fcntl (Description): Disambiguate function references.
14474         * modules/getcwd-lgpl (Description): Likewise.
14475         * modules/hostent (Description): Likewise.
14476         * modules/servent (Description): Likewise.
14477         * modules/tempname (Description): Likewise.
14479 2017-04-20  Bruno Haible  <bruno@clisp.org>
14481         verify tests: Fix spurious failure with parallel make.
14482         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
14483         EXTRA_PROGRAMS.
14484         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
14485         * tests/test-verify-try.c: New file.
14486         * modules/verify-tests (Files): Add it.
14487         (EXTRA_PROGRAMS): Add test-verify-try.
14488         (MOSTLYCLEANFILES): Update accordingly.
14489         Reported by Adam James Stewart <ajstewart@anl.gov>.
14491 2017-04-18  Bruno Haible  <bruno@clisp.org>
14493         vma-iter: Fix compilation error on Solaris 7.
14494         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
14495         like on IRIX, OSF/1.
14496         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14498 2017-04-18  Bruno Haible  <bruno@clisp.org>
14500         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
14501         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
14502         included.
14503         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
14504         <sys/procfs.h>.
14505         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
14506         <sys/procfs.h> cannot be included.
14507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14509 2017-04-18  Bruno Haible  <bruno@clisp.org>
14511         getopt-gnu: Add comments.
14512         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
14513         * modules/getopt-gnu (configure.ac): Likewise.
14515 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
14517         regex: port better to Solaris 10
14518         Solaris 10 <locale.h> includes <libintl.h>, which #defines
14519         gettext, and this causes a double #define.
14520         Problem reported by Gavin Smith in:
14521         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
14522         * lib/regex_internal.h (gettext): #undef before #defining.
14524 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
14526         intprops: improve comments
14527         * lib/intprops.h: Improve and shorten commentary.
14528         For the record, if we ever run into a pedantic compiler that
14529         behaves differently from GCC when converting an out-of-range value
14530         to a signed integer, we can work around the problem with something
14531         like the following code, where UCT is the signed counterpart of T
14532         (UCT is sometimes narrower than UT) and all callers are changed
14533         accordingly:
14534         #if __SUNPRO_C <= 0x5120
14535         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
14536            ((t) ((ut) (a) op (ut) (b)))
14537         #else
14538         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
14539            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
14540             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
14541                + TYPE_MINIMUM (t)) \
14542             : (t) (uct) ((ut) (a) op (ut) (b)))
14543         #endif
14545 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
14547         intprops: try to avoid tickling similar bugs
14548         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
14549         needs to be the same width as T; it can be wider.
14550         Change callers so that UT is at least as wide as unsigned int,
14551         as I suspect that this is less likely to run into compiler bugs.
14553         intprops: port to Oracle Studio 12.3 x86
14554         Problem reported by Gavin Smith in:
14555         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
14556         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
14557         Convert unsigned to signed via the usual rather than the standard way,
14558         to avoid a compiler bug in Oracle Studio 12.3 x86.
14560 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14562         getopt: prefer - to _ in new file names
14563         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
14564         * lib/getopt-core.h: Rename from lib/getopt_core.h.
14565         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
14566         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
14567         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
14568         All uses changed.
14570         getopt: port recent getopt changes to macOS
14571         Problem reported by Harald Maier (Bug#26398).
14572         The macOS C compiler uses __nonnull for its own purposes and that
14573         clashes with glibc's __nonnull.
14574         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
14575         * lib/getopt_cdefs.in.h (__nonnull): Remove.
14576         * lib/getopt_core.h (getopt):
14577         * lib/getopt_ext.h (getopt_long, getopt_long_only):
14578         Use _GL_ARG_NONNULL, not __nonnull.
14579         * lib/unistd.in.h: Move snippet hooks to before where the getopt
14580         .h files are included, so that _GL_ARG_NONNULL is defined in time.
14581         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
14582         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
14584 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14586         getopt-gnu: omit some duplicate code
14587         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
14588         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
14589         gnulib-tool already does this.
14590         * modules/getopt-gnu (configure.ac): Omit code duplicated from
14591         getopt-posix, which we depend on.
14593         getopt-posix: use angle-bracket include
14594         * lib/getopt1.c: Include <config.h>, not "config.h".
14596 2017-04-06  Zack Weinberg  <zackw@panix.com>
14598         getopt: annotate files with relationship to glibc
14600         As the final act in this patchset, adjust the message at the top of
14601         each file to indicate which files are synced with glibc.  (This has
14602         already been done for most of the headers.)
14604         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
14605         Mention in top-of-file boilerplate that these files are shared
14606         between glibc and gnulib.
14609         getopt: split up getopt.in.h and eliminate __need_getopt
14611         Over in glibc, all of the __need macros are being phased out in favor
14612         of small headers that declare only the necessary components, as this
14613         is much simpler and less prone to bugs.  As getopt is shared with
14614         glibc, gnulib needs to do the same for __need_getopt.
14616         __need_getopt is misnamed; what it really means is "we want only the
14617         getopt features specified in POSIX, not the GNU extensions".  glibc
14618         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
14619         these files can be shared verbatim with gnulib.  The portability
14620         wrapper, on the other hand, they have renounced altogether; glibc's
14621         getopt.h will no longer be shared with gnulib at all.  In exchange,
14622         certain glibc-specific quirks (having to do with __posix_getopt) no
14623         longer need appear in gnulib's headers at all.
14625         This patch merges getopt_core.h and getopt_ext.h from glibc, and
14626         splits up the current gnulib-side portability wrapper into three
14627         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
14628         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
14629         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
14630         unistd.in.h just use them.  All new files are clearly marked with
14631         whether they are shared with glibc.
14633         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
14634         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
14635         with glibc, and ...
14636         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
14637         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
14638         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
14639         instead of defining __need_getopt and including the full getopt.h.
14641         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
14642         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
14643         * modules/getopt-posix (Files): Add new headers and sort list.
14644         (Depends-on): No longer need snippet/arg-nonnull.
14645         (Makefile.am): Generate getopt_cdefs.h.
14648         getopt: better handling of ambiguous options
14650         glibc's getopt uses alloca to construct a linked list of possibilities
14651         for an "ambiguous" long option.  In gnulib, malloc should be used
14652         instead.  Providing for both cases complicates things a fair bit.
14654         This patch rewrites ambiguous-option handling to use a boolean vector
14655         instead of a linked list.  There is then only one allocation that
14656         might need freeing; in glibc it can honor __libc_use_alloca as usual,
14657         and in gnulib we define __libc_use_alloca to always be false, so we
14658         don't need ifdefs in the middle of the function.  This should also be
14659         slightly more efficient in the normal case of long options being fully
14660         spelled out -- I think most people aren't even aware they _can_
14661         sometimes abbreviate long options.
14663         One interesting consequence is that the list of possibilities is now
14664         printed in exactly the order they appear in the list of long options,
14665         instead of the first possibility being shuffled to the end.
14667         (The patch looks bigger than it really is because there's a fair bit
14668         of reindentation and code rearrangement.)
14670         * lib/getopt.c: When used standalone, define __libc_use_alloca
14671         as always false and alloca to abort if called.
14672         (process_long_option): Rewrite handling of ambiguous long options
14673         to use a single boolean vector, not a linked list; use
14674         __libc_use_alloca to decide whether to allocate this using alloca.
14677         getopt: refactor long-option handling
14679         There were two copies of the bulk of the code to handle long options.
14680         Now there is only one.
14682         This change temporarily removes the logic to avoid using alloca when
14683         standalone; the next patch in the series will restore it.
14685         * lib/getopt.c (process_long_option): New function split out
14686         from _getopt_internal_r.
14687         (_getopt_internal_r): Replace both copies of the long-option
14688         processing code with calls to process_long_option.
14691         getopt: tidy up _getopt_initialize a bit
14693         _getopt_data.__posixly_correct is completely redundant to
14694         _getopt_data.__ordering, and some work that logically belongs in
14695         _getopt_initialize was being done by _getopt_internal_r, making the
14696         code harder to understand.
14698         As a side effect, getenv will no longer be called if the first
14699         character of the options string is '+' or '-', which is probably a
14700         Good Thing.  (Perhaps we should have a flag character that
14701         specifically asks for the permutation behavior?)
14703         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
14704         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
14705         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
14708         getopt: merge from glibc: repetition reduction
14710         The definitions of the entry point functions 'getopt' and
14711         '__posix_getopt' can be made substantially less repetitive with a
14712         helper macro.
14714         While I was merging the const-correctness changes from gnulib into
14715         glibc I noticed there are still some unnecessary casts in
14716         _getopt_internal_r.
14718         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
14719         a macro.  Consistently cast 'argv' to 'char **' when calling
14720         _getopt_internal.
14721         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
14724         getopt: clean up error reporting
14726         getopt can print a whole bunch of error messages, and when used
14727         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
14728         cancellation point and getopt isn't, and also applying fprintf to a
14729         stream in wide-character mode is not allowed.  So every single error
14730         reporting case has an #ifdef _LIBC block in which it calls internal
14731         libc functions instead.  The counterpart patch series in glibc makes
14732         it possible to simplify all of that down to a set of #defines at the
14733         top of the file; core code is written as if it is safe to just call
14734         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
14735         call any *other* stdio functions.)
14737         * lib/getopt.c: When _LIBC is defined, define fprintf to
14738         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
14739         to _IO_funlockfile.  When neither _LIBC nor
14740         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
14741         funlockfile as no-ops.
14742         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
14743         standalone error-printing code can now be used for libc as well.
14744         Add an flockfile/funlockfile pair around one case where the error
14745         message is printed in several chunks.  Don't use fputc.
14748         getopt: fix fencepost error in ambiguous-W-option handling
14750         getopt_long contains an undocumented (AFAICT) feature in which, if you
14751         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
14752         treated as equivalent to '--foo'.  This is implemented with a partial
14753         second copy of the code for handling long options, and that code
14754         increments optind one too many times when recovering from an ambiguous
14755         abbreviated option, which can cause the main loop to walk past the end
14756         of argv and crash.
14758         I discovered this while writing a test case that tries to exercise all
14759         of getopt's error reporting paths; I wouldn't be surprised to learn
14760         that this feature is never used by real applications.
14762         * lib/getopt.c (_getopt_internal_r): Don't increment
14763         d->optind a second time when reporting ambiguous -W options.
14766         getopt: clean up getopt.c and getopt1.c file headers
14768         In getopt.c, there is no need to include wchar.h at all, and it is
14769         safe nowadays to assume that stdlib.h does declare getenv (several
14770         other gnulib modules make this assumption).
14772         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
14773         by using "" inclusions consistently, and there is no actual need to
14774         include stdlib.h (except in the #ifdef TEST block, where it should be
14775         unconditional), nor to provide a backup definition of NULL at all.
14777         * lib/getopt1.c: Simplify #ifdeffage at top of file.
14778         Move inclusion of stdlib.h to #ifdef TEST block and make
14779         unconditional.  Do not define NULL.
14780         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
14781         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
14782         * modules/getopt-gnu, modules/getopt-posix: Don't call
14783         gl_PREREQ_GETENV.
14786         getopt: harmonize comments with glibc
14788         The comments explaining how the behavior of 'getopt' varies depending
14789         on whether it's the standalone version and whether there are special
14790         characters at the beginning of the options string were inconsistent
14791         between gnulib and glibc, and also out of sync with the code.
14793         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
14796         getopt: remove USE_NONOPTION_FLAGS
14798         getopt includes code to parse an environment variable named
14799         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
14800         in decimal); but all of it has been #ifdefed out since 2001, with no
14801         official way to turn it back on.
14803         According to commentary in glibc's config.h.in, bash version 2.0
14804         set this environment variable to indicate argv elements that were
14805         the result of glob expansion and therefore should not be treated
14806         as options, but the feature was "disabled later" because "it
14807         caused problems".  According to bash's CHANGES file, "later" was
14808         release 2.01; it gives no more detail about what the problems
14809         were.
14811         Version 2.0 of bash was released on the last day of 1996, and version
14812         2.01 in June of 1997.  Twenty years later, I think it is safe to
14813         assume that this environment variable isn't coming back.
14815         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
14816         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
14817         __libc_argc and __libc_argv externs, which were only used by
14818         #ifdef USE_NONOPTION_FLAGS blocks.
14821         getopt: tabify, in preparation for merge with glibc
14823         glibc sticks to the GNU default of indenting with a mix of
14824         8-column tabs and spaces; make the gnulib copy match.
14826         getopt.h is not included because it is *not* going to be merged in its
14827         present form.
14829         * getopt.c, getopt1.c, getopt_int.h: Tabify.
14831 2017-04-02  Bruno Haible  <bruno@clisp.org>
14833         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
14834         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
14835         like it was done in modules/relocatable-lib on 2011-05-21 and in
14836         modules/relocatable-prog on 2011-08-15.
14837         Reported by Reuben Thomas <rrt@sc3d.org>.
14839 2017-03-31  Bruno Haible  <bruno@clisp.org>
14841         glob: Fix invalid free() call.
14842         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
14843         static storage to home_dir.
14844         Reported by Coverity via Tim Rühsen.
14846 2017-03-31  Bruno Haible  <bruno@clisp.org>
14848         glob: Fix memory leaks.
14849         * lib/glob.c (glob): Free allocated memory before returning.
14850         Reported by Coverity via Tim Rühsen.
14852 2017-03-31  Bruno Haible  <bruno@clisp.org>
14854         md5, sha1, sha256, sha512: Add comments regarding correctness.
14855         * lib/md5.h (buflen): Add comments regarding range.
14856         * lib/sha1.h (buflen): Likewise.
14857         * lib/sha256.h (buflen): Likewise.
14858         * lib/sha512.h (buflen): Likewise.
14859         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
14860         * lib/sha1.c (sha1_process_bytes): Likewise.
14861         * lib/sha256.c (sha256_process_bytes): Likewise.
14862         * lib/sha512.c (sha512_process_bytes): Likewise.
14863         Reported by Coverity via Tim Rühsen.
14865 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
14867         getopt: merge from glibc
14868         This does not change anything substantial; it merely simplifies
14869         hypothetical merges back to glibc.
14870         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
14871         Change copyright notice to match what is in glibc.
14872         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
14873         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
14874         __open_memstream rather than open_memstream and __glibc_likely
14875         instead of __builtin_expect.
14876         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
14878 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
14880         dfa: make [0-9] faster in non-C locales
14881         Problem reported by John P. Linderman (Bug#26193).
14882         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
14883         If both ends of the range are ASCII digits, do not worry about
14884         multi-character collating sequences and the like.  Be consistent
14885         about using isalpha as a precondition for setbit_case_fold_c.
14887 2017-03-19  Bruno Haible  <bruno@clisp.org>
14889         lock: Fix compilation error with HP-UX IA64 cc.
14890         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
14891         weak on non-glibc platforms.
14893 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
14895         stdalign: tweak version# and test for HP-UX IA64
14896         Problems reported by Bruno Haible in:
14897         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
14898         * lib/stdalign.in.h (_Alignas):
14899         * m4/stdalign.m4 (gl_STDALIGN_H):
14900         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
14901         used octal (as that is how they document it), but it is decimal in
14902         practice now and the ancient implementations no longer matter.
14903         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
14905 2017-03-19  Bruno Haible  <bruno@clisp.org>
14907         vma-iter: Add support for Solaris.
14908         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
14909         approach.
14910         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
14911         * lib/get-rusage-as.c: Update comment about Solaris.
14912         * lib/get-rusage-data.c: Likewise.
14914 2017-03-19  Bruno Haible  <bruno@clisp.org>
14916         vma-iter: Prefer HP-UX specific API on HP-UX.
14917         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
14918         * lib/vma-iter.h: Update.
14919         Just in case HP-UX ever implements mquery().
14921 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
14923         stdalign: restore previous behavior for HP-UX IA64
14924         See Bruno Haible's email in:
14925         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
14926         which cites p 150 of a manual saying that 'aligned' works on Itanium.
14927         * lib/stdalign.in.h (_Alignas):
14928         Assume the '061200' applies to Itanium, not to PA-RISC.
14929         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
14931 2017-03-17  Bruno Haible  <bruno@clisp.org>
14933         stat-time, timespec: Support use of the header files in C++ mode.
14934         * lib/stat-time.h: Add "C" linkage declaration.
14935         * lib/timespec.h: Likewise.
14937 2017-03-17  Bruno Haible  <bruno@clisp.org>
14939         stdalign: Make it work with HP-UX cc.
14940         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
14941         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
14942         for HP-UX cc.
14944 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
14946         flexmember: try to detect HP-UX 11.31 cc bug
14947         Problem reported by Bruno Haible in:
14948         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
14949         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
14950         Attempt to detect bug in HP-UX 11.31 cc.
14952 2017-03-16  Bruno Haible  <bruno@clisp.org>
14954         stdint: Fix test compilation failure with HP-UX 11 cc.
14955         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
14956         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
14957         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
14958         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
14960 2017-03-14  Bruno Haible  <bruno@clisp.org>
14962         gnulib-tool: Don't produce a tests directory with only snippet .h files.
14963         * gnulib-tool (func_modules_transitive_closure_separately): If
14964         testsrelated_modules ends up with no "real" modules, aside from
14965         modules with applicability 'all', set it to empty.
14967 2017-03-14  Bruno Haible  <bruno@clisp.org>
14969         vma-iter: Add support for HP-UX.
14970         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
14971         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
14972         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
14973         * lib/get-rusage-as.c: Update comment about HP-UX.
14974         * lib/get-rusage-data.c: Likewise.
14975         (get_rusage_data): Use get_rusage_data_via_setrlimit.
14977 2017-03-14  Bruno Haible  <bruno@clisp.org>
14979         limits-h: Make it work with HP-UX cc.
14980         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
14981         defined.
14983 2017-03-14  Bruno Haible  <bruno@clisp.org>
14985         Fix test failures on DragonFlyBSD.
14986         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
14987         * tests/test-select.h (test_bad_fd): Likewise.
14988         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
14990 2017-03-14  Bruno Haible  <bruno@clisp.org>
14992         freadahead: Silence warning on DragonFlyBSD.
14993         * lib/freadahead.c (__sreadahead): Declare ourselves.
14995 2017-03-14  Bruno Haible  <bruno@clisp.org>
14997         vma-iter: Add comment about AIX.
14998         * lib/vma-iter.c: Add comment about why this module is not implemented
14999         on AIX.
15001 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
15003         snippets: move unadjusted snippet sources to lib
15004         Problem reported by Michal Privoznik in:
15005         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
15006         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
15007         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
15008         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
15009         * lib/unused-parameter.h: Rename from
15010         build-aux/snippet/unused-parameter.h.
15011         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
15012         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
15013         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
15014         * modules/snippet/c++defs (Files:, CXXDEFS_H):
15015         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
15016         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
15017         Adjust to file renamings.
15019 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
15021         gnulib-tool: don't automatically distribute files from top/
15022         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
15023         not distribute top/README-release by default, don't distribute files
15024         from top/ unconditionally.
15025         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
15026         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
15028 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
15030         gnulib-tool: fix typo in comment output
15031         * gnulib-tool (func_import): Fix typo with previous change.
15033         snippets: work around GNU Make 3.82 VPATH
15034         When using 'gnulib-tool --gnu-make' on Emacs, and building
15035         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
15036         an out-of-source (VPATH) build failed because the sans-copyright
15037         snippet file was not built before the file that used it.
15038         Presumably this is some sort of VPATH thing.  Work around the
15039         problem by using the original snippet, i.e., don’t bother to
15040         remove its copyright notice.
15041         * modules/snippet/_Noreturn, modules/snippet/link-warning:
15042         Don’t assume Automake in comments.  Omit long-incorrect comment.
15043         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
15044         (MOSTLYCLEANFILES):
15045         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
15046         (MOSTLYCLEANFILES):
15047         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
15048         (MOSTLYCLEANFILES):
15049         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
15050         (MOSTLYCLEANFILES):
15051         Remove.
15052         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
15053         * modules/snippet/c++defs (CXXDEFS_H):
15054         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
15055         * modules/snippet/warn-on-use (WARN_ON_USE_H):
15056         Don’t bother to remove the copyright notice; just use the
15057         original snippet as-is.
15059 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
15061         gnulib-tool: minor --gnu-make fixups
15062         * gnulib-tool (func_emit_lib_Makefile_am):
15063         Remove useless code that was a blind alley during implementation.
15064         Problem reported by Thien-Thi Nguyen in:
15065         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
15066         (func_import): Note the "--gnu-make" option in the output comment.
15068 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
15070         gnulib-tool: new option --gnu-make
15071         This is for applications like GNU Emacs that use GNU Make
15072         features instead of Automake.
15073         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
15074         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
15075         Do not assume Automake.
15076         * gnulib-tool (func_determine_path_separator)
15077         (func_modules_transitive_closure, func_update_file)
15078         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
15079         (func_import): Add support for --gnu-make.
15081 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15083         gnulib-common.m4: avoid aclocal.m4 bloat
15084         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
15085         Hide AM_PROG_AR from aclocal, so that aclocal does not
15086         install irrelevant macro definitions into aclocal.m4.
15088 2017-03-10  Bruno Haible  <bruno@clisp.org>
15090         vma-iter: Let callers know about error.
15091         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
15092         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
15094 2017-03-05  Bruno Haible  <bruno@clisp.org>
15096         Fix value of LD for 64-bit compilers on AIX.
15097         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
15098         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
15100 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
15102         dtotimespec: simplify
15103         * lib/dtotimespec.c (dtotimespec): Simplify.
15105 2017-03-04  Bruno Haible  <bruno@clisp.org>
15107         test-calloc-gnu: Reenable test also for GCC 7.
15108         * tests/test-calloc-gnu.c (eight): New function.
15109         (main): Don't skip test; use eight() instead.
15111 2017-03-04  Jim Meyering  <meyering@fb.com>
15113         test-calloc-gnu: port to GCC7
15114         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
15115         that attempts to calloc more than SIZE_MAX bytes, because GCC7
15116         and newer would detect that at compilation time.
15118 2017-03-04  Bruno Haible  <bruno@clisp.org>
15120         tests: Avoid compiler warning about uses of null_ptr.
15121         * tests/null-ptr.h: New file.
15122         * tests/test-canonicalize.c: Include null-ptr.h.
15123         (null_ptr): Remove function.
15124         * tests/test-canonicalize-lgpl.c: Likewise.
15125         * tests/test-memmem.c: Likewise.
15126         * tests/test-ptsname_r.c: Likewise.
15127         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
15128         * modules/canonicalize-lgpl-tests: Likewise.
15129         * modules/memmem-tests: Likewise.
15130         * modules/ptsname_r-tests: Likewise.
15131         Reported by Jim Meyering.
15133 2017-03-03  Bruno Haible  <bruno@clisp.org>
15135         doc: Mention Mac OS X deficiencies regarding semaphores.
15136         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
15137         * doc/posix-functions/sem_destroy.texi: Likewise.
15138         * doc/posix-functions/sem_getvalue.texi: Likewise.
15140 2017-03-03  Bruno Haible  <bruno@clisp.org>
15142         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
15143         Reported by Assaf Gordon <assafgordon@gmail.com> via
15144         Pádraig Brady <P@draigBrady.com>.
15145         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
15146         semaphores.
15147         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
15148         (atomic_int_semaphore): New macro.
15150 2017-02-28  Bruno Haible  <bruno@clisp.org>
15152         perror tests: Tweak for z/OS.
15153         Reported by Daniel Richard G. <skunk@iskunk.org>.
15154         * tests/test-perror.sh: Don't fail z/OS style perror output.
15156 2017-02-26  Bruno Haible  <bruno@clisp.org>
15158         nproc: Refactor large function.
15159         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
15160         from num_processors.
15161         (num_processors): In this function, only deal with OMP.
15163 2017-02-26  Pádraig Brady  <P@draigBrady.com>
15165         nproc: adjust handling of OpenMP environment variables
15166         to match the return value from omp_get_num_threads(), i.e.:
15167          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
15168          - Treat 0 as an invalid value and ignore
15169         Also remove the call to omp_get_num_threads() because
15170         it's ineffective without the omp pragmas in place.
15171         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
15172         so that it can be ignored.
15173         (num_processors): Honor OMP_THREAD_LIMIT even without
15174         OMP_NUM_THREADS being set.  Also fix a typo in the environment
15175         variable being checked, from the previous recent commit.
15177 2017-02-26  Pádraig Brady  <P@draigBrady.com>
15179         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
15180         * lib/nproc.c (parse_omp_threads): A new function refactored
15181         from num_processors() to support parsing both of the
15182         above environment variables.
15183         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
15184         to accurately reflect the current OpenMP nesting level.
15185         Also support the OMP_THREAD_LIMIT environment variable
15186         to limit the max value determined from OMP_NUM_THREADS.
15187         * modules/nproc: Depend on minmax header.
15188         Suggested by Oliver Heimlich.
15190 2017-02-25  Bruno Haible  <bruno@clisp.org>
15192         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
15193         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
15195 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15197         ftoastr: port to -Wdouble-promotion
15198         Work around -Wdouble-promotion false alarm in recent GCCs.
15199         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
15200         (ftoastr_snprintf, FTOASTR): Use it.
15202 2017-02-21  Bruno Haible  <bruno@clisp.org>
15204         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
15205         Reported by Rene Saavedra <rennes@openmailbox.org> in
15206         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
15207         * lib/glthread/lock.h: On glibc systems without
15208         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
15209         implementation of rwlocks.
15210         * lib/glthread/lock.c: Likewise.
15212 2017-02-20  Bruno Haible  <bruno@clisp.org>
15214         lock tests: Fix build failure on z/OS.
15215         Reported by Daniel Richard G. <skunk@iskunk.org>.
15216         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
15217         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
15218         exist.
15220 2017-02-19  Bruno Haible  <bruno@clisp.org>
15222         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
15223         This helps when CC=clang.
15224         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
15225         of /usr/bin/gcc.
15227         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
15228         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
15230 2017-02-19  Bruno Haible  <bruno@clisp.org>
15232         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
15233         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
15234         --with-tests --single-configure is specified.
15236 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
15238         users.txt: Update links, use HTTPS where possible
15239         * users.txt: Updated to HTTPS where possible,
15240         fixed some links to new locations.
15242 2017-02-16  Bruno Haible  <bruno@clisp.org>
15244         xbinary-io: Fix inlining.
15245         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
15247 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15249         xbinary-io: rename from xsetmode
15250         This patch is taken from suggestions by Bruno Haible in:
15251         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
15252         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
15253         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
15254         not ENOTTY, when it is an inappropriate device.
15255         * lib/binary-io.h (SET_BINARY): Resurrect.
15256         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
15257         (xset_binary_mode_error): Rename from xsetmode_error.
15258         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
15259         (xset_binary_mode): Rename from xsetmode.
15260         All uses changed.
15261         * modules/xbinary-io: Rename from modules/xsetmode.
15262         Update file names.
15263         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
15264         * NEWS: Update to match revised behavior.
15266 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15268         tests: Adjust to recent SET_BINARY change
15269         * tests/test-binary-io.c (main):
15270         * tests/test-binary-io.sh: Remove test for SET_BINARY.
15271         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
15272         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
15273         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
15275         xsetmode: new module
15276         This is to fix a problem noted by Eric Blake.
15277         Code was using xfreopen to change files to binary mode, but this
15278         fails for stdout when in append mode.  Such code should use
15279         xsetmode instead.
15280         * NEWS: Document incompatible changes to binary-io module.
15281         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
15282         New function.
15283         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
15284         (set_binary_mode): New function, which also checks for tty.
15285         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
15287 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
15289         headers: fix begin-end typos
15290         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
15291         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
15293         selinux-h: port to PGI 16.10
15294         * lib/se-selinux.in.h: Don't assume that include_next skips over
15295         duplicate -I DIR options.
15297         argp: port to PGI 16.10
15298         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
15300 2017-02-13  Darshit Shah  <darnir@gnu.org>
15302         unicase: Update function protoype to match definition.
15303         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
15304         uses 'size_t' as the datatype for the 'len' parameter in the functions
15305         it generates. Update the prototype specified here to match the newly
15306         generated function.
15308 2017-02-12  Bruno Haible  <bruno@clisp.org>
15310         times test: Avoid gcc warnings on Linux/x32.
15311         * tests/test-times.c (main): Really cast printf arguments from clock_t
15312         to 'long int'.
15314 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
15316         glob: port better to emscripten
15317         Problem reported by Bruno Haible in:
15318         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
15319         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
15321 2017-02-11  Bruno Haible  <bruno@clisp.org>
15323         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
15324         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
15325         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
15326         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
15327         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
15328         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
15329         Distinguish hppa64 from hppa.
15331 2017-02-10  Bruno Haible  <bruno@clisp.org>
15333         search: Don't assume that tsearch() exists if 'VISIT' is defined.
15334         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
15335         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
15336         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
15338 2017-02-09  Bruno Haible  <bruno@clisp.org>
15340         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
15341         * doc/gnulib.texi (Libtool and Windows): Recommend
15342         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
15343         Reported by Reuben Thomas <rrt@sc3d.org>.
15345 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
15347         stddef-tests: port to SIZE_MAX <= INT_MAX
15348         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
15349         Do not assume that INT_MAX < SIZE_MAX.
15351 2017-02-01  Bruno Haible  <bruno@clisp.org>
15353         lock tests: Fix link error.
15354         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
15355         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15357 2017-01-31  Bruno Haible  <bruno@clisp.org>
15359         lock: Fix link error (regression from 2017-01-05).
15360         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
15361         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
15362         pthread_rwlockattr_destroy weak.
15363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15365 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
15367         Port to PGI 16.10 x86-64
15368         This patch fixes one real bug in gl_anylinked_list2.h, along with
15369         some minor glitches that are not bugs.  It does not silence PGI’s
15370         thousands of bogus warnings when compiling test-intprops.c.
15371         Fortunately, the warnings do not cause a failure.
15372         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
15373         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
15374         My goodness, PGI goes back a long ways - this predates C89!
15375         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
15376         For example, ASYNCSAFE (const void *) should expand to
15377         ‘const void *volatile’, not to ‘volatile const void *’.
15378         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
15379         * lib/verify.h (verify) [!__GNUC__]:
15380         Use shorter albeit meaningless string to bypass silly compiler limits.
15381         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
15382         * tests/nan.h (NaNf, NaNd, NaNl):
15383         Use static functions to avoid misguided compiler diagnostics.
15384         Is there some reason we don’t use static functions on all platforms?
15386 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
15388         parse-datetime: handle timezones reentrantly
15389         This API change was prompted by a report by Pádraig Brady in:
15390         https://bug.debian.org/851934#10
15391         To help fix the bug, make parse_datetime2 more reentrant.
15392         * NEWS: Document this incompatible change.
15393         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
15394         Add two arguments, the timezone and the timezone name.
15395         All callers changed.  If TZ="..." is specified, use it for
15396         calculating defaults.
15397         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
15398         this code should be usable in a library.
15399         (mktime_ok, get_effective_timezone):
15400         Accept timezone arg too.  All callers changed.
15401         (get_tz): Remove.
15402         (get_effective_timezone): Check for failures.
15404 2017-01-20  Eric Blake  <eblake@redhat.com>
15406         localename: port to cygwin 2.6
15407         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
15408         Cygwin.
15409         * modules/localename (Depends-on): Add extensions, since
15410         NL_LOCALE_NAME() is not visible without it.
15412 2017-01-17  Pádraig Brady  <P@draigBrady.com>
15414         parse-datetime: fix dependence on AC_PROG_SED
15415         * modules/parse-datetime: Use `sed` directly like all other modules.
15416         Reported by J William Piggott
15418 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
15420         intprops: update doc URLs
15421         * doc/intprops.texi (Integer Range Overflow): Update URLs.
15423 2017-01-16  Bruno Haible  <bruno@clisp.org>
15425         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
15426         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
15427         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
15428         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
15429         distinguish s390 and s390x.
15430         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
15431         * NEWS: Mention the change regarding 'armel'.
15433 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15435         localeinfo: case_folded_counterparts and WEOF
15436         * NEWS: Document this.
15437         * lib/localeinfo.c (case_folded_counterparts):
15438         First arg is now wint_t, not wchar_t.  This generalizes the
15439         function to also work on WEOF, where it returns 0.
15441         dfa: port to gcc -fsanitize=undefined
15442         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
15443         as this runs afoul of gcc -fsanitize=undefined.
15445 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
15447         strftime: %z is -00 if unknown
15448         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
15449         the caller's responsibility to set 'negative_number'.  All uses changed.
15450         (__strftime_internal): Put '-' before a zero UTC offset if the time
15451         zone abbreviation starts with "-", which is the recently-introduced
15452         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
15453         * tests/test-strftime.c: Test for this.
15455 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15457         dfa: port to older GCC
15458         Problem reported by Assaf Gordon in:
15459         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
15460         * modules/c99: New module.  This merely attempts to use the latest
15461         C version, which should be enough to solve this particular problem.
15462         The idea is to document which Gnulib modules assume C99 or later.
15463         * modules/dfa (Depends-on): Add it.
15465 2017-01-10  Bruno Haible  <bruno@clisp.org>
15467         Update DEPENDENCIES.
15468         * DEPENDENCIES: List only https URLs. Update recommended version for
15469         autoconf, automake, gperf.
15471 2017-01-10  Jim Meyering  <meyering@fb.com>
15473         maint.mk: enforce spelling of "timestamp" (i.e., no space)
15474         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
15475         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
15477 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
15479         dfa: minor simplification with emptyset
15480         * lib/dfa.c (build_state): Simplify by using emptyset.
15482 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
15484         dfa: shrink constraints from 4 bits to 3
15485         * lib/dfa.c (newline_constraint, letter_constraint)
15486         (other_constraint, prev_newline_dependent)
15487         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
15488         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
15489         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
15490         Constraints need only 3 bits, not 4.  Using smaller integers
15491         shrinks the code a bit and makes grep a tad faster on x86-64.
15493         dfa: omit unnecessary ptrdiff_t check
15494         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
15495         overflow, since xnmalloc does that now.
15497         dfa: omit unnecessary allocation
15498         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
15499         an all-zero follow set works just fine.
15501         dfa: omit unused local
15502         * lib/dfa.c (build_state): Fix up recent change.
15504         maint: remove stray .texi files
15505         Although these were superseded by other files like
15506         doc/posix-functions/ctime.texi, the old files were not removed.
15507         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
15509 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
15511         getprogname: fix port to IRIX
15512         * lib/getprogname.c (getprogname) [__sgi]:
15513         Don't dump core if malloc returns NULL.
15515         dfa: fix reallocation bug when matching newlines
15516         Problem reported for sed by S. Gilles (Bug#25390).
15517         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
15518         (dfastate): Reallocate before moving any newline transition ...
15519         (build_state): ... instead of reallocating here, where it is too late.
15521 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15523         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
15524         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
15526 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
15528         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
15529         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
15531 2017-01-07  Bruno Haible  <bruno@clisp.org>
15533         stdioext: Port to Minix 3.2 and newer.
15534         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
15535         * lib/fseeko.c (fseeko): Likewise.
15536         Reported by Nelson Beebe via Paul Eggert.
15538 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15540         getprogname: port to IRIX
15541         * lib/getprogname.c (getprogname): Port to IRIX.
15542         Based on an idea by Bastien Roucariès at:
15543         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
15544         via code from Bruno Haible at:
15545         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
15547         localename-tests: port to NetBSD 7
15548         Problem reported by Nelson H. F. Beebe.
15549         * tests/test-localename.c:
15550         Test newlocale and uselocale only if both exist.
15552         glob, intprops, xalloc: work around Clang bug
15553         Work around LLVM bug 16404, which is still not fixed.
15554         https://llvm.org/bugs/show_bug.cgi?id=16404
15555         Problem reported by Nelson H. F. Beebe.
15556         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
15557         Remove.
15558         * lib/glob.c (size_add_wrapv):
15559         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
15560         * lib/xalloc-oversized.h (xalloc_oversized):
15561         Do not use overflow builtins if Clang.
15563         dfa: fix 'return' typo
15564         Problem reported by Nelson H. F. Beebe.
15565         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
15567 2017-01-05  Pádraig Brady  <P@draigBrady.com>
15569         parse-datetime: fix generated paths for coverage files
15570         * modules/parse-datetime: Adjust the paths for parse-datetime.y
15571         within parse-datetime.c, so that gcc generates appropriate .gcno
15572         files, allowing lcov to proceed without error.  Previously it
15573         would error trying to find "lib/lib/parse-datetime.y".
15575 2017-01-05  Pádraig Brady  <P@draigBrady.com>
15577         maint.mk: support parallel execution of coverage
15578         * top/maint.mk (coverage): Run dependencies serially,
15579         thus supporting parallel processing of each one,
15580         particularly build-coverage, which builds and runs tests.
15582 2017-01-05  Bruno Haible  <bruno@clisp.org>
15584         lock tests: Prefer semaphore over mutex.
15585         * tests/test-lock.c (USE_SEMAPHORE): New constant.
15586         (struct atomic_int, init_atomic_int, get_atomic_int_value,
15587         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
15588         Suggested by Torvald Riegel <triegel@redhat.com>.
15590 2017-01-05  Bruno Haible  <bruno@clisp.org>
15592         lock: Provide guarantee to avoid writer starvation for rwlocks.
15593         The rationale is: 1) Read-preferring read-write locks are prone to
15594         writer starvation if the number of reader threads multiplied by the
15595         percentage of time they have the lock held is too high. 2) Write-
15596         preferring read-write locks are the only reliable way to avoid this.
15597         3) There have been reports of 'test-lock' hanging on glibc systems
15598         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
15599         and glibc indeed implements read-preferring rwlocks by default, see
15600         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
15601         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
15602         * m4/pthread_rwlock_rdlock.m4: New file.
15603         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
15604         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
15605         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
15606         of rwlock initialization on glibc systems without
15607         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
15608         of rwlocks altogether on non-glibc systems without
15609         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
15610         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
15611         * lib/glthread/lock.c [USE_POSIX_THREADS]
15612         (glthread_rwlock_init_for_glibc): New function.
15613         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
15614         comment.
15615         [USE_PTH_THREADS]: New implementation of rwlocks.
15616         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
15617         readers.
15618         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
15619         (Depends-on): Add 'extensions'.
15620         * tests/test-rwlock1.c: New file.
15621         * lock-tests (Files): Add it.
15622         (Depends-on): Add usleep.
15623         (Makefile.am): Add test-rwlock1 to the tests.
15625 2017-01-05  Bruno Haible  <bruno@clisp.org>
15627         thread: Fix pth port.
15628         * lib/glthread/thread.h (pth_init): Declare weak.
15629         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
15630         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
15631         function.
15633 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
15635         parse-datetime: fix debug message on lone year number
15636         Input dates such as
15637           date -d "Apr 11 22:59:00 2011"
15638         are parsed as date (Apr 11, with default year 2016), then time, then a
15639         number (2011). Based on the combination of previously seen tokens,
15640         'digits_to_date_time' determines 2011 to be a year value.
15641         This fixes the debug messages to correctly show the updated year.
15642         Before:
15643             $ date --debug -d 'Apr 11 22:59:00 2011'
15644             date: parsed date part: (Y-M-D) 2016-04-11
15645             date: parsed time part: 22:59:00
15646             date: parsed number part: today/this/now
15647         After:
15648             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
15649             date: parsed date part: (Y-M-D) 2016-04-11
15650             date: parsed time part: 22:59:00
15651             date: parsed number part: year: 2011
15652         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
15653         'debug_year_seen' member fields.
15654         (digits_to_date_time): Update 'year_seen' as needed.
15655         (debug_print_current_time): Inform about year updates.
15656         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
15658         parse-datetime: fix local timezone debug messages
15659         "Local timezones" are strings that affect only DST relative to the
15660         default timezone. The debug messages in parse-datetime.y printed
15661         wrong information when encountering local timezones.
15662         Examples:
15663         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
15664              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
15665              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
15666         When the default timezone relates to the zone strings, EET/EEST are
15667         parsed as local timezones (tLOCAL_ZONE), and only change the DST
15668         value (0/1, respectively):
15669              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
15670              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
15671         * lib/parse-datetime.y (debug_print_current_time): If local timezone
15672         was seen, inform about DST change, don't print actual timezone.
15673         (debug_strfdatetime): If local timezone was seen, use default timezone
15674         (and adjust as needed) instead of using incorrect timezone.
15675         (parse_datetime2): Use correct time-zone source string, and adjust
15676         default timezone as needed.
15678         parse-datetime: add debug warning about DST changes
15679         Incorrect date arithmetic due to daylight saving time (DST) are a
15680         common (false) bug report in coreutils.
15681         Detect two such cases and print a warning:
15682         1. year/month/day adjustments (performed on 'struct tm'),
15683            where 'mktime' returns a different isdst value.
15684         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
15685            where the result of 'localtime(3)' on the value will return a
15686            different isdst value.
15687         Note: DST changes could be harmless or unnoticeable.
15688         Examples (with 'TZ=America/New_York'):
15689         Unnoticeable: result is 2016-Dec-14
15690            $ date -d '2016-06-15 EDT + 6 months' +%b
15691            Dec
15692         Unnoticeable: result is 2016-Dec-15 11:00:00
15693            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
15694            2016-12-15
15695         This is unexpected:
15696            $ date -d '2016-06-01 EDT + 6 months' +%F
15697            2016-11-30
15698         The new debug warnings will show:
15699            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
15700            ...
15701            date: warning: daylight saving time changed after date adjustment
15702            ...
15703         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
15704         print an appropriate warning message.
15706         parse-datetime: add debug warning about date arithmetic
15707         Date arithmetic are done directly on the fields of 'struct tm',
15708         which can result in invalid dates. Normalization with 'mktime(3)'
15709         will then produce a different date - which might cause unexpected
15710         results.
15711         Examples:
15712           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
15713           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
15714         Note that date normalization is not inherently wrong and not rejected,
15715         as it has legitimate uses:
15716           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
15717         If the user asked to adjust months but 'mday' changed,
15718         or user asked to adjust years but 'month' changed - warn about it.
15719             $ ./src/date --debug -d '2016-10-31 - 1 month'
15720             ...
15721             date: warning: when adding relative months/years, \
15722                            it is recommended to specify the 15th of the month
15723             ...
15724             date: warning: month/year adjustment resulted in shifted dates:
15725             date:      adjusted Y M D: 2016 09 31
15726             date:    normalized Y M D: 2010 10 01
15727             ...
15728         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
15729         a warning message. Improve recommendation of when to use 15 of the
15730         month or noon for date arithmetic.
15732         parse-datetime: fix debug message of relative part after timezone
15733         Relative part (e.g '+8 days') after a timezone string was not
15734         reported (was only reported after a timezone number). Due to the
15735         parser's structure, timezone strings with numbers were handled
15736         separately.
15737         before:
15738              # Timezone number + relative part: OK
15739              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
15740              ...
15741              date: parsed relative part: -8 day(s)
15742              # Timezone string + relative part: missing
15743              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
15744              [ missing message ]
15745         After: messages are printed in both cases.
15746         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
15748         parse-datetime: fix incorrect debug message on lone number
15749         A lone number is an absolute value, not a relative time part.
15750         before:
15751            $ date --debug -d '20130101'
15752            date: parsed number part: today/this/now
15753         After:
15754            $ ./src/date --debug -d '20130101'
15755            date: parsed number part: (Y-M-D) 2013-01-01
15756         * lib/parse-datetime.y ('item'/'number' tokens): Call
15757         'debug_print_current_time' instead of 'debug_print_relative_time'.
15759 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
15761         doc: modernize for C11 etc.
15762         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
15763         for C11, MinGW, etc.  This responds to Paul Smith's question in:
15764         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
15766         dfa: prefer functions to FETCH_WC macro
15767         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
15768         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
15769         wint_t result into DFA->lex.wctok instead of to a separate arg.
15770         All callers changed.  Move more local decls closer to where
15771         they're used.
15773         dfa: narrow more local var scopes
15774         * lib/dfa.c: Move more local decls to be more local.
15776         dfa: remove duplicate assignment
15777         Problem reported by Bruno Haible in:
15778         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
15779         * lib/dfa.c (parse_bracket_exp): Simplify.
15781 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15783         dfa: simplify constraint-dependency checking
15784         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
15785         (prev_other_constraint): Remove.
15786         (prev_newline_dependent, prev_letter_dependent):
15787         Simplify, to avoid an unnecessary bitwise AND operation.
15789         dfa: prefer functions and constants to macros
15790         * lib/dfa.c: Prefer constants to macros where either will do.
15791         (streq, isasciidigit, newline_constraint)
15792         (letter_constraint, other_constraint, succeeds_in_context)
15793         (prev_newline_constraint, prev_letter_constraint)
15794         (prev_other_constraint, prev_newline_dependent)
15795         (prev_letter_dependent, accepting, accepts_in_context):
15796         Now static functions instead of function-like macros.
15797         Use lower-case names accordingly.  All uses changed.
15799         dfa: narrow more local var scopes
15800         * lib/dfa.c: Move some more local decls down to nearer where
15801         they're needed.
15803 2016-12-31  Jim Meyering  <meyering@fb.com>
15805         dfa: narrow the scope of many local variables
15806         * lib/dfa.c: Now that we are no longer constrained to c89, move
15807         declarations of many variables (often indices) "down" into the
15808         scope(s) where used or to the point of definition.  This is a
15809         no-semantic-change diff.
15811 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15813         version-etc: new year
15814         * build-aux/gendocs.sh (version):
15815         * doc/gendocs_template:
15816         * doc/gendocs_template_min:
15817         * doc/gnulib.texi:
15818         * lib/version-etc.c (COPYRIGHT_YEAR):
15819         Update copyright dates by hand in templates and the like.
15820         * all files: Run 'make update-copyright'.
15822 2016-12-31  Eric Blake  <eblake@redhat.com>
15824         do-release-commit-and-tag: avoid shell syntax error
15825         * build-aux/do-release-commit-and-tag (curr_br): $branch can
15826         contain spaces when rebasing.
15828         maint.mk: hoist gnulib_dir definition earlier
15829         * top/maint.mk (gnulib_dir): Move near top of file.
15831 2016-12-31  Jim Meyering  <meyering@fb.com>
15833         maint.mk: do not always evaluate intprops-related shell
15834         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
15835         using gnulib_dir undefined (gnulib_dir is defined later in the
15836         file, which will be fixed separately), and besides, there is no
15837         need to incur the cost of this shell invocation for every single
15838         use of this .mk file.  Reported by Eric Blake in
15839         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
15841 2016-12-30  Jim Meyering  <meyering@fb.com>
15843         maint.mk: improve sc_prohibit_intprops_without_use
15844         * top/maint.mk (_intprops_names): Don't hard-code the list of
15845         symbol names.  Instead, derive it on the fly.
15847 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
15849         dfa: shorten sbit, success
15850         * lib/dfa.c (struct regex_syntax.sbit):
15851         (struct dfa.success): Use char, not int, for array elements, since
15852         they are all in the range 0..7.
15854         dfa: simplify multibyte_prop etc.
15855         This follows up on a change made when dfa.c was in grep, namely grep
15856         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
15857         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
15858         That earlier simplification allows for some more simplification
15859         and trimming down here.
15860         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
15861         (struct lexer_state): New mamber brack.
15862         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
15863         since they must be in the range 0..3 now.
15864         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
15865         the brack member now supersedes them.
15866         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
15867         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
15868         (dfaparse): Remove unnecessary initializations of already-0 storage.
15869         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
15870         (dfassbuild): No need to clear sup->mbcsets.
15872         dfa: minor performance tweak
15873         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
15875         dfa: wrap charclass inside a struct
15876         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
15877         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
15878         about 5% faster, where list.txt is generated by 'aspell dump
15879         master | head -n 100000 >list.txt'.  See Bug#22239.
15880         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
15881         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
15882         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
15883         Adjust to this, e.g., by using charclass * rather than charclass.
15884         All callers changed as needed.
15885         (copyset): Remove.  All uses changed to simple assignment.
15886         (parse_bracket_exp): Use zeroset instead of memset.
15888 2016-12-30  Jim Meyering  <meyering@fb.com>
15890         maint.mk: update list of intprops.h symbol names
15891         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
15892         This avoids a false failure of the sc_prohibit_intprops_without_use
15893         rule in grep.
15895 2016-12-29  Eric Blake  <eblake@redhat.com>
15897         getopt: fix parallel test failure
15898         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
15899         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
15900         * tests/test-getopt-main.h (main): Use different file names
15901         in case test-getopt-gnu and test-getopt-posix run in parallel.
15903 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
15905         xalloc: x2nrealloc check for ptrdiff_t overflow
15906         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
15907         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
15909 2016-12-24  Bruno Haible  <bruno@clisp.org>
15911         lock test: Fix performance problem on multi-core machines.
15912         * tests/test-lock.c (USE_VOLATILE): New macro.
15913         (struct atomic_int): New type.
15914         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
15915         functions.
15916         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
15917         as 'struct atomic_int'.
15918         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
15919         reclock_checker_thread, test_recursive_lock): Use the new functions.
15920         Reported by Eric Blake in
15921         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
15922         and by Pádraig Brady in
15923         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
15925 2016-12-19  Bruno Haible  <bruno@clisp.org>
15927         vma-iter: Fix endless loop on 64-bit Windows.
15928         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
15929         'unsigned long'.
15931 2016-12-19  Bruno Haible  <bruno@clisp.org>
15933         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
15934         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
15935         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
15936         Invoke gt_TYPE_WINT_T instead.
15937         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
15938         * modules/stdint (Files): Add m4/wint_t.m4.
15939         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
15940         * modules/wctype-h (Makefile.am): Likewise.
15941         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
15942         not only on MSVC.
15943         * lib/wctype.in.h (wint_t): Likewise.
15945 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
15947         getopt-posix-tests: fix Makefile typo
15948         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
15949         Fix typo: the last ‘_’ was missing in the name.
15950         I suspect that the typo explains this build failure:
15951         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
15952         although I can’t reproduce the problem on Solaris 10 sparc.
15954 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
15956         dfa: improve worst-case 'replace' performance
15957         See my note in Bug#22357#71.
15958         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
15959         (merge_constrained): New function, which is like
15960         the old 'merge' function, except with a new argument C2.
15961         Simplify the body by avoiding the need for different sections
15962         of code depending on whether one input is exhausted.
15963         (merge): Use the new function.
15964         (delete): Return the constraint of the deleted position,
15965         not the entire position.  Caller changed.
15966         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
15968 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
15970         dfa: performance improvement for removal of epsilon closure
15971         See Bug#22357#32.
15972         * lib/dfa.c (delete): Use binary search to find deleted index.
15973         (replace): New function.  It replaces a position with the followed set.
15974         (epsclosure): Replace it with a new algorithm.  Update caller.
15976 2016-12-18  Bruno Haible  <bruno@clisp.org>
15978         Split tests for getopt-posix and getopt-gnu.
15979         * tests/test-getopt-posix.c: New file.
15980         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
15981         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
15982         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
15983         GNULIB_TEST_GETOPT_GNU.
15984         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
15985         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
15986         (Makefile.am): Test test-getopt-posix instead of test-getopt.
15987         * modules/getopt-gnu-tests: New file.
15988         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
15990 2016-12-18  Bruno Haible  <bruno@clisp.org>
15992         posix-modules: Add options for specific platforms.
15993         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
15994         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
15995         Invoke func_tmpdir. Filter out the excludes.
15997 2016-12-18  Bruno Haible  <bruno@clisp.org>
15999         getopt: Fix link error for users of getopt() in <unistd.h>.
16000         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
16001         __need_getopt is defined. Undefine all macros before defining them.
16002         * modules/getopt (Include): Clarify that including <unistd.h> is also
16003         OK.
16004         * tests/test-getopt.c: Add comment.
16006 2016-12-17  Bruno Haible  <bruno@clisp.org>
16008         getaddrinfo tests: Avoid compilation error on MSVC.
16009         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
16010         getaddrinfo on native Windows.
16012 2016-12-17  Bruno Haible  <bruno@clisp.org>
16014         getlogin, getlogin_r: Fix link errors on MSVC.
16015         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
16016         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
16017         (Link): New section.
16018         * modules/getlogin_r (Files): Add m4/getlogin.m4.
16019         (configure.ac): Require gl_LIB_GETLOGIN.
16020         (Link): New section.
16021         * NEWS: Mention the new link requirements.
16022         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
16023         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
16025 2016-12-17  Bruno Haible  <bruno@clisp.org>
16027         Un-deprecate the 'progname' module.
16028         * NEWS: Describe the appropriate use-cases of 'progname' versus
16029         'getprogname'. Based on discussion summary at
16030         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
16032 2016-12-17  Bruno Haible  <bruno@clisp.org>
16034         Reorganize NEWS a bit.
16035         * NEWS: Move some not so important changes away from section
16036         "Important Notes".
16038 2016-12-17  Bruno Haible  <bruno@clisp.org>
16040         tanhf: Avoid redefinition error on MSVC.
16041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
16042         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
16043         may be defined as an inline function.
16044         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
16045         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
16047 2016-12-17  Bruno Haible  <bruno@clisp.org>
16049         tanf: Avoid redefinition error on MSVC.
16050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
16051         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
16052         may be defined as an inline function.
16053         * modules/math (Makefile.am): Substitute REPLACE_TANF.
16054         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
16056 2016-12-17  Bruno Haible  <bruno@clisp.org>
16058         sqrtf: Avoid redefinition error on MSVC.
16059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
16060         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
16061         may be defined as an inline function.
16062         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
16063         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
16065 2016-12-17  Bruno Haible  <bruno@clisp.org>
16067         sinhf: Avoid redefinition error on MSVC.
16068         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
16069         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
16070         may be defined as an inline function.
16071         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
16072         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
16074 2016-12-17  Bruno Haible  <bruno@clisp.org>
16076         sinf: Avoid redefinition error on MSVC.
16077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
16078         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
16079         may be defined as an inline function.
16080         * modules/math (Makefile.am): Substitute REPLACE_SINF.
16081         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
16083 2016-12-17  Bruno Haible  <bruno@clisp.org>
16085         logf: Avoid redefinition error on MSVC.
16086         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
16087         may be defined as an inline function.
16089 2016-12-17  Bruno Haible  <bruno@clisp.org>
16091         log10l: Avoid redefinition error on MSVC.
16092         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
16093         may be defined as an inline function.
16095 2016-12-17  Bruno Haible  <bruno@clisp.org>
16097         log10f: Avoid redefinition error on MSVC.
16098         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
16099         may be defined as an inline function.
16101 2016-12-17  Bruno Haible  <bruno@clisp.org>
16103         hypotl: Avoid redefinition error on MSVC.
16104         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
16105         may be defined as an inline function.
16107 2016-12-17  Bruno Haible  <bruno@clisp.org>
16109         hypotf: Avoid redefinition error on MSVC.
16110         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
16111         may be defined as an inline function.
16113 2016-12-17  Bruno Haible  <bruno@clisp.org>
16115         fmodl: Avoid redefinition error on MSVC.
16116         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
16117         may be defined as an inline function.
16119 2016-12-17  Bruno Haible  <bruno@clisp.org>
16121         fmodf: Avoid redefinition error on MSVC.
16122         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
16123         may be defined as an inline function.
16125 2016-12-17  Bruno Haible  <bruno@clisp.org>
16127         expf: Avoid redefinition error on MSVC.
16128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
16129         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
16130         may be defined as an inline function.
16131         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
16132         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
16134 2016-12-17  Bruno Haible  <bruno@clisp.org>
16136         coshf: Avoid redefinition error on MSVC.
16137         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
16138         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
16139         may be defined as an inline function.
16140         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
16141         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
16143 2016-12-17  Bruno Haible  <bruno@clisp.org>
16145         cosf: Avoid redefinition error on MSVC.
16146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
16147         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
16148         may be defined as an inline function.
16149         * modules/math (Makefile.am): Substitute REPLACE_COSF.
16150         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
16152 2016-12-17  Bruno Haible  <bruno@clisp.org>
16154         atan2f: Avoid redefinition error on MSVC.
16155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
16156         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
16157         may be defined as an inline function.
16158         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
16159         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
16161 2016-12-17  Bruno Haible  <bruno@clisp.org>
16163         atanf: Avoid redefinition error on MSVC.
16164         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
16165         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
16166         may be defined as an inline function.
16167         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
16168         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
16170 2016-12-17  Bruno Haible  <bruno@clisp.org>
16172         asinf: Avoid redefinition error on MSVC.
16173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
16174         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
16175         may be defined as an inline function.
16176         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
16177         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
16179 2016-12-17  Bruno Haible  <bruno@clisp.org>
16181         acosf: Avoid redefinition error on MSVC.
16182         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
16183         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
16184         may be defined as an inline function.
16185         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
16186         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
16188 2016-12-17  Bruno Haible  <bruno@clisp.org>
16190         Avoid redefinition errors on MSVC.
16191         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
16192         the function may be defined as an inline function.
16193         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
16194         the function may be defined as an inline function.
16196 2016-12-17  Bruno Haible  <bruno@clisp.org>
16198         Avoid redefinition errors on MSVC.
16199         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
16200         * lib/unistd.in.h: Include <stdio.h> when necessary.
16202 2016-12-17  Bruno Haible  <bruno@clisp.org>
16204         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
16205         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
16206         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
16207         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
16208         WINT_MAX.
16210 2016-12-17  Bruno Haible  <bruno@clisp.org>
16212         Avoid autoconf warning.
16213         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
16214         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
16216 2016-12-17  Bruno Haible  <bruno@clisp.org>
16218         fpending: Revert workaround against Emacs bug.
16219         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
16220         The Emacs bug is fixed by Eli Zaretskii in
16221         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
16223 2016-12-17  Bruno Haible  <bruno@clisp.org>
16225         getlogin_r tests: Port to mingw.
16226         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
16227         regression introduced on 2014-05-19.
16229 2016-12-17  Bruno Haible  <bruno@clisp.org>
16231         getlogin: Port to newer mingw.
16232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
16233         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
16234         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
16235         HAVE_GETLOGIN.
16236         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
16237         HAVE_GETLOGIN.
16238         * doc/posix-functions/getlogin.texi: Mention the issue.
16239         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
16240         regression introduced on 2014-05-14.
16242 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
16244         builtin-expect: improve port to IBM XL C
16245         Problem reported for z/OS by Daniel Richard G. in:
16246         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
16247         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
16248         Test for <builtins.h> directly.
16250         builtin-expect: port to IBM XL C
16251         Problem reported for z/OS by Daniel Richard G. in:
16252         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
16253         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
16254         Also allow __builtin_expect defined via a standard include file.
16256         regex: fix dependency
16257         Problem reported by Bruno Haible in:
16258         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
16259         * modules/regex: Depend on builtin-expect.
16261         builtin-expect: new module
16262         Fix fnmatch to use it.
16263         Problem reported for z/OS by Daniel Richard G.
16264         * lib/fnmatch.c (__builtin_expect):
16265         * lib/glob.c (__builtin_expect):
16266         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
16267         * lib/memmem.c (__builtin_expect) [!_LIBC]:
16268         * lib/scandir.c (__builtin_expect):
16269         * lib/strstr.c (__builtin_expect) [!_LIBC]:
16270         Remove macro; config.h now does this.
16271         * lib/gl_anytreehash_list1.h (add_to_bucket):
16272         * lib/regex_internal.h (BE):
16273         Assume __builtin_expect.
16274         * m4/builtin-expect.m4, modules/builtin-expect: New files.
16275         * modules/avltreehash-list, modules/fnmatch, modules/glob:
16276         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
16277         * modules/scandir, modules/strstr-simple:
16278         Depend on builtin-expect.
16280 2016-12-15  Bruno Haible  <bruno@clisp.org>
16282         init.sh: Add possibility to not delete temporary files.
16283         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
16284         to yes, don't erase the temporary directory.
16286 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
16288         regex: fix integer-overflow bug in never-used code
16289         Problem reported by Clément Pit–Claudel in:
16290         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
16291         * lib/regex_internal.h: Include intprops.h.
16292         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
16293         behavior on integer overflow.
16294         * modules/regex (Depends-on): Add intprops.
16296         fpending: fix port to MinGW on Emacs
16297         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
16298         Problem reported by Eli Zaretskii in:
16299         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
16300         Is Plan 9 still a valid porting target, anyway?
16302 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
16304         safe-alloc: use xalloc-oversized
16305         * lib/safe-alloc.c: Include xalloc-oversized.h.
16306         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
16307         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
16309         xalloc: do not exceed PTRDIFF_MAX
16310         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
16311         xalloc_oversized check, since objects larger than PTRDIFF_MAX
16312         bytes have pointer-subtraction problems.
16314         malloca: do not exceed PTRDIFF_MAX
16315         * lib/malloca.h: Include xalloc-oversized.
16316         (nmalloca): Use xalloc_oversized instead of rolling our own.
16317         * modules/malloca (Depends-on):
16318         * modules/relocatable-prog-wrapper (Depends-on):
16319         Add xalloc-oversized.
16321         quotearg: pacify GCC better
16322         * modules/quotearg (Depends-on): Add minmax, stdint.
16323         * lib/quotearg.c: Include minmax.h, stdint.h.
16324         (nslots): Now int, as there seems little point to going to extra
16325         work merely to support the INT_MAX slot, which nobody ever uses.
16326         (quotearg_n_options): Redo size-overflow checks to pacify GCC
16327         and to catch (mostly-theoretical) ptrdiff_t problems too.
16328         This can be done via one comparison.
16330 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16332         xalloc-oversized: check for PTRDIFF_MAX too
16333         This avoids undefined behavior when subtracting pointers to
16334         objects containing more than PTRDIFF_MAX bytes.
16335         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
16336         Also return 1 if the result would exceed PTRDIFF_MAX>
16337         * modules/xalloc-oversized (Depends-on):
16338         Add stdint.
16340         dfa: fix glitches in previous commit
16341         Sorry, I don't know how I managed to commit the wrong version.
16342         * lib/dfa.c (MIN): Move up.
16343         (xpalloc): Now static.
16345         dfa: fix some unlikely integer overflows
16346         I found these while reviewing the recent Coverity-related fix.
16347         This patch changes part of dfa.c to prefer ptrdiff_t instead of
16348         size_t for object counts.  Using ptrdiff_t is the style typically
16349         used in Emacs; although it wastes a sign bit as sizes can never be
16350         negative, it makes -fsanitize=undefined more likely to catch
16351         integer overflows in index calculation, and nowadays the upside is
16352         typically more important than the downside.  Although perhaps the
16353         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
16354         of dfa.c already does, since it uses state_num which is signed),
16355         that is a bigger change and is not needed to fix the bugs I found.
16356         * lib/dfa.c: Include stdint.h and intprops.h.
16357         (TOKEN_MAX): New macro.
16358         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
16359         (charclass_index, parse_bracket_exp, addtok, insert, merge)
16360         (realloc_trans_if_necessary, free_mbdata):
16361         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
16362         This is safe because xpalloc checks that the sizes do not exceed
16363         either SIZE_MAX or PTRDIFF_MAX.
16364         (xpalloc): New function, mostly taken from Emacs.
16365         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
16366         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
16367         (charclass_index): Check for integer overflow in computing
16368         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
16369         added to it later.
16370         (alloc_position_set): Check for integer overflow.  On typical
16371         platforms this check has zero overhead, since the constant
16372         expression is false.
16373         (realloc_trans_if_necessary):
16374         Remove assertion, which I hope Coverity no longer needs.
16376         * modules/dfa (Depends-on): Add intprops, stdint.
16378 2016-12-12  Jim Meyering  <meyering@fb.com>
16380         dfa: add an assertion to avoid coverity false positive
16381         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
16382         warned that "newalloc1 - 2" could overflow.
16384 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
16386         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
16387         * dfa.h (DFA_CASE_FOLD): Remove.
16388         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
16390 2016-12-13  John W. Eaton  <gnu@jweaton.org>
16392         link: fix test to declare use of rename()
16393         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
16394         -Werror=implicit-function-declaration
16396 2016-12-12  Bruno Haible  <bruno@clisp.org>
16398         fpending: Port to native Windows with MSVC.
16399         * lib/fpending.c: Include stdio-impl.h.
16400         (__fpending): Include all known implementations. Err out if it's not
16401         ported.
16402         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
16403         * modules/fpending (Files): Add lib/stdio-impl.h.
16404         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
16406 2016-12-12  Bruno Haible  <bruno@clisp.org>
16408         stdioext: Port to native Windows with MSVC.
16409         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
16410         (struct _gl_real_FILE): New type.
16411         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
16412         Windows.
16413         * lib/fbufmode.c (fbufmode): Add code for native Windows.
16414         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
16415         other SystemV derived implementations.
16416         * lib/fpurge.c (fpurge): Likewise.
16417         * lib/freadable.c (freadable): Likewise.
16418         * lib/freadahead.c (freadahead): Likewise.
16419         * lib/freading.c (freading): Likewise.
16420         * lib/freadptr.c (freadptr): Likewise.
16421         * lib/freadseek.c (freadptrinc): Likewise.
16422         * lib/fseeko.c (fseeko): Likewise.
16423         * lib/fseterr.c (fseterr): Likewise.
16424         * lib/fwritable.c (fwritable): Likewise.
16425         * lib/fwriting.c (fwriting): Likewise.
16426         Reported by Gisle Vanem <gvanem@yahoo.no>.
16428 2016-12-11  Jim Meyering  <meyering@fb.com>
16430         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
16431         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
16432         to work with most shells, but not with the one provided by many
16433         Solaris 10 systems, so running configure with such a /bin/sh evokes
16434         e.g., "./configure: syntax error at line 33602: `(' unexpected".
16435         Reported by Assaf Gordon in
16436         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
16438 2016-12-10  Bruno Haible  <bruno@clisp.org>
16440         threadlib: Optimize out runtime test on Solaris >= 10.
16441         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
16442         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
16443         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
16445 2016-12-10  Bruno Haible  <bruno@clisp.org>
16447         stdint: Update doc about Solaris 9.
16448         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
16450 2016-12-09  Bruno Haible  <bruno@clisp.org>
16452         c-ctype tests: Fix link error on Solaris 9.
16453         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
16454         Reported at <https://savannah.gnu.org/bugs/?46827>.
16456 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
16458         dfa: fix performance bug that recomputes trans
16459         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
16460         25 on-demand changes.  The bug caused build_state to reset all
16461         d->trans elements to -2 even when d->trans was already non-null.
16462         Use C99 style decls after statements in this function.
16464         same-inode: port to MinGW
16465         Here st_ino is always 0, so change the definition of SAME_INODE so
16466         that 1 means the two files are the same, 0 with st_ino != 0 means
16467         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
16468         reported by Bruno Haible (Bug#25146).
16469         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
16470         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
16472 2016-12-04  Bruno Haible  <bruno@clisp.org>
16474         javacomp-script: Support Java 7 and 8.
16475         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
16476         target-version 1.7, 1.8.
16478 2016-12-02  Daiki Ueno  <ueno@gnu.org>
16480         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
16481         GPLv2" rewriting.
16483 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
16485         * gnulib-tool (func_import): Adhere to the license guideline when
16486         rewriting the license text to "LGPLv3+ or GPLv2":
16487         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
16489 2016-12-02  Bruno Haible  <bruno@clisp.org>
16491         localcharset: Avoid theoretical buffer overrun.
16492         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
16493         return value from setlocale if it would lead to a buffer overrun.
16495 2016-12-01  Bruno Haible  <bruno@clisp.org>
16497         Relicense some modules under LGPLv2+.
16498         Kevin Cernekee's approval is in
16499         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
16500         * modules/fseterr (License): Change to LGPLv2+.
16501         * modules/mbchar (License): Likewise.
16502         * modules/mbiter (License): Likewise.
16503         * modules/mbsnlen (License): Likewise.
16504         * modules/wcwidth (License): Likewise.
16506 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16508         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
16509         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
16510         OS/2 kLIBC.
16512 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16514         alphasort, scandir: Port to OS/2 kLIBC
16515         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
16516         declaration.
16517         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
16519 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16521         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
16522         * lib/relocatable.c (relocate): Do not touch pathname if it is started
16523         with '/@unixroot'.
16525 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
16527         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
16528         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
16529         OS/2 kLIBC unless TCPV40HDRS is defined.
16531 2016-11-29  Jim Meyering  <meyering@fb.com>
16533         dfa: avoid new infinite loop
16534         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
16535         * lib/dfa.c (dfastate): When constructing a new state table, we could
16536         initially declare that we had found a match, and later find that
16537         constraints eliminate that possibility, yet continue to use the
16538         now stale "matched" indicator.  That would lead to an infinite loop.
16539         The solution is to update "matched" when necessary.
16540         Introduced by commit v0.1-983-g403adf1.
16542 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16544         dfa: avoid match middle in multibyte character
16545         * lib/dfa.c (transit_state): If fails in matching single byte characters
16546         on a state including period expression in non-UTF8 multibyte locales,
16547         skip trailing bytes.
16548         (dfa_supported): Revert previous change.
16550 2016-11-27  Jim Meyering  <meyering@fb.com>
16552         dfa: avoid false match in non-UTF8 multibyte locales
16553         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
16554         as "not supported" so that callers will resort to using regex-based
16555         matcher.  This will surely hurt performance, but correctness trumps
16556         performance here, and the affected locales are less and less relevant,
16557         these days.  See grep's bug report https://bugs.gnu.org/24975.
16559 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
16561         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
16562         * lib/ptsname_r.c: Include the appropriate headers.
16563         [__sun]: Delete sys/sysmacros.h include.
16564         [_AIX || __osf__]: Likewise.
16565         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
16567 2016-11-27  Pádraig Brady  <P@draigBrady.com>
16569         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
16570         * lib/md4.c (md4_process_bytes): The existing define is made internal
16571         in recent versions of glibc, so also use this new public define.
16572         * lib/md5.c (md5_process_bytes): Likewise.
16573         * lib/sha1.c (sha1_process_bytes): Likewise.
16574         * lib/sha256.c (sha256_process_bytes): Likewise.
16575         * lib/sha512.c (sha512_process_bytes): Likewise.
16577 2016-11-27  Pádraig Brady  <P@draigBrady.com>
16579         maint: use a more standard return from mbrtowc test
16580         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
16581         from the test program as this often indicates an
16582         unhandled case in the test program.
16583         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
16584         (gl_MBRTOWC_SANITYCHECK): Likewise.
16585         (gl_MBRTOWC_NULL_ARG2): Likewise.
16586         (gl_MBRTOWC_NUL_RETVAL): Likewise.
16588 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
16590         freopen: work around glibc bug with closed fd
16591         Work around glibc bug#15589, where freopen mishandles the case
16592         where stdin etc. are already closed.
16593         * doc/posix-functions/freopen.texi (freopen): Document the bug.
16594         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
16595         instead of __need_FILE, as the latter does not work with glibc.
16596         Include <fcntl.h>, for open flags.
16597         (rpl_freopen): Work around glibc bug.
16598         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
16599         * modules/freopen (Depends-on): Add fcntl-h.
16600         * tests/test-freopen.c (main): Test for bug.
16602 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
16604         fnmatch: fix typo introduced on 2016-08-17
16605         This fixes the port to non-GCC compilers that lack __builtin_expect.
16606         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
16608         dfa: simplify with new function fillset
16609         * lib/dfa.c (fillset): New function.
16610         Use it for clarity when applicable.
16612         dfa: fix glitches with on-demand states
16613         Also, adjust commentary to better match new code.
16614         Some of these glitches predate the recent change.
16615         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
16616         only non-initial states.
16617         (dfastate): Rename locals to better match new roles.
16618         Move them into nested scopes if this is easy.
16619         Omit unnecessary calls to zeroset.
16620         Simplify test for whether to throw in the positions of state 0.
16621         Omit C99-ism (decl after statement) since Gawk still wants C89.
16622         (build_state): Omit unnecessary test and assignment.
16623         Fix some confusion that counted transition tables inaccurately
16624         and could cause a memory leak.
16625         (dfaexec_main): Redo to make it clearer to the compiler that
16626         -1 and -2 are the only negative state numbers here.
16628 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
16630         dfa: addition of new state on demand
16631         * src/dfa.c (dfastate): Add argument UC, the current input character.
16632         Fill only a group including the character in transition table.
16633         (realloc_trans_if_necessary): Add the dummy state which means that a
16634         transition table is assigned but the next state is not assigned.
16635         (build_state): Return the next state.  All callers updated.
16636         (transit_state_singlebyte): If we get the dummy state,
16637         fill the transition table.
16638         (dfaexec_main): Handle the dummy state.
16639         (free_mbdata, dfafree): Consider the dummy state.
16641 2016-11-24  Daiki Ueno  <ueno@gnu.org>
16643         srclist: sync with released gettext
16644         * config/srclist.txt: Set "release" option to the files under
16645         $GETTEXT.
16647 2016-11-24  Daiki Ueno  <ueno@gnu.org>
16649         srclist: add "release" option
16650         * config/srclist.txt: Change the format so that the first column
16651         of each line points to the top-level directory of the source
16652         archive.
16653         * config/srclist-update: Accept "release" option that checks files
16654         from the most recently tagged revision in the source archive.
16656 2016-11-21  Bruno Haible  <bruno@clisp.org>
16658         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
16659         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
16660         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
16661         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
16662         Inline and remove member function 'rpl ()' of the wrapper struct.
16664 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16666         dfa: fix logic typo
16667         Problem reported by Stephane Chazelas (Bug#24973).
16668         * lib/dfa.c (using_simple_locale): Fix typo that caused some
16669         non-simple locales like fr_FR to be treated as simple.
16671 2016-11-20  Jim Meyering  <meyering@fb.com>
16673         fix test driver leaks: exclude, malloc, realloc
16674         * tests/test-exclude.c (main): Fix trivial leak.
16675         * tests/test-malloc-gnu.c (main): Likewise.
16676         * tests/test-realloc-gnu.c (main): Likewise.
16677         With these changes, grep's tests are now leak free.
16678         I.e., running them with ASAN elicits no failure:
16679           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
16680             AM_LDFLAGS='-fsanitize=address -static-libasan' check
16682 2016-11-11  Bruno Haible  <bruno@clisp.org>
16684         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
16685         * modules/libunistring: (License): Change from LGPL to
16686         "LGPLv3+ or GPLv2".
16687         * modules/libunistring-optional: Likewise.
16688         * modules/unicase/*: Likewise.
16689         * modules/uniconv/*: Likewise.
16690         * modules/unictype/*: Likewise.
16691         * modules/unigbrk/*: Likewise.
16692         * modules/unilbrk/*: Likewise.
16693         * modules/uniname/*: Likewise.
16694         * modules/uninorm/*: Likewise.
16695         * modules/unistdio/*: Likewise.
16696         * modules/unistr/*: Likewise.
16697         * modules/uniwbrk/*: Likewise.
16698         * modules/uniwidth/*: Likewise.
16700 2016-11-12  Bruno Haible  <bruno@clisp.org>
16702         Relicense some modules under LGPLv2+.
16703         Paul Eggert's approval is in
16704         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
16705         Eric Blake's approval is in
16706         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
16707         Ludovic Courtès's approval is in
16708         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
16709         * modules/isnand-nolibm (License): Change to LGPLv2+.
16710         * modules/isnanf-nolibm (License): Likewise.
16711         * modules/isnanl-nolibm (License): Likewise.
16713 2016-11-19  Bruno Haible  <bruno@clisp.org>
16715         Relicense some modules under LGPLv2+.
16716         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
16717         modules/vasnprintf.
16718         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
16719         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
16720         All other significant changes to the files in lib/ of these modules
16721         are from me.
16722         * modules/memcmp2 (License): Change to LGPLv2+.
16723         * modules/amemxfrm (License): Likewise.
16724         * modules/fpieee (License): Likewise.
16725         * modules/fpucw (License): Likewise.
16726         * modules/frexp-nolibm (License): Likewise.
16727         * modules/frexpl-nolibm (License): Likewise.
16728         * modules/printf-frexp (License): Likewise.
16729         * modules/printf-frexpl (License): Likewise.
16730         * modules/printf-safe (License): Likewise.
16731         * modules/signbit (License): Likewise.
16733 2016-11-17  Bruno Haible  <bruno@clisp.org>
16735         Enable Unicode decoder safety unconditionally.
16736         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
16737         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
16738         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
16739         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
16740         * lib/unistr/u8-prev.c (u8_prev): Likewise.
16741         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
16742         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
16743         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
16744         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
16745         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
16746         * lib/unistr/u16-prev.c (u16_prev): Likewise.
16747         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
16748         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
16749         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
16750         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
16751         * lib/unistr/u32-prev.c (u32_prev): Likewise.
16752         * lib/unistr/u32-next.c (u32_next): Likewise.
16753         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
16754         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
16755         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
16756         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16757         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
16758         CONFIG_UNICODE_SAFETY tests unconditionally.
16759         * tests/unistr/test-u32-mblen.c (main): Likewise.
16760         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
16761         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
16762         * tests/unistr/test-u32-next.c (main): Likewise.
16763         * tests/unistr/test-u32-strmblen.c (main): Likewise.
16764         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
16765         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
16766         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
16767         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
16768         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
16769         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
16770         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
16771         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
16772         * lib/unistr/u16-check.c (u16_check): Update comment.
16773         * NEWS: Mention the changes that callers should be aware of.
16775 2016-11-19  Bruno Haible  <bruno@clisp.org>
16777         relocatable-prog-wrapper: Fix breakage on Cygwin.
16778         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
16779         (Depends-on): Remove intprops.
16780         * lib/relocwrapper.c: Update dependency tree.
16781         (strerror): Undefine.
16782         * build-aux/install-reloc (func_create_wrapper): Do not compile
16783         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
16785 2016-11-19  Bruno Haible  <bruno@clisp.org>
16787         strerror: Make it compile in C++ mode.
16788         * lib/strerror.c (strerror): Ignore the return value of memcpy().
16790 2016-11-15  Pedro Alves  <palves@redhat.com>
16792         sys_time: add gnulib::timeval for C++
16793         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
16794         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
16795         timeval macro.
16797 2016-11-14  Pedro Alves  <palves@redhat.com>
16799         snippet/c++defs: fix real-floating arg functions in C++ mode
16800         Also, define isfinite, isinf, isnan, signbit in the gnulib
16801         namespace instead of in the global namespace.
16802         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
16803         (_GL_END_NAMESPACE): New.
16804         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
16805         (isfinite, isinf, isnan, signbit) [__cplusplus &&
16806         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
16807         instead of in the global namespace.
16808         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
16809         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
16810         of in the global namespace.
16812 2016-11-13  Jim Meyering  <meyering@fb.com>
16814         strftime: don't use __THROW
16815         Each use of __THROW would provoke this from gcc-7-to-be:
16817           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
16818             on unit local functions [-Wattributes]
16819           static int iso_week_days (int, int) __THROW;
16820           ^~~~~~
16821         * lib/strftime.c (__THROW): Don't define.
16822         Remove each use of __THROW.
16823         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
16824         (tm_diff, iso_week_days, __strftime_internal): Likewise.
16826 2016-11-14  Paul Eggert  <eggert@union>
16828         obstack: port to gcc -fcheck-pointer-bounds
16829         Problem found by 'make check' failure on bleeding-edge coreutils
16830         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
16831         6.2.0-5ubuntu12), configured via "./configure
16832         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
16833         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
16834         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
16835         New macro, copied from fts_.h.
16836         (struct _obstack_chunk.contents): Use it.
16838 2016-11-14  Eric Blake  <eblake@redhat.com>
16840         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
16841         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
16842         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
16844 2016-11-14  Pádraig Brady  <P@draigBrady.com>
16846         strptime: fix compile error in recent change
16847         * lib/strptime.c (__strptime_internal): Fix ported code.
16849 2016-11-11  Bruno Haible  <bruno@clisp.org>
16851         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
16852         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
16853         (func_import): Extend determination of license_incompatibilities.
16854         (func_create_testdir): Extend table of license compatibility. Handle
16855         also the licenses GPLv3+, GPL, LGPLv3+.
16857 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
16859         strftime: tune %q
16860         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
16862         Merge strftime.c changes from glibc
16863         This incorporates:
16864         2007-10-16 [BZ #5184] Add tzset_called argument
16865         2008-06-13 [BZ #6612] pass reference to tzset_called around
16866         2009-10-30 Implement Burmese language locale for Myanmar
16867         2010-01-09 Add support for XPG7 testing
16868         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
16869         2015-10-20 Convert miscellaneous function definitions to prototype style
16870         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
16871         it anyway and this lessens the difference between gnulib and glibc.
16872         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
16873         (__THROW): Define if standard headers do not.
16874         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
16875         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
16876         Declare with __THROW.
16877         (__strftime_internal): Rename from strftime_case_. Add arg for
16878         whether tzset is called.  All uses changed.  Call tzset at most
16879         once.  Allow %OC, for Burmese.
16880         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
16881         Don't assume values are in range.
16883 2016-11-12  Eric Blake  <eblake@redhat.com>
16885         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
16886         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
16887         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
16888         different value.
16890 2006-11-12  Pedro Alves  <palves@redhat.com>
16892         Fix gnulib C++ namespace support and std::frexp
16893         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
16894         _GL_CXXALIASWARN.
16896 2006-11-12  Pedro Alves  <palves@redhat.com>
16898         GNULIB_NAMESPACE::func need not pull in rpl_func
16899         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
16900         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
16901         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
16902         struct instead of a function pointer.
16904 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
16906         manywarnings: fix -Wno-missing-field-initializers detection
16907         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
16908         to be independent of -Wunused-variable.  I.E. ensure the latter
16909         warning doesn't occur so that detection of the former is accurate.
16911 2016-11-05  Pádraig Brady  <pbrady@fb.com>
16913         strftime,strptime: support %q to represent the quarter
16914         * lib/strftime.c (strftime_case_): Add %q case.
16915         * lib/strptime.c (__strptime_internal): Likewise.
16916         * tests/test-strftime.c (quarter_test): A new test case.
16918 2016-11-03  Eric Blake  <eblake@redhat.com>
16920         bootstrap: Fix get_version() for AIX 5.3
16921         * build-aux/bootstrap (get_version): Factor out sed script, since
16922         indented comments choke AIX 5.3 sed.
16923         Reported-by: Michael Felt <aixtools@gmail.com>
16925 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16927         intprops: port to older XL C
16928         Problem reported by Alexander Samoilov in:
16929         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
16930         http://savannah.nongnu.org/bugs/?49448
16931         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
16932         Define to 1 only for XL C 12.1 or later, since this bug
16933         occurs in XL C for AIX 6.0 but not in 12.1.
16935 2016-11-02  Pádraig Brady  <P@draigBrady.com>
16937         backupfile: initialize default suffix within the implementation
16938         * lib/backupfile.c (find_backup_file_name): Initialize the
16939         global variable here, to simplify usage, and to only call
16940         getenv() when needed.
16942 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
16944         futimens: remove FIXME for old Linux kernels
16945         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
16946         this in 2012" FIXME, like that for utimensat.
16948         utimensat: remove FIXME for old Linux kernels
16949         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
16950         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
16951         this in 2012" FIXME, by assuming the file system bug is absent
16952         unless demonstrated to be present.  We no longer need to worry
16953         about Linux kernel 2.6.32 when building with newer kernels.
16955 2016-10-16  Bruno Haible  <bruno@clisp.org>
16957         qsort_r: Fix macrology for platforms that lack the function.
16958         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
16959         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
16960         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
16961         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
16962         not exist.
16963         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
16964         the function exists.
16965         * modules/qsort_r: Add comments.
16967 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
16969         sys_types: fix Texinfo typos
16970         * doc/glibc-functions/gnu_dev_major.texi:
16971         * doc/glibc-functions/gnu_dev_makedev.texi:
16972         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
16974 2016-10-26  John David Anglin  <dave.anglin@bell.net>
16976         getprogname: port to HP-UX
16977         See Bug#24805.
16978         * lib/getprogname.c (getprogname) [__hpux]: Port.
16979         * tests/test-getprogname.c (STREQ) [__hpux]:
16980         Special-case for HP-UX limitations on program name length.
16982 2016-10-20  Bruno Haible  <bruno@clisp.org>
16984         Update doc about target platforms.
16985         * doc/gnulib-intro.texi (Target Platforms): Update list.
16987 2016-10-15  Bruno Haible  <bruno@clisp.org>
16989         opendir, readdir, closedir: Relicense under LGPLv2+.
16990         * modules/opendir (License): Change to LGPLv2+.
16991         * modules/readdir (License): Likewise.
16992         * modules/closedir (License): Likewise.
16994 2016-10-16  Bruno Haible  <bruno@clisp.org>
16996         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
16997         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
16998         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
16999         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
17000         HAVE_DECL_STRERROR_R.
17002 2016-10-16  Bruno Haible  <bruno@clisp.org>
17004         Make the 'argp' module work without the 'error' module.
17005         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
17007 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17009         diffseq: restore TOO_EXPENSIVE heuristic
17010         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
17011         (Bug#24715).  The simplest solution is to restore the
17012         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
17013         using a higher threshold to avoid Bug#16848 on smaller files.
17014         * lib/diffseq.h (struct context): Restore member too_expensive.
17015         (struct partition): Restore members lo_minimal, hi_minimal.
17016         (diag, compareseq): Restore arg find_minimal.  All uses changed.
17017         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
17018         1993 to make 'diff' run faster (but not as well) on large inputs,
17019         but use a threshold of 4096 instead of the old 256.
17020         * lib/fstrcmp.c (strcmp_bounded):
17021         * lib/git-merge-changelog.c (compute_differences):
17022         Adjust to diffseq.h changes.
17024 2016-10-22  Bruno Haible  <bruno@clisp.org>
17026         iconv: Avoid compilation error when bootstrapping GNU libiconv.
17027         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
17028         declaration yet, define ICONV_CONST to empty.
17030 2016-10-15  Bruno Haible  <bruno@clisp.org>
17032         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
17033         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
17034         module.
17036 2016-10-16  Bruno Haible  <bruno@clisp.org>
17038         system-quote tests: Avoid compiler warning on AIX.
17039         * tests/test-system-quote-child.c (fopen): Redefine like the system's
17040         <stdio.h> does.
17042 2016-10-16  Bruno Haible  <bruno@clisp.org>
17044         Fix some "gcc -Wall" warnings.
17045         * tests/test-ffsl.c (main): Use variable x, not i.
17046         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
17047         freopen.
17048         * tests/test-sethostname1.c (main): Explicitly ignore the return value
17049         of sethostname.
17051 2016-10-16  Bruno Haible  <bruno@clisp.org>
17053         gnulib-tool: Make --create-testdir on all modules work again.
17054         * gnulib-tool (func_create_testdir): Don't include the
17055         non-recursive-gnulib-prefix-hack module.
17057 2016-10-21  Daiki Ueno  <ueno@gnu.org>
17059         libunistring: change the maintainer to 'all'
17060         * modules/gen-uni-tables, modules/libunistring:
17061         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
17062         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
17063         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
17064         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
17065         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
17066         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
17067         * modules/uniwidth/*: Change the maintainer to 'all'.
17069 2016-10-16  Bruno Haible  <bruno@clisp.org>
17071         Simplify "configure: checking ..." messages.
17072         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
17073         AC_MSG_NOTICE.
17074         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
17076 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
17078         quotearg-tests: pacify gcc -Wall
17079         Problem reported by Bruno Haible in:
17080         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
17081         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
17082         * tests/test-quotearg.h: ... from here.
17084 2016-10-20  Pádraig Brady  <P@draigBrady.com>
17086         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
17087         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
17088         Needed on Centos <= 4.
17090 2016-10-20  Jim Meyering  <meyering@fb.com>
17092         printf.m4: fix a bug in detecting printf %j support
17093         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
17094         uintmax_t is defined in neither stdint.h nor inttypes.h.
17095         Before, this macro might have mistakenly set
17096         gl_cv_func_printf_sizes_c99=yes on such a system.
17097         Spotted by Zev Weiss.
17099 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
17101         sched: substitute HAVE_SYS_CDEFS_H too
17102         Problem reported by Tom G. Christensen in:
17103         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
17104         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
17105         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
17107 2016-10-19  Pádraig Brady  <P@draigBrady.com>
17109         quotearg: never write beyond the returned length
17110         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
17111         scan of the string when we initially encounter a single quote when
17112         shell quoting, so that if we then switch to a more concise quoting method
17113         we will not have written beyond that returned length.
17114         This is significant for sh-quote, which has separate routines
17115         to determine the length and do the actual quoting.
17116         * tests/test-quotearg.h: Reinstate the buffer bounds checking
17117         now that we never write more than the returned length.
17119 2016-10-18  Bruno Haible  <bruno@clisp.org>
17121         getprogname tests: Avoid failure in packages that use libtool.
17122         * tests/test-getprogname.c (main): Strip "lt-" prefix.
17123         Based on a patch by Jim Meyering.
17125 2016-10-16  Bruno Haible  <bruno@clisp.org>
17127         getprogname: Fix test failure on Cygwin. Comments.
17128         * lib/getprogname.h: Add comments.
17129         * lib/getprogname.c: Add comments. Fix #elif indentation.
17130         * tests/test-getprogname.c (main): On Cygwin, expect a result without
17131         ".exe" suffix.
17133 2016-10-16  Bruno Haible  <bruno@clisp.org>
17135         Make sure the libunistring detection rejects older versions with a
17136         known bug.
17137         * modules/unistr/u8-strtok (configure.ac): Bump required version.
17138         * modules/unistr/u16-strtok (configure.ac): Likewise.
17139         * modules/unistr/u32-strtok (configure.ac): Likewise.
17141 2016-10-18  Bruno Haible  <bruno@clisp.org>
17143         sh-quote, system-quote: revert regression of unit test.
17144         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
17145         * tests/test-system-quote-main.c (check_one): Likewise.
17147 2016-10-16  Pádraig Brady  <P@draigBrady.com>
17149         quotearg: fix stale tests
17150         * tests/test-quotearg.c [locale_results]: Add the missing str7
17151         entries to the expected results.
17152         * tests/test-system-quote-main.c (check_one): Don't enforce that we
17153         don't write beyond the returned length, since that's no longer the
17154         case if we switch to a more concise quoting style.
17155         * tests/test-sh-quote.c (check_one): Likewise.
17156         (main): Adjust for the new more concise quoting style.
17157         Reported by Bruno Haible.
17159 2016-10-16  Jim Meyering  <meyering@fb.com>
17161         non-recursive-gnulib-prefix-hack: fix inconsequential typo
17162         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
17163         to "$1".  This macro is always invoked with $1 == lib.
17164         Spotted by Bruno Haible
17166 2016-10-16  Bruno Haible  <bruno@clisp.org>
17168         Fix a test crash.
17169         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
17170         fails.
17172 2016-10-16  Pádraig Brady  <P@draigBrady.com>
17174         test-limits-h: suppress -Woverlength-strings
17175         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
17177 2016-10-15  Bruno Haible  <bruno@clisp.org>
17179         gettime, timespec, utimens: Relicense under LGPL.
17180         * modules/gettime (License): Change to LGPL.
17181         * modules/timespec (License): Likewise.
17182         * modules/utimens (License): Likewise.
17184 2016-10-14  Bruno Haible  <bruno@clisp.org>
17185             Pádraig Brady  <P@draigBrady.com>
17187         canonicalize-lgpl: Support the case path_max > INT_MAX.
17188         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
17189         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
17191 2016-10-13  Jim Meyering  <meyering@fb.com>
17193         getprogname: IBM z/OS: avoid NULL-dereference
17194         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
17195         upon strdup failure.
17197 2016-10-12  Jim Meyering  <meyering@fb.com>
17199         test-stdint: use _GL_VERIFY rather than "verify" for some tests
17200         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
17201         and an abbreviated diagnostic rather than verify with the full one,
17202         because the full-length strings would evoke warnings from gcc with
17203         -Woverlength-strings.
17205 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
17207         stdint: port SIZE_MAX to glibc s390
17208         Problem reported by Eric Blake in:
17209         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
17210         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
17211         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
17212         correct type, if possible.
17214 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
17216         getprogname: port to IBM z/OS
17217         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
17219 2016-10-11  Jim Meyering  <meyering@fb.com>
17221         maint: remove stray space after "." in AC_DEFINE comment.
17222         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
17223         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
17225 2016-10-05  Jim Meyering  <meyering@fb.com>
17227         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
17228         * lib/long-options.c (parse_long_options): Add a break statement
17229         to avoid this new warning/failure:
17230         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
17231           --create-testdir --dir=/t/x --with-tests --test long-options
17232         ../../gllib/long-options.c: In function 'parse_long_options':
17233         ../../gllib/long-options.c:66:12: error: this statement may \
17234           fall through [-Werror=implicit-fallthrough]
17235                    (*usage_func) (EXIT_SUCCESS);
17236                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
17238 2016-10-05  Jim Meyering  <meyering@fb.com>
17240         utimecmp: avoid new GCC 7 warning from -Wbool-operation
17241         Testing this module would fail when using GCC 7 like this:
17242         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
17243           --dir=/tmp/x --with-tests --test utimecmp
17244         ../../gllib/utimecmp.c: In function ‘utimecmp’:
17245         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
17246           [-Werror=bool-operation]
17247                          time_t s = src_s & ~ (res == 2 * BILLION);
17248                                             ^
17249         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
17250           [-Werror=bool-operation]
17251                src_s &= ~ (res == 2 * BILLION);
17252                         ^
17253         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
17254         Instead, make it explicit that we intend to apply it to 0 or 1.
17256 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17258         dfa: save memory for states
17259         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
17260         states if dfa has a lot of caches.
17262 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
17264         wchar, wctype-h: fix for MinGW 3.22.2
17265         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
17266         special invocation, to fix issues with MinGW 3.22.2 wchar.h
17267         when included from <string.h>.
17268         * lib/wctype.in.h [__MINGW32__]: Add special invocation
17269         convention for MinGW 3.22.2, to solve issues with their
17270         wctype.h when included from <ctype.h>.
17272 2016-10-05  Jim Meyering  <meyering@fb.com>
17274         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
17275         * lib/long-options.c (parse_long_options): Add a break statement
17276         to avoid this new warning/failure:
17277         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
17278           --create-testdir --dir=/t/x --with-tests --test long-options
17279         ../../gllib/long-options.c: In function ‘parse_long_options’:
17280         ../../gllib/long-options.c:66:12: error: this statement may \
17281           fall through [-Werror=implicit-fallthrough]
17282                    (*usage_func) (EXIT_SUCCESS);
17283                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
17285         utimecmp: avoid new GCC 7 warning from -Wbool-operation
17286         Testing this module would fail when using GCC 7 like this:
17287         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
17288           --dir=/tmp/x --with-tests --test utimecmp
17289         ../../gllib/utimecmp.c: In function ‘utimecmp’:
17290         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
17291           [-Werror=bool-operation]
17292                          time_t s = src_s & ~ (res == 2 * BILLION);
17293                                             ^
17294         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
17295           [-Werror=bool-operation]
17296                src_s &= ~ (res == 2 * BILLION);
17297                         ^
17298         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
17299         Instead, make it explicit that we intend to apply it to 0 or 1.
17301 2016-10-03  Pádraig Brady  <P@draigBrady.com>
17303         quotearg: minimize shell quoting using double quotes
17304         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
17305         quote in encountered then use double quotes (c style quoting)
17306         when possible, as it simplifies the quoting.
17307         * tests/test-quotearg-simple.c: Add test cases.
17308         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
17309         for the fact we now may write beyond the returned length.
17311 2016-10-02  Jim Meyering  <meyering@fb.com>
17313         vasnprintf.c: avoid spurious warning from GCC 7
17314         The presence of cpp directives renders this "FALLTHROUGH" comment
17315         ineffective, so does not suppress the -Wimplicit-fallthrough warning
17316         from GCC 7 built from git on 2016-10-02.
17317         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
17318         directives, so that it takes effect once again.  This is clearly
17319         not a proper change, and I will revert it once this bug is fixed:
17320         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
17322 2016-10-01  Jim Meyering  <meyering@fb.com>
17324         getprogname: correct the test for a __progname variable
17325         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
17326         and AC_LINK_IFELSE to check for a global __progname.  If found,
17327         define HAVE_VAR___PROGNAME.
17328         * lib/getprogname.c (getprogname): Reflect the new name of the
17329         feature- checked preprocessor symbol:
17330         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
17332 2016-09-28  Jim Meyering  <meyering@fb.com>
17334         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
17335         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
17336         fall-through case with a /* fallthrough */ comment.
17338         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
17339         * lib/dfa.c (dfassbuild): Mark the end of this case with a
17340         /* fallthrough */ comment.
17342         getprogname: avoid __progname vs program_invocation_short_name pitfall
17343         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
17344         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
17345         not with Fedora 24's glibc-2.23.1-10.
17346         * lib/getprogname.c (__progname): Move this declaration down...
17347         (getprogname): ... into the #elif block where used, and make it
17348         explicitly "extern".
17350         getprogname: port to OpenBSD 5.1
17351         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
17352         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
17353         * modules/getprogname (configure.ac): Move most of this code...
17354         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
17355         increment serial number, and add a test for __progname.
17356         https://bugs.gnu.org/24562
17357         Reported by Nelson H. F. Beebe.
17359 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
17361         sched: port to GCC 6.2.1 on macOS Sierra
17362         Problem reported by Denis Davydov in:
17363         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
17364         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
17365         Include <sys/cdefs.h> before <sched.h>.
17366         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
17367         so that we needn’t worry about the sched.h include bug here.
17368         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
17369         and include it before <sched.h> if it exists, when
17370         checking for <sched.h>.
17372         tests/init.sh: port Alpine fix to AIX 7.1
17373         * tests/init.sh (compare_): When attempting to use diff -U3,
17374         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
17375         diff -u not outputting a space after leading '+', as the users
17376         of 'compare' should not be that picky about its output format.
17377         In the AIX 7.1 case, return with diff exit status (or with 2 if
17378         trouble), instead of some random nonzero exit status.
17379         * tests/test-init.sh (test_compare): Remove space after leading
17380         '+', so that AIX 7.1 'diff' passes the test.
17382 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
17384         nl_langinfo: pacify GCC
17385         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
17386         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
17388         stdint: also set GL_GENERATE_LIMITS_H
17389         Problem reported by Jim Meyering in:
17390         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
17391         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
17393         limits-h, stdint: Don't assume extensions, fix typo
17394         * m4/limits-h.m4 (gl_LIMITS_H):
17395         * m4/stdint.m4 (gl_STDINT_H):
17396         Don't assume AC_USE_SYSTEM_EXTENSIONS.
17397         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
17398         reported by Jim Meyering in:
17399         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
17401 2016-09-21  Jim Meyering  <meyering@fb.com>
17403         getprogname: port to AIX
17404         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
17405         and strdup to obtain a short program name string.  Using code from
17406         Bruno Haible and an idea from Bastien ROUCARIÈS, in
17407         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
17408         Assaf Gordon reported that this new file would fail to compile on
17409         AIX-7.1 32bit.
17411 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
17413         extensions: fix typo in comment
17414         * m4/extensions.m4: Sync from Autoconf master.
17416         stdint: support new _WIDTH macros
17417         * doc/posix-headers/stdint.texi: Document this.
17418         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
17419         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
17420         support for INTMAX_WIDTH, etc. as well as for support for just C99.
17421         * modules/stdint (Depends-on): Add limits-h.
17422         (Makefile.am): Substitute HAVE_C99_STDINT_H.
17423         * modules/stdint-tests (Depends-on): Add extensions, so that
17424         INTMAX_MAX etc. are defined.
17425         * tests/test-stdint.c: Verify the new macros.
17427         limits-h: new module
17428         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
17429         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
17430         * doc/posix-headers/limits.texi: Document new module.
17431         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
17432         * modules/limit-h-tests, tests/test-limits-h.c: New files.
17434         stdio: don't redefine __USE_MINGW_ANSI_STDIO
17435         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
17436         if it is already defined.  Apparently GNU Emacs relies on this.  See:
17437         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
17439 2016-09-15  Eric Blake  <eblake@redhat.com>
17441         sys_types: avoid glibc 2.25 warnings about major()
17442         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
17443         older autoconf.
17444         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
17445         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
17446         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
17447         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
17449         mountlist: include sysmacros.h for glibc
17450         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
17451         AC_HEADER_MAJOR.
17452         * lib/mountlist.c (includes): Use correct headers.
17454 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
17456         extensions: port to more ISO C TSes
17457         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
17458         master, to add support for more recent ISO C TRs and TSes.
17460 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
17462         intprops: new macro TYPE_WIDTH
17463         * lib/intprops.h (TYPE_WIDTH): New macro.
17464         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
17465         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
17466         * lib/parse-datetime.y (parse_datetime2):
17467         Use it.
17469         extensions: port to recent ISO C TRs
17470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
17471         Sync from Autoconf master, to add support for recent ISO C TRs.
17472         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
17473         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
17474         the MinGW option is not an extension.
17476 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
17478         dfa: port to Solaris 9
17479         Problems reported by Tom G. Christensen in:
17480         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
17481         * modules/dfa (Depends-on): Add isblank.
17482         * modules/dfa-tests (dfa_match_aux_LDADD):
17483         Rename from test_stat_LDADD, to fix typo.
17484         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
17486 2016-09-10  Jim Meyering  <meyering@fb.com>
17488         strverscmp: avoid link failure on OS X
17489         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
17490         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
17492 2016-08-16  Jim Meyering  <meyering@fb.com>
17494         dfa: new module, importing grep's DFA matcher
17495         Since grep's DFA matcher is now being used by two gnulib-enabled
17496         projects, grep and sed, it makes sense to version-control its
17497         sources and unit tests in one place: here.
17498         * modules/dfa: New module.
17499         * modules/dfa-tests: New file.
17500         * lib/dfa.c: New file, from grep.
17501         * lib/dfa.h: Likewise.
17502         * lib/localeinfo.c: Likewise.
17503         * lib/localeinfo.h: Likewise.
17504         * tests/dfa-match-aux.c: Likewise.
17505         * tests/dfa-invalid-char-class.sh: Likewise.
17506         * tests/dfa-match.sh: Likewise, with minor changes.
17507         * MODULES.html.sh (Misc): Add "dfa" to this list.
17509 2016-09-09  Jim Meyering  <meyering@fb.com>
17511         getprogname-tests: don't depend on assert-h
17512         * modules/getprogname-tests (Depends-on): Remove assert-h.
17513         It was not needed, and in fact would cause build failure for
17514         coreutils on some systems.  Reported by Assaf Gordon in https:
17515         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
17517 2016-09-07  Jim Meyering  <meyering@fb.com>
17519         getprogname-tests: work also when EXEEXT is nonempty
17520         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
17521         * tests/test-getprogname.c (main): Use it.
17522         Suggested by Gisle Vanem.
17524 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
17526         getprogname: fix errors in previous change
17527         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
17528         s/program_invocation_name/base/
17529         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
17531 2016-09-08  Pádraig Brady  <P@draigBrady.com>
17533         parse-datetime: restrict debug output to input string
17534         * lib/parse-datetime.y (parse_datetime2): If we parse
17535         all of the input but determine it's invalid, ensure
17536         we don't output the now invalid input pointer.
17537         This issue was seen with `date -d 'now +1'`.
17539 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17541         flexmember: new macro FLEXALIGNOF
17542         * lib/flexmember.h: Include <stddef.h>, for offsetof.
17543         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
17544         this macro.  Update comments.
17546 2016-09-07  Jim Meyering  <meyering@fb.com>
17548         getprogname: port to systems with __argv (mingw, msvc)
17549         * lib/getprogname.c (getprogname): Include "dirname.h" and use
17550         last_component: more general than open coding it with hard-coded "/".
17551         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
17552         * modules/getprogname (Depends-on): Add dirname-lgpl.
17553         (configure.ac): Check for __argv in <stdlib.h>.
17554         * modules/getprogname-tests: New file.
17555         * tests/test-getprogname.c: New file.
17556         Suggested by Gisle Vanem in
17557         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
17559 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
17561         flexmember: port better to GCC + valgrind
17562         With a char[] flexible array member in a struct with nontrivial
17563         alignment, GCC-generated code can access past the end of the
17564         array, because GCC assumes there are padding bytes to get the
17565         struct aligned.  So the common idiom of malloc (offsetof (struct
17566         s, m), n) does not properly allocate an n-byte trailing member, as
17567         malloc’s argument should be the next multiple of alignof (struct s).
17568         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
17569         Although C11 apparently permits this GCC optimization (i.e., there
17570         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
17571         See the thread containing:
17572         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
17573         * lib/flexmember.h: New file.
17574         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
17575         * lib/localename.c, lib/time_rz.c:
17576         Include flexmember.h.
17577         * lib/fnmatch_loop.c (struct patternlist):
17578         * lib/localename.c (struct hash_node):
17579         Use FLEXIBLE_ARRAY_MEMBER.
17580         * lib/fnmatch_loop.c (EXT):
17581         * lib/fts.c (fts_alloc):
17582         * lib/glob.c (glob_in_dir):
17583         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
17584         * lib/localename.c (gl_lock_define_initialized):
17585         * lib/time_rz.c (tzalloc):
17586         Use FLEXSIZEOF instead of offsetof.
17587         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
17588         Check that the size of the struct can be taken.
17589         * modules/flexmember (Files): Add lib/flexmember.h.
17590         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
17591         Add flexmember.
17593 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
17595         getprogname: port to Solaris 10
17596         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
17597         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
17598         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
17600         stdalign: correct mistake in alignof doc
17601         Problem reported by Joseph Myers in:
17602         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
17603         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
17604         alignof(S) where S is a structure containing a flexible array
17605         member.  The Gnulib substitute does not support this, but C11 does.
17607 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17609         main.mk: remove sc_program_name, since there is no more need to
17610         use set_program_name in tools (getprogname is enough for most
17611         of the cases).
17612         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
17613         * top/maint.mk (sc_program_name): Remove.
17615 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17617         Port tests away from progname, since modules that need the
17618         program name already depend on getprogname.
17619         * modules/acl-tests (Depends-on): Remove progname.
17620         * modules/argmatch (Depends-on): Likewise.
17621         * modules/argmatch-tests (Depends-on): Likewise.
17622         * modules/argp-tests (Depends-on): Likewise.
17623         * modules/argp-version-etc-tests (Depends-on): Likewise.
17624         * modules/array-list-tests (Depends-on): Likewise.
17625         * modules/array-oset-tests (Depends-on): Likewise.
17626         * modules/avltree-list-tests (Depends-on): Likewise.
17627         * modules/avltree-oset-tests (Depends-on): Likewise.
17628         * modules/avltreehash-list-tests (Depends-on): Likewise.
17629         * modules/carray-list-tests (Depends-on): Likewise.
17630         * modules/copy-file-tests (Depends-on): Likewise.
17631         * modules/exclude-tests (Depends-on): Likewise.
17632         * modules/fchownat-tests (Depends-on): Likewise.
17633         * modules/fdopendir-tests (Depends-on): Likewise.
17634         * modules/filenamecat-tests (Depends-on): Likewise.
17635         * modules/fstatat-tests (Depends-on): Likewise.
17636         * modules/fstrcmp-tests (Depends-on): Likewise.
17637         * modules/linked-list-tests (Depends-on): Likewise.
17638         * modules/linkedhash-list-tests (Depends-on): Likewise.
17639         * modules/mkdirat-tests (Depends-on): Likewise.
17640         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
17641         * modules/nonblocking-socket-tests (Depends-on): Likewise.
17642         * modules/obstack-printf-tests (Depends-on): Likewise.
17643         * modules/openat-tests (Depends-on): Likewise.
17644         * modules/parse-datetime-tests (Depends-on): Likewise.
17645         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
17646         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
17647         * modules/quotearg-simple-tests (Depends-on): Likewise.
17648         * modules/quotearg-tests (Depends-on): Likewise.
17649         * modules/rbtree-list-tests (Depends-on): Likewise.
17650         * modules/rbtree-oset-tests (Depends-on): Likewise.
17651         * modules/rbtreehash-list-tests (Depends-on): Likewise.
17652         * modules/spawn-pipe-tests (Depends-on): Likewise.
17653         * modules/system-quote-tests (Depends-on): Likewise.
17654         * modules/uniname/uniname-tests (Depends-on): Likewise.
17655         * modules/uninorm/nfc-tests (Depends-on): Likewise.
17656         * modules/uninorm/nfd-tests (Depends-on): Likewise.
17657         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
17658         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
17659         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
17660         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
17661         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
17662         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
17663         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
17664         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
17665         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
17666         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
17667         * modules/unlinkat-tests (Depends-on): Likewise.
17668         * modules/version-etc-tests (Depends-on): Likewise.
17669         * modules/xalloc-die-tests (Depends-on): Likewise.
17670         * modules/xmemdup0-tests (Depends-on): Likewise.
17671         * modules/xprintf-posix-tests (Depends-on): Likewise.
17672         * modules/xvasprintf-tests (Depends-on): Likewise.
17673         * tests/test-argmatch.c: Do not include progname.h.
17674         (main) Stop calling set_program_name.
17675         * tests/test-argp-version-etc.c: Likewise.
17676         * tests/test-argp.c: Likewise.
17677         * tests/test-argv-iter.c: Likewise.
17678         * tests/test-array_list.c: Likewise.
17679         * tests/test-array_oset.c: Likewise.
17680         * tests/test-avltree_list.c: Likewise.
17681         * tests/test-avltree_oset.c: Likewise.
17682         * tests/test-avltreehash_list.c: Likewise.
17683         * tests/test-carray_list.c: Likewise.
17684         * tests/test-copy-acl.c: Likewise.
17685         * tests/test-copy-file.c: Likewise.
17686         * tests/test-exclude.c: Likewise.
17687         * tests/test-fchownat.c: Likewise.
17688         * tests/test-fdopendir.c: Likewise.
17689         * tests/test-filenamecat.c: Likewise.
17690         * tests/test-fstatat.c: Likewise.
17691         * tests/test-fstrcmp.c: Likewise.
17692         * tests/test-linked_list.c: Likewise.
17693         * tests/test-linkedhash_list.c: Likewise.
17694         * tests/test-mkdirat.c: Likewise.
17695         * tests/test-nonblocking-pipe-main.c: Likewise.
17696         * tests/test-nonblocking-socket-main.c: Likewise.
17697         * tests/test-obstack-printf.c: Likewise.
17698         * tests/test-openat.c: Likewise.
17699         * tests/test-parse-datetime.c: Likewise.
17700         * tests/test-pipe-filter-gi1.c: Likewise.
17701         * tests/test-pipe-filter-gi2-main.c: Likewise.
17702         * tests/test-pipe-filter-ii1.c: Likewise.
17703         * tests/test-pipe-filter-ii2-main.c: Likewise.
17704         * tests/test-quotearg-simple.c: Likewise.
17705         * tests/test-quotearg.c: Likewise.
17706         * tests/test-rbtree_list.c: Likewise.
17707         * tests/test-rbtree_oset.c: Likewise.
17708         * tests/test-rbtreehash_list.c: Likewise.
17709         * tests/test-sameacls.c: Likewise.
17710         * tests/test-set-mode-acl.c: Likewise.
17711         * tests/test-spawn-pipe-main.c: Likewise.
17712         * tests/test-system-quote-main.c: Likewise.
17713         * tests/test-unlinkat.c: Likewise.
17714         * tests/test-version-etc.c: Likewise.
17715         * tests/test-xalloc-die.c: Likewise.
17716         * tests/test-xfprintf-posix.c: Likewise.
17717         * tests/test-xmemdup0.c: Likewise.
17718         * tests/test-xprintf-posix.c: Likewise.
17719         * tests/test-xvasprintf.c: Likewise.
17720         * tests/uniname/test-uninames.c: Likewise.
17721         * tests/uninorm/test-u32-nfc-big.c: Likewise.
17722         * tests/uninorm/test-u32-nfd-big.c: Likewise.
17723         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
17724         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
17725         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
17726         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
17727         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
17728         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
17729         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
17730         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
17731         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
17732         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
17733         * tests/test-c-stack.c: (program_name): Do not define.
17734         (main): Do not set program_name.
17735         * tests/test-closein.c: Likewise.
17736         * tests/test-xstrtol.c: Likewise.
17737         * tests/test-yesno.c: Likewise.
17739 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17741         Port modules to use getprogname explicitly, instead of requiring
17742         progname to be used (or program_name to be provided).
17743         * lib/argmatch.c: Do not include progname.h.
17744         [TEST] (program_name): Do not define.
17745         [TEST] (main): Call getprogname instead of using program_name.
17746         * lib/c-stack.c: Do not include progname.h.
17747         (program_name): Do not define.
17748         (die): Call getprogname instead of using program_name.
17749         * lib/chdir-long.c: Do not include progname.h.
17750         [TEST_CHDIR] (main): Do not set program_name.
17751         * lib/error.c [!_LIBC]: Include progname.h.
17752         [!_LIBC] (program_name): Define using getprogname.
17753         * lib/euidaccess.c: Do not include progname.h.
17754         [TEST] (main): Do not set program_name.
17755         * lib/git-merge-changelog.c: Include getprogname.h instead of
17756         progname.h.
17757         (usage): Call getprogname instead of using program_name.
17758         (main): Likewise.  Stop calling set_program_name.
17759         * lib/group-member.c: Do not include progname.h.
17760         [TEST] (main): Do not set program_name.
17761         * modules/argmatch (Depends-on): Add getprogname.
17762         * modules/c-stack (Depends-on): Likewise.
17763         * modules/error (Depends-on): Likewise.
17764         * modules/git-merge-changelog (Depends-on): Likewise.
17765         Also remove progname.
17767 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
17769         * NEWS: Document the deprecation of the 'progname' module.
17771 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
17773         getprogname: new module
17774         This provides a LGPL module for getting the name of the current
17775         program, using the same API found on *BSD systems.
17776         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
17777         * modules/getprogname: New files.
17778         * MODULES.html.sh (Misc): Add getprogname.
17780 2016-09-02  Jim Meyering  <meyering@fb.com>
17782         manywarnings: add -fno-common
17783         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
17784         to the list.  Quoting the manual, "Compiling with -fno-common is
17785         useful on targets for which it provides better performance, or if
17786         you wish to verify that the program will work on other systems that
17787         always treat uninitialized variable declarations this way [putting
17788         it in the data section]."  If diffutils had been using this sooner,
17789         it would have prevented this duplicate declaration issue:
17790         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
17792 2016-08-31  Simon Josefsson  <simon@josefsson.org>
17794         parse-datetime: Fix typo.
17795         * lib/parse-datetime.y (parse_datetime2): Fix typo.
17797 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
17799         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
17800         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
17801         GCC 5 and 6 that have __builtin_sub_overflow but not
17802         __builtin_sub_overflow_p.  With the recent changes, these
17803         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
17804         implementation than with INT_SUBTRACT_OVERFLOW implementation,
17805         since the former needs just one runtime comparison whereas the
17806         latter needs two.
17808         strverscmp: sync with glibc
17809         Although this doesn't exactly synchronize with glibc
17810         byte-for-byte, it makes the code behave the same as glibc.
17811         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
17812         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
17813         difference shouldn't matter in practical use.  All uses changed
17814         back to isdigit.
17815         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
17816         (next_state): Now unsigned char array; redo elements.
17817         (result_type): Now signed char array; redo elements.
17818         (__strverscmp): Fix glibc bug 9913 by using new states.
17819         * tests/test-strverscmp.c (main): Test glibc bug 9913.
17821 2016-08-29  Jim Meyering  <meyering@fb.com>
17823         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
17824         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
17825         similarly to how it was done to intprops.h.
17827 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
17829         intprops.h: port recent changes to GCC 6.2.0
17830         * lib/intprops.h (__has_builtin): Move earlier.
17831         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
17832         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
17833         the last argument can be null.  All uses changed.
17834         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
17835         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17836         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
17837         and it's not clear which GCC versions it works for.
17838         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
17839         its definiens.
17841         intprops.h: use __typeof__ with GCC 7
17842         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
17843         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
17844         This avoids computing the expression's value (which might overflow!).
17846 2016-08-29  Jim Meyering  <meyering@fb.com>
17848         intprops.h, xalloc-oversized.h: work with gcc 7
17849         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
17850         __builtin_mul_overflow each accept a NULL pointer as the third
17851         argument.  However in gcc 7, that is no longer accepted.
17852         Instead, one must use the "_p"-suffixed names, with which, the
17853         third parameter is no longer a pointer.
17854         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
17855         the definition: not true for gcc 7 and subsequent.
17856         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
17857         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
17858         Provide new definitions for gcc 7 and subsequent.
17859         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
17860         that works with gcc-7.
17862         intprops.h: fix missing-backslash problems
17863         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
17864         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
17866 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17868         intprops: fix paren typo on old platforms
17869         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
17870         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
17871         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
17872         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
17873         && !defined LLONG_MAX]:
17874         Remove stray paren.
17876         intprops: port to OpenVMS
17877         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
17878         * doc/posix-headers/limits.texi: Document the problem.
17879         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
17880         Define if not already defined.
17882 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
17884         parse-datetime: improve debug implementation
17885         Follow-up to commit 12ad79069 ("add optional debug printing").
17886         Improve parse-datetime's debug implementation: remove macros,
17887         replace global debug flag variable with a function parameter,
17888         use nstrftime for formatting.
17889         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
17890         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
17891         (parse_datetime2): New function, accepts 'flags' parameter, supporting
17892         debug flag. Existing interface 'parse_datetime' left unmodified.
17893         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
17894         (struct parser_control): add 'parse_datetime_debug' member variable.
17895         (parse_datetime): Call new function 'parse_datetime2' without debug.
17896         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
17897         pc.parse_datetime_debug variable as needed.
17898         (to_year): Accept new flags parameter, instead of using global variable.
17899         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
17900         use struct 'debug' variable instead of global variable.
17901         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
17902         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
17903         correspnding functions directly instead of using macros.
17904         * modules/parse-datetime: Add gnulib's strftime module.
17906 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
17908         c-strcase-tests: port to EBCDIC
17909         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
17910         which assume ASCII encoding semantics to run only in ASCII
17911         mode, as they fail in EBCDIC.
17913         sigpipe-tests: fix typo
17914         * tests/test-sigpipe.sh: C, not B.
17916 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
17918         canonicalize-lgpl: fix errno after malloca fails
17919         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
17920         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
17921         * lib/canonicalize-lgpl.c (__realpath):
17922         Don't assume malloca sets errno on failure.
17924 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17926         strtod: port errno handling to z/OS
17927         * lib/strtod.c (strtod): Save and restore errno more reliably.
17929 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
17931         strtod: port to z/OS
17932         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
17933         implementation.
17935 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17937         strtod: port to z/OS
17938         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
17939         implementation.
17941         regex, string: rename to avoid '__string'
17942         * lib/regex.h, lib/string.in.h: Do not use the identifier
17943         '__string', as it is effectively reserved by string.h on z/OS.
17945         c-strcase-tests, wcwidth-tests: depend on c-ctype
17946         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
17947         Add c-ctype.
17949 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
17951         thread: port to z/OS
17952         * lib/glthread/thread.c, lib/glthread/thread.h:
17953         Rudimentary gl_thread support for z/OS.
17955         maint: port tests to z/OS errno behavior
17956         * tests/test-nonblocking-reader.h:
17957         * tests/test-nonblocking-writer.h:
17958         Accommodate z/OS errno code preferences. (I believe this should
17959         still be within spec; IBM is good at following the letter if not
17960         the spirit of such things.)
17962         maint: preprocessor changes to support z/OS
17963         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
17964         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
17965         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
17966         * tests/test-nonblocking-pipe.h:
17968         fclose, strstr-simple, wchar: port to z/OS
17969         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
17970         Changes to the Autoconf M4 code to support z/OS.  Note that
17971         fclose() is broken in a different way on z/OS than it is on other
17972         systems, thus the special-case in fclose.m4.
17974         iconv_open-utf-tests, iconv-tests: port to EBCDIC
17975         * tests/test-iconv-utf.c, tests/test-iconv.c:
17976         Added appropriately conditional #pragmas so that the test strings
17977         in test-iconv-utf.c are correctly interpreted in ASCII instead of
17978         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
17979         addressed in a more portable way by simply rewriting all the ASCII
17980         literal characters as octal escapes, but then you would lose the
17981         partial readability that the strings have now. Also, iconv_open()
17982         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
17984         c-strcase-tests, wcwidth-tests: port to EBCDIC
17985         * tests/test-c-strcasecmp.c: Include c-ctype.h.
17986         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
17987         * tests/test-wcwidth.c: Likewise.
17989 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
17991         stdbool: don't require _Bool for C++
17992         Problem reported by David Seifert in:
17993         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
17994         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
17995         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
17996         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
17997         stricter about checking that bool and _Bool are compatible in C.
17999 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
18001         getdelim: remove dependency on realloc-posix
18002         * lib/canonicalize-lgpl.c (alloc_failed)
18003         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
18004         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
18005         Use __set_errno where needed, for consistency.
18006         * lib/getdelim.c (alloc_failed): New function.
18007         (getdelim): Use it.
18009 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
18011         parse-datetime: add optional debug printing
18012         Print parsing information, warnings, and errors to stderr.
18013         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
18014         * lib/parse-datetime.y:
18015         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
18016         (PROGRESS*): Same as DEBUG, for progress reporting.
18017         (dbg_printf): Print message to stderr, with 'date' prefix.
18018         (struct parser_control): Add 'debug_*_seen' variables.
18019         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
18020         (debug_print_current_time, debug_print_relateive_time): Prints the
18021         current/relative date/time value of parser_control.
18022         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
18023         (to_year): Warn about 2-digit year parsing.
18024         (yylex):   Warn about unrecognized words.
18025         (get_effective_timezone): Returns current timezone in minutes.
18026         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
18027         clearly and unambigiously as possible.
18028         (debug_mktime_not_ok): Print detailed information about failed
18029         date/time values.
18030         (parse_datetime): Add DEBUG messages for failures, warnings. Add
18031         PROGRESS messages for status messages.
18032         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
18034 2016-08-06  Jim Meyering  <meyering@fb.com>
18036         tests/init.sh: exclude dash with bad "local" semantics
18037         * tests/init.sh (gl_shell_test_script_): Add a function to
18038         eliminate a shell like "dash" (unlike bash, zsh) that has
18039         surprising/risky "local var='...'" semantics.  Inspired by
18040         the problem and discussion in https://bugs.gnu.org/24116#11.
18042 2016-08-02  Ján Tomko  <jtomko@redhat.com>
18044         maint.mk: expand the prohibit_doubled_word regex
18045         This check has a static list of words that are checked for
18046         repetitions.  Expand it before running the perl script to
18047         avoid using expensive captures.  This decreases the cost
18048         for libvirt from 1.66s to 0.66s.
18049         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
18050         (sc_prohibit_doubled_word): Use it.
18052 2016-07-26  Ján Tomko  <jtomko@redhat.com>
18054         useless-if-before-free: skip non-matching lines early
18055         * build-aux/useless-if-before-free: First match each line with the
18056         simple/quick /\bif\b/ and reject if there is no match. This often
18057         saves the cost of the much more involved regular expression.
18058         For libvirt, this decreases the cost from 1.44s to 1.02s.
18060 2016-07-26  Ján Tomko  <jtomko@redhat.com>
18062         maint.mk: speed up sc_po_check
18063         sc_po_check would skip files based on their names, or on the
18064         existence of files with derived names. Rewrite it to use perl
18065         instead of shell to make the check faster.
18066         * top/maint.mk (perl_translatable_files_list_): Define.
18067         (sc_po_check): Use it.
18069 2016-07-30  Ján Tomko  <jtomko@redhat.com>
18071         maint.mk: speed up require_config_h_first
18072         Instead of spawning three processes per file,
18073         rewrite the check in perl and run it once for all the files.
18074         * top/maint.mk (perl_config_h_first_): Define.
18075         (sc_require_config_h_first): Use it in place of shell code.
18077 2016-07-26  Ján Tomko  <jtomko@redhat.com>
18079         maint.mk: speed up sc_po_check
18080         sc_po_check would skip files based on their names, or on the
18081         existence of files with derived names. Rewrite it to use perl
18082         instead of shell to make the check faster.
18083         * top/maint.mk (perl_translatable_files_list_): Define.
18084         (sc_po_check): Use it.
18086 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
18088         obstack: pacify GCC 6 with -Wnull-dereference
18089         Problem reported by Assaf Gordon in:
18090         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
18091         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
18092         Declare with __attribute_noreturn__.
18093         * lib/obstack.h (__attribute_noreturn__): New macro.
18095 2016-07-13  Eric Blake  <eblake@redhat.com>
18097         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
18098         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
18099         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
18101 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18103         doc: mention glibc SSIZE_MAX buglet
18104         * doc/posix-headers/limits.texi (limits.h): Document the bug.
18106 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
18108         printf-posix: Fix mingw build
18109         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
18110         expression for detecting C symbol prefixes but forgot to qoute square
18111         brackets in the command line arguments for grep.  That way when
18112         building with mingw the condition was false although it ought to be
18113         true instead.  In particular scenarios this led to the following
18114         compile error:
18116             Cannot export rpl_printf: symbol not found
18117             Cannot export rpl_scanf: symbol not found
18118             collect2: error: ld returned 1 exit status
18120         Fix this by properly quoting square brackets.
18122 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
18124         mktime: call tzset as per POSIX
18125         Problem reported by Ludovic Courtès in:
18126         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
18127         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
18128         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
18130 2016-06-26  Pádraig Brady  <P@draigBrady.com>
18132         fts: handle readdir() errors
18133         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
18134         but also upon error when it will also set errno.  Therefore
18135         flag the error case from readdir().  We treat the case where
18136         no items are read the same as if the dir can't be accessed,
18137         i.e. by setting fts_errno to FTS_DNR.
18139 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
18141         intprops: port better to GCC 7
18142         GCC 7 __builtin_add_overflow supports a new usage form, where the
18143         last argument is a null pointer, and which merely returns 1 if an
18144         overflow would occur.  This is a constant expression if all
18145         arguments are constants, and should generate faster code when code
18146         needs to be generated.
18147         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
18148         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
18149         Use builtin operations if available.
18150         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
18151         operations are available, as it's almost surely faster.
18153 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
18155         intprops-test: port to GCC 6
18156         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
18157         since the bug is not fixed in GCC 6.1.
18159 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18161         xalloc-oversized: port to GCC 7; fewer warnings
18162         GCC 7 will have a better way to deal with integer overflow.
18163         Plus, fix a warnings problem reported by Tim Ruehsen in:
18164         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
18165         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
18166         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
18167         For GCC 5, use __xalloc_oversized if both args are constants,
18168         or if pedantic.
18170 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
18172         regex: port to Sun C
18173         Reported by Daiki Ueno.
18174         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
18175         __restrict, in prototype.  This fixes a problem I introduced in
18176         the 2016-02-19 merge from glibc.
18178 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
18180         stdbool: Restore __bool_true_false_are_defined check
18181         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
18182         __bool_true_false_are_defined is still defined, even with C++11.
18184 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
18186         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
18187         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
18189 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
18191         Use GCC_LINT, not lint
18192         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
18193         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
18194         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
18195         Document problem with lint and _Noreturn.
18196         * lib/diffseq.h (IF_LINT, IF_LINT2):
18197         * lib/fts.c (sccsid):
18198         * lib/getndelim2.c (IF_LINT):
18199         * lib/gl_anylinked_list2.h (gl_linked_iterator)
18200         (gl_linked_iterator_from_to):
18201         * lib/gl_anytree_list2.h (gl_tree_iterator)
18202         (gl_tree_iterator_from_to):
18203         * lib/gl_anytree_oset.h (gl_tree_iterator):
18204         * lib/gl_array_list.c (gl_array_iterator)
18205         (gl_array_iterator_from_to):
18206         * lib/gl_array_oset.c (gl_array_iterator):
18207         * lib/gl_carray_list.c (gl_carray_iterator)
18208         (gl_carray_iterator_from_to):
18209         * lib/idcache.c:
18210         * lib/inet_ntop.c (IF_LINT):
18211         * lib/regcomp.c (build_charclass_op, create_tree):
18212         * lib/regex_internal.c (re_acquire_state)
18213         (re_acquire_state_context):
18214         * lib/trigl.c (rcsid):
18215         * lib/trim.c (IF_LINT):
18216         * lib/vasnprintf.c (IF_LINT):
18217         * lib/verify.h (assume):
18218         Treat GCC_LINT like lint.
18220 2016-05-29  Bruno Haible  <bruno@clisp.org>
18222         secure_getenv: Port to many more platforms.
18223         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
18224         functions.
18225         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
18226         for non-BSD Unix platforms and for native Windows.
18227         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
18228         Prompted by a request from Nikos Mavrogiannopoulos.
18230 2016-05-27  Eric Blake  <eblake@redhat.com>
18232         canonicalize: Fix broken probe for realpath.
18233         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
18234         in logic introduced in 54615b95.
18236 2016-05-26  Eric Blake  <eblake@redhat.com>
18238         unsetenv: relax to LGPLv2+
18239         * modules/unsetenv (License): Match setenv license.
18241 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
18243         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
18244         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
18245         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
18246         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
18247         (commonarg, dirargs, dirs, infoarg, generate_ascii)
18248         (generate_html, generate_info, generate_tex, outdir)
18249         (source_extra, split, srcfile, texarg): Move above 'version'.
18250         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
18252 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18254         manywarnings: update for GCC 6.1
18255         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18256         Add GCC 6.1 options that apply to C.
18257         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
18258         do not apply to C, are obsolescent, etc.
18260 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
18262         glob: size_t overflow checks
18263         * lib/glob.c (__has_builtin): New macro.
18264         (size_add_wrapv, glob_use_alloca): New static functions.
18265         (glob, glob_in_dir): Check for size_t overflow in several places,
18266         and fix some size_t checks that were not quite right.
18268         glob: don't assume INT_MAX < SIZE_MAX
18269         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
18270         latter is not portable to (probably theoretical) hosts where
18271         SIZE_MAX <= INT_MAX.
18273 2016-05-09  Bruno Haible  <bruno@clisp.org>
18275         Fix undefined behaviour in gettext.h.
18276         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
18277         pointer's value after the storage it points to has been freed.
18278         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
18279         Spotted by Coverity.
18281 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18283         git-version-gen: avoid undefined shift
18284         Problem reported by Mosè Giordano in:
18285         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
18286         * build-aux/git-version-gen: Avoid undefined behavior if invoked
18287         with --prefix or --fallback but without a later argument.  While
18288         we're at it, omit unnecessary quotes.
18290 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
18292         glob: merge glibc changes into lib/glob.c
18293         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
18294         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
18295         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
18296           struct dirent [BZ #19779]
18297         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
18298           callback gl_readdir
18299         2015-10-20 Convert miscellaneous function definitions to prototype style
18300         2015-10-20 Convert 113 more function definitions to prototype style
18301           (files with assertions)
18302         2015-06-12 Fix getlogin_r namespace (bug 18527).
18303         2014-02-10 Use glibc_likely instead __builtin_expect.
18304         2013-10-20 When glob pattern contains a trailing slash match only
18305           directories. Fixes bug 10278.
18306         2013-09-04 glob: silence -Wattribute warnings
18307         2013-06-07 Avoid use of "register" as optimization hint.
18308         2012-09-25 Use size_t instead of int for internal variables in glob
18309           (bug 14621)
18310         2011-07-20 Check for overflows in expressions
18311         2011-05-28 Remove unused variable
18312         2011-05-22 Add a few more alloca size checks
18313         2010-03-27 Whitespace fixes
18314         2010-03-27 Fix one more issue with the glob patch
18315         2010-03-24 Fix glob with empty pattern
18316         2008-05-27 Remove useless more "if" tests before "free"
18317         * modules/glob (Depends-on): Add stdint.
18319 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
18321         mktime: port to stricter signed overflow checking
18322         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
18323         (long_int): Require width for INT_MAX * 3 * (seconds per year),
18324         instead of merely for INT_MAX * 2.  In practice platforms that
18325         do the latter also do the former.
18326         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
18327         (shr): New static function, replacing SHR.  All uses changed.
18328         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
18329         and TIME_T_MAX.  All uses changed.
18330         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
18331         Use long_int, not time_t.
18332         (long_int_avg): New static function, replacing time_t_avg.
18333         All uses changed.  Round toward positive infinity, as that
18334         generates slightly better code.
18335         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
18336         by INT_ADD_WRAPV.
18337         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
18338         (convert_time): New static function.
18339         (ranged_convert): Use it
18340         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
18341         Use simpler test for loop exit.
18342         (__mktime_internal): Store negative of guessed offset, to simplify
18343         overflow checking.  Remove no-longer-needed test for small time_t
18344         overflows.
18346         mktime: speed up DEBUG_MKTIME benchmarks
18347         Call tzset just once, at the start, rather than for every test
18348         case.  This lets us measure the CPU cost of mktime as opposed to
18349         that of tzset.  This is relevant when TZ is not set and glibc is
18350         being used.  This speeds up tests by a factor of 40 on my Fedora
18351         23 x86-64 platform.
18352         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
18353         to call tzset and as a sanity check.  Later on, use localtime_r
18354         instead of localtime.
18356         mktime: resurrect DEBUG_MKTIME testing
18357         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
18358         Include <string.h>, for strcmp.
18360         mktime: simplify DEBUG_MKTIME
18361         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
18362         Simplify later usage accordingly.
18364         Port mktime_internal offset to unsigned time_t
18365         This avoids some assumptions about wraparound arithmetic on
18366         signed integer overflow.
18367         * lib/mktime-internal.h (mktime_offset_t): New type.
18368         (mktime_internal): Use it in decl.
18369         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
18371         * lib/mktime.c (__mktime_internal, localtime_offset):
18372         * lib/timegm.c (timegm): Use it.
18373         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
18374         (gl_FUNC_MKTIME): Require it.
18376 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
18378         xstrtol: prohibit monstrosities like "1bB"
18379         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
18380         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
18381         "B" only if the first suffix needs a base.
18382         * tests/test-xstrtol.sh: Test this.
18384 2016-04-21  Pádraig Brady  <P@draigBrady.com>
18386         xstrtod: reinstate setting of *result upon ERANGE
18387         * lib/xstrtod.c (XSTRTOD): The user may decide to use
18388         the returned limits upon ERANGE, so allow and document that.
18390 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
18392         xstrtod: modify *result only if no errors
18393         * lib/xstrtod.c (XSTRTOD).
18395 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
18397         btowc: document problems in C locale
18398         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
18399         with mbrtowc.  See: http://bugs.gnu.org/23269#32
18401 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
18403         mktime: improve integer overflow checking
18404         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
18405         (WRAPV): Remove; no longer needed.
18406         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
18407         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
18408         Remove.  Use intprops.h defns instead.
18409         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
18410         Use bool for Boolean, for clarity.
18411         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
18412         detect integer overflow.
18413         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
18415         intprops: check two's complement assumption
18416         Suggested by Eric Blake in:
18417         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
18418         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
18419         short, int, long, and (if available) long long are two's complement.
18420         * modules/intprops (Depends-on): Add 'verify'.
18422         intprops, mktime, strtol: assume two's complement
18423         These macros were not portable to every conforming C11 ones'
18424         complement platform.  It's not worth the hassle of porting to some
18425         platforms that use ones' complement or signed magnitude, as such
18426         platforms are almost purely theoretical nowadays and porting even
18427         to some of them makes the code harder to review for little
18428         practical benefit.  Problem reported by Florian Weimer in:
18429         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
18430         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
18431         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
18432         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
18433         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
18434         (TYPE_SIGNED_MAGNITUDE):
18435         Remove.  All uses rewritten to assume two's complement, which is
18436         all we can reasonably test nowadays anyway.
18437         * top/maint.mk (_intprops_names): Remove the removed macros.
18439 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
18441         stdint: port to strict C11 left shift
18442         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
18443         Pacify clang -Wshift-negative-value, which should be an issue only
18444         on clang setups where stdint.h does not conform to C11 or to C++11.
18445         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
18447 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
18449         mbrtowc: work around glibc bug#19932
18450         Fix mbrtowc so that it never returns -1 in the C locale,
18451         as this conflicts with a future version of POSIX
18452         http://austingroupbugs.net/view.php?id=663#c2738
18453         and causes problems with GNU grep: http://bugs.gnu.org/23234
18454         See glibc bug 19932:
18455         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
18456         * doc/posix-functions/mbrlen.texi (mbrlen):
18457         * doc/posix-functions/mbrtowc.texi (mbrtowc):
18458         Document the glibc bug.
18459         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
18460         Include hard-locale.h, locale.h.
18461         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
18462         if the bug is possible.
18463         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
18464         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
18465         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
18466         * modules/mbrtowc (Depends-on): Add hard-locale.
18467         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
18468         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
18469         * tests/test-mbrtowc5.sh: New file.
18471 2016-04-03  Pedro Alves  <palves@redhat.com>
18473         stdint: detect good enough pre-C++11 stdint.h in C++ mode
18474         When gnulib is configured in C++ mode for a system with a working C99
18475         implementation of stdint.h that predates C++11, gnulib ends up
18476         substituting stdint.h anyway.  This works on most targets, but on e.g.,
18477         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
18478         MinGW is LLP64.  Instead of trying to detect the right types, detect
18479         good-enough-pre-C++11 stdint.h and in such case define
18480         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
18481         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
18482         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
18483         conforms to C99.  If it does, check whether it hides symbols
18484         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
18485         does, define those macros in config.h.
18487 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
18489         argp: merge changes from glibc
18490         Among other things, this should fix problems found by a Coverity
18491         scan and reported by Andrei Borzenkov:
18492         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
18493         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
18494         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
18495         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
18496         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
18497         * lib/argp.h:
18498         Merge changes from glibc.
18499         * tests/test-argp-2.sh: Adjust to match new behavior.
18501 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
18503         stddef: support configuring with g++
18504         Problem reported by Ángel González in:
18505         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
18506         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
18507         Do not define if _GCC_MAX_ALIGN_T is defined.
18509 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
18511         test-framework-sh: minor cleanups
18512         * tests/init.sh (testdir_prefix_): Output a trailing newline,
18513         since strictly speaking POSIX requires this.
18514         (setup_): Do not use the variable 'fail', as that makes the
18515         trace output harder to read ('fail' is typically used by
18516         tests to mean the test failed).  Treat // portably.
18517         Check that new directory is not merely a sibling of the tmp dir.
18518         Avoid unnecessary invocation of tr.
18520         test-framework-sh: revert port to NetBSD 7.0
18521         It was a false alarm; I misinterpreted Assaf Gordon's report.
18522         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
18523         Restore.
18524         (test_dir_): Adjust to mktempd_ change.
18525         (mktempd_): Restore 2nd arg.  Use -t again.
18526         (base_template_, template_, nx_): Resurrect old code.
18528         Port better to Alpine Linux
18529         Its diff implementation does not support -c, but does support -U3.
18530         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
18531         * tests/init.sh (diff_opt_): New var.
18532         (compare_): Prefer diff -U3 to diff -c to plain diff.
18534 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18536         test-framework-sh: port to NetBSD 7.0
18537         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
18538         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
18539         Remove.  All uses removed.
18540         (test_dir_): Adjust to mktempd_ change.
18541         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
18542         (base_template_, template_, nx_): Simplify by hardcoding.
18544 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
18546         gitlog-to-changelog: suppress ignored chatter
18547         * build-aux/gitlog-to-changelog: Do not warn about skipping
18548         an SHA if it would have been ignored anyway.
18550 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
18552         setlocale: add "sv" to Windows language table
18553         * lib/setlocale.c (language_table) [W32]: Add "sv".
18554         Reported in <https://savannah.gnu.org/bugs/?44588>.
18556 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
18558         sys_select: port to new Cygwin
18559         Problem reported by Ken Brown in:
18560         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
18561         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
18562         diagnostics.
18564 2016-03-17  Jim Meyering  <meyering@fb.com>
18566         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
18567         * tests/test-userspec.c (main): Remove unnecessary braces and fix
18568         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
18569           test-userspec.c:176:9: error: statement is indented as if it were \
18570             guarded by... [-Werror=misleading-indentation]
18571                    {
18572                    ^
18573           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
18574                  if (!diag && !T[i].result)
18575                  ^~
18577 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18579         time_rz: port to clang -Wunused-const-variable
18580         * lib/time_rz.c (TZ): Remove.  All uses removed.
18582         std-gnu11: improve clang support
18583         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
18584         2016-03-15 Also try clang
18585         2016-03-15 Port C11 and C++11 testing to clang
18587         select: port more to Intel 2016.1.150 compiler
18588         Problem reported by Balázs Hajgató in:
18589         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
18590         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
18592 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
18594         select: try to port to 2016.1.150 compiler
18595         Problem reported by Balázs Hajgató in:
18596         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
18597         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
18598         POSIX specifies 'restrict'.
18600 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
18602         localename-tests: memory allocation fixes
18603         * tests/test-localename.c (test_locale_name)
18604         (test_locale_name_thread): Don't call freelocale on a locale
18605         that was the base of a successful newlocale, as that
18606         results in a double free.  Problem reported by Assaf Gordon.
18607         (test_locale_name_thread): Free saved names after use, to pacify
18608         gcc -fsanitize=address.
18610 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
18612         intprops: make .h file license match module
18613         * lib/intprops.h: Change the license wording to match glibc format.
18614         This is what is in modules/intprops anyway.  See:
18615         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
18617 2016-03-08  Eric Blake  <eblake@redhat.com>
18619         acl: fix missing return on Cygwin
18620         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
18621         fall off end of function. Fixes http://bugs.gnu.org/22949
18623 2016-03-05  Bruno Haible  <bruno@clisp.org>
18625         extern-inline: port to PGI CC
18626         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
18627         keyword 'inline'.
18628         Reported by Adam James Stewart in:
18629         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
18631 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18633         signbit: port back to pre-C++11 GCC
18634         * lib/math.in.h (signbit): Do previous change only if
18635         __cplusplus < 201103.  See Jonathan Wakely in:
18636         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
18638 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
18640         mountlist: recognize autofs-mounted remote file systems, too
18641         Originally reported at: https://bugzilla.redhat.com/1309247
18642         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
18643         "-hosts" because it is used by autofs to mount remote file systems.
18645 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
18647         signbit: port to C++ with GCC 6
18648         * lib/math.in.h (signbit) [__cplusplus]:
18649         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
18650         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
18652         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
18654         regex: make it closer to libc
18655         Make Idx a signed type, rather than possibly unsigned.
18656         The unsignedness was not really buying us anything, since the code
18657         overflows for other reasons before getting to PTRDIFF_MAX.  Making
18658         it signed allows us to use -1 and -2 with abandon, like libc does,
18659         thus lessening the number of differences between gnulib and libc.
18660         Also, it should help avoid gratuitous warnings like the one
18661         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
18662         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
18665         regex: merge patches from libc
18667         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
18668         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
18669         Convert miscellaneous function definitions to prototype style.
18670         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
18671         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
18672         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
18673         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
18674         (re_search_internal):
18675         Convert to prototype-style function definition.
18676         Use internal_function for internal functions.
18678 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
18680         stdalign: port to older HP and IBM cc
18681         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
18682         C compilers, by checking their version numbers.  These version
18683         numbers appear in MariaDB and in Qt code that dates way back and
18684         that conditiionally uses the 'aligned' attribute.
18686 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18688         stdalign: port to clang 3.7.0
18689         Problem reported by Herbert J. Skuhra in:
18690         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
18691         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
18692         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
18693         https://llvm.org/bugs/show_bug.cgi?id=26547
18695 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18697         readdir_r: now obsolescent
18698         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
18699         * lib/mountlist.c (read_file_system_list): Add a FIXME.
18701 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
18703         misc: port better to gcc -fsanitize=address
18704         Without these patches, ./configure CFLAGS='-fsanitize=address'
18705         would compute incorrect values.  This patch fixes some (but not all)
18706         test failures with recent glibc, with this configuration.
18707         * m4/acl.m4 (gl_ACL_GET_FILE):
18708         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
18709         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
18710         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
18711         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
18712         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
18713         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
18714         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
18715         * m4/getline.m4 (gl_FUNC_GETLINE):
18716         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
18717         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
18718         * m4/regex.m4 (gl_REGEX):
18719         * m4/strndup.m4 (gl_FUNC_STRNDUP):
18720         * tests/test-calloc-gnu.c (main):
18721         * tests/test-duplocale.c (main):
18722         * tests/test-getgroups.c (main):
18723         * tests/test-getline.c (main):
18724         * tests/test-inttostr.c (main):
18725         * tests/test-localename.c (test_locale_name)
18726         (test_locale_name_thread, test_locale_name_environ)
18727         (test_locale_name_default):
18728         * tests/test-regex.c (main):
18729         * tests/test-setlocale1.c (main):
18730         * tests/test-stat.h (test_stat_func):
18731         Free heap-allocated storage before exiting.
18732         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
18733         Don't match *_foo symbols inserted by AddressSanitizer.
18734         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
18736 2016-02-02  Jim Meyering  <meyering@fb.com>
18738         verify-tests: also remove stray test-verify.Tpo
18739         * modules/verify-tests (Makefile.am): Arrange for "make clean"
18740         to remove the test-verify.Tpo file that is left behind by
18741         the automake-generated rule upon compilation failure.
18742         Otherwise, that .Tpo file would cause a failed "make distcheck"
18743         at least for grep.
18745 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
18747         std-gnu11: new module
18748         This makes it easier for applications to prefer C11 and C++11
18749         to older variants, when compiling C and C++ code.
18750         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
18751         a nontrivial chunk of GPLed Autoconf source code.
18752         * COPYING: Mention the m4/*.m4 copyright situation.
18753         * MODULES.html.sh (std-gnu11): New module.
18754         * m4/std-gnu11.m4, modules/std-gnu11: New files.
18756 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18758         get-permissions, strftime: fix grammar in comments
18759         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
18760         some grammar fixes Alan Mackenzie made to GNU Emacs.
18762 2016-01-25  Daiki Ueno  <ueno@gnu.org>
18764         gettext: mark as obsolete
18765         Suggested by Paul Eggert in:
18766         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
18767         * modules/gettext (Status): Mark as obsolete.
18768         (Notice): Suggest to use 'gettext-h' instead.
18769         * modules/gettext-h (Description): Suggest GNU gettext, instead of
18770         the 'gettext' module.
18772 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18774         gnulib-tool: don't give up on ln -s so easily
18775         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
18776         because an earlier one failed.  The targets could be on different
18777         file systems.  Problem reported by KO Myung-Hun in:
18778         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
18780         closedir: fix OS/2-related typos
18781         Problem reported by KO Myung-Hun in:
18782         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
18783         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
18784         in the last couple of changes.
18786 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
18788         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
18789         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
18790         copying a directory.
18792 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
18794         regex: treat [x] as x if x is a unibyte encoding error
18795         Problem reported by Aharon Robbins in:
18796         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
18797         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
18798         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
18800         closedir, dirfd, opendir: port to OpenSolaris 5.10
18801         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
18802         * m4/dirfd.m4 (gl_FUNC_DIRFD):
18803         * m4/opendir.m4 (gl_FUNC_OPENDIR):
18804         Don't use ${word##pat} substitution, as it doesn't work in
18805         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
18806         http://bugs.gnu.org/22443#11
18808 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18810         bootstrap: use American spelling
18811         * build-aux/bootstrap: Honor American spelling.
18813 2016-01-22  Karl Berry  <karl@freefriends.org>
18815         * doc/posix-functions/localtime.texi,
18816         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
18818 2016-01-21  Bruno Haible  <bruno@clisp.org>
18820         hash-pjw-bare: fix comment
18821         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
18823         wcwidth: Replace also on OpenBSD 5.8
18824         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
18825         * doc/posix-functions/wcwidth.texi: Update.
18827 2016-01-20  Pádraig Brady  <P@draigBrady.com>
18829         gnu-web-doc-update: fix addition of new files
18830         If there were already added (emnpty) dirs,
18831         then cvs aborts the add with the message:
18832           cvs [add aborted]: there is a version in <./dirname> already
18833         * build-aux/gnu-web-doc-update: Add directories separately
18834         to the addition of files, to avoid the above issue
18835         impacting the addition of files.
18837 2016-01-19  Daiki Ueno  <ueno@gnu.org>
18839         utimens-tests: avoid pulling gettext .m4 files
18840         Although this is not the right fix to the original problem:
18841         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
18842         it makes it possible again for consumer projects to use arbitrary
18843         version of gettext, through the steps described at:
18844         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
18845         See here for details:
18846         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
18847         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
18848         'gettext'.
18849         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
18850         'gettext'.
18852 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18854         regex: pacify static checkers
18855         Problem and draft fix reported by Aharon Robbins in:
18856         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18857         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
18858         Clear memory to pacify static checkers.
18860         regex: fix [ diagnostic
18861         Problem and fix reported by Aharon Robbins in:
18862         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18863         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
18865         regex: fix memory leaks
18866         Problem and draft fix reported by Aharon Robbins in:
18867         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
18868         * lib/regcomp.c (build_range_exp, build_charclass_op)
18869         * lib/regex_internal.c (re_dfa_add_node):
18870         Fix memory leak on failure.
18872 2016-01-18  Pádraig Brady  <P@draigBrady.com>
18874         fts: don't unconditionally use leaf optimization for NFS
18875         NFS st_nlink are not accurate on all implementations,
18876         leading to aborts() if that assumption is made.
18877         See <https://bugzilla.redhat.com/1299169>
18878         * lib/fts.c (leaf_optimization_applies): Remove NFS from
18879         the white list, and document the issue.
18881 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18882             KO Myung-Hun  <komh@chollian.net>
18884         gnulib-tool: don't assume ln -s works
18885         * gnulib-tool (func_ln_s): New function.
18886         (func_ln): Use it.
18888 2016-01-15  KO Myung-Hun  <komh@chollian.net>
18890         utimes: detect utimes() correctly on OS/2 kLIBC
18891         utimes() of OS/2 kLIBC has some limitations.
18892         1. OS/2 itself supports a file date since 1980 year in local time.
18893         2. OS/2 itself supports only even seconds for a file time.
18894         3. utimes() of OS/2 kLIBC does not work on an opened file.
18895         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
18896         * doc/posix-functions/utimes.texi: Document the above limitations of
18897         utimes() on OS/2 kLIBC.
18899 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18900             KO Myung-Hun  <komh@chollian.net>
18902         openat_proc_name: port to OS/2 kLIBC
18903         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
18904         instead of /proc/self/fd.
18905         * lib/openat-proc.c (openat_proc_name):
18906         Don't assume file name length is less than INT_MAX.
18907         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
18909 2016-01-14  KO Myung-Hun  <komh@chollian.net>
18911         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
18912         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
18913         definitions of intptr_t and uintptr_t (which use int and unsigned)
18914         to avoid clashes with declarations of system functions like sbrk.
18915         * lib/stdint.in.h (intptr_t, uintptr_t): Check
18916         _INTPTR_T_DECLARED before defining them.
18918         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
18919         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
18920         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
18921         Declare on kLIBC.
18922         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
18923         fd associated with dirp.
18924         (_gl_register_dirp_fd): New. Register fd associated with dirp to
18925         dirp_fd_list.
18926         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
18927         (dirfd): Implemented for kLIBC.
18928         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
18929         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
18930         succeeds.
18931         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
18932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18933         (REPLACE_DIRFD): Define to 1 if replaced.
18934         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
18935         * modules/closedir (Depends-on): Add dirfd.
18936         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
18937         condition.
18938         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
18939         * modules/opendir (Depends-on): Add dirfd.
18941         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
18942         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
18943         * lib/dup.c (dup_nothrow): New.
18944         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
18945         (klibc_dup2): New.
18946         * lib/fcntl.c (klibc_fcntl): New.
18947         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
18948         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
18949         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
18950         fd.
18952         pipe_filter_ii_execute: port to OS/2 kLIBC
18953         Pipes on kLIBC do not support O_NONBLOCK like Win32.
18954         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
18955         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
18956         Reuse Win32 code on OS/2 kLIBC.
18957         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
18958         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
18960         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
18961         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
18962         static inline function.  The implementation of wcwidth in wcwidth.c
18963         causes a "conflicting types" error.
18964         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
18966         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
18967         spawn() on OS/2 kLIBC is not silly like one on Windows
18968         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
18969         empty string on OS/2 kLIBC.
18971         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
18972         On OS/2 kLIBC, select() works only on sockets.
18973         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
18975         binary-io: don't put fd in binary mode if it is a console on EMX
18976         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
18977         a console on EMX.
18979 2016-01-15  Pádraig Brady  <P@draigBrady.com>
18981         doc: mention unfixed issues with unsupported localtime() values
18982         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
18983         returns nonsense for localtime(2^56).
18984         * doc/posix-functions/localtime_r.texi: Likewise.
18986 2016-01-14  Pádraig Brady  <P@draigBrady.com>
18988         doc: mention setlocale() issues on OpenBSD
18989         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
18990         never fails, and the need to check categories individually.
18992 2016-01-14  Pádraig Brady  <P@draigBrady.com>
18994         sig2str: list all signals on FreeBSD >= 7
18995         FreeBSD >= 7 is contravening POSIX by not defining NSIG
18996         to the maximal statically defined signal value.
18997         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
18998         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
18999         where available, even when NSIG is defined.
19001 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
19003         acl-permissions: port to USE_ACL==0 platforms
19004         I ran into this problem when building bleeding-edge GNU Emacs
19005         with gcc -fsanitize=address on Fedora 23.  On this platform
19006         the ACL library does not pass the 'configure' test and Emacs
19007         then does not build due in part to what appear to be typos in the
19008         ACL part of Gnulib.
19009         * lib/acl-internal.c (free_permission_context):
19010         * lib/acl-internal.h (struct permission_context):
19011         Test whether USE_ACL is nonzero, not whether it is defined.
19013 2016-01-12  Martin Sebor  <msebor@redhat.com>
19015         mktime: rename macro to avoid glibc clash
19016         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
19017         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
19019 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
19021         Port "$@" to OpenIndiana ksh93
19022         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
19023         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
19024         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
19025         bug long-dead shells, so remove the workaround.
19026         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
19027         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
19028         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
19029         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
19030         Use "$@" instead of ${1+"$@"}.
19032         Port Universal Time settings to strict POSIX
19033         * build-aux/announce-gen, build-aux/bootstrap:
19034         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
19035         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
19036         * build-aux/gnupload, build-aux/mkinstalldirs:
19037         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
19038         * build-aux/update-copyright, build-aux/useless-if-before-free:
19039         * build-aux/vc-list-files, tests/test-strftime.c:
19040         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
19041         but POSIX says the behavior of TZ="UTC" is undefined.
19043 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
19045         msvc-inval: fix problem with unset shell var
19046         Problem reported by Karl Berry in:
19047         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
19048         * modules/msvc-inval (Depends-on):
19049         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
19050         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
19052 2016-01-01  Pádraig Brady  <P@draigBrady.com>
19054         tests: for compare_(), use cmp -s where available
19055         * tests/init.sh (compare_): Only fall back to cmp without
19056         the POSIX defined -s option, where this is not available.
19058 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
19060         version-etc: new year
19061         * build-aux/gendocs.sh (version):
19062         * doc/gendocs_template:
19063         * doc/gendocs_template_min:
19064         * doc/gnulib.texi:
19065         * lib/version-etc.c (COPYRIGHT_YEAR):
19066         Update copyright dates by hand in templates and the like.
19067         * all files: Run 'make update-copyright'.
19069 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
19071         human: fix output buffer overrun by 1
19072         * lib/human.c (human_readable): Fix off-by-one typo in buffer
19073         calculation that could lead to a one-byte buffer overrun.
19075 2015-12-28  Daiki Ueno  <ueno@gnu.org>
19077         maint: fix operator precedence in mbrtowc test
19078         This is a fix for test breakage introduced by commit 45228d96; the
19079         equality expression must be parenthesized when negated with '!',
19080         otherwise we always get:
19082           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
19084         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
19085         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
19087 2015-12-23  James Youngman  <jay@gnu.org>
19089         regexprops-generic: update from regex.h
19090         * doc/regexprops-generic.texi: update by running the regexprops binary
19091         from findutils (the command line is 'regexprops "Regular Expressions"
19092         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
19093         gnulib with GNU grep had made this document out-of-date.
19095 2015-12-23  Pádraig Brady  <P@draigBrady.com>
19097         strftime-tests: avoid false failure on OS X
19098         * tests/test-strftime.c (struct localtime_rz_test): Add an
19099         ahistorical member which is used to warn rather than fail
19100         when tm_isdst isn't set for such entries.  This is the case for
19101         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
19103 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
19105         fts: ensure leaf optimization is used for NFS
19106         NFS provides usable dirent.d_type but not necessarily for all entries
19107         of large directories.  See <https://bugzilla.redhat.com/1252549>
19108         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
19110 2015-12-20  Pádraig Brady  <P@draigBrady.com>
19112         fts: enable leaf optimization for XFS
19113         XFS provides usable dirent.d_type only for DT_DIR,
19114         but the noleaf optimization still applies.
19115         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
19117 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
19119         intprops: comment fix
19120         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
19121         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
19123         intprops-test: work around GCC bug 68971
19124         Problem reported by Pádraig Brady in:
19125         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
19126         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
19127         (main): Add a case that better tests 64-bit long in this area.
19129 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
19131         gnulib-tool: allow multiple --local-dir usage
19132         * gnulib-tool: Use --local-dir to construct compound
19133         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
19134         PATH_SEPARATOR early.
19135         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
19136         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
19137         func_determine_path_separator because that needs to be detected
19138         earlier now.
19139         (func_determine_path_separator): New function.
19140         (func_path_foreach, func_path_foreach_inner): New functions.
19141         (func_path_prepend, func_path_append): Likewise.
19142         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
19143         (func_lookup_file, func_all_modules): Use new functions to work
19144         with local_gnulib_path.
19145         (func_modules_in_dir, func_exists_module): New callbacks for
19146         func_path_foreach.
19147         (func_exists_module, func_get_tests_module): Likewise.
19148         (func_is_local_file, func_should_symlink): New helper methods.
19149         (func_add_file, func_update_file): Use new func_should_symlink
19150         instead, DRY.
19151         (func_reconstruct_cached_local_gnulib_path): New helper.
19152         (func_reconstruct_cached_dir): New callback.
19153         (func_import): The cached_local_gnulib_dir renamed to
19154         cached_local_gnulib_path similarly to local_gnulib_dir.
19155         Use new func_reconstruct_cached_local_gnulib_path.
19156         (func_count_relative_local_gnulib_path): New sub-method.
19157         (func_create_testdir): Use func_should_symlink, DRY.
19158         (func_create_megatestdir): Use new functions to work with
19159         local_gnulib_path correctly.
19160         (func_append_local_dir): New helper.
19162 2015-12-08  Pádraig Brady  <P@draigBrady.com>
19164         fix freadptr to work with ungetc on all uClibc configs
19165         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
19166         where GNU coreutils cut(1) generates invalid output on uClibc
19167         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
19168         * lib/freadptr.c (freadptr): Return NULL if there are
19169         ungotten chars.  In this case freadseek() will iterate
19170         again to process the ungotten character.
19172 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
19174         xalloc-oversized: improve performance with GCC 5
19175         * lib/xalloc-oversized.h (xalloc_oversized):
19176         Improve performance with GCC 5 by using __builtin_mul_overflow.
19178 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19180         intprops: new public macro EXPR_SIGNED
19181         Emacs can use this macro, so make it public.
19182         * doc/intprops.texi (Arithmetic Type Properties): Rename from
19183         'Integer Type Determination', since some of these macros apply
19184         to non-integer types.  Clarify what kinds of constant expressions
19185         these macros return.  Say when the arguments can be non-integers.
19186         Mention newly published macro EXPR_SIGNED.
19187         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
19188         make it public.  All uses changed.
19190         intprops: fix typo in clang port
19191         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
19192         '__builtin_add_overflow' that is not caught by compiler.
19194 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
19196         test-timespec: fix typo in previous change
19197         * tests/test-timespec.c (main): Fix typo that reduced test quality.
19199         timespec-sub: fix overflow bug; add tests
19200         * lib/timespec-add.c (timespec_add):
19201         * lib/timespec-sub.c (timespec_sub):
19202         Work even if time_t is narrower than int (a theoretical
19203         possibility).  Redo code for a bit more clarity.
19204         * lib/timespec-sub.c (timespec_sub):
19205         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
19206         * modules/timespec-tests, tests/test-timespec.c: New files.
19208         intprops-test: suppress -Woverlength-strings
19209         Problem reported by Pádraig Brady in:
19210         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
19211         It is not worth the hassle to port this test to compilers that
19212         cannot handle long strings in diagnostics.
19213         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
19215 2015-11-03  Pádraig Brady  <P@draigBrady.com>
19217         quotearg: add quotearg_n_style_colon()
19218         This quotes with default options of the specified style,
19219         but with quoting enabled for instances of ':'.
19220         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
19221         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
19223 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
19225         intprops: revise _WRAPV macros, revert _OVERFLOW
19226         The incompatible changes to the _OVERFLOW macros were too much of
19227         a hassle in practice, so revert them.  Instead, change the new
19228         _WRAPV macros to make them closer in behavior to GCC 5's new
19229         builtin_add_overflow etc. functions.  No other software was using
19230         these newly-added macros yet, so this should be OK.
19231         * NEWS: Revert previous change, since the incompatible change
19232         has been reverted, and nobody used the incompatible version.
19233         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
19234         Document revised behavior.
19235         (Integer Range Overflow): Adjust example to match above revisions.
19236         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
19237         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
19238         these can be used in integer constant expressions again.
19239         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
19240         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
19241         needed.
19242         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
19243         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
19244         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
19245         Remove, as they did not seem that useful.
19246         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
19247         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
19248         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
19249         Support new semantics.
19250         (__has_builtin): New macro, if not alreay defined.
19251         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
19252         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
19253         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
19254         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
19255         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
19256         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
19257         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
19258         New macros.
19259         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
19261 2015-11-03  Jim Meyering  <meyering@fb.com>
19263         intprops: add parentheses for when OP has precedence lower than "-"
19264         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
19265         "a OP b" must be parenthesized for when OP is like "<<", which has
19266         lower precedence than the following "-". Reported by Pádraig Brady.
19268 2015-11-03  Pádraig Brady  <P@draigBrady.com>
19270         quotearg: constify get_quoting_style parameters
19271         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
19272         * lib/quotearg.c (get_quoting_style): Likewise.
19274 2015-11-02  Pádraig Brady  <P@draigBrady.com>
19276         quotearg: add support for $'' shell escaping
19277         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
19278         items and descriptions.
19279         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
19280         above types by quoting like "shell", but using $'...' syntax
19281         for non printable characters, which should provide unambiguous
19282         printable output for any input.
19283         * tests/test-quotearg-simple.c: Update accordingly.
19285 2015-11-02  Pádraig Brady  <P@draigBrady.com>
19287         maint: use a more standard return from mbrtowc test
19288         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
19289         from the test program as this is non standard and often
19290         indicates an unhandled case in the test program.
19291         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
19293 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
19295         intprops: add WRAPV and const flavors for GCC 5
19296         If available, use GCC 5's builtin functions for efficient integer
19297         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
19298         and safely compute the low-order bits of the correct answer.
19299         A downside of these efficient functions is that they cannot be
19300         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
19301         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
19302         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
19303         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
19304         Document the changes.
19305         (Wraparound Arithmetic): New section.
19306         (Integer Range Overflow):
19307         Put this subsection last, since it's least useful.
19308         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
19309         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
19310         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
19311         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
19312         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
19313         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
19314         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
19315         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
19316         New macros.
19317         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19318         Generate calls to GCC builtins if available, for speed.
19319         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
19320         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
19321         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
19322         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
19323         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
19324         (CHECK_QUOTIENT, CHECK_REMAINDER):
19325         Test WRAPV and CONST flavors (when available) too.
19327 2015-10-30  Pádraig Brady  <P@draigBrady.com>
19329         doc: use extended timezone format in iso-8601 example
19330         * doc/parse-datetime.texi: The standard states that extended format
19331         is to be used consistently throughout.
19332         Note that lib/parse-datetime.y can handle either tz format.
19334 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
19336         stdalign: port to Sun C 5.9
19337         * doc/posix-headers/stdalign.texi: Document this.
19338         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
19339         __attribute__ ((__aligned__ (...))).
19341 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
19343         time_rz: fix comment about tzalloc
19344         * lib/time_rz.c (tzalloc): Fix comment.
19346 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19348         stdalign: work around pre-4.9 GCC x86 bug
19349         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
19350         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
19351         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
19353 2015-10-18  Pádraig Brady  <P@draigBrady.com>
19355         maint.mk: sc_tight_scope: remove extraneous expressions
19356         * top/maint.mk (tight_scope): This is not really required since
19357         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
19358         that matches all nm entries.  But it does remove extraneous entries
19359         that may be confusing or cause issue in future maintenance.
19361 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19363         time_rz: return NULL if localtime_r fails
19364         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
19365         while still attempting to pacify bleeding-edge GCC.
19367         fts: port to C11 alignof
19368         * doc/posix-headers/stdalign.texi (stdalign.h):
19369         Document the C11 restriction.
19370         * lib/fts.c: Include stddef.h, for max_align_t.
19371         (fts_alloc): Align using max_align_t, not FTSENT.
19372         * modules/fts (Depends-on): Add stddef.
19374 2015-10-18  Jim Meyering  <meyering@fb.com>
19376         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
19377         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
19378         would see this:
19380         lib/time_rz.c: In function 'localtime_rz':
19381         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
19382           [-Werror=nonnull]
19383                    if (tm && !save_abbr (tz, tm))
19384                        ^
19386         That was complaining about "tm" because it is a parameter that was
19387         declared with the __nonnull__ attribute.
19388         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
19389         result of localtime_r.
19391 2015-10-17  Jim Meyering  <meyering@fb.com>
19393         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
19394         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
19395         name-extraction regexp mistakenly used \S+, and would mistakenly
19396         extract "*F" from "extern int *F()" rather than the desired "F".
19397         Use \w+ instead.
19399 2015-10-17  Jim Meyering  <meyering@fb.com>
19401         maint.mk: sc_tight_scope: factor and support OS X
19402         * top/maint.mk (_gl_tight_scope): Address three issues:
19403         - factor out four instances of code that wraps a string in "^...$"
19404         - allow nm-reported symbol names to have an optional leading "_"
19405         - add "main" to the list of ignored variable names, because on os x,
19406         "main" has nm-reported type "S" in the variable-checking section.
19408 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
19410         safe-alloc-tests: fix typo in license header
19411         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
19413 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
19415         copy-file: fix mem leak in error case
19416         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
19417         upon error opening or performing I/O to the src and dest files.
19419 2015-10-15  Mike Frysinger  <vapier@chromium.org>
19421         localename: control langinfo.h inclusion
19422         This header is only used to work around buggy behavior in old
19423         versions of glibc, so do not include it all the time.  Otherwise
19424         we get build failures on systems that do not provide langinfo.h.
19425         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
19426         in the source later on.
19427         The patch was originally submitted to gettext as:
19428         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
19430 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
19432         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
19433         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
19434         * lib/u64.c, lib/unistd.c:
19435         Append 'typedef int dummy;', to pacify compilers that are picky
19436         about empty translation units.
19438 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
19440         accept4-tests: fix to avoid non portable flags
19441         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
19442         as they are the only documented ones, and passing others may trigger
19443         EINVAL (seen on FreeBSD 10.1-RELEASE).
19444         * doc/glibc-functions/accept4.texi: Mention that we don't provide
19445         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
19447 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
19449         gnulib-tool: fix tests of 'extensions' module
19450         This complements f8fe25fab60e3c687a124 commit.
19451         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
19452         emitting of initial gl_EARLY macros.
19453         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
19454         replaced with func_emit_pre_early_macros call.
19456 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19458         unicase/locale-language: fix typo in utf-8 cookie
19459         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
19460         Problem reported by Zbigniew Jędrzejewski-Szmek.
19462 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
19464         xalloc: do not worry about GCC 5 warning on 32 bit
19465         * lib/xalloc.h: Revert previous change.
19466         I found a better way to fix this in coreutils.
19468 2015-10-02  Pádraig Brady  <P@draigBrady.com>
19470         xalloc: avoid GCC 5.1 warning on 32 bit
19471         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
19472         xalloc_oversized(), which was seen to give this warning
19473         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
19474         when simplifying conditional".
19476 2015-10-02  Daiki Ueno  <ueno@gnu.org>
19478         uniname/uniname-tests: avoid compiler warnings
19479         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
19480         unused local variables.
19481         (test_alias_lookup): Fix alias name display in failure cases.
19483 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
19485         c-ctype: do not worry about EBCDIC + char signed
19486         Drop support for EBCDIC with char being signed, as this breaks too
19487         many programs.  Problem reported by Ben Pfaff in:
19488         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
19489         * lib/c-ctype.h: Verify that we are not using EBCDIC with
19490         char being signed.
19491         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
19492         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
19493         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
19494         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
19495         * tests/test-c-ctype.c (test_all):
19496         Simplify by assuming standard char values cannot be negative.
19497         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
19499 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19501         c-ctype: port better to z/OS EBCDIC
19502         Problems reported by Daniel Richard G. in:
19503         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
19504         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
19505         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
19506         (_C_CTYPE_OTHER_CNTRL): New macro.
19507         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
19508         from SCHAR_MIN, as the functions are defined only from values
19509         promoted from char or from unsigned char, not necessarily from
19510         signed char.
19512 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
19514         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
19516         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
19517         and ARFLAGS variables.  Doing this unconditionally could break
19518         later Automake's AM_PROG_AR invocation (at least it's
19519         AC_CHECK_TOOLS call to detect correct 'ar' binary).
19521         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
19522         Amsterdam Compiler Kit, so make the previous code to have effects
19523         only on ACK, and rather automatically call the Automake's
19524         AM_PROG_AR as soon as possible to decide other cases.
19526         References:
19527         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
19529         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
19530         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
19531         is possible, keep setting AR/ARFLAGS to reasonable defaults.
19532         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
19533         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
19534         'extensions' module is used.
19535         * modules/extensions (configure.ac-early): Remove as this snippet
19536         is added to gnulib-comp.m4 earlier anyway.
19538 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19540         sockets: MS Windows initalization fixes
19541         Problem reported by Test User in:
19542         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
19543         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
19544         Correct the endianness.
19545         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
19546         number mismatch, not just on <.  Cleanup before any such failure.
19548 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
19550         gc: fix detection of installed libgcrypt version
19551         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
19552         at least as recent as 1.4.4.  The previously used macro is not
19553         available now, since modules were removed in version 1.6.0.
19555 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
19557         c-ctype: rewrite to use inline functions
19558         This simplifies maintenance, since it makes for just one
19559         implementation of each function, letting the compiler have the fun
19560         of optimization.  In practice this works well nowadays with GCC.
19561         E.g., c_isascii might need only three instructions even though the
19562         source code lists every ASCII character individually in a large
19563         switch statement.
19564         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
19565         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
19566         * NEWS: Document the API change.
19567         * lib/c-ctype.c: Drastically simplify, since this now just expands
19568         inline functions.
19569         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
19570         (C_CTYPE_INLINE): New macro.
19571         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
19572         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
19573         Verify that either ASCII or EBCDIC is being used.
19574         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
19575         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
19576         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
19577         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
19578         New private macros.
19579         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
19580         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
19581         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
19582         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
19583         (c_tolower, c_toupper): When converting, return the unsigned char,
19584         as that is what z/OS does.
19585         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
19586         of some c-ctype.h macros.
19587         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
19588         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
19589         c_tolower promotion to be compatible with z/OS.
19591 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
19593         gitlog-to-changelog: trim only trailing whitespaces
19594         This is fix for --format regression introduced by commit
19595         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
19596         doubled %n string) had no effect anymore.  This format
19597         specification has been used e.g. by GNU paxuitils (commit
19598         edfd8bcc3).
19600         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
19601         newlines in commmit messages.
19603 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
19605         Test that c_iscntrl agrees with iscntrl, etc.
19606         Suggested by Daniel Richard G. in:
19607         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
19608         * modules/c-ctype-tests (Depends-on): Add ctype.
19609         * tests/test-c-ctype.c: Include <ctype.h>.
19610         (NCHARS): New constant.
19611         (test_agree_with_C_locale): New function.
19612         (main): Use it.
19613         (test_all): Use named constants.
19615         c-ctype: improve c_isascii testing
19616         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
19617         Add a test to count the number of ASCII characters.
19619 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
19621         savewd: remove SAVEWD_CHDIR_READABLE
19622         It was problematic in the light of file systems that ignore umask.
19623         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
19624         * NEWS: Document this.
19625         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
19626         successful, -1 (setting errno) on failure, rather than something
19627         more complicated than that.
19628         * lib/mkdir-p.c (make_dir_parents):
19629         Do not use SAVEWD_CHDIR_READABLE.
19630         * lib/savewd.c (savewd_chdir):
19631         Remove support for SAVEWD_CHDIR_READABLE.
19632         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
19634         c-ctype: port better to EBCDIC
19635         Problems reported by Daniel Richard G. in
19636         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
19637         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
19638         Include "verify.h".
19639         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
19640         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
19641         Define as enum constants with value false, if not defined, so that
19642         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
19643         code more portable, as both branches of the 'if' are compiled on
19644         all platforms.
19645         (C_CTYPE_EBCDIC): New constant.
19646         Verify that the character set is either ASCII or EBCDIC.
19647         (to_char): New static function.
19648         (c_isascii, c_iscntrl):
19649         Assume standard control-character assignments for EBCDIC.
19650         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
19651         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
19652         Rewrite to use 'if' instead of 'ifdef'.
19653         Use to_char if non-ASCII.  Prefer <= to >=.
19654         Prefer true and false to 1 and 0, for booleans.
19655         (c_iscntrl): Use 'if', not 'ifdef'.
19656         * modules/c-ctype (Depends-on): Add verify.
19657         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
19658         (to_char): New function.
19659         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
19661 2015-09-21  Pádraig Brady  <P@draigBrady.com>
19663         nanosleep: fix return code for interrupted replacement
19664         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
19665         that we return -1 in the case the call is interrupted by a signal,
19666         rather than the current value of 1.
19667         Diagnosed and tested by Daniel Richard G.
19669 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
19671         Diagnose ERE '()|\1'
19672         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
19673         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
19674         track of the set of previously-completed subexpressions available
19675         before the first alternative, and restore this set just before
19676         parsing each subsequent alternative.  This lets us diagnose the
19677         invalid back-reference in the ERE '()|\1'.
19679         regex: merge patches from libc
19681         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
19682         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
19683         * lib/regex_internal.h:
19684         Include <libc-lock.h> instead of <bits/libc-lock.h>.
19686         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
19687         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
19688         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
19689         wcscoll.
19690         * lib/regexec.c (check_node_accept_bytes): Likewise.
19692         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
19693         Fix regex wcrtomb namespace (bug 18496).
19694         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
19695         instead of wcrtomb.
19697         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
19698         Fix regex wctype namespace (bug 18495).
19699         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
19700         instead of towlower.
19701         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
19702         instead of iswlower.  Call __towupper instead of towupper.
19703         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
19704         instead of iswalnum.
19706         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
19707         * lib/regcomp.c (parse_bracket_exp): Initialize type to
19708         COLL_SYM in a couple of places to avoid uninitialized variable
19709         wanings on tilegx gcc 4.8.2.
19711         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
19712         * lib/regex_internal.h: Remove NOT_IN_libc.
19714         2014-11-17  Andreas Schwab  <schwab@suse.de>
19715         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
19717         2014-09-11  Roland McGrath  <roland@hack.frob.com>
19718         Move findidx nested functions to top-level.
19719         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
19720         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
19721         Pass new arguments to findidx.
19722         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
19723         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
19724         Don't #include it inside the function.  Pass new arguments to findidx.
19725         * lib/regex_internal.h:
19726         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
19727         (re_string_elem_size_at): Don't #include it inside the function.
19728         Pass new arguments to findidx.
19730         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
19731         Check if DEBUG is defined in regex_internal.c
19732         * lib/regex_internal.c: Check if DEBUG is defined and is set.
19734 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
19736         ceill: detect buggy OpenBSD implementation
19737         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
19738         which returns zero for small values.  Discussed here:
19739         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
19741 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
19743         mountlist: add me_mntroot field on Linux machines
19744         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
19745         mount_entry so Linux machines based on /proc/self/mountinfo can
19746         distinguish between bind mounts and original mounts.  In reality bind
19747         mounts aren't treated differently than mountroot=/ mounts by the
19748         kernel, but the user often wants these bind mounts distinguished.
19749         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
19750         More details at https://pad.lv/1432871
19752 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
19754         doc: Describe to use multiple instances of gnulib
19755         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
19756         instances of gnulib with different modules can be used, for example one
19757         for a lib and another one for associated tools.
19759 2015-09-01  Pádraig Brady  <P@draigBrady.com>
19761         base32: mark function as __attribute__ const
19762         * lib/base32.h (isbase32): Mark __attribute__ const as
19763         suggested by GCC, and consistent with the base64 module.
19765 2015-08-20  Daiki Ueno  <ueno@gnu.org>
19767         gnulib-tool: don't transform binary files with sed
19768         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
19769         .mo and .class files.
19770         Reported by Denis Denisov.
19772 2015-08-10  Daiki Ueno  <ueno@gnu.org>
19774         gperf: respect silent rules
19775         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
19776         V_GPERF_0 for silent rules.
19777         * modules/iconv_open (Makefile.am): Use V_GPERF.
19778         * modules/unicase/locale-language (Makefile.am): Likewise.
19779         * modules/unicase/special-casing (Makefile.am): Likewise.
19780         * modules/unictype/category-byname (Makefile.am): Likewise.
19781         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
19782         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
19783         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
19784         * modules/unictype/property-byname (Makefile.am): Likewise.
19785         * modules/unictype/scripts (Makefile.am): Likewise.
19786         * modules/uninorm/composition (Makefile.am): Likewise.
19788 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
19790         Improve port of stdalign to C++11
19791         Problem reported by Sundaram in:
19792         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
19793         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
19794         (__alignas_is_defined): Define if C++11 or newer.
19796 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
19798         pmccabe2html: fix gawk regex escaping
19799         * build-aux/pmccabe2html: Add one more backslash to properly
19800         escape the gsub replacement value.  Fixes this error:
19801         gawk: ./build-aux/pmccabe2html:425: \
19802         warning: escape sequence `\&' treated as plain `&'
19804 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
19806         time_rz: port to pedantic memcpy
19807         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
19808         that reject memcpy (..., NULL, 0).
19810 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
19812         time_rz: port better to MinGW
19813         Don't change tzname, as this makes MinGW dump core (Bug#21020).
19814         Instead, store the tzname copy in the struct tm_zone object.
19815         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
19816         * lib/strftime.c [!_LIBC]:
19817         * lib/time_rz.c: Include time-internal.h.
19818         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
19819         name from *TZ rather than from TZNAME, doable because *TZ now has
19820         a tzname_copy member.
19821         * lib/time-internal.h: New file, with contents taken from
19822         lib/time_rz.c.  It's separate because strftime.c now accesses
19823         struct tm_zone members.
19824         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
19825         New member tzname_copy.
19826         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
19827         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
19828         Initialize tzname_copy member.
19829         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
19830         in tzname_copy member.
19831         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
19832         (restore_tzname): Remove; no longer needed.  All calls removed.
19833         * modules/time_rz (Files): Add lib/time-internal.h.
19835         time: port __need_time_t to MinGW
19836         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
19837         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
19839 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
19841         strftime: fix newly-introduced bug on Solaris
19842         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
19843         consistently at the start, rather than doing some of the setup at
19844         the start and some in the %Z format spec.  This is cleaner, and
19845         works better with time_rz on platforms like Solaris where struct
19846         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
19847         mktime_z and localtime_rz can mess up the tzname cache.
19849         test-strftime: test for Solaris bug
19850         * modules/strftime-tests (Depends-on): Add strerror.
19851         * tests/test-strftime.c: Include <errno.h>.
19852         (posixtm_test): New function, containing the old 'main'.
19853         (struct tzalloc_test, struct localtime_rz_test): New types.
19854         (TZ, LT): New static vars.
19855         (tzalloc_test): New function.
19856         (main): Rewrite in terms of posixtm_test and tzalloc_test.
19858         time_rz: port to Solaris etc.
19859         Works around a tzname problem on platforms like Solaris that have
19860         tzname but not tm_zone, by setting tzname at the appropriate time
19861         and restoring it later.
19862         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
19863         New static vars.
19864         (save_abbr) [HAVE_TZNAME]: Set them.
19865         (revert_tz) [HAVE_TZNAME]: Clear or use them.
19866         (restore_tzname): New function.
19867         (localtime_rz, mktime_z): Use it.
19869         time_rz: now LGPL
19870         * modules/time_rz (License): Now LGPL, because strftime depends on it.
19872         time_rz: make a constant 'const'
19873         * lib/time_rz.c (local_tz): Now const.
19875         time_rz: fix off-by-one typo
19876         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
19878 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
19880         fprintftime, strftime: use timezone_t args
19881         * NEWS: Document the change.
19882         * lib/fprintftime.h (fprintftime):
19883         * lib/strftime.c (extra_args) [my_strftime]:
19884         * lib/strftime.h (nstrftime):
19885         Time zone arg is now of type timezone_t, not int.
19886         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
19887         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
19888         (my_strftime) [emacs && !my_strftime]:
19889         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
19890         Remove; Emacs doesn't need this any more.
19891         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
19892         fprintftime and nstrftime to call tzset.
19893         (ut) [!my_strftime]: Remove, replacing with ...
19894         (tz) [!my_stftime]: ... this new macro.  All uses changed.
19895         (strftime_case_): Use localtime_rz and mktime_z instead
19896         of localtime_r and mktime.
19897         * modules/fprintftime (Depends-on): Add time_rz.
19898         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
19899         * tests/test-strftime.c (main): Adjust to new nstrftime API.
19901         time_rz: new module
19902         * MODULES.html.sh: Add time_rz.
19903         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
19904         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
19905         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
19906         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
19907         New var HAVE_TIMEZONE_T (default 0).
19908         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
19909         New var GNULIB_TIME_RZ (default 0).
19910         * modules/time (time.h): Substitute the new vars.
19912         flexmember: license is now unlimited
19913         * modules/flexmember (License): Change to unlimited,
19914         since its only source file gives an unlimited license.
19916 2015-07-15  Eric Blake  <eblake@redhat.com>
19918         maint: update copyright paper procedures
19919         * config/srclist.txt: Drop outdated files.
19920         * doc/Copyright/conditions.txt: Update to latest.
19921         * doc/Copyright/assign.changes.manual: Delete.
19922         * doc/Copyright/assign.future.manual: Likewise.
19923         * doc/Copyright/assign.manual: Likewise.
19924         * doc/Copyright/assign.translation.manual: Likewise.
19925         * doc/Copyright/disclaim.changes.manual: Likewise.
19926         * doc/Copyright/disclaim.manual: Likewise.
19927         * doc/Copyright/disclaim.program: Likewise.
19929 2015-07-07  Daiki Ueno  <ueno@gnu.org>
19931         localename: fix link error on Illumos
19932         Illumos defines __sun, but does not have getlocalename_l nor the
19933         equivalent.  This partially reverts commit 387c214.
19934         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
19935         available, as well as uselocale.
19936         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
19937         use getlocalename_l if it is not available.
19939 2015-07-07  Daiki Ueno  <ueno@gnu.org>
19941         unistr/uN-strtok-tests: avoid a trivial leak
19942         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
19943         input and delim after the multibyte delimiter tests.
19945 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
19947         file-has-acl, acl-permissions: fix HP-UX typos
19948         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
19949         * lib/file-has-acl.c (file_has_acl):
19950         * lib/set-permissions.c (context_acl_from_mode)
19951         (context_aclv_from_mode, set_acls):
19952         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
19953         They were introduced by the recent ACL changes.
19955         regex: match current GNU grep behavior
19956         These symbols have not matched GNU grep behavior for quite some time.
19957         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
19958         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
19959         Change to match current GNU behavior.
19960         Simplify by expressing it as differences from POSIX BREs and EREs.
19961         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
19963 2015-07-03  Jim Meyering  <meyering@fb.com>
19965         set-permissions.c: adjust acl_from_mode's cpp guard
19966         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
19967         directives identical to those guarding the sole use.
19968         Otherwise, on some systems, we'd get a warning about
19969         the function being defined but not used.
19970         Also, filter through cppi to correct misleading indentation
19971         of cpp directives.
19973 2015-07-03  Pádraig Brady  <P@draigBrady.com>
19975         tests: restrict shells to those that support 'local'
19976         The local keyword is very widely supported and used
19977         in tests in coreutils and grep at least.  Therefore
19978         restrict to testing with shells that support it.
19979         This mainly excludes /bin/sh on Solaris.
19980         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
19982 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
19983         and Daiki Ueno  <ueno@gnu.org>
19985         unistr/uN-strtok: handle multibyte delimiters
19986         Previously, uN_strtok moved PTR to the next unit to the token end.
19987         When DELIM contained a multibyte character, the new position could
19988         be a middle of a multibyte character.
19989         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
19990         after the token.
19991         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
19992         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
19993         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
19994         * modules/unistr/u8-strtok (Depends-on): Depend on
19995         unistr/u8-strmblen.
19996         * modules/unistr/u16-strtok (Depends-on): Depend on
19997         unistr/u16-strmblen.
19998         * modules/unistr/u32-strtok (Depends-on): Depend on
19999         unistr/u32-strmblen.
20000         * tests/unistr/test-u-strtok.h: New file.
20001         * tests/unistr/test-u8-strtok.c: New file.
20002         * tests/unistr/test-u16-strtok.c: New file.
20003         * tests/unistr/test-u32-strtok.c: New file.
20004         * modules/unistr/u8-strtok-tests: New file.
20005         * modules/unistr/u32-strtok-tests: New file.
20006         * modules/unistr/u16-strtok-tests: New file.
20008 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
20010         update-copyright: fix test failure with perl >= 5.22 (trivial)
20011         * build-aux/update-copyright: Escape a literal left curly bracket,
20012         required with perl >= 5.22
20014 2015-07-02  Daiki Ueno  <ueno@gnu.org>
20016         u{16,32}-strstr-tests: relax timeout condition
20017         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
20018         tests can take longer than 5 seconds to complete.
20019         Reported by Dagobert Michelsen in:
20020         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
20021         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
20022         seconds to 10 seconds.
20023         * tests/unistr/test-u32-strstr.c (main): Likewise.
20025 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
20027         gnulib-common.m4: change the ARFLAGS default to 'cr'
20028         In some GNU/Linux distributions people started to compile 'ar'
20029         binary with --enable-deterministic-archives (binutils project).
20030         That, however, in combination with previous autotools long time
20031         working default AR{_,}FLAGS=cru causes warnings on such
20032         installations:
20033         ar: `u' modifier ignored since `D' is the default (see `U')
20034         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
20035         set already.
20037 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
20039         selinux-h: avoid double free after *getfilecon()
20040         Originally reported by Ben Shelton on bug-tar:
20041         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
20042         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
20043         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
20044         param should be freed by freecon(3) (regardless the return value).
20046 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
20048         fix pty related tests issues on Windows (trivial)
20049         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
20050         however it's still present in tests/ subdirectory of the final project.
20051         Therefore avoid it to pass `make check`.
20052         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
20053         will just return -ENOSYS, so avoid this non applicable test allowing
20054         the build to proceed.
20056 2015-07-01  Pádraig Brady  <P@draigBrady.com>
20058         acl: fix definition of acl_from_mode on FreeBSD
20059         This was causing basic coreutils copy operations to fail
20060         with ENOTSUP or ENOENT error messages.
20061         * lib/acl-internal.h (acl_from_mode): Only define when
20062         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
20063         of acl_from_mode() defined in lib/set-permissions.c to
20064         be used on FreeBSD at least.
20065         * lib/set-permissions.c: Fix up comment spelling,
20066         and a redundant variable assignment; noticed in passing.
20068 2015-06-30  Pádraig Brady  <P@draigBrady.com>
20070         readutmp: port to FreeBSD >= 9
20071         * lib/readutmp.h: Map utmpxname() to setutxdb().
20072         With that coreutils who(1) and pinky(1) tests pass.
20074 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
20076         mgetgroups: port to strict OS X
20077         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
20078         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
20079         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
20080         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
20082 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
20084         mgetgroups: port to strict OS X
20085         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
20086         Document the getgrouplist problem.
20087         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
20088         New macro.
20089         (mgetgroups): Use it.
20090         * m4/mgetgroups.m4 (gl_MGETGROUPS):
20091         Check for OS X signature for getgrouplist.
20093 2015-06-29  Jim Meyering  <meyering@fb.com>
20095         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
20096         It started like this when building coreutils' latest on OS X,
20097         invoking ./configure with a nonempty --cache=.cache:
20099           lib/linkat.c:46:42: error: operator '||' has no right operand
20100           lib/linkat.c: In function 'rpl_linkat':
20101           lib/linkat.c:330:27: error: #if with no expression
20103         Here's linkat.c's line 46:
20105           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
20107         Here's some context:
20109           $ grep linkat_nofoll .cache
20110           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
20111           $ grep LINKAT_SYM lib/config.h
20112           #define LINKAT_SYMLINK_NOTSUP
20114         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
20115         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
20116         but that violates a tenet of AC_CACHE_CHECK: it must
20117         have no side effect other than setting its cache variable.
20119         What happens is that when the cache is set, we'd skip the
20120         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
20121         defined to whatever value it happened to have in configure's
20122         environment.  In my case, it was not defined, so this later code:
20124           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
20125             [Define to 1 if linkat can create hardlinks to symlinks])
20127         would emit code with an empty RHS.
20129         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
20130         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
20132 2015-06-28  Jim Meyering  <meyering@fb.com>
20134         mountlist: avoid an unused-label warning on OS X
20135         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
20136         Building on OS X, I saw a warning about the "free_then_fail" label
20137         being unused.  Give it the _GL_UNUSED_LABEL attribute.
20139         error.c: correct printf-style format: %d -> %u
20140         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
20141         rather than %d, to match the type of "line_number", unsigned int.
20143 2015-06-25  Pádraig Brady  <P@draigBrady.com>
20145         fts: avoid reading beyond the heap allocation
20146         GCC 5.1.1 with -O2 and -fsanitize=address reports
20147         a read of size 4 from a heap object of size 3 is indeed invalid,
20148         though this may be due to incorrect padding assumptions by GCC, see:
20149         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
20150         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
20151         * modules/fts: Depend on stdalign.
20153 2015-06-24  Pádraig Brady  <P@draigBrady.com>
20155         savedir: avoid undefined behavior in qsort call
20156         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
20157         "runtime error: null pointer passed as argument 1,
20158          which is declared to never be null"
20159         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
20161 2015-06-24  Pádraig Brady  <P@draigBrady.com>
20163         userspec: avoid undefined behavior in gettext call
20164         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
20165         "runtime error: null pointer passed as argument 2,
20166          which is declared to never be null"
20167         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
20169 2015-06-20  Glenn Morris  <rgm@gnu.org>
20171         gitlog-to-changelog: improve gitmerge.el commits
20172         Let the Emacs ChangeLog generation process exclude "skipped"
20173         messages from merge commits (Bug#20717).
20174         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
20176 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
20178         wchar: fix MinGW compilation warnings
20179         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
20180         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
20181         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
20183 2015-06-20  Daiki Ueno  <ueno@gnu.org>
20185         uniname/uniname-tests: use pristine data files
20186         For copyright and maintenance reasons, use the data files from UCD
20187         without modification.
20188         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
20189         (getfield): Remove.
20190         (aliases_count): New global variable.
20191         (fill_names): Skip comments and empty lines in the input.  Don't
20192         use getfield.
20193         (fill_aliases): Likewise.
20194         (main): Change the expected command line arguments to:
20195         NAMES... ["--" ALIASES...].
20196         * tests/uniname/test-uninames.sh: Adjust to the change in
20197         test-uninames.c.
20198         * tests/uniname/UnicodeDataNames.txt: Remove.
20199         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
20200         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
20201         file from Unicode 8.0.0.
20203 2015-06-19  Pádraig Brady  <P@draigBrady.com>
20205         linked-list, linkedhash-list: avoid compiler warnings
20206         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
20207         -Werror=suggest-attribute=pure (from GCC 5.1.1).
20209 2015-06-19  Daiki Ueno  <ueno@gnu.org>
20211         libunistring: bump minimum version to 0.9.6
20212         * all modules depending on updated Unicode data: Regenerate.
20213         The modules are listed by a script that does:
20214         - for each file listed by: git show --oneline --name-only 705f4efc
20215           - deduce the containing modules, based on "Files:"
20216         - deduce the modules which depend on the containing modules, based
20217           on "Depends-on:"
20219 2015-06-18  Daiki Ueno  <ueno@gnu.org>
20221         uniname/uniname: update to Unicode 8.0.0
20222         * lib/uniname/uninames.h: Regenerate.
20223         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
20224         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
20226 2015-06-18  Daiki Ueno  <ueno@gnu.org>
20228         libunistring: update to Unicode 8.0.0
20229         * lib/gen-uni-tables.c (SIZEOF): New macro.
20230         (output_numeric): Increase the maximum number of fractions from
20231         128 to 160.  Increase the level3 value width from 7 bits to 8
20232         bits.  Use SIZEOF instead of a hard-coded integer.
20233         (output_blocks): Decrease the cut-off threshold from 0x30000 to
20234         0x28000.
20235         (fill_blocks): Increase the maximum number of blocks from 256 to
20236         384.  Use SIZEOF instead of a hard-coded integer.
20237         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
20238         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
20239         value width.
20240         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
20241         a new case added to LBP22.
20242         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
20243         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
20244         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
20245         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
20246         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
20247         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20248         lib/uniwidth/width.c.
20249         * all generated files under lib/uni* and tests/uni*: Regenerate.
20251 2015-06-16  Pádraig Brady  <P@draigBrady.com>
20253         gnu-web-doc-update: add --mirror to remove stale files
20254         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
20255         out of date files from the CVS server.  Since this is usually
20256         appropriate, a prompt is given when the option is not specified,
20257         along with the `cvs remove` command that would be run.
20259 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
20261         acl-permissions: pacify -Wsuggest-attribute=const
20262         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
20263         * lib/acl-internal.h (free_permission_context):
20264         Declare with attribute const if ! (defined USE_ACL &&
20265         (HAVE_ACL_GET_FILE || defined GETACL)).
20267         fsync: document AIX misbehavior
20268         * doc/posix-functions/fsync.texi (fsync):
20269         Document failure on AIX with read-only file descriptor.
20271 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
20273         stdio: Don't redefine gets when using C++
20274         * lib/stdio.in.h (gets): Disable warning on C++.
20276 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
20278         acl-permissions: port to AIX, C89 HP-UX
20279         Problems reported by Michael Felt.
20280         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
20281         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
20282         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
20283         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
20284         Add cast for AIX, whose system calls are declared to accept
20285         char * even though the arguments are really char const *.
20286         * lib/get-permissions.c (get_permissions):
20287         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
20288         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
20289         that broke a build.
20290         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
20291         Rework types to pacify xlc.
20293 2015-06-03  Pádraig Brady  <P@draigBrady.com>
20295         vasprintf-posix: avoid compiling vasnprintf where possible
20296         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
20297         module where not required.  For example on a GNU/Linux system
20298         when gnulib-tool is run with the --conditional-dependencies option.
20300 2015-06-02  Pádraig Brady  <P@draigBrady.com>
20302         file-has-acl: fix build on Mac OS X 10
20303         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
20304         which has an incompatible 6 parameter getxattr() call.
20305         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
20306         call on Mac OS X >= 10.4.
20307         * doc/glibc-functions/fgetxattr.texi: Likewise.
20308         * lib/file-has-acl.c: Revert to more complete combined check.
20309         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
20310         Reported by Jack Howarth.
20312 2015-06-02  Pádraig Brady  <P@draigBrady.com>
20314         prefix-gnulib-mk: remove no longer needed special case
20315         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
20316         continued lib_SOURCES lines are no longer present,
20317         so special case handling of such entries is not required.
20319 2015-06-01  Pádraig Brady  <P@draigBrady.com>
20321         acl: don't depend on the deprecated qacl module
20322         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
20324 2015-06-01  Pádraig Brady  <P@draigBrady.com>
20326         gnulib-tool: concatenate lib_SOURCES to a single line
20327         * gnulib-tool: Refactor the line merging sed logic,
20328         and use that to output a single lib_SOURCES line for each module.
20329         gnulib using projects often postprocess this output to prepend
20330         subdir paths to each item, and having a single line simplifies this
20331         processing allowing better decoupling from the gnulib-tool output.
20333 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
20335         pthread_sigmask: discount system version if a simple macro (trivial)
20336         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
20337         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
20338         function to ensure it's available.
20340 2015-05-31  Pádraig Brady  <P@draigBrady.com>
20342         readlinkat: avoid OS X 10.10 trailing slash bug
20343         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
20344         has this bug.
20345         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
20346         that OS X 10.10 has this function.
20347         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
20348         as done for readlink().
20349         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
20350         trailing slash bug, and assume readlinkat() has the same issue.
20351         Also fix a typo where $gl_cv_decl_readlink_works was tested,
20352         rather than the correct $gl_cv_decl_readlinkat_works.
20354 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
20356         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
20357         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
20358         module rewrite.
20360         acl-permissions: Fix build on Solaris and Cygwin
20361         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
20362         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
20363         ace_entries variables have moved into struct permission_context but
20364         they were still accessed as local variables here.
20366 2015-05-29  Pádraig Brady  <P@draigBrady.com>
20368         linkat: avoid OS X 10.10 trailing slash with symlink bug
20369         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
20370         causes the symlink to be dereferenced, and if it points
20371         to a non existent file, that file will be created as
20372         a hard link to "path1".
20373         This fixes a test failure in test-linkat.c.
20374         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
20375         this case.  The existing workaround in linkat.c for
20376         trailing slash issues, suffices for this case.
20377         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
20378         the list of platforms with trailing slash issues.
20380 2015-05-28  Pádraig Brady  <P@draigBrady.com>
20382         unlinkat: handle ignoring of ".." on Darwin 14
20383         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
20384         on Mac OS X 10.10, where it ignores paths with a trailing "..",
20385         so handle in the same manner.
20386         * m4/unlinkat.m4: Comment on this Darwin issue.
20387         * doc/posix-functions/unlink.texi: Update the latest version
20388         where the issue was seen.
20389         * doc/posix-functions/unlinkat.texi: Mention this issue.
20390         Fixes a test failure in test-unlinkat.c.
20392 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
20394         qacl: split into qcopy-acl and qset-acl
20395         Emacs needs the former, but not the latter.
20396         * modules/acl-permissions: New file, containing most of the old qacl.
20397         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
20398         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
20399         * modules/qcopy-acl, modules/qset-acl: New files.
20400         * MODULES.html.sh (File system functions):
20401         Mention the new modules, and mention qacl while we're at it.
20403 2015-05-27  Glenn Morris  <rgm@gnu.org>
20405         gitlog-to-changelog: new option --ignore-line
20406         (This patch is imported from the GNU Emacs master.)
20407         This option ignores individual commit lines matching a pattern.
20408         * build-aux/gitlog-to-changelog: Add --ignore-line option.
20410 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
20412         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
20413         Implement get_permissions and set_permissions primitives for getting all
20414         the permissions of a file, storing them, and later setting them. (In the
20415         minimal case, the permissions consist only of a file mode.) Reimplement
20416         qset_acl and qcopy_acl based on these new primitives: this avoids code
20417         duplication and makes error handling more consistent.
20418         The Solaris and Cygwin code still uses duplicate code paths for setting
20419         a file mode while making sure that no acls exist and setting an explicit
20420         acl; this is no worse than before, but could be cleaned up.  The AIX
20421         code still doesn't read ACLs, it only makes sure that acls don't get in
20422         the way when setting a file mode.
20423         * lib/acl-internal.h (struct permission_context): New data structure.
20424         (get_permissions, set_permissions, free_permission_context): Declare.
20425         * lib/acl-internal.c (free_permission_context): New helper function.
20426         * lib/get-permissions.c (get_permissions): New helper function split off
20427         from qcopy_acl.
20428         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
20429         AIX, set a file's permissions based only on a file mode.
20430         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
20431         other platforms construct a temporary acl from the file mode and set
20432         that acl in the same way as setting an acl read from the source file.
20433         This should help avoid code duplication and inconsistent / buggy
20434         behavior.
20435         (set_acls): New helper function Split off from qcopy_acl.
20436         (chmod_or_fchmod): Moved here from qset-acl.c.
20437         (set_permissions): New helper function.
20438         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
20439         set_permissions.
20440         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
20441         * modules/qacl: Add get-permissions.c and set-permissions.c.
20443         file-has-acl: Split feature tests again (Bug#20667)
20444         * lib/file-has-acl.c: Instead of testing for
20445         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
20446         define them when needed.
20447         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
20448         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
20450 2015-05-27  Pádraig Brady  <P@draigBrady.com>
20452         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
20453         This avoids a conflict with "FORTIFY_SOURCE" variants
20454         of the string functions when they're replaced on NetBSD-6.0.1
20455         and Darwin-14.3.0 at least.
20456         * lib/string.in.h: Avoid including our "lib/string.h" while
20457         including the system <string.h>.
20459 2015-05-26  Eric Blake  <eblake@redhat.com>
20461         stdio: limit __gnu_printf__ witness to gcc 4.4+
20462         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
20463         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
20465         error: use correct printf attributes on mingw
20466         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
20468         inttypes: force correct mingw PRIdMAX even without <stdio.h>
20469         * modules/inttypes (Depends-on): Require extensions, so that mingw
20470         always uses GNU style inttypes.
20471         * lib/inttypes.in.h: On mingw, include <stdio.h>.
20473         stdio: fix probe on mingw under gcc 5.1
20474         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
20475         around new gcc preprocessor rules.
20477 2015-05-07  Glenn Morris  <rgm@gnu.org>
20479         gitlog-to-changelog: parse "Tiny-change"
20480         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
20481         "Copyright-paperwork-exempt".  (Bug#20324)
20483 2015-05-06  Pádraig Brady  <P@draigBrady.com>
20485         doc: document glibc posix_fallocate() issues
20486         * doc/posix-functions/posix_fallocate.texi: Mention the
20487         glibc efficiency problems and issues with NFS.
20489 2015-05-05  Karl Berry  <karl@freefriends.org>
20491         * build-aux/gendocs.sh (usage): document new css default
20492         for HTML (--htmlarg).
20494 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
20496         extern-inline: no need for workaround in GCC 5.1
20497         * doc/extern-inline.texi (extern inline):
20498         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20499         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
20500         around these bugs in GCC 5.1 and later.  Maybe in a decade or
20501         two we can remove these workarounds.
20503 2015-04-28  Pádraig Brady  <P@draigBrady.com>
20505         eealloc, pagealign_alloc, xalloc: avoid clang warnings
20506         Avoid [-Wunknown-attributes] warnings like:
20507         warning: unknown attribute '__alloc_size__' ignored
20508         * lib/xalloc.h: Don't use the __alloc_size__  attribute
20509         with clang, as support has been fully removed as of clang 3.5:
20510         https://github.com/llvm-mirror/clang/commit/c047507a
20511         * lib/eealloc.h: Likewise.
20512         * lib/pagealign_alloc.h: Likewise.
20514 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20516         tests: pacify GCC 5.1's stricter printf checking
20517         * tests/test-dirname.c (main):
20518         * tests/test-getaddrinfo.c (simple):
20519         * tests/test-getlogin.c (main):
20520         * tests/test-getndelim2.c (main):
20521         * tests/test-inttostr.c (CK):
20522         * tests/test-md5.c (main):
20523         * tests/test-read-file.c (main):
20524         * tests/test-sha1.c (main):
20525         Fix mismatches between printf format and value signedness.
20526         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
20527         Remove, as CAST_VAL always returned a value of type uintmax_t.
20529         fts: port to GCC 5.1 with --enable-gcc-warnings
20530         Without this fix, GCC 5.1 (correctly) warns about a subscript
20531         error on the fts_name component of FTSENT.  It's actually a
20532         flexible member, so define it that way on C99 or later hosts.
20533         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
20534         structure that now has a flexible array member.
20535         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
20536         (FTSENT): fts_name is now flexible on C99-or-later platforms.
20537         * modules/fts (Depends-on): Add flexmember.
20539 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20541         file-has-acl: port to CentOS 6
20542         Problem reported by Tom G. Christensen in:
20543         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
20544         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
20545         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
20546         HAVE_GETXATTR.
20547         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
20548         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
20549         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
20550         file-has-acl.c actually needs.
20552 2015-04-26  Pádraig Brady  <P@draigBrady.com>
20554         file-has-acl: always return false when ACLs aren't supported
20555         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
20556         change the GNU/Linux getxattr path, to transform "not supported"
20557         errors to a false return rather than an error.  This is handled
20558         within file_has_acl() due to the platform specific tests to
20559         determine if ACLs are not supported.
20561 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20563         gettext: propagate po/Makefile.in.in too
20564         * build-aux/po/Makefile.in.in: Copy from latest gettext.
20565         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
20566         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
20567         between Makefile.in.in and the gettext-runtime m4 files.
20569 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20571         file-has-acl: new module, split from acl
20572         And add a new module file-has-acl-tests to match.
20573         I ran into a problem with the recent changes to the acl module,
20574         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
20575         When using the fixed version with Emacs, I discovered that
20576         file-has-acl wasn't separated out well enough for Emacs (e.g., it
20577         had multiple libraries, but needed only one), so I fixed that too.
20578         * NEWS: Document this incompatible change.
20579         * modules/file-has-acl, modules/file-has-acl-tests: New files.
20580         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
20581         Initialize gl_need_lib_has_acl.
20582         (gl_FUNC_ACL): Require it.
20583         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
20584         Move the file-has-acl.c-relevant stuff to ...
20585         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
20586         use_xattrs = 0' typo, and omit some needless work.  Set
20587         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
20588         when gl_FUNC_ACL is called.
20589         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
20590         (Link): Remove $(LIB_HAS_ACL).
20591         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
20592         (check_PROGRAMS): Move stuff relevant to file-has-acl to
20593         modules/file-has-acl-tests.
20594         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
20596         manywarnings: add GCC 5.1 warnings
20597         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
20598         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
20599         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
20600         -Wsuggest-override, -Wuse-without-only.  Change
20601         -Wnormalized=... operands to match 5.1.
20602         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
20603         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
20604         -Wdiscarded-qualifiers, -Wformat-signedness,
20605         -Wincompatible-pointer-types, -Wint-conversion,
20606         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
20607         -Wshift-count-negative, -Wshift-count-overflow,
20608         -Wsizeof-array-argument, -Wsuggest-final-methods,
20609         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
20610         and add -Warray-bounds=2 as a special case.
20612 2015-04-21  Simon Josefsson  <simon@josefsson.org>
20614         doc: update FDL template to match FDL examples.
20615         * doc/alloca-opt.texi:
20616         * doc/alloca.texi:
20617         * doc/c-ctype.texi:
20618         * doc/c-strcase.texi:
20619         * doc/c-strcaseeq.texi:
20620         * doc/c-strcasestr.texi:
20621         * doc/c-strstr.texi:
20622         * doc/c-strtod.texi:
20623         * doc/c-strtold.texi:
20624         * doc/ctime.texi:
20625         * doc/error.texi:
20626         * doc/gcd.texi:
20627         * doc/gnulib-tool.texi:
20628         * doc/inet_ntoa.texi:
20629         * doc/intprops.texi:
20630         * doc/lib-symbol-visibility.texi:
20631         * doc/maintain.texi:
20632         * doc/parse-datetime.texi:
20633         * doc/quote.texi:
20634         * doc/regexprops-generic.texi:
20635         * doc/standards.texi: Remove spurious 'with' in FDL license
20636         template.
20638 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
20640         lstat: fix cross-compilation 'ln -s' problem
20641         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
20642         Have the test program call 'symlink' rather than a separate
20643         script run 'ln -s'; this is more likely to work in
20644         cross-compilation environments.  Reported by Pavel Fedin in:
20645         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
20647 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
20649         gendocs.sh: default to a common CSS style sheet for HTML output
20650         * build-aux/gendocs.sh (htmlarg): Change default value.
20652 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
20654         gnulib-tool: output bold attribute more portably
20655         * gnulib-tool (func_show_module_list): Change hexadecimal
20656         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
20657         encoded numbers as arguments to `printf' is not portable,
20658         and is not claimed by POSIX.  This is the case with FreeBSD.
20660 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
20662         qacl: Simplify HP-UX acl_nontrivial check
20663         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
20664         acl_nontrivial. Check if the acl has at most three entries instead (it must
20665         have exactly three entries according to the HP-UX documentation). Ignore
20666         uids and gids as long as an entry is either for a user (i.e., the owner),
20667         a group (i.e., the owning group), or others.
20668         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
20669         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
20671 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
20673         acl: On Linux, check for acls without libacl
20674         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
20675         library function to check for the presence of acls, avoiding a library.
20676         * lib/file-has-acl.c: Include xattr headers if we have them.
20677         (file_has_acl): On Linux, use getxattr().
20678         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
20679         file_has_acl(). Check for xattr headers and getxattr().
20681 2015-04-14  Ángel González  <keisial@gmail.com>
20683         tempname: avoid unused parameter warnings (trivial)
20684         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
20685         (try_nocreate): Likewise.
20687 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
20689         fseeko: fix build failure on NetBSD >= 6 (trivial)
20690         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
20691         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
20693 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20695         gitlog-to-changelog: port to MS-Windows
20696         * build-aux/gitlog-to-changelog (git_dir_option):
20697         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
20698         MS-Windows Perl.  Reported by Eli Zaretskii in:
20699         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
20701 2015-04-07  Karl Berry  <karl@gnu.org>
20703         gendocs: new option --tex for passing args to texi2dvi.
20704         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
20705         (TEXI2DVI): cut to just command name.
20706         (usage): mention new option, and update copyright.
20707         <generate_tex>: use it.
20709 2015-04-07  Karl Berry  <karl@gnu.org>
20711         * config/srclistvars.sh (GETTEXT): new definition.
20712         * config/srclist.txt: use it for gettext .m4 files.
20713         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
20714         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
20715         and continuing into April.
20717 2015-04-07  Daiki Ueno  <ueno@gnu.org>
20719         uniname/uniname-tests: fix failure due to alias
20720         Reported by Jack Howarth in:
20721         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
20722         * tests/uniname/test-uninames.c (name_has_alias): New function.
20723         (test_inverse_lookup): Exclude character name with valid alias,
20724         from randomly generated character names.
20725         (main): Fill unicode_aliases before calling test functions.
20727 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
20729         hash: remove deprecated hash_insert0 function
20730         * lib/hash.h (hash_insert0): Remove deprecated function.
20731         * lib/hash.c (hash_insert0): Likewise.
20733 2015-04-02  Pádraig Brady  <P@draigBrady.com>
20735         mountlist: remove dependency on libmount
20736         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
20737         directly, rather than depending on libmount, which has many
20738         dependencies due to its dependence on libselinux, as detailed at:
20739         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
20740         Note we restrict this to __linux__ as that's probably where this
20741         interface will remain.  If ever porting, it would be best
20742         to first pull the makedev() wrapper from coreutils to a gnulib module.
20743         Note also we don't add a getline dependency to the mountlist module,
20744         as all Linux versions are sufficient.
20746 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
20748         stddef: port to pre-C11 GCC on x86
20749         On this platform, max_align_t should have an alignment of 8 even
20750         though the storage alignments of double, long, etc. max out at 4.
20751         Inspired by a comment of Andreas Schwab's here:
20752         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
20753         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
20754         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
20755         * tests/test-stddef.c: Test __alignof__ too, if available.
20757 2015-03-24  Pádraig Brady  <P@draigBrady.com>
20759         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
20760         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
20762 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
20764         yesno: make EOL optional in ENABLE_NLS case also (trival)
20765         * lib/yesno.c (yesno): Check for EOL before replacing.
20766         * tests/test-yesno.sh: Add a test case (test along with gettext).
20768 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
20770         fdopendir-tests: test it does not close its arg
20771         * tests/test-fdopendir.c (main): Test that fdopendir does not
20772         close its argument.  From a suggestion by David Grayson in:
20773         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
20775 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20777         gitlog-to-changelog: trim trailing white space
20778         * build-aux/gitlog-to-changelog (main):
20779         Trim trailing white space from commit message lines.
20780         This is helpful for processing the GNU Emacs repository,
20781         which dates back to 1985 and contains a lot of such lines.
20783         gitlog-to-changelog: new option --ignore-matching
20784         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
20785         Support new option --ignore-matching=PAT, which ignores all
20786         commit messages whose first line matches PAT.
20788 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20790         fdopendir: port better to MinGW
20791         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
20792         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
20793         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
20794         * modules/fdopendir (Depends-on): Add dirfd.
20796 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
20798         fdopendir: fix typo in comment
20799         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
20801 2015-03-09  Eric Blake  <eblake@redhat.com>
20803         error: document all entry points provided
20804         * doc/glibc-functions/error_print_progname.texi
20805         (error_print_progname): Mention the error module.
20806         * doc/glibc-functions/error_at_line.texi (error_at_line):
20807         Likewise.
20808         * doc/glibc-functions/error_message_count.texi
20809         (error_message_count): Likewise.
20810         * doc/glibc-functions/error_one_per_line.texi
20811         (error_one_per_line): Likewise.
20813 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
20815         vasnprintf: pacify clang 3.5.0
20816         Problem reported by Werner Lemberg in:
20817         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
20818         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
20819         The casts aren't needed, since the characters in question are ASCII.
20821 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20823         glob, etc.: port to MSVC v18 on MS-Windows 8.1
20824         * lib/dirent--.h (GNULIB_defined_opendir):
20825         * lib/dirent.in.h (GNULIB_defined_opendir)
20826         (GNULIB_defined_closedir):
20827         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
20828         #undef only if Gnulib defined it.
20830         poll: port to MSVC v18 on MS-Windows 8.1
20831         Problem reported by Gisle Vanem in:
20832         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
20833         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
20834         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
20835         Add sys_socket.
20837 2015-02-24  Pádraig Brady  <P@draigBrady.com>
20839         tests: support stderr verification with returns_()
20840         * tests/init.sh (returns_): Disable tracing for this wrapper
20841         function, so that stderr of the wrapped command is unchanged,
20842         allowing for verification of the contents.
20844 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
20846         passfd: avoid valgrind uninitalised data warning
20847         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
20848         to include just the fd we've initialized, rather than including
20849         the extra space used for alignment.
20851 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20853         uniwbrk/u32-wordbreaks-tests: fix copyright
20854         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
20856         dup2: doc and test for Android bug
20857         Reported by Kevin Cernekee in:
20858         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
20859         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20860         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
20862 2015-02-23  Kevin Cernekee  <cernekee@google.com>
20864         Replace dup2() on Android
20865         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
20866         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
20867         fails.  Using rpl_dup2() fixes this because it has an explicit test
20868         for this condition.
20870 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
20872         Android doesn't define RLIM_SAVED_*
20873         Portability problem reported by Kevin Cernekee in:
20874         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
20875         * doc/posix-headers/sys_resource.texi (sys/resource.h):
20876         Mention the portability problem.
20877         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
20878         Define if not defined.
20879         * m4/dup2.m4 (gl_FUNC_DUP2):
20880         * m4/fcntl.m4 (gl_FUNC_FCNTL):
20881         Likewise.
20883 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
20885         vasnprintf-posix-tests: use consistent test
20886         * tests/test-vasnprintf-posix.c (test_function):
20887         Use "<" in assert instead of "<=", for consistency with other tests.
20889 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20891         printf, isinf, etc.: noncanonical != NaN
20892         Do not require that isinf, printf, etc. treat noncanonical
20893         values as NaNs.  Instead, require only that they do not crash.
20894         Problem reported by Joseph Myers in:
20895         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
20896         * doc/posix-functions/dprintf.texi (dprintf):
20897         * doc/posix-functions/fprintf.texi (fprintf):
20898         * doc/posix-functions/isfinite.texi (isfinite):
20899         * doc/posix-functions/isinf.texi (isinf):
20900         * doc/posix-functions/isnan.texi (isnan):
20901         * doc/posix-functions/printf.texi (printf):
20902         * doc/posix-functions/snprintf.texi (snprintf):
20903         * doc/posix-functions/sprintf.texi (sprintf):
20904         * doc/posix-functions/vdprintf.texi (vdprintf):
20905         * doc/posix-functions/vfprintf.texi (vfprintf):
20906         * doc/posix-functions/vprintf.texi (vprintf):
20907         * doc/posix-functions/vsnprintf.texi (vsnprintf):
20908         * doc/posix-functions/vsprintf.texi (vsprintf):
20909         Document this.
20910         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
20911         * m4/isinf.m4 (gl_ISINFL_WORKS):
20912         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
20913         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
20914         * tests/test-isfinite.c (test_isfinitel):
20915         * tests/test-isinf.c (test_isinfl):
20916         * tests/test-isnan.c (test_long_double):
20917         * tests/test-isnanl.h (main):
20918         * tests/test-snprintf-posix.h (test_function):
20919         * tests/test-sprintf-posix.h (test_function):
20920         * tests/test-vasnprintf-posix.c (test_function):
20921         * tests/test-vasprintf-posix.c (test_function):
20922         Test only that noncanonical values do not cause crashes, not that
20923         they are treated as NaNs.  In some cases this means a larger
20924         output buffer is needed.
20926 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
20928         fts: remove redundant close() (trivial)
20929         * lib/fts.c (fts_read): Remove redundant call to close().
20930         Spotted by coverity.
20932 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20934         getdtablesize: port better for Android
20935         Problem reported by Kevin Cernekee in:
20936         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
20937         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
20938         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
20939         Instead, just use getrlimit, taking care to avoid Cygwin bug.
20941         poll: fixes for large fds
20942         * lib/poll.c (poll): Don't check directly for NFD too large.
20943         Don't rely on undefined behavior in FD_SET when an arg exceeds
20944         FD_SETSIZE.  Always set revents afterwards, even if to zero.
20945         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
20946         as that makes the test a bit stricter.
20948 2015-02-19  Kevin Cernekee  <cernekee@google.com>
20950         fcntl: Fix cross compiling
20951         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
20952         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
20954 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20956         dup2, fcntl: cross-compile better for Android
20957         Problem reported by Kevin Cernekee in:
20958         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
20959         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
20960         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
20961         there's little need to cross-compile for older kernels nowadays.
20962         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
20963         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
20965 2015-02-18  Pádraig Brady  <P@draigBrady.com>
20967         getopt: don't crash on memory exhaustion
20968         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
20969         memory exhaustion.  In the _LIBC case we use alloca() as is
20970         already done in glibc, so we don't need to consider the separate
20971         error path in that awkward case.  Also fix a memory leak when
20972         ambiguous options are present.
20973         Reported by Tobias Stoeckmann
20975 2015-02-17  Mike Miller  <mtmiller@ieee.org>
20977         tempname: allow compilation with C++ (trivial)
20978         * lib/tempname.h [C++]: Specify extern "C" linkage.
20979         * lib/tempname.h (try_tempname):
20980         * lib/tempname.c (__try_tempname, __gen_tempname):
20981         Rename 'try' to 'tryfunc'.
20983 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
20985         dup2, fcntl: port to AIX
20986         * m4/dup2.m4 (gl_FUNC_DUP2):
20987         * m4/fcntl.m4 (gl_FUNC_FCNTL):
20988         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
20989         The former works on AIX 7.1 but the latter does not.
20990         Also, this may work better with Android; see:
20991         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
20993 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
20995         getdtablesize, dup2, fcntl: port to Android
20996         Problem reported by Kevin Cernekee in:
20997         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
20998         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
20999         Mention that getdtablesize doesn't work on Android.
21000         * lib/getdtablesize.c: Use getrlimit substitute only if
21001         getdtablesize is declared.  This should suffice for Cygwin
21002         while not breaking Android.
21003         * m4/dup2.m4 (gl_FUNC_DUP2):
21004         * m4/fcntl.m4 (gl_FUNC_FCNTL):
21005         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
21006         standardized but the latter is not, and sysconf works on Android.
21007         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
21008         Also check that getdtablesize is declared.
21009         This removes the need for a special case for Android.
21011 2015-02-16  Kevin Cernekee  <cernekee@google.com>
21013         localename: Implement gl_locale_name_thread_unsafe for Android
21014         * lib/localename.c: Android API level >= 21 supports two hardcoded
21015         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
21016         the internal __locale_t struct.
21018 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
21020         fts: avoid crash when a cycle is added while traversing
21021         This could be triggered by auto-mounting a recursive bind mount.
21022         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
21023         * lib/fts.c (fts_read): Avoid removing the original hash table item
21024         when leaving a directory that caused a cycle, and preserve the FTS_DC
21025         flag.
21027 2015-02-16  Daiki Ueno  <ueno@gnu.org>
21029         uniname/uniname: support character alias
21030         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
21031         Generate one-way mapping from aliases to codepoints in the
21032         generated tables.  Special case variation selectors to reduce
21033         table size.
21034         * lib/uniname/uniname.c (unicode_character_name): Special case
21035         variation selectors.
21036         (unicode_name_character): Special case variation selectors and
21037         their aliases.
21038         * lib/uniname/uninames.h: Regenerate.
21039         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
21040         * modules/uniname/uniname-tests (Files): Add
21041         tests/uniname/NameAliases.txt.
21042         * tests/uniname/test-uninames.c: Mark as static.
21043         (ALIASLEN): Define.
21044         (struct unicode_alias): New struct.
21045         (unicode_aliases): New variable.
21046         (fill_aliases): New function.
21047         (test_alias_lookup): New test function.
21048         (main): Run the 'test_alias_lookup' test if the second argument is
21049         given.
21050         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
21051         second argument.
21053 2015-02-11  Kevin Cernekee  <cernekee@google.com>
21055         Fix FILE struct compatibility with Android API level >= 21
21056         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
21057         __sferror.  Recent versions of Bionic's stdio.h no longer define
21058         __sferror.
21059         * lib/fbufmode.c: Likewise.
21060         * lib/fflush.c: Likewise.
21061         * lib/fpurge.c: Likewise.
21062         * lib/freadable.c: Likewise.
21063         * lib/freadahead.c: Likewise.
21064         * lib/freading.c: Likewise.
21065         * lib/freadptr.c: Likewise.
21066         * lib/freadseek.c: Likewise.
21067         * lib/fseeko.c: Likewise.
21068         * lib/fseterr.c: Likewise.
21069         * lib/fwritable.c: Likewise.
21071         Assume unbroken ungetc() on Android
21072         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
21073         test case passed when running on an Android host, and the code
21074         hasn't really changed since 2009.
21076         getdtablesize: Fix Android build
21077         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
21078         versions have this symbol in the .so library (at least 32-bit
21079         platforms) but are missing the declaration in the header file,
21080         causing the m4 logic to guess incorrectly.
21082         localename: Fix Android build
21083         * modules/localename (Depends-on): Add langinfo.
21085         getugroups: Fix Android build
21086         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
21087         functions.
21089         euidaccess: Fix Android build
21090         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
21091         AT_EACCESS gets declared.
21093         linkat_nofollow: Add fallback case for cross compiling
21094         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
21096         net_if: Handle content-free <net/if.h> system headers
21097         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
21098         struct if_nameindex.  If not, enable the replacement header.
21100         signal_h: Fix Android build
21101         * lib/signal.in.h: Add Android to the list of platforms that declare
21102         pthread_sigmask() in <pthread.h> instead of <signal.h>.
21104         duplocale: Fix Android build of duplocale-tests
21105         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
21106         is included by test-duplocale.c (but not by duplocale.c).
21107         * modules/duplocale-tests (configure.ac): Check for monetary.h.
21108         * tests/test-duplocale.c: Skip test if monetary.h is absent.
21109         * doc/posix-headers/monetary.texi: Add Android to the list of
21110         platforms missing monetary.h.
21112 2015-02-11  Pádraig Brady  <P@draigBrady.com>
21114         tests: avoid recent -Werror=unused-variable regression in test-locale
21115         * tests/test-locale.c (main): Reference the variable to avoid the
21116         "unused variable" warning.
21118 2015-02-11  Pádraig Brady  <P@draigBrady.com>
21120         maint: various whitespace cleanups in tempname
21121         * lib/tempname.c: Normalize spacing and line length.
21122         * lib/tempname.h: Likewise.
21123         * modules/tempname: Likewise.
21125 2015-02-11  Pádraig Brady  <P@draigBrady.com>
21127         tests: provide returns_() to simplify exit status checking
21128         * tests/init.sh (returns_): A new function for use in tests,
21129         to allow for easier checking of return values, where you expect
21130         a command to exit with failure status.  By checking for a particular
21131         exit code, you don't hide any crashes for example.
21133 2015-02-11  Pádraig Brady  <P@draigBrady.com>
21135         mountlist: only use libmount when specified
21136         There are currently many shared libs dependencies introduced by
21137         libmount with associated runtime and virt mem overhead.
21138         Therefore don't enable by default.
21139         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
21141 2015-02-08  Daiki Ueno  <ueno@gnu.org>
21143         uniname/unimame-tests: don't link with -lunistring
21144         * modules/uniname/uniname-tests (Makefile.am): Don't link against
21145         $(LIBUNISTRING).  Document the rationale why we need to
21146         conditionalize the test.
21148 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
21150         fstrcmp: don't assume strlen < INT_MAX
21151         * lib/fstrcmp.c: Include stddef.h and stdint.h.
21152         (uintptr_t): Remove, as we're now assuming stdint.
21153         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
21154         Prefer ptrdiff_t to int when the value could exceed INT_MAX
21155         if the input string is long.
21156         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
21157         uintptr_t to size_t when the underlying value is a pointer casted
21158         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
21159         * modules/fstrcmp (Depends-on): Add stdint.
21161         diffseq: prefer ptrdiff_t to ssize_t
21162         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
21163         ptrdiff_t is the natural type for signed indexes.
21164         On a few older platforms, ssize_t is narrower than size_t.
21166         xalloc: fix typo that suppressed warnings
21167         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
21168         This typo, introduced a couple of years ago, mistakenly suppressed
21169         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
21170         -Wmissing-declarations warnings.
21172         full-read: fix license notice typo
21173         * lib/full-read.h: Remove a stray line in the license notice.
21174         Reported by Sam Ellis in: http://bugs.gnu.org/19808
21176         crypto/gc: fix a -Wswitch warning
21177         Reported by Bruce Korb in:
21178         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
21179         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
21181 2015-02-03  Pádraig Brady  <P@draigBrady.com>
21183         gnulib-tool: fix handling of patch(1) diagnostics
21184         * gnulib-tool: Send diagnostics from patch(1) to stderr,
21185         as otherwise gnulib-tool will reparse that output and attempt
21186         to lookup modules.
21188 2015-02-03  Pádraig Brady  <P@draigBrady.com>
21190         bootstrap: exit immediately upon gnulib-tool failure
21191         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
21192         This was noticed when gnulib-tool exited early due to failure
21193         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
21194         but various confusing errors were then given as the build proceeded.
21196 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
21198         symlinkat: include all required header files
21199         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
21200         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
21201         Reported at https://savannah.gnu.org/bugs/index.php?44151
21202         and by Jack Howarth.
21204 2015-01-29  Pádraig Brady  <P@draigBrady.com>
21206         localename: support Solaris 12 and illumos
21207         * lib/localename.c (gl_locale_name_thread_unsafe): call
21208         getlocalename_l() on newer __sun platforms.
21209         Reported by Alexander Pyhalov.
21210         Fix suggested by Rich Burridge.
21212 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
21214         locale: fix tests on illumos (trivial)
21215         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
21216         so move from global scope to main().
21218 2015-01-24  Daiki Ueno  <ueno@gnu.org>
21220         unictype: avoid undefined left-shift behavior
21221         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
21222         gcc's -fsanitize=shift and running its tests triggered:
21223           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
21224             places cannot be represented in type 'int'
21225         Cast LHS to 'unsigned int' after integer promotion.
21226         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
21227         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
21229 2015-01-20  Daiki Ueno  <ueno@gnu.org>
21231         libunistring: bump version of unitypes dependants
21232         Due to the header file search order, all the headers which depend
21233         on unitypes.h need to be generated, when the preinstalled
21234         libunistring is older.
21235         * modules/unicase/base (configure.ac): Bump minimum version to
21236         0.9.4.
21237         * modules/uniconv/base (configure.ac): Likewise.
21238         * modules/unilbrk/base (configure.ac): Likewise.
21239         * modules/uninorm/base (configure.ac): Likewise.
21240         * modules/unistdio/base (configure.ac): Likewise.
21241         * modules/unistr/base (configure.ac): Likewise.
21242         * modules/uniwbrk/base (configure.ac): Likewise.
21243         * modules/uniwidth/base (configure.ac): Likewise.
21245 2015-01-20  Daiki Ueno  <ueno@gnu.org>
21247         unictype/category-none: fix link with libunistring
21248         Since _UC_CATEGORY_NONE is not a public symbol, it will be
21249         prefixed with "libstring_" when compiled as part of libunistring.
21250         To avoid undefined symbol at link time, increase the minimum
21251         version when the dependant modules are updated.
21252         * modules/unictype/category-none (configure.ac): Bump minimum
21253         version to 0.9.5.
21255 2015-01-20  Daiki Ueno  <ueno@gnu.org>
21257         unitypes: fix build with installed libunistring
21258         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
21259         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
21260         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
21262 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
21264         time: port to MinGW32 3.21
21265         Problem reported by Eli Zaretskii in:
21266         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
21267         * lib/time.in.h:
21268         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
21269         * modules/time (Depends-on):
21270         Fall back on unistd.h if the other include files don't define
21271         struct timespec.
21273         update-copyright: apply to self
21274         * build-aux/update-copyright: Fix copyright date.  How ironic!
21276 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21278         libunistring: update to Unicode 7.0.0
21279         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
21280         Manichaean names.
21281         * lib/unictype/joininggroup_name.h: Likewise.
21282         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
21283         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
21284         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
21285         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
21286         (fill_arabicshaping, joining_group_as_c_identifier): Support those
21287         enum values.
21288         (is_property_alphabetic): Accept newly added characters to
21289         cuneiform numeric signs.
21290         (is_property_default_ignorable_code_point): Reject U+0605.
21291         (FIELDLEN): Increase from 120 to 160.
21292         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
21293         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
21294         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
21295         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
21296         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
21297         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
21298         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
21299         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
21300         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
21301         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
21302         U+1E8D0..U+1E8D6.
21303         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
21304         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21305         lib/uniwidth/width.c.
21306         * all generated files under lib/uni* and tests/uni*: Regenerate.
21308 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21310         libunistring: update to Unicode 6.3.0
21311         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
21312         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
21313         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
21314         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
21315         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
21316         Update WB5, WB9, WB10, WB13a, and WB13b.
21317         * tests/uniwbrk/test-uc-wordbreaks.c
21318         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
21319         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
21320         (UC_BIDI_PDI): New enumeration values.
21321         (bidi_category_byname): Support those enum values.
21322         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
21323         dedicated property assigned.
21324         (is_property_case_ignorable): Check 0x0027.
21325         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
21326         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
21327         (output_wbp): Support those enum values.
21328         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
21329         (UC_BIDI_PDI): New enumeration values.
21330         * lib/unictype/bidi_byname.gperf: Add those property names.
21331         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
21332         U+180E, U+1A1B, and U+2066..U+2069.
21333         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21334         lib/uniwidth/width.c.
21335         * all generated files under lib/uni* and tests/uni*: Regenerate.
21337 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21339         libunistring: update to Unicode 6.2.0
21340         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
21341         (unilbrk_table): Adjust table size.
21342         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
21343         for LBP_RI.
21344         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
21345         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
21346         Normalize table index skipping ignored properties.
21347         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
21348         WBP_EXTEND and WBP_FORMAT, which are now computed without using
21349         the table.
21350         * lib/uniwbrk/wbrktable.h: Adjust table size.
21351         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
21352         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
21353         Support rule GB8a.
21354         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
21355         * tests/unigbrk/test-uc-is-grapheme-break.c
21356         (graphemebreakproperty_to_string): Support GBP_RI.
21357         * tests/uniwbrk/test-uc-wordbreaks.c
21358         (wordbreakproperty_to_string): Support WBP_RI.
21359         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
21360         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
21361         (output_lbp): Support LBP_RI.  Adjust some characters changed from
21362         LBP_AL to LBP_ID.
21363         (output_lbp): Support LBP_RI.
21364         (WBP_RI): New enumeration value.
21365         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
21366         (output_wbp): Support WBP_RI.
21367         (GBP_RI): New enumeration value.
21368         (output_gbp_test, fill_org_gbp): Support GBP_RI.
21369         * all generated files under lib/uni* and tests/uni*: Regenerate.
21371 2015-01-14  Daiki Ueno  <ueno@gnu.org>
21373         libunistring: update to Unicode 6.1.0
21374         * lib/gen-uni-tables.c (output_joining_group): Switch to
21375         3-level table to accommodate joining groups defined with higher
21376         codepoint value.  Since there are only 88 groups defined in
21377         Unicode 7.0.0, use 7-bit packed format for level3 entries.
21378         (get_lbp): Update for Unicode 6.1.0.
21379         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
21380         3-level table.
21381         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
21382         joining group name.
21383         * lib/unictype/joininggroup_name.h: Likewise.
21384         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
21385         (unilbrk_table): Adjust table size.
21386         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
21387         for LBP_HL.
21388         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
21389         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
21390         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
21391         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
21392         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
21393         U+302E..U+302F.
21394         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21395         lib/uniwidth/width.c.
21396         * all generated files under lib/uni* and tests/uni*: Regenerate.
21397         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
21399 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21401         uniwbrk/u32-wordbreaks-tests: add conformance test
21402         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
21403         tests/uniwbrk/test-uc-wordbreaks.c,
21404         tests/uniwbrk/test-uc-wordbreaks.sh, and
21405         tests/uniwbrk/WordBreakTest.txt.
21406         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
21407         test-uc-wordbreaks to $(check_PROGRAMS), and define
21408         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
21409         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
21410         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
21412 2015-01-15  Daiki Ueno  <ueno@gnu.org>
21414         uniwbrk: ignore Extended/Format characters at BOL not BOS
21415         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
21416         characters if the previous character property is one of
21417         WBP_NEWLINE, WBP_CR, and WBP_LF.
21419 2015-01-11  Jim Meyering  <meyering@fb.com>
21421         test-strstr.c: avoid a trivial leak
21422         * tests/test-strstr.c (main): Free haystack.
21424         update-copyright: recognize groff's \(co marker
21425         * build-aux/update-copyright (circle_c_re): Also accept
21426         uses of \(co, as found in gzip.1.
21428 2015-01-08  Pádraig Brady  <P@draigBrady.com>
21430         maint.mk: fix compatibility with OS X nm
21431         * top/maint.mk (_gl_tight_scope): Use the -g option to
21432         show exported items rather than the -e option which is
21433         ignored on all platforms except OS X where it gives an error.
21434         Reported by Assaf Gordon.
21436 2015-01-07  KO Myung-Hun  <komh@chollian.net>
21438         localcharset: improve charset detection on OS/2
21439         Use system codepage when appropriate.  Map OS/2 codepages to
21440         GNU canonical charset names if possible.
21441         * lib/config.charset: Don't output aliases if "$os" is os2*.
21442         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
21443         result for OS/2.
21444         (locale_charset) [OS2]: Use system codepage if codeset is omitted
21445         from the locale name which is neither "C" nor "POSIX".
21447 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
21449         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
21450         This reverts the last patch but one, as it shouldn't be needed now
21451         that the typo is fixed.
21452         * lib/count-leading-zeros.h (count_leading_zeros_ll):
21453         * lib/count-trailing-zeros.h:
21454         * lib/count-one-bits.h:
21455         Go back to using 64-bit intrinsics.
21457         count-leading-zeros: fix pragma typos
21458         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
21459         Fix typos in declaration of intrinsics when _MSC_VER.
21461 2015-01-06  Pádraig Brady  <P@draigBrady.com>
21463         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
21464         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
21465         intrinsics in this case.
21466         * lib/count-trailing-zeros.h: Likewise.
21467         * lib/count-one-bits.h: Likewise.
21469 2015-01-06  Daiki Ueno  <ueno@gnu.org>
21471         uniname/uniname: update to Unicode 7.0.0
21472         To accommodate new characters added since Unicode 5.1.0, this
21473         changes the internal representation of codepoint ranges.
21474         Previously, we grouped codepoint ranges by manually assigned 4-bit
21475         tag, which only allowed 16 groups.  This removes the limitation by
21476         switching to binary search on a table.  For the detail rationale
21477         and the benchmark results, see:
21478         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
21479         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
21480         to INDEX, as it no longer represents a codepoint.
21481         (range): New struct.
21482         (main): Switch to intervals list from a bit-pattern based
21483         classification.
21484         * lib/uniname/uninames.h: Regenerate.
21485         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
21486         * modules/uniname/base (configure.ac): Bump minimum version to
21487         0.9.5.
21488         * modules/uniname/uniname (configure.ac): Bump minimum version to
21489         0.9.5.
21491 2015-01-05  Eric Blake  <eblake@redhat.com>
21493         doc: update INSTALL from autoconf
21494         * doc/install.texi: Resync from autoconf.
21495         * doc/INSTALL: Reflect recent autoconf update.
21496         * doc/INSTALL.ISO: Likewise.
21497         * doc/INSTALL.UTF-8: Likewise.
21499         stdio: fix use of PRIdMAX on modern mingw
21500         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
21501         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
21502         to work with modern mingw.
21504 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
21506         pthread: detect git mingw builds with only partial pollution
21507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
21508         pollution, as seen temporarily in Fedora 21.
21510 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21512         lib-symbol-versions: cache script check
21513         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
21514         Cache the check for linker version scripts.
21515         From a suggestion by Christophe Curis in:
21516         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
21518 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
21520         maint: fix grammar nits in propername (trivial change)
21521         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
21522         and use an adequate verb and tense.
21524 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
21526         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
21527         * module/gendocs: Add 'doc/gendocs_template_min'.
21529         * build-aux/gendocs.sh: Change email addresses and upstream URLs
21530         from to Gnulib's.
21531         (scripturl, templateurl): Adjust accordingly.
21533 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21535         gendocs: copyright date and version fix
21536         Reported by Karl Berry in:
21537         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
21538         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
21539         Fix copyright date.
21540         * build-aux/gendocs.sh (scriptversion): Update.
21542 2015-01-01  Karl Berry  <karl@gnu.org>
21544         * doc/install.texi,
21545         * build-aux/mdate-sh,
21546         * build-aux/depcomp,
21547         * build-aux/config.guess,
21548         * build-aux/config.sub,
21549         * build-aux/ar-lib,
21550         * build-aux/compile: revert copyright updates (some from last
21551         year) in slaved files.
21553 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
21555         version-etc: new year
21556         * doc/gnulib.texi:
21557         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
21558         * all files: Run 'make update-copyright'.
21560 2014-12-30  Pádraig Brady  <P@draigBrady.com>
21562         xstrtol: ensure errno is reset
21563         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
21564         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
21566         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
21568 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21570         utimens: fix dependency typo
21571         * modules/utimens (Depends-on): Remove 'assure'.
21572         This bug was introduced in the recent 'assure' patch.
21574 2014-12-22  Eric Blake  <eblake@redhat.com>
21576         docs: mention why libgen.h is bad
21577         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
21579 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21581         assure: new module
21582         This works better than 'assert' when compiling with -DNDEBUG,
21583         as it avoids some compiler diagnostics in that case.
21584         Reported by Norihiro Tanaka in:
21585         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
21586         * MODULES.html.sh (func_all_modules): Add 'assure'.
21587         * lib/assure.h, modules/assure: New files.
21588         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
21589         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
21590         Prefer 'assure' to 'assert'.
21591         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
21592         * modules/chdir-long, modules/cycle-check, modules/fchdir:
21593         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
21594         Depend on 'assure'.
21596 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
21598         stdalign: port better to HP compilers
21599         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
21600         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
21602         stdalign: work around Apple GCC 4.0 bug
21603         Reported by David Fang in:
21604         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
21605         * lib/stdalign.in.h (_Alignas):
21606         * m4/stdalign.m4 (gl_STDALIGN_H):
21607         Do not use aligned attribute with GCC 4.0 on Apple.
21609 2014-12-16  Pádraig Brady  <P@draigBrady.com>
21611         getcwd: fix test failure on OS X 10.9
21612         * m4/getcwd-path-max.m4: Avoid the replacement if it
21613         won't be effective due to the PATH_MAX limitation of lstat().
21614         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
21615         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
21616         for this case for use in tests, and also exclude this
21617         case when setting REPLACE_GETCWD.
21618         * tests/test-getcwd.c (test_long_name): Restrict the
21619         tested path length so that lstat() will not be passed
21620         a path greater than PATH_MAX.
21621         Also key a test condition on HAVE_OPENAT_SUPPORT rather
21622         than AT_FDCWD, since the latter is set unconditionally
21623         since Sep 2009 in commit 52c658e9.
21625 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
21627         parse-datetime: avoid a compiler warning with byacc (trivial)
21628         * lib/parse-datetime.y (yylex): Use the same prototype in the
21629         function definition as the declaration, to avoid a -Wstrict-prototypes
21630         warning seen when using byacc.
21632 2014-12-12  Daiki Ueno  <ueno@gnu.org>
21634         unicase/locale-language-tests: fix LOCALE_FR test
21635         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
21636         a French locale with traditional encoding.
21637         Reported by umerqayam in:
21638         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
21640 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
21642         stddef: support C11's max_align_t
21643         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
21644         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
21645         Do not undef, as that might cause max_align_t to be defined twice.
21646         Instead, change use to check for _GL_STDDEF_WINT_T too.
21647         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
21648         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
21649         Check for max_align_t.
21650         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
21651         * modules/stddef-tests (Depends-on): Add stdalign.
21652         * tests/test-stddef.c: Test max_align_t.
21654 2014-12-11  Daiki Ueno  <ueno@gnu.org>
21656         unistd: fix iOS check conditional
21657         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
21658         as 0 or 1 in <TargetConditionals.h>, and the previous check always
21659         yielded true on non-iOS environment.
21660         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
21661         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
21662         they are defined.
21664 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
21666         posixtm: avoid compiler warning in a better way
21667         * lib/posixtm.c (IF_LINT): Remove.
21668         (year, posix_time_parse):
21669         Return true (not 0) if successful.  All callers changed.
21670         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
21672 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
21674         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
21675         started with '/' on EMX.
21677 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
21679         freopen: workaround freopen() on OS/2 kLIBC
21680         * lib/freopen.c (rpl_freopen): Workaround.
21681         * m4/freopen.m4: Add os2* case.
21683         get_shared_library_fullname: port to EMX
21684         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
21685         on EMX, respectively.
21686         (_DLL_InitTerm): New on EMX.
21687         (get_shared_library_fullname): Implement on EMX.
21689         find_executable: port to EMX
21690         * lib/progreloc.c (find_executable): Implement on EMX.
21692         sched: check struct sched_param in spawn.h as well
21693         * lib/sched.in.h: Include spawn.h on kLIBC.
21694         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
21696 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
21698         bootstrap: Allow perl modules in $buildreq
21699         * build-aux/bootstrap: Add case for perl modules.
21701 2014-12-08  Pádraig Brady  <P@draigBrady.com>
21703         apply _GL_ATTRIBUTE_PURE to some inline functions
21704         clang 3.4.2 flagged these inline functions as pure
21705         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
21706         * lib/sig-handler.h (get_handler): Likewise.
21707         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
21708         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
21710 2014-12-06  Pádraig Brady  <P@draigBrady.com>
21712         vasnprintf: fix potential use after free
21713         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
21714         flagged by clang-analyzer 3.4.2.
21716 2014-12-05  Pádraig Brady  <P@draigBrady.com>
21718         filevercmp, posixtm: avoid compiler warnings with -O3
21719         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
21720         * lib/posixtm.c: (IF_LINT): Define.
21721         (posix_time_parse): Use it to void a "may be used uninitialized"
21722         warning, seen only with -O3.
21724 2014-12-05  Bruno Haible  <bruno@clisp.org>
21726         Fix LDBL80_WORDS macro on big endian platforms.
21727         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
21728         LDBL80_WORDS macro.
21729         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
21730         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
21731         * tests/test-isfinite.c (test_isfinitel): Likewise.
21732         * tests/test-isinf.c (test_isinfl): Likewise.
21733         * tests/test-isnan.c (test_long_double): Likewise.
21734         * tests/test-isnanl.h (main): Likewise.
21735         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
21736         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
21737         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
21738         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
21739         Reported by Pádraig Brady.
21741 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
21743         git-version-gen: do not print new line characters
21744         * build-aux/git-version-gen: Use printf instead of echo and tr.
21746         gnulib-tool: recognize x:* as an absolute path
21747         * gnulib-tool (func_gnulib_dir): Add ?:* case.
21748         (func_relconcat): Likewise.
21750 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
21752         argp: avoid extraneous translation and mem leak with empty pre doc
21753         * lib/argp-help.c (argp_doc): Never translate the empty string,
21754         when "\v" is the first or last character of the string, as that
21755         has a reserved meaning to return the header info from a po file.
21756         This also fixes a small memory leak in the !post case.
21757         The issue can be seen with this command for example:
21758         LC_MESSAGES=en_US grub2-mknetdir --help
21760 2014-11-27  Daiki Ueno  <ueno@gnu.org>
21762         uniname/uniname-tests: skip if system's libunistring is used
21763         * modules/uniname/uniname-tests (Makefile.am): Skip test if
21764         uniname/uniname module is not compiled.
21766 2014-11-27  Pádraig Brady  <P@draigBrady.com>
21768         printf: fix configure check on big endian systems
21769         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
21771 2014-11-22  Daiki Ueno  <ueno@gnu.org>
21773         pipe-filter-gi, pipe-filter-ii: port to AIX
21774         On AIX 7.1, 'select' is defined as static and cannot be referred
21775         to from inline function.
21776         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
21777         the definition...
21778         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
21779         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
21781 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21783         gitlog-to-changelog: add --until
21784         * build-aux/gitlog-to-changelog: Support new --until option.
21785         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
21787 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21789         extern-inline: update commentary about GCC bugs
21790         * m4/extern-inline.m4: Add another GCC bug number to comments.
21792 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21794         gen-uni-tables: untabify
21795         * lib/gen-uni-tables.c: Untabify.
21797 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21799         gen-uni-tables: check out-of-range values added to 3-level tables
21800         * lib/gen-uni-tables.c (output_category, output_bidi_category)
21801         (output_joining_type, output_ident_category): Check out-of-range
21802         values added to 3-level tables.
21804 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21806         gen-uni-tables: utilize 'assert'
21807         * lib/gen-uni-tables.c: Include <assert.h>.
21808         (output_category, output_combclass, output_decimal_digit_test)
21809         (output_decimal_digit, output_digit_test, output_digit)
21810         (output_numeric, get_mirror_value, fill_properties)
21811         (fill_property30, is_property_alphabetic)
21812         (is_property_default_ignorable_code_point)
21813         (is_property_uppercase, is_property_lowercase)
21814         (is_property_cased, is_property_case_ignorable)
21815         (is_property_changes_when_lowercased, is_property_iso_control)
21816         (is_property_math, fill_arabicshaping, output_joining_group)
21817         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
21818         (output_wbp, fill_org_gbp, get_decomposition)
21819         (output_decomposition, fill_composition_exclusions)
21820         (debug_output_composition_tables, output_composition_tables)
21821         (redistribute_casefolding_rules, output_casing_rules): Use
21822         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
21823         reporting.
21825 2014-11-13  Daiki Ueno  <ueno@gnu.org>
21827         gen-uni-tables: cosmetic improvements
21828         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
21829         variables specification.
21830         (is_outdigit): Remove unused function.
21832 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
21834         fcntl-h-tests: port to PA-RISC GNU/Linux
21835         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
21837 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
21839         fts: port to C89
21840         Problem reported for MSVC 16 by Gisle Vanem in:
21841         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
21842         * lib/fts.c (fts_build): Avoid declaration before statement.
21844 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21846         unistd: port to iOS
21847         Problem reported by André Klitzing in:
21848         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
21849         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
21851 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21853         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
21854         Problem reported by Alan Modra in:
21855         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
21856         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
21857         Always cast the function arg, reverting this part of the previous
21858         change.
21860 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
21862         obstack: avoid potentially-nonportable function casts
21863         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
21864         Remove, replacing with ...
21865         (call_chunkfun, call_freefun): New static functions.
21866         All uses changed.  Avoid potentially-nonportable casts.
21867         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
21868         (_obstack_begin_worker): Omit last two args, since they
21869         rely on potentially-nonportable casts.  All callers changed.
21870         * lib/obstack.h (_OBSTACK_CAST): New macro.
21871         Use it everywhere the old API used a potentially-nonportable cast.
21872         The new API doesn't cast.
21873         (struct obstack): Use unions rather than requiring
21874         potentially-nonportable casts.
21875         (obstack_chunkfun, obstack_freefun): Return void.
21877 2014-11-03  Alan Modra  <amodra@gmail.com>
21879         obstack: fix macro return values
21880         * lib/obstack.h (obstack_next_free): Return void *.
21881         (obstack_1grow_fast, obstack_blank_fast): Return void.
21882         For __GNUC__ macros:
21883         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
21884         For !__GNUC__ macros:
21885         (obstack_make_room, obstack_grow, obstack_grow0)
21886         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
21888 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
21890         obstack: do not assume system-supplied obstack is size_t safe
21891         * m4/obstack.m4: New file.
21892         * modules/obstack (Files): Add it.
21894         obstack: port to platforms that #define __alignof__
21895         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
21896         not if !_LIBC.  We don't know of any platforms that #define
21897         __alignof__, but it might be useful in tests.  Conversely,
21898         glibc assumes GCC.
21900 2014-11-03  Pádraig Brady  <P@draigBrady.com>
21902         linkat: don't unconditionally replace on GNU/Linux
21903         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
21904         was redundant for a few reasons.  It was present to support compiling
21905         on new systems but running on the old narrow window of Linux 2.6.1[67].
21906         It setup and cleaned up test files which weren't actually used.
21907         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
21908         implicit in the following check.
21910 2014-11-03  Pádraig Brady  <P@draigBrady.com>
21912         linkat: wrap to handle symlinks on OS X 10.10
21913         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
21914         but not usable because it doesn't support creating hardlinks
21915         to symlinks.  Therefore add a generic test for this capability
21916         and fallback to our emulation if linkat() fails with ENOTSUP.
21918 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
21920         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
21921         * doc/posix-functions/open.texi (open):
21922         * doc/posix-functions/openat.texi (openat):
21923         Document that these functions do not set errno to ELOOP when
21924         a symlink is opened with O_NOFOLLOW.
21926 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
21928         obstack: add NEWS entry for recent incompatible changes
21929         * NEWS: Describe recent changes.
21931 2014-10-30  Pádraig Brady  <P@draigBrady.com>
21933         mountlist: don't use libmount to decide on dummy/remote
21934         * lib/mountlist.c (read_file_system_list): Don't use the libmount
21935         routines to determine whether a file system is dummy or remote,
21936         as they're not currently compatible.  For example the remoteness
21937         is determined on file system type (for which the list seems incomplete),
21938         rather than simply checking for a ':' in the device name.
21939         Also libmount currently determines that 'tmpfs' is a dummy file system
21940         even though it has associated storage.
21942 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21944         obstack: prefer __alignof__ to alignof
21945         This is for portability to pre-4.7 GCC when compiling glibc.
21946         See Joseph S. Myers in:
21947         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
21948         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
21949         New macro, defined by including and using <alignof.h>.
21950         (MAX): New macro.
21951         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
21952         Do not use enums as they are not portable to some broken compilers.
21953         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
21955         obstack: prefer alignof to calculating alignments by hand
21956         * lib/obstack.c: Include <stdalign.h>.
21957         (struct fooalign): Remove.
21958         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
21959         * modules/obstack (Depends-on): Add stdalign.
21961 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
21963         obstack: use size_t alignments and check for overflow
21964         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
21965         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
21966         * lib/obstack.h (struct obstack.alignment_mask):
21967         Use _OBSTACK_SIZE_T, not int, for alignments.
21968         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
21969         overflows, e.g., when adding the alignment.
21971 2014-10-29  Alan Modra  <amodra@gmail.com>
21973         obstack: 64-bit obstack support, part 3
21974         This finally enables full 64-bit obstack support.  The glibc
21975         shared library specific code is removed from obstack.c too, and
21976         the error handling code conditionally compiled under control of
21977         another macro, _OBSTACK_NO_ERROR_HANDLER.
21978         * lib/obstack.h: Include string.h earlier.
21979         (_OBSTACK_INTERFACE_VERSION): Define.
21980         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
21981         * lib/obstack.c: Don't include shlib-compat.h.
21982         (OBSTACK_INTERFACE_VERSION): Delete.
21983         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
21984         glibc code is compatible with version 2.  Don't include stdio.h for
21985         __GNU_LIBRARY.
21986         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
21987         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
21988         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
21989         glibc shared library specific source.
21991         obstack: 64-bit obstack support, part 2
21992         This gets us 4G obstack support, without changing ABI
21993         compatibility, apart from possibly introducing some
21994         signed/unsigned comparison warnings in code that uses obstack.h.
21995         a) Replace "int" size parameters, return values, and macro local vars
21996            with _OBSTACK_SIZE_T, an "unsigned int" for now.
21997         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
21998         c) Make all obstack macros checking available room use obstack_room.
21999            "next_free + desired > chunk_limit" may wrap the lhs for chunks
22000            allocated near the top of memory.
22001         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
22002         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
22003         in place of "int" size parameters, return values and local vars.
22004         (_CHUNK_SIZE_T): Define.
22005         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
22006         union use an _OBSTACK_SIZE_T integer type.
22007         For __GNUC__ versions of the following macros...
22008         (obstack_room): Rename local var.
22009         (obstack_make_room): Use obstack_room.
22010         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
22011         obstack_int_grow, obstack_blank): Likewise.
22012         (obstack_finish): Use unsigned comparison when comparing aligned
22013         next_free against chunk_limit.
22014         (obstack_free): Cast OBJ to remove possible const qualifier.
22015         For !__GNUC__ versions of the following macros...
22016         (obstack_make_room): Use obstack_room.
22017         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
22018         obstack_int_grow, obstack_blank): Likewise.
22019         (obstack_finish): Use unsigned comparision when comparing aligned
22020         next_free against chunk_limit.
22021         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
22022         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
22023         _OBSTACK_SIZE_T.
22024         (_obstack_begin, _obstack_begin_1): Likewise.
22025         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
22026         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
22028         obstack: 64-bit obstack support, part 1
22029         a) Correct calls to alloc function, to use a size_t arg.  "long" is
22030            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
22031            and "size_t" 64 bits.
22032         b) Consolidate _obstack_begin and _obstack_begin1 code.
22033         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
22034         use "size_t" rather than "long".
22035         (_obstack_begin, _obstack_begin1): Likewise.
22036         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
22037         obstack_chunkfun): Update alloc function casts.
22038         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
22039         (chunkfun_type, freefun_type): New typdefs.
22040         (_obstack_begin_worker): Split out from ..
22041         (_obstack_begin, _obstack_begin_1): ..here.
22043         obstack: tidy part 2
22044         a) Don't be concerned about "not polluting the namespace with stddef.h
22045            symbols" in obstack.h, since gnulib string.h includes stddef.h
22046            anyway, and it seems unlikely that anyone would care.
22047         b) Don't roll our own slow memcpy in _obstack_newchunk.
22048         c) Rename obstack_free to _obstack_free.  This makes the naming
22049            consistent with other obstack functions and obviates the need for
22050            __obstack_free.  Ancient obstack.c defined both obstack_free and
22051            _obstack_free.  We continue to do that for _LIBC via an alias.
22052         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
22053            is clever, but nowadays gcc warns on undefined macros.  You'll get
22054            an undefined macro warning if simulating an old gcc with -U__GNUC__
22055            -U__GNUC_MINOR__ -D__GNUC__=1.
22056         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
22057         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
22058         (__obstack_free): Delete, update refs.
22059         (_obstack_free): Rename from obstack_free.
22060         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
22061         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
22062         * lib/obstack.c: Don't include stddef.h.
22063         (COPYING_UNIT): Delete.
22064         (_obstack_begin): Formatting fix.
22065         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
22066         (_obstack_free): Rename from __obstack_free, update alias.  Move
22067         undef of obstack_free to where it is needed.
22069         obstack: tidy part 1
22070         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
22071            to me, and result in overlong lines after later patches.
22072         b) Move error handling code, to avoid a forward declaration and to
22073            simplify later patches in this series.
22074         * lib/obstack.h (struct obstack <temp>): Rename fields of union
22075         and update all uses.
22076         * lib/obstack.c: Include stdlib.h earlier.
22077         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
22078         in file.
22079         (print_and_abort): Remove now redundant forward declaration.
22081 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22083         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
22084         Without this change, in bleeding-edge fileutils Autoconf complains
22085         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
22086         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
22087         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
22088         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
22090 2014-10-24  Daiki Ueno  <ueno@gnu.org>
22092         iconv: avoid false detection of non-working iconv
22093         The INBUF arguments of iconv can be either 'const char **'
22094         or 'char **'.  If CC is g++, the difference causes a compile error
22095         and thus leads to a false detection of non-working iconv.
22096         Reported by Eli Zaretskii and Werner LEMBERG in:
22097         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
22098         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
22099         iconv.  Bump serial number.
22101 2014-10-23  Pádraig Brady  <P@draigBrady.com>
22103         bootstrap: print more diagnostics for missing programs
22104         * build-aux/bootstrap: only suppress stderr when checking for
22105         alternative program names.  This supports programs issuing non
22106         standard error messages.
22108 2014-10-23  Pádraig Brady  <P@draigBrady.com>
22110         bootstrap: only update the gnulib submodule
22111         * build-aux/bootstrap: Restrict the "submodule update" command
22112         to the gnulib path.
22114 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
22116         symlinkat: port to AIX 7.1
22117         * doc/posix-functions/symlinkat.texi (symlinkat):
22118         Mention AIX porting problem.
22119         * lib/symlinkat.c: Always include errno.h.
22120         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
22121         * lib/unistd.in.h (symlinkat): Add replacement machinery.
22122         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
22123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
22124         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
22125         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
22126         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
22128         readlinkat: port to AIX 7.1
22129         * doc/posix-functions/readlink.texi (readlink):
22130         * doc/posix-functions/readlinkat.texi (readlinkat):
22131         Mention AIX porting problem.
22132         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
22133         New function.
22134         * lib/unistd.in.h (readlinkat): Add replacement machinery.
22135         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
22136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
22137         * modules/readlinkat (configure.ac): Also compile replacement
22138         if REPLACE_READLINKAT.
22139         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
22141 2014-10-12  Karl Berry  <karl@gnu.org>
22143         * doc/posix-functions/dirname.texi: remove spurious {.
22145 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
22147         basename, dirname: Improve documentation.
22148         * doc/posix-functions/basename.texi: Mention dirname module and
22149         base_name() function.
22150         * doc/posix-functions/dirname.texi: Mention dir_name() and
22151         mdir_name() functions.
22152         Suggested by Werner LEMBERG <wl@gnu.org>.
22154 2014-09-24  Jim Meyering  <meyering@fb.com>
22156         exclude: declare exclude_patopts static
22157         * lib/exclude.c (exclude_patopts): Declare static,
22158         to avoid triggering a -Wmissing-prototypes warning.
22159         The alternative (declaring it in the .h file) would
22160         require publicizing the private "struct patopts".
22162 2014-09-21  Werner Lemberg  <wl@gnu.org>
22164         dirname: support compilation with C++
22165         * lib/dirname.h: Add necessary C linkage declarations.
22167 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
22169         qsort_r: include <config.h>
22170         Problem reported by Tom G. Christensen in:
22171         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
22172         * lib/qsort.c [!_LIBC]: Include <config.h> first.
22174 2014-09-16  Dylan Cali  <calid1984@gmail.com>
22176         avltree-list: avoid compiler warnings (trivial)
22177         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
22178         -Werror=suggest-attribute=pure.
22179         * lib/gl_array_list.c: Likewise.
22180         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
22181         declaration to avoid -Werror=missing-prototypes.  This is not added
22182         to a header as only exported for tests.  Add (void) to the
22183         check_invariants() call to indicate we're discarding the result
22184         in this context which avoids -Werror=unused-value.  Note we don't
22185         use ignore_value here to avoid a dependency as we know we'll not
22186         be adding __attribute__((warn_unused_result)) to check_invariants().
22187         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
22189 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
22191         qsort_r: new module, for GNU-style qsort_r
22192         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
22194 2014-09-15  Werner LEMBERG  <wl@gnu.org>
22196         strerror_r-posix: support compilation with C++
22197         * lib/strerror_r.c: Add necessary C linkage declarations.
22199 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
22201         fcntl-h: fix compilation with Intel C++ compiler (trivial)
22202         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
22204 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
22206         mountlist: use /proc/self/mountinfo when available
22207         Use libmount to propagate device IDs provided by Linux in
22208         /proc/self/mountinfo.  This will give more accurate output when
22209         using df in chroot'ed environments as the device IDs are not
22210         determined by stat() which may be inaccurate within the chroot.
22211         * lib/mountlist.c (read_file_system_list): Use the libmount routines
22212         from util-linux to parse "/proc/self/mountinfo" or fall back to
22213         standard getmntent() processing.
22214         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
22215         getmntent() is used, as is the case on GNU/Linux.
22217 2014-09-07  Eric Wong  <normalperson@yhbt.net>
22219         users.txt: add cmogstored
22220         cmogstored has used gnulib since the beginning in 2012 to support
22221         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
22223 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
22225         Trivial change.
22226         * gnulib-tool: Use same options as build-aux/bootstrap to download
22227         PO files.
22229 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
22231         Trivial change.
22232         * gnulib-tool: Fallback to wget when rsync of PO files fails.
22234 2014-09-04  Eric Blake  <eblake@redhat.com>
22236         maintainer-makefile: add syntax check for useless ';;'
22237         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
22239 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
22241         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
22242         Problem reported by Assaf Gordon in:
22243         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
22244         Apparently Ubuntu is doing some fancy link-time optimization
22245         that doesn't work with -lpthread but does work with -pthread.
22246         Work around the bug by preferring -pthread to -lpthread.
22247         * m4/pthread.m4 (gl_PTHREAD_CHECK):
22248         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
22249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
22250         Treat -pthread like -lpthread.
22252 2014-09-04  Eric Blake  <eblake@redhat.com>
22254         error: drop spurious semicolon
22255         * lib/error.c (__error_at_line): Fix ';;'.
22257 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22259         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
22260         * m4/gnulib-common.m4 (AC_C_RESTRICT):
22261         Override AC_C_RESTRICT unconditionally.
22262         Update from autoconf, incorporating:
22263         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
22264         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
22266 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22268         manywarnings: add GCC 4.9 warnings
22269         Also, make it easier to maintain this in the future.
22270         * build-aux/gcc-warning.spec: Add -Wabi-tag,
22271         -Wconditionally-supported, -Wdelete-incomplete,
22272         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
22273         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
22274         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
22275         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
22276         only for older GCC versions that need them.  Handle
22277         -Wnormalized=nfc specially, so that the 'comm' command used
22278         for maintenance doesn't get confused.
22280 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
22282         vasnprintf: fix bugs in width computation
22283         * lib/vasnprintf.c (VASNPRINTF):
22284         Rework previous change, which introduced a bug,
22285         to avoid the warning in a different way.
22286         Avoid undefined behavior if the width arg is less than -INT_MAX.
22287         Avoid unnecessary use of HAS_WIDTH local.
22289 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
22291         vasnprintf: Avoid signed/unsigned comparison warning.
22292         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
22293         compare end addr of generated string w/ maximum end addr.
22295 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
22297         parse-datetime: Avoid pointer difference.
22298         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
22299         instead of calculating difference of pointers.  This removes an
22300         annoying warning, devoid of any use.
22302 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
22304         qsort_r: new module, for GNU-style qsort_r
22305         This works even on FreeBSD, which has an incompatible qsort_r API.
22306         * MODULES.html.sh: Add it.
22307         * doc/glibc-functions/qsort_r.texi: It's now supported.
22308         * lib/qsort.c: New file, taken from glibc with minor changes
22309         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
22310         removed.
22311         * lib/qsort_r.c: New file, compiled only on FreeBSD.
22312         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
22313         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
22314         * modules/qsort_r, modules/qsort_r-tests: New files.
22315         * modules/stdlib (Makefile): Set up its defaults.
22316         * tests/test-qsort_r.c: New file.
22318 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22320         vla: new module
22321         GNU RCS can use this, mostly for documentation I expect.  See:
22322         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
22323         * MODULES.html.sh: Add vla.
22324         * lib/vla.h, modules/vla: New files.
22326 2014-08-07  Daiki Ueno  <ueno@gnu.org>
22328         localename: make gl_locale_name_thread really thread-safe on Windows
22329         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
22330         "glthread/lock.h".
22331         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
22332         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
22334 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
22336         getpass: don't assume struct termios
22337         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
22338         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
22339         * lib/getpass.c (getpass): Port to systems lacking struct termios.
22341         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
22342         Problem reported by Jonas 'Sortie' Termansen in:
22343         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
22344         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
22345         Implement via sysconf for platforms that lack getdtablesize.
22347         vararrays: modernize AC_C_VARARRAYS for C11
22348         This backports a change I recently made to Autoconf.
22349         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
22350         VLAs are not supported, as this is what C11 does.  The old macro
22351         HAVE_C_VARARRAYS is still defined if they are supported, but is
22352         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
22354 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
22356         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
22357         * build-aux/install-reloc (func_create_wrapper): Also wrap
22358         strerror-override, stat, stat.
22360 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22362         sys_select: fix FD_ZERO problem on Solaris 10
22363         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
22364         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
22365         to expand to an expression that invoked memset without necessarily
22366         including <string.h>.  The problem was that the first include
22367         defined _SYS_TIME_H, causing the second include to short-circuit.
22368         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
22369         Also, fix what appears to be a cut-and-paste typo, by replacing
22370         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
22371         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
22373         accept: document Solaris 10 type glitch
22374         * doc/posix-functions/accept.texi (accept): Mention that
22375         Solaris 10 'accept' takes void * last arg, not socklen_t *.
22377 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22379         extern-inline: port to FreeBSD, DragonFly
22380         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
22381         is present if either __DragonFly__ or __FreeBSD__ is defined.
22382         FreeBSD problem reported by Andrey Borzenkov in:
22383         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
22384         Also, worry about __APPLE__ only if __MACH__ is also defined,
22385         as this is more consistent with the rest of gnulib.
22386         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
22387         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
22389 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
22391         regex: Make #if/#ifdef usage consistent for DEBUG
22392         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
22393         of the inconsistent usage of #if and #ifdef as that works with
22394         both Glibc and Gnulib's style.
22396 2014-07-31  Eric Blake  <eblake@redhat.com>
22398         openat-die: use _Noreturn markup
22399         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
22400         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
22401         _Noreturn.
22403 2014-07-30  Eric Blake  <eblake@redhat.com>
22405         test-open: port to cygwin, which lacks Fortify
22406         * tests/test-open.h (ALWAYS_INLINE): New macro.
22407         (__always_inline): Don't abuse internal symbol on non-glibc.
22409 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
22411         localename: Enforce declarations before statements.
22412         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
22413         first statement.
22415 2014-07-18  Jim Meyering  <meyering@fb.com>
22417         test-userspec: don't look up numeric user names
22418         * tests/test-userspec.c: I found a system for which getpwnam("0")
22419         returned a pointer to a non-root user's entry, and that made the
22420         test fail.
22421         (T): Prefix each numeric input with "+", to inhibit lookup.
22423 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
22425         localcharset, localename: MS-Windows support for non-default locales
22426         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
22427         falling back on the default system codepage, try extracting
22428         the codepage from what 'setlocale' returns.  This allows to
22429         take into account changes of the codeset due to non-default
22430         locale set by a previous call to 'setlocale'.
22431         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
22432         Define if not already defined.
22433         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
22434         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
22435         current locale by calling 'setlocale', then converting the
22436         locale name into LCID by calling 'get_lcid'.  This allows to
22437         take into account changes in the current locale from the
22438         default one, in contrast to GetThreadLocale.
22440 2014-07-14  Daiki Ueno  <ueno@gnu.org>
22442         announce-gen: avoid failure when Digest::SHA is installed
22443         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
22444         Digest::SHA1->new in print_checksums fails.
22445         * build-aux/announce-gen (digest_classes): New associative array
22446         for available message digest implementations.
22447         (print_locations): Use it.
22449 2014-07-13  Pádraig Brady  <P@draigBrady.com>
22451         gettext: revert "update macros to version 0.19"
22452         This reverts commit 9b9370ca, as it currently requires that
22453         developers of any project that explicitly uses the gettext module
22454         or implicitly uses it through the utimens-tests or
22455         futimens-tests modules, use gettext >= 0.19.
22456         However there are some stability and availablity issues with
22457         that version at present.  We can reinstate this soon, when stability
22458         is addressed and packages are more readily available.
22460 2014-07-12  Jim Meyering  <meyering@fb.com>
22462         regex: don't deref NULL upon heap allocation failure
22463         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
22464         failure in one more place.
22465         To trigger the segfault, configure grep -with-included-regex,
22466         build it, and run these commands:
22467         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
22468         I discovered this while replying to a private report from
22469         Jens Schleusener about excessive memory consumption by grep
22470         when using a regular expression like the one above.
22472 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22474         regex: fix memory leak in compiler
22475         Fix by Andreas Schwab in:
22476         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
22477         * lib/regcomp.c (parse_reg_exp): Deallocate partially
22478         constructed tree before returning error.
22480 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
22482         announce-gen: avoid perl warnings
22483         * build-aux/announce-gen: add two minor checks to avoid
22484         "use of uninitialized value" warnings when command-line parameters are
22485         missing.
22487 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
22489         localename: avoid -Wsuggest-attribute={const,pure} warnings
22490         * lib/localename.c (string_has): Tag internal function as pure.
22491         * lib/localename.h (gl_locale_name_default): Tag extern declaration
22492         as const when appropriate.
22494 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
22496         nl_langinfo: Fix last change.
22497         * lib/nl_langinfo.c (includes): Drop redundant include.
22499 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
22501         error: Fix -Wundef warnings in glibc
22502         * lib/error.c [_LIBC]: Define default macros for
22503         glibc.
22504         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
22505         Check _LIBC before STRERROR_R_CHAR_P.
22507         error: Sync from glibc master
22508         * lib/error.c [_LIBC]: Remove INTUSE usage.
22509         (error_tail): Remove unused macro ALLOCA_LIMIT.
22510         Fix potential buffer overflow.  Fix potential NULL dereference
22511         in strcmp.
22513 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
22515         nl_langinfo: fix build under mingw
22516         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
22518 2014-07-09  Andrew D Warshall  <warshall@99main.com>
22520         mountlist: do not classify a bind-mounted dir entry as "dummy"
22521         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
22522         1-argument getmntent() (instead of assuming absence).
22524 2014-07-08  Eric Blake  <eblake@redhat.com>
22526         maint.mk: less syntax-check noise when SIGPIPE is ignored
22527         * top/maint.mk (_sc_header_without_use)
22528         (sc_require_config_h_first): Parse full list.
22530 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
22531             Paul Eggert  <eggert@cs.ucla.edu>
22533         nl_langinfo: CODESET on MS-Windows and more items from localeconv
22534         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
22535         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
22536         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
22537         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
22538         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
22539         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
22540         Include <stdio.h> if Microsoft Windows.
22541         Include <time.h> if !REPLACE_NL_LANGINFO.
22542         (ctype_codeset): New function, taken from rpl_nl_langinfo,
22543         and with improvements for Microsoft Windows.
22544         (rpl_nl_langinfo): Use it.
22545         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
22546         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
22547         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
22548         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
22549         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
22550         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
22551         corresponding values returned by 'localeconv'.  Compute the values
22552         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
22553         'strftime' with a suitable struct tm value.
22555 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22557         Bruno Haible has stepped down as maintainer.
22558         See Karl Berry in:
22559         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
22560         Daiki Ueno has volunteered to maintain libunistring; see:
22561         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
22562         * modules/gen-uni-tables, modules/libunistring:
22563         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
22564         * modules/unicase/base, modules/unicase/cased:
22565         * modules/unicase/empty-prefix-context:
22566         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
22567         * modules/unicase/locale-language, modules/unicase/special-casing:
22568         * modules/unicase/tocasefold, modules/unicase/tolower:
22569         * modules/unicase/totitle, modules/unicase/toupper:
22570         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
22571         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
22572         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
22573         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
22574         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
22575         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
22576         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
22577         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
22578         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
22579         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
22580         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
22581         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
22582         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
22583         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
22584         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
22585         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
22586         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
22587         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
22588         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
22589         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
22590         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
22591         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
22592         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
22593         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
22594         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
22595         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
22596         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
22597         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
22598         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
22599         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
22600         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
22601         * modules/unicase/ulc-casexfrm, modules/unicodeio:
22602         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
22603         * modules/uniconv/u16-conv-to-enc:
22604         * modules/uniconv/u16-strconv-from-enc:
22605         * modules/uniconv/u16-strconv-from-locale:
22606         * modules/uniconv/u16-strconv-to-enc:
22607         * modules/uniconv/u16-strconv-to-locale:
22608         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
22609         * modules/uniconv/u32-strconv-from-enc:
22610         * modules/uniconv/u32-strconv-from-locale:
22611         * modules/uniconv/u32-strconv-to-enc:
22612         * modules/uniconv/u32-strconv-to-locale:
22613         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
22614         * modules/uniconv/u8-strconv-from-enc:
22615         * modules/uniconv/u8-strconv-from-locale:
22616         * modules/uniconv/u8-strconv-to-enc:
22617         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
22618         * modules/unictype/bidicategory-all:
22619         * modules/unictype/bidicategory-byname:
22620         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
22621         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
22622         * modules/unictype/bidiclass-byname:
22623         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
22624         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
22625         * modules/unictype/block-all, modules/unictype/block-list:
22626         * modules/unictype/block-of, modules/unictype/block-test:
22627         * modules/unictype/category-C, modules/unictype/category-Cc:
22628         * modules/unictype/category-Cf, modules/unictype/category-Cn:
22629         * modules/unictype/category-Co, modules/unictype/category-Cs:
22630         * modules/unictype/category-L, modules/unictype/category-LC:
22631         * modules/unictype/category-Ll, modules/unictype/category-Lm:
22632         * modules/unictype/category-Lo, modules/unictype/category-Lt:
22633         * modules/unictype/category-Lu, modules/unictype/category-M:
22634         * modules/unictype/category-Mc, modules/unictype/category-Me:
22635         * modules/unictype/category-Mn, modules/unictype/category-N:
22636         * modules/unictype/category-Nd, modules/unictype/category-Nl:
22637         * modules/unictype/category-No, modules/unictype/category-P:
22638         * modules/unictype/category-Pc, modules/unictype/category-Pd:
22639         * modules/unictype/category-Pe, modules/unictype/category-Pf:
22640         * modules/unictype/category-Pi, modules/unictype/category-Po:
22641         * modules/unictype/category-Ps, modules/unictype/category-S:
22642         * modules/unictype/category-Sc, modules/unictype/category-Sk:
22643         * modules/unictype/category-Sm, modules/unictype/category-So:
22644         * modules/unictype/category-Z, modules/unictype/category-Zl:
22645         * modules/unictype/category-Zp, modules/unictype/category-Zs:
22646         * modules/unictype/category-all, modules/unictype/category-and:
22647         * modules/unictype/category-and-not, modules/unictype/category-byname:
22648         * modules/unictype/category-longname, modules/unictype/category-name:
22649         * modules/unictype/category-none, modules/unictype/category-of:
22650         * modules/unictype/category-or, modules/unictype/category-test:
22651         * modules/unictype/category-test-withtable:
22652         * modules/unictype/combining-class:
22653         * modules/unictype/combining-class-all:
22654         * modules/unictype/combining-class-byname:
22655         * modules/unictype/combining-class-longname:
22656         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
22657         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
22658         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
22659         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
22660         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
22661         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
22662         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
22663         * modules/unictype/digit, modules/unictype/joininggroup-all:
22664         * modules/unictype/joininggroup-byname:
22665         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
22666         * modules/unictype/joiningtype-all:
22667         * modules/unictype/joiningtype-byname:
22668         * modules/unictype/joiningtype-longname:
22669         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
22670         * modules/unictype/mirror, modules/unictype/numeric:
22671         * modules/unictype/property-all, modules/unictype/property-alphabetic:
22672         * modules/unictype/property-ascii-hex-digit:
22673         * modules/unictype/property-bidi-arabic-digit:
22674         * modules/unictype/property-bidi-arabic-right-to-left:
22675         * modules/unictype/property-bidi-block-separator:
22676         * modules/unictype/property-bidi-boundary-neutral:
22677         * modules/unictype/property-bidi-common-separator:
22678         * modules/unictype/property-bidi-control:
22679         * modules/unictype/property-bidi-embedding-or-override:
22680         * modules/unictype/property-bidi-eur-num-separator:
22681         * modules/unictype/property-bidi-eur-num-terminator:
22682         * modules/unictype/property-bidi-european-digit:
22683         * modules/unictype/property-bidi-hebrew-right-to-left:
22684         * modules/unictype/property-bidi-left-to-right:
22685         * modules/unictype/property-bidi-non-spacing-mark:
22686         * modules/unictype/property-bidi-other-neutral:
22687         * modules/unictype/property-bidi-pdf:
22688         * modules/unictype/property-bidi-segment-separator:
22689         * modules/unictype/property-bidi-whitespace:
22690         * modules/unictype/property-byname:
22691         * modules/unictype/property-case-ignorable:
22692         * modules/unictype/property-cased:
22693         * modules/unictype/property-changes-when-casefolded:
22694         * modules/unictype/property-changes-when-casemapped:
22695         * modules/unictype/property-changes-when-lowercased:
22696         * modules/unictype/property-changes-when-titlecased:
22697         * modules/unictype/property-changes-when-uppercased:
22698         * modules/unictype/property-combining:
22699         * modules/unictype/property-composite:
22700         * modules/unictype/property-currency-symbol:
22701         * modules/unictype/property-dash:
22702         * modules/unictype/property-decimal-digit:
22703         * modules/unictype/property-default-ignorable-code-point:
22704         * modules/unictype/property-deprecated:
22705         * modules/unictype/property-diacritic:
22706         * modules/unictype/property-extender:
22707         * modules/unictype/property-format-control:
22708         * modules/unictype/property-grapheme-base:
22709         * modules/unictype/property-grapheme-extend:
22710         * modules/unictype/property-grapheme-link:
22711         * modules/unictype/property-hex-digit:
22712         * modules/unictype/property-hyphen:
22713         * modules/unictype/property-id-continue:
22714         * modules/unictype/property-id-start:
22715         * modules/unictype/property-ideographic:
22716         * modules/unictype/property-ids-binary-operator:
22717         * modules/unictype/property-ids-trinary-operator:
22718         * modules/unictype/property-ignorable-control:
22719         * modules/unictype/property-iso-control:
22720         * modules/unictype/property-join-control:
22721         * modules/unictype/property-left-of-pair:
22722         * modules/unictype/property-line-separator:
22723         * modules/unictype/property-logical-order-exception:
22724         * modules/unictype/property-lowercase, modules/unictype/property-math:
22725         * modules/unictype/property-non-break:
22726         * modules/unictype/property-not-a-character:
22727         * modules/unictype/property-numeric:
22728         * modules/unictype/property-other-alphabetic:
22729         * modules/unictype/property-other-default-ignorable-code-point:
22730         * modules/unictype/property-other-grapheme-extend:
22731         * modules/unictype/property-other-id-continue:
22732         * modules/unictype/property-other-id-start:
22733         * modules/unictype/property-other-lowercase:
22734         * modules/unictype/property-other-math:
22735         * modules/unictype/property-other-uppercase:
22736         * modules/unictype/property-paired-punctuation:
22737         * modules/unictype/property-paragraph-separator:
22738         * modules/unictype/property-pattern-syntax:
22739         * modules/unictype/property-pattern-white-space:
22740         * modules/unictype/property-private-use:
22741         * modules/unictype/property-punctuation:
22742         * modules/unictype/property-quotation-mark:
22743         * modules/unictype/property-radical:
22744         * modules/unictype/property-sentence-terminal:
22745         * modules/unictype/property-soft-dotted:
22746         * modules/unictype/property-space:
22747         * modules/unictype/property-terminal-punctuation:
22748         * modules/unictype/property-test, modules/unictype/property-titlecase:
22749         * modules/unictype/property-unassigned-code-value:
22750         * modules/unictype/property-unified-ideograph:
22751         * modules/unictype/property-uppercase:
22752         * modules/unictype/property-variation-selector:
22753         * modules/unictype/property-white-space:
22754         * modules/unictype/property-xid-continue:
22755         * modules/unictype/property-xid-start:
22756         * modules/unictype/property-zero-width, modules/unictype/scripts:
22757         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
22758         * modules/unictype/syntax-c-whitespace:
22759         * modules/unictype/syntax-java-ident:
22760         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
22761         * modules/unigbrk/u16-grapheme-breaks:
22762         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
22763         * modules/unigbrk/u32-grapheme-breaks:
22764         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
22765         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
22766         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
22767         * modules/unigbrk/uc-is-grapheme-break:
22768         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
22769         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
22770         * modules/unilbrk/u16-width-linebreaks:
22771         * modules/unilbrk/u32-possible-linebreaks:
22772         * modules/unilbrk/u32-width-linebreaks:
22773         * modules/unilbrk/u8-possible-linebreaks:
22774         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
22775         * modules/unilbrk/ulc-possible-linebreaks:
22776         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
22777         * modules/uniname/uniname, modules/uninorm/base:
22778         * modules/uninorm/canonical-decomposition:
22779         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
22780         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
22781         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
22782         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
22783         * modules/uninorm/nfkc, modules/uninorm/nfkd:
22784         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
22785         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
22786         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
22787         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
22788         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
22789         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
22790         * modules/unistdio/base, modules/unistdio/u-printf-args:
22791         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
22792         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
22793         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
22794         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
22795         * modules/unistdio/u16-u16-sprintf:
22796         * modules/unistdio/u16-u16-vasnprintf:
22797         * modules/unistdio/u16-u16-vasprintf:
22798         * modules/unistdio/u16-u16-vsnprintf:
22799         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
22800         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
22801         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
22802         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
22803         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
22804         * modules/unistdio/u32-u32-asnprintf:
22805         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
22806         * modules/unistdio/u32-u32-sprintf:
22807         * modules/unistdio/u32-u32-vasnprintf:
22808         * modules/unistdio/u32-u32-vasprintf:
22809         * modules/unistdio/u32-u32-vsnprintf:
22810         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
22811         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
22812         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
22813         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
22814         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
22815         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
22816         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
22817         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
22818         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
22819         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
22820         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
22821         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
22822         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
22823         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
22824         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
22825         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
22826         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
22827         * modules/unistr/u16-check, modules/unistr/u16-chr:
22828         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
22829         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
22830         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
22831         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
22832         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
22833         * modules/unistr/u16-move, modules/unistr/u16-next:
22834         * modules/unistr/u16-prev, modules/unistr/u16-set:
22835         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
22836         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
22837         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
22838         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
22839         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
22840         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
22841         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
22842         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
22843         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
22844         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
22845         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
22846         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
22847         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
22848         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
22849         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
22850         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
22851         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
22852         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
22853         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
22854         * modules/unistr/u32-next, modules/unistr/u32-prev:
22855         * modules/unistr/u32-set, modules/unistr/u32-startswith:
22856         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
22857         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
22858         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
22859         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
22860         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
22861         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
22862         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
22863         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
22864         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
22865         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
22866         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
22867         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
22868         * modules/unistr/u8-check, modules/unistr/u8-chr:
22869         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
22870         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
22871         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
22872         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
22873         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
22874         * modules/unistr/u8-next, modules/unistr/u8-prev:
22875         * modules/unistr/u8-set, modules/unistr/u8-startswith:
22876         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
22877         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
22878         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
22879         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
22880         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
22881         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
22882         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
22883         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
22884         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
22885         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
22886         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
22887         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
22888         * modules/uniwbrk/base, modules/uniwbrk/table:
22889         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
22890         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
22891         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
22892         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
22893         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
22894         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
22895         * modules/uniwidth/width, modules/utf16-ucs4:
22896         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
22897         * modules/utf8-ucs4-unsafe:
22898         Change maintainer from Bruno Haible to Daiki Ueno.
22899         This is my guess at the libunistring modules; please feel free
22900         to fix if I guessed incorrectly.
22901         * modules/accept4, modules/acl, modules/acos, modules/acosf:
22902         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
22903         * modules/areadlink, modules/array-list, modules/array-mergesort:
22904         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
22905         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
22906         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
22907         * modules/binary-io, modules/bison-i18n, modules/btowc:
22908         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
22909         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
22910         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
22911         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
22912         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
22913         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
22914         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
22915         * modules/closedir, modules/concat-filename, modules/copy-file:
22916         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
22917         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
22918         * modules/csharpcomp-script, modules/csharpexec:
22919         * modules/csharpexec-script, modules/ctype, modules/diffseq:
22920         * modules/dprintf, modules/dprintf-posix, modules/dup:
22921         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
22922         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
22923         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
22924         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
22925         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
22926         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
22927         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
22928         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
22929         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
22930         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
22931         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
22932         * modules/findprog, modules/findprog-lgpl, modules/floor:
22933         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
22934         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
22935         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
22936         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
22937         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
22938         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
22939         * modules/freadable, modules/freadahead, modules/freadptr:
22940         * modules/freadseek, modules/freopen, modules/frexp:
22941         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
22942         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
22943         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
22944         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
22945         * modules/ftello, modules/full-read, modules/full-write:
22946         * modules/fwritable, modules/fwriteerror, modules/gcd:
22947         * modules/get-rusage-as, modules/get-rusage-data:
22948         * modules/getdtablesize, modules/getrusage, modules/gettext:
22949         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
22950         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
22951         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
22952         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
22953         * modules/iconv, modules/iconv-h, modules/iconv_open:
22954         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
22955         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
22956         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
22957         * modules/integer_length_ll, modules/ioctl, modules/isatty:
22958         * modules/isblank, modules/isnand, modules/isnand-nolibm:
22959         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
22960         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
22961         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
22962         * modules/javaexec, modules/javaexec-script, modules/javaversion:
22963         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
22964         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
22965         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
22966         * modules/lib-symbol-visibility, modules/libsigsegv:
22967         * modules/linked-list, modules/linkedhash-list, modules/list:
22968         * modules/localcharset, modules/locale, modules/localeconv:
22969         * modules/localename, modules/lock, modules/log, modules/log-ieee:
22970         * modules/log10, modules/log10-ieee, modules/log10f:
22971         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
22972         * modules/log1p, modules/log1p-ieee, modules/log1pf:
22973         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
22974         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
22975         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
22976         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
22977         * modules/logf, modules/logf-ieee, modules/login_tty:
22978         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
22979         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
22980         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
22981         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
22982         * modules/mbscspn, modules/mbsinit, modules/mbslen:
22983         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
22984         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
22985         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
22986         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
22987         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
22988         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
22989         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
22990         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
22991         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
22992         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
22993         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
22994         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
22995         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
22996         * modules/posix_spawn, modules/posix_spawn-internal:
22997         * modules/posix_spawn_file_actions_addclose:
22998         * modules/posix_spawn_file_actions_adddup2:
22999         * modules/posix_spawn_file_actions_addopen:
23000         * modules/posix_spawn_file_actions_destroy:
23001         * modules/posix_spawn_file_actions_init:
23002         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
23003         * modules/posix_spawnattr_getpgroup:
23004         * modules/posix_spawnattr_getschedparam:
23005         * modules/posix_spawnattr_getschedpolicy:
23006         * modules/posix_spawnattr_getsigdefault:
23007         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
23008         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
23009         * modules/posix_spawnattr_setschedparam:
23010         * modules/posix_spawnattr_setschedpolicy:
23011         * modules/posix_spawnattr_setsigdefault:
23012         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
23013         * modules/pow, modules/powf, modules/printf-frexp:
23014         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
23015         * modules/progname, modules/propername, modules/pselect:
23016         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
23017         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
23018         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
23019         * modules/read, modules/readdir, modules/readlink:
23020         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
23021         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
23022         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
23023         * modules/relocatable-script, modules/remainder:
23024         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
23025         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
23026         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
23027         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
23028         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
23029         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
23030         * modules/setlocale, modules/sh-quote, modules/shutdown:
23031         * modules/signal, modules/signbit, modules/sigpipe:
23032         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
23033         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
23034         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
23035         * modules/snippet/link-warning, modules/snippet/unused-parameter:
23036         * modules/snprintf, modules/snprintf-posix, modules/spawn:
23037         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
23038         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
23039         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
23040         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
23041         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
23042         * modules/streq, modules/strerror_r-posix, modules/striconv:
23043         * modules/striconveh, modules/striconveha, modules/strncat:
23044         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
23045         * modules/sublist, modules/sys_resource, modules/sys_utsname:
23046         * modules/sys_wait, modules/system-posix, modules/system-quote:
23047         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
23048         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
23049         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
23050         * modules/truncf, modules/truncf-ieee, modules/truncl:
23051         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
23052         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
23053         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
23054         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
23055         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
23056         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
23057         * modules/wait-process, modules/waitpid, modules/wcpcpy:
23058         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
23059         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
23060         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
23061         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
23062         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
23063         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
23064         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
23065         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
23066         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
23067         * modules/write, modules/xconcat-filename, modules/xlist:
23068         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
23069         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
23070         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
23071         * modules/y0, modules/y1, modules/yn:
23072         Remove Bruno Haible as maintainer; if he's the sole maintainer,
23073         change the maintainer to 'all'.  Let's hope someone volunteers.
23075 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
23077         mktime: merge #if/#ifdef usage from glibc
23078         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
23079         as that works with both Glibc's and Gnulib's style.
23080         See thread starting at Siddhesh Poyarekar's bug report at:
23081         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
23083 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
23085         git-version-gen: improve option descriptions
23086         * build-aux/git-version-gen: Mention that --prefix and --fallback
23087         have a mandatory argument.
23089 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
23091         regex: fix memory leak in compiler
23092         Fix by Andreas Schwab in:
23093         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
23094         * lib/regcomp.c (parse_expression): Deallocate partially
23095         constructed tree before returning error.
23097         regex: merge patch from libc
23098         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
23099         Combine __USE_BSD and __USE_SVID into __USE_MISC.
23100         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
23102 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23104         acl: port to gcc -Wredundant-decls
23105         From a request by Dmitry Antipov in:
23106         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
23107         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
23108         "#ifndef _GL_ACL_H".
23110 2014-06-11  Bruce Korb  <bkorb@gnu.org>
23111         Jim Meyering  <meyering@fb.com>
23113         parse-duration: eliminate 68-year duration limit
23114         * lib/parse-duration.c: Include "intprops.h".
23115         (TIME_MAX): Rename to MAX_DURATION and define to
23116         TYPE_MAXIMUM(time_t).
23117         * modules/parse-duration (Depends-on): Add intprops.
23118         Reported by Jonas 'Sortie' Termansen.
23120 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
23122         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
23123         * modules/pthread (Depends-on): Add 'extensions', as it defines
23124         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
23125         (configure.ac-early): New section.
23126         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
23127         it is no longer needed.
23129 2014-06-14  Pádraig Brady  <P@draigBrady.com>
23131         pthread: define thread-safe macros on some platforms
23132         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
23133         for thread-safe operation on some platforms.
23135 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
23137         regex: don't be multithreaded if USE_UNLOCKED_IO.
23138         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
23139         * lib/regex_internal.h: Do not use multithreaded version if
23140         USE_UNLOCKED_IO is defined.  This is a hack, but it works
23141         around a porting bug with coreutils 8.22 on AIX 7.1.
23143 2014-06-11  Daiki Ueno  <ueno@gnu.org>
23145         gettext: update macros to version 0.19
23146         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
23147         depend on gl_EXTERN_INLINE and drop support for older Bison
23148         versions.
23150 2014-06-10  Pádraig Brady  <P@draigBrady.com>
23152         select,poll: fix console handle check on windows 8
23153         lib/poll.c (IsConsoleHandle): Change from testing the lower
23154         2 bits of the handle to the more expensive but accurate syscall.
23155         lib/select.c: Likewise.
23157 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
23159         select: fix waiting on anonymous pipes on MS-Windows
23160         * lib/select.c (rpl_select): Fall back to polling when select()
23161         indicates there is nothing to check, while due to the timeout not
23162         expiring, activity is indicated on one of the handles.
23163         Also clear the TIMEOUT argument if the timer does expire.
23165 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
23167         times: fix to return non constant value on MS-Windows
23168         * lib/times.c (times): Don't use the process creation time,
23169         rather clock() which on windows returns the number of
23170         clock ticks since the process started.
23172 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
23174         isatty: fix to work on windows 8
23175         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
23176         2 bits of the handle to the more expensive but accurate syscall.
23178 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
23180         maint: fix typo in fdl.texi
23181         * doc/fdl.texi: Fix typo (missing '@').
23182         Somehow this was in fdl.texi but not fdl-1.3.texi.
23184 2014-06-06  Ben Walton  <bdwalton@gmail.com>
23186         mountlist: avoid hasmntopt const type warning on solaris
23187         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
23188         with char * instead of const char *.  Passing the constant string
23189         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
23190         to avoid the warning.
23192 2014-06-04  Eric Blake  <eblake@redhat.com>
23194         maintainer-makefile: delete obsolete code
23195         * top/maint.mk (build_aux): Drop old code, as threatened.
23197         maintainer-makefile: avoid spurious error messages
23198         * top/maint.mk (syntax-check): Guard definition and use of
23199         $(shell) by whether Makefile is present.
23201 2014-06-03  Ben Walton  <bdwalton@gmail.com>
23203         rename: avoid unused-but-set-variable compiler warning
23204         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
23205         it is possible that dst_exists may be set but not used.  Mark it with
23206         the unused attribute to avoid compiler warnings.
23208 2014-06-02  Ben Walton  <bdwalton@gmail.com>
23210         rename: mark a label as potentially unused
23211         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
23212         by marking the out label as potentially unused.
23213         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
23215 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23217         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
23218         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
23220 2014-06-02  Ben Walton  <bdwalton@gmail.com>
23222         acl: apply pure attribute to two functions
23223         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
23224         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
23226 2014-06-01  Pádraig Brady  <P@draigBrady.com>
23228         gnulib-common.m4: add _GL_UNUSED_LABEL
23229         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
23230         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
23232 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
23234         dup2, fcntl, fcntl-h: port to AIX 7.1
23235         This fixes some porting problems discovered when testing the latest
23236         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
23237         in grep but it could be important for other applications.
23238         * doc/posix-functions/dup2.texi:
23239         * doc/posix-functions/fcntl.texi:
23240         * doc/posix-headers/fcntl.texi:
23241         Document AIX bugs.
23242         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
23243         Define to 0 if outside 'int' range.
23244         * m4/dup2.m4 (gl_FUNC_DUP2):
23245         * m4/fcntl.m4 (gl_FUNC_FCNTL):
23246         Check for getdtablesize.  If it's available, test a value just
23247         outside its range instead of testing 1000000.  When cross-compiling,
23248         guess that AIX will fail this improved test.
23250 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
23252         printf, config.rpath: Port to FreeBSD 10.
23253         Problem reported by Tijl Coosemans in:
23254         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
23255         * build-aux/config.rpath (hardcode_libdir_flag_spec)
23256         (hardcode_direct): Simplify FreeBSD configuration.
23257         (library_names_spec): Don't mishandle FreeBSD 10+.
23258         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
23259         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
23260         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
23261         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
23262         Don't mishandle FreeBSD 10+ when cross-compiling.
23264         ftoastr: work around compiler bug in IBM xlc 12.1
23265         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
23266         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
23267         around a compiler bug in IBM xlc 12.1.0.0: it complains
23268         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
23269         _GL_FLT_PREC_BOUND.'
23271 2014-05-30  Kieran Colford  <colfordk@gmail.com>
23273         valgrind-tests: fixed misleading help message
23274         * m4/valgrind-tests.m4: The help message generated by configure
23275         implied that valgrind was disabled by default, which it wasn't.
23276         Adjusted the help message using s/enable/disable/ to clarify.
23278 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
23280         isfinite, isinf, isnan tests: fix for little-endian PowerPC
23281         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
23282         first double of a PowerPC "double double" pair.
23283         * tests/test-isinf.c (test_isinfl): Likewise.
23284         * tests/test-isnan.c (test_long_double): Likewise.
23285         * tests/test-isnanl.h (main): Likewise.
23286         * tests/test-signbit.c (test_signbitl): Likewise.
23288 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23290         exclude-tests: port to AIX 7.1
23291         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
23292         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
23293         the regex code uses locks.
23295 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
23297         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
23298         Without this fix, Emacs would sometimes call sigprocmask instead
23299         of pthread_sigmask, which is a no-no in multithreaded applications.
23300         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
23301         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
23302         Suppress check for pthread_sigmask working without -lpthread if
23303         the application always links with -lpthread.  Do not link with
23304         $LIBMULTITHREAD if gl_THREADLIB is not defined.
23305         * m4/timer_time.m4 (gl_TIMER_TIME):
23306         Require gl_THREADLIB only if it is defined.  Do not append
23307         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
23309 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
23311         gnulib-tool: wget translations using --no-verbose rather than --quiet
23312         This allows the user to see error messages if any (--quiet hides them)
23313         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
23315 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
23317         gnulib-tool: adjust translation wget to avoid a https redirection
23318         Context: http://translationproject.org/latest/gnulib redirects to
23319            https://translationproject.org/latest/gnulib/
23320         Rationale: if the user falls back to wget, she doesn't have rsync and
23321         is probably in a minimal build environment, where packages such as
23322         'ca-certificates' are missing as well, resulting in a failed (and
23323         difficult to detect since ignored) translation initial fetch.
23324         Consequently let's avoid https if possible, and add the missing
23325         trailing slash.  This also avoids an unnecessary 302 redirection.
23326         * gnulib-tool: Add trailing slash to gnulib URL.
23328 2014-05-22  Pádraig Brady  <P@draigBrady.com>
23330         getlogin_r-tests: check return value rather than errno
23331         * tests/test-getlogin_r.c (main): As per POSIX we should be
23332         verifying the return value from getlogin_r() rather than errno.
23334 2014-05-22  Pádraig Brady  <P@draigBrady.com>
23336         getlogin_r-tests: fix various issues in recent change
23337         * tests/test-getlogin_r.c: Include required headers that were
23338         missed in recent commit eec20b4e.
23339         Also consistently check the errno rather than the return value from
23340         getlogin_r as POSIX only specifies that non zero is returned on error.
23341         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
23343 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
23345         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
23346         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
23347         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
23348         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
23349         * lib/spawn-pipe.c:
23350         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
23351         and then 'int open64(const char *, int, ...);', which means the
23352         declaration for 'open' gets lost if we later '#undef open'.
23353         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
23354         where the compilation reported the non-fatal error "In function
23355         'openat_proc_name' ... warning: implicit declaration of function
23356         'open'".  In this case the error is relatively harmless, but in
23357         other cases it might not be so minor.
23359 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
23361         xalloc: don't potentially generate invalid code for xmemdup calls
23362         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
23363         this function can initialize the newly-allocated storage with new
23364         pointers, which means this function is not malloc-like.  See:
23365         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
23367 2014-05-19  Pádraig Brady  <P@draigBrady.com>
23369         getlogin_r-tests: avoid false failure under sudo/ssh etc.
23370         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
23371         changes from commit 97249cf29 to not depend on environment variables.
23373 2014-05-18  Pádraig Brady  <P@draigBrady.com>
23375         getlogin-tests: avoid false failure under cron
23376         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
23377         since that's not what's under test.  Centos 6 was seen to return
23378         EINVAL for ttyname() when run from cron.
23380 2014-05-16  Jim Meyering  <meyering@fb.com>
23382         mbrtowc.m4: fix a comment typo
23383         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
23384         emitted documentation string.
23386 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23388         mbrlen, mbrtowc: fix bug with empty input
23389         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
23390         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
23391         so this is mainly for documentation.
23392         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
23393         (gl_FUNC_MBRTOWC): Use it.
23394         * tests/test-mbrtowc.c (main): Test for the bug.
23396 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
23398         doc: document mbrtowc and mbrlen problem with empty input
23399         * doc/posix-functions/mbrlen.texi (mbrlen):
23400         * doc/posix-functions/mbrtowc.texi (mbrtowc):
23401         Document portability problem when the input string is empty.  See:
23402         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
23404         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
23405         Problem reported by Eli Zaretskii in:
23406         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
23407         * doc/posix-functions/execl.texi (execl):
23408         * doc/posix-functions/execle.texi (execle):
23409         * doc/posix-functions/execlp.texi (execlp):
23410         * doc/posix-functions/execv.texi (execv):
23411         * doc/posix-functions/execve.texi (execve):
23412         * doc/posix-functions/execvp.texi (execvp):
23413         Mention spawn+exit problem on non-Cygwin Windows platforms.
23415 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
23417         getlogin-tests: avoid false failure under sudo/ssh etc.
23418         * modules/getlogin-tests (configure.ac): Check for ttyname().
23419         * tests/test-getlogin.c (main): Don't depend on environment variables
23420         to correlate with getlogin(), since sudo and ssh etc. can tamper
23421         with the LOGNAME and USER env vars.  Instead lookup the name from
23422         the uid associated with the stdin tty.
23424 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23426         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
23427         These were found when building the latest grep snapshot on IRIX 6.5.
23428         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
23429         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
23430         never used later.
23431         * lib/quotearg.c (quoting_options_from_style):
23432         * lib/xstrtol.c (__xstrtol):
23433         Use enum instead of 0, to pacify IRIX 6.5 cc.
23435 2014-04-18  Pádraig Brady  <P@draigBrady.com>
23437         gitlog-to-changelog: revert inclusion of git-log-fix file
23438         * build-aux/git-log-fix: Delete dummy file.
23439         * modules/gitlog-to-changelog: Don't reference (overwrite)
23440         the project specific git-log-fix file.
23442 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
23444         maint.mk: Relax the copyright check to cater for non FSF projects
23445         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
23446         to not require the "Free" suffix after the copyright years.
23448 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
23450         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
23451         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
23452         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
23453         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
23454         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
23456 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
23458         exclude: port to strict C99
23459         Strict C does not allow converting a function pointer to void *
23460         and vice versa.  Pass a pointer to a function pointer instead.
23461         * lib/exclude.c (add_exclude_file):
23462         Pass the address of the function pointer.
23463         (call_addfn): And deference the address here, to match.
23465 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
23467         regex: do not depend on malloc-gnu
23468         * modules/regex (Depends-on): Remove malloc-gnu.
23469         It's no longer needed, because of the 2012-12-29 patch
23470         "regex: port to hosts where malloc (0) == NULL".
23471         Reported by Nathan Kennedy in:
23472         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
23474 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
23476         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
23477         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
23478         * doc/posix-functions/expl.texi: Mention the workaround.
23480 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
23482         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
23483         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
23484         size to be zero even when the pointer is nonnull.  This
23485         accommodates the use case where P is malloc (0) and *PN is 0 on a
23486         host where malloc (0) yields nonnull.
23488 2014-04-09  Eric Blake  <eblake@redhat.com>
23490         fts: avoid unnecessary strlen calls
23491         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
23493 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
23495         fts: avoid unnecessary strlen calls
23496         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
23497         when that can be faster than strlen.
23499 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23501         fts: avoid unnecessary strlen calls
23502         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
23503         (fts_build): Store the length of the dp->d_name entry in a local variable
23504         instead of calling strlen() several times via the above, removed macro.
23505         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
23506         run by ~4%, yet this reduces the execution time by about a third if run
23507         via "ltrace -c rm -rf some-dir".
23509 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23511         obstack: Remove ancient NeXTSTEP gcc support conditional
23512         This change will ease merging with glibc.  The "#if ... __NEXT__"
23513         causes a warning with -Wundef which glibc now enables by default.
23514         Problem reported by Will Newton in
23515         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
23516         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
23517         so go with that.
23518         * lib/obstack.h (__extension__):
23520 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
23522         obstack: merge with glibc changes
23523         * lib/obstack.c, lib/obstack.h: Merge from glibc.
23524         This is mostly indenting and commentary changes.
23525         Instances of 'register' have been removed.
23527 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23529         strftime: wrap macros in "do {...} while(0)"
23530         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
23531         this macro in "do {...} while(0)" to prevent false use as a
23532         single statement, e.g., in an un-braced "{}" else-block.
23533         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
23534         (strftime_case_): Remove 'else' after 'goto' - which was the
23535         only non-fatal, un-braced use of one of the above macros.
23536         Spotted by coverity (NESTING_INDENT_MISMATCH).
23538 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
23540         modechange: avoid memory leaks for invalid octal modes
23541         * lib/modechange.c (mode_compile): During the parsing of
23542         notations like +40, free the 'mc' buffer for invalid mode
23543         strings like +17777 (greater than the maximum octal mode),
23544         =18 (bad octal mode characters) or u=1 ('affected' with
23545         octal modes).
23546         Reproducer, e.g.:
23547             $ valgrind --leak-check=full chmod +17777 file
23548         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
23549         add notations +40, 00440, etc.".
23550         Spotted by coverity (RESOURCE_LEAK).
23552 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
23554         gitlog-to-changelog: include a dummy git-log-fix file
23555         Problem reported by Nathan Stratton Treadway in:
23556         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
23557         * build-aux/git-log-fix: New file.
23559 2014-03-13  Jim Meyering  <meyering@fb.com>
23561         gitlog-to-changelog: also include the file, git-log-fix
23562         * modules/gitlog-to-changelog (Files): Add git-log-fix.
23563         Reported by Assaf Gordon.
23565 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
23567         regex: port to OS X 10.8.5 en_US.UTF-8 locale
23568         This fixes a bug when ignoring case and when comparing the
23569         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
23570         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
23571         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
23572         titlecase letter is neither lowercase nor uppercase, but
23573         uppercasing the titlecase letter (via towupper) yields the
23574         uppercase letter, so the two letters should match when ignoring case.
23575         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
23576         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
23577         Don't test whether a character is lowercase before uppercasing it.
23579 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
23581         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
23582         This is basically one of the options Bruno Haible proposed in:
23583         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
23584         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
23585         * lib/stdint.in.h: Use it.
23586         * modules/stdint (Depends-on): Add sys_types.
23588 2014-02-26  Pádraig Brady  <P@draigBrady.com>
23590         parse-datetime: fix crash or infloop in TZ="" parsing
23591         * lib/parse-datetime.y (parse_datetime): Break out of the
23592         TZ="" parsing loop once the second significant " is found.
23593         Also skip over any subsequent whitespace to be consistent
23594         with the non TZ= case.
23595         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
23597 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
23599         savedir: new symbol for fast-read version
23600         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
23601         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
23602         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
23603         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
23605 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
23607         unistd: port readlink to Mac OS X 10.3.9
23608         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
23609         around self-include problem in Mac OS X 10.3.9 when combined with
23610         readlink module.  Problem reported by Klaus Zietler in
23611         <http://bugs.gnu.org/16825>.
23613 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
23615         diffseq: remove TOO_EXPENSIVE heuristic
23616         Problem with diffutils reported by Vincent Lefevre in
23617         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
23618         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
23619         Although appropriate for circa-1993 hardware, these days the heuristic
23620         seems to be more trouble than it's worth.
23621         * lib/diffseq.h: Modernize citations.
23622         (struct context): Remove member too_expensive.
23623         All uses changed.
23624         (struct partition): Remove members lo_minimal, hi_minimal.
23625         All uses changed.
23626         (diag, compareseq): Remove arg find_minimal.  All uses changed.
23627         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
23628         1993 to make 'diff' run faster (but not as well) on large inputs.
23629         These days, computers are fast enough that it's typically better
23630         to run slower but more accurately.
23631         * lib/fstrcmp.c: Remove duplicate comment.
23632         * lib/fstrcmp.c (strcmp_bounded):
23633         * lib/git-merge-changelog.c (compute_differences):
23634         Adjust to diffseq.h changes.
23635         * NEWS: Document the change.
23637         savedir: simplify by using stpcpy
23638         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
23639         (streamsavedir): Use stpcpy instead.
23640         * modules/savedir (Depends-on): Add stpcpy.
23642 2014-02-21  Pádraig Brady  <P@draigBrady.com>
23644         spawn: fix link error on uclibc
23645         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
23646         to incorporate -lrt if needed (on uclibc for example).
23647         * modules/posix_spawn: Reference the substituted LIB.
23649 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
23650         timer: fix uClibc detection of threading
23651         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
23652         enabled in uClibc.
23654 2014-02-21  Eric Blake  <eblake@redhat.com>
23656         maintainer-makefiles: provide AC_PROG_SED for older autoconf
23657         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
23659 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
23661         exclude: add support for posix regexps
23663         This commit adds support for POSIX extended regular expressions
23664         and fixes a long-standing memory leak (pattern buffer was never
23665         freed).  It also implements a new interface function to read
23666         exclude patterns from a FILE, which passes an additional parameter
23667         to its callback function, thereby allowing to preserve its state
23668         between invocations.
23670         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
23671         (pattern_buffer): New struct.
23672         (exclude): New member patbuf.
23673         (exclude_add_pattern_buffer): New function.
23674         (free_exclude_segment): Free regexps.
23675         (free_exclude): Free allocated pattern buffers.
23676         (exclude_patopts): New function.
23677         (file_pattern_matches): Use exclude_patopts.
23678         (add_exclude): support regexps.
23679         (add_exclude_fp): New function.
23680         (add_exclude_file): Rewrite using add_exclude_fp.
23681         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
23682         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
23683         (add_exclude_fp)
23684         (add_exclude_file): Rewrite using add_exclude_fp.
23685         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
23686         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
23687         (add_exclude_fp)
23688         (exclude_add_pattern_buffer): New prototypes.
23689         * modules/exclude: Depends on regex and filename.
23691 2014-02-20  Eric Blake  <eblake@redhat.com>
23693         maintainer-makefiles: use $(SED) for syntax check
23694         * modules/maintainer-makefile (configure.ac): Check for sane sed.
23695         * top/maint.mk: Change sed to $(SED).
23697 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
23698             Paul Eggert  <eggert@cs.ucla.edu>
23700         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
23701         Patch based on an idea by Dick Streefland in
23702         <https://savannah.gnu.org/patch/?7892>.
23703         * NEWS: Document this.
23704         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
23705         (direntry_t, comparison_function): New types.
23706         (direntry_cmp_name): New function.
23707         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
23708         (streamsavedir, savedir): New arg OPTION.
23709         (streamsavedir): Simplify memory allocation.
23710         (fdsavedir): Remove.
23711         * lib/savedir.h (enum savedir_option): New type.
23712         (streamsavedir, savedir): New arg OPTION.
23713         (fdsavedir): Remove.
23715 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
23717         file-type: add support for doors and other less-common file types
23718         Problem with S_ISDOOR reported by Rich Burridge.
23719         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
23720         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
23721         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
23723 2014-01-23  Eric Blake  <eblake@redhat.com>
23725         pthread: work around winpthread header pollution on mingw
23726         * lib/time.in.h: Move pthread workarounds...
23727         * lib/pthread.in.h: ...here.
23728         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
23729         detect macro pollution on mingw.
23730         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
23732 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
23734         qacl: check for fchmod
23735         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
23736         and qset-acl.c both use HAVE_FCHMOD.
23738 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
23740         fdopen-tests: port to Tru64
23741         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
23742         descriptor that is not open, as POSIX doesn't specify the
23743         resulting behavior and the test does not work on Tru64.
23744         Problem reported by Steven M. Schweda in:
23745         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
23747         stdalign: port to HP-UX compilers
23748         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
23749         if __HP_cc or __HP_aCC are nonzero.
23751 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
23753         strtoimax: port to platforms lacking 'long long'
23754         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
23755         check whether strtoll is declared, which causes the C file to
23756         wrongly report an error.  Problem reported by Steven M. Schweda in:
23757         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
23758         * lib/strtoimax.c (strtoull):
23759         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
23760         (strtoll): Declare only if HAVE_LONG_LONG_INT.
23762 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
23764         relocatable-perl: fix texi syntax
23765         * doc/relocatable-maint.texi: Escape braces.
23767 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
23769         relocatable-perl: like relocatable-script, but for Perl scripts
23770         * build-aux/relocatable.pl.in: Add.
23771         * doc/relocatable-maint.texi: Add documentation.
23772         * modules/relocatable-perl: Add.
23774 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
23776         tests: fix export bug in previous patch
23777         Problem reported by Jim Meyering.
23778         * tests/init.sh (re_shell): New var, which is exported instead of
23779         re_shell_.
23781         tests: simplify porting to Solaris 10 /bin/sh
23782         Some test cases in 'grep' need a shell that groks '$(';
23783         export re_shell_ for their benefit.  Problem reported for 'grep'
23784         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
23785         * tests/init.sh (re_shell_): Export if it's used.
23787 2014-01-06  Eric Blake  <eblake@redhat.com>
23789         md5, sha1, sha256, sha512: support older autoconf
23790         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
23791         for autoconf < 2.63b.
23793         include_next: port to autoconf 2.63
23794         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
23796 2014-01-04  Jim Meyering  <meyering@fb.com>
23798         maint: add a gnulib-local rule to keep non-ascii out of .texi files
23799         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
23800         so that "make sc_maint" will ding anyone who puts non-ascii
23801         in any of gnulib's .texi files.
23803 2014-01-03  Jim Meyering  <meyering@fb.com>
23805         freadable, fwritable, fwriting: declare with the "pure" attribute
23806         * lib/freadable.h (freadable): Declare with the "pure" attribute.
23807         * lib/fwritable.h (fwritable): Likewise.
23808         * lib/fwriting.h (fwriting): Likewise.
23809         Suggested by Bruno Haible.
23811         maint.mk: adapt openat.h-include-without-use test
23812         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
23813         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
23814         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
23815         With this change, running "make sc_maint" in gnulib's top-level
23816         directory now passes for me.
23818 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
23820         doc: use ASCII in .texi files where UTF-8 isn't needed
23821         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
23822         * doc/posix-functions/setkey.texi, doc/regex.texi:
23823         Use ASCII input, not UTF-8.
23825 2014-01-02  Jim Meyering  <meyering@fb.com>
23827         freading: declare with the "pure" attribute
23828         * lib/freading.h (freading): Declare with the "pure" attribute.
23830         manywarnings: remove -Wmudflap
23831         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
23832         it is no longer supported in gcc-4.9-to-be.
23834 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23836         relocatable-script: remove unused code
23837         Problem reported by Reuben Thomas in:
23838         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
23839         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
23841 2014-01-01  Jim Meyering  <meyering@fb.com>
23843         maint: fix public-submodule-commit to work with newer git
23844         * top/maint.mk (public-submodule-commit): Remove excess quoting.
23845         We were over-quoting the test arguments, and somewhere prior to
23846         version 1.8.5.2.229, git stopped removing those excess quotes,
23847         which made the test fail, since the unexpanded strings would
23848         always differ; using GIT_TRACE=1 confirmed that the git merge-base
23849         command wasn't even being run.
23851 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
23853         doc: update main copyright year
23854         * doc/gnulib.texi: Update copyright date.
23856 2014-01-01  Eric Blake  <eblake@redhat.com>
23858         version-etc: new year
23859         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
23860         * all files: run 'make update-copyright'
23862 2013-12-24  Eric Blake  <eblake@redhat.com>
23864         passfd: give nicer error for recvfd at eof
23865         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
23866         * tests/test-passfd.c (main): Enhance test to cover this.
23868 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23870         gettimeofday: port recent C++ fix to Emacs
23871         Without this further patch, Emacs won't build due to
23872         the portcheck failing.  Also, this simplifies the patch a bit.
23873         * lib/time.in.h (localtime, gmtime): Don't replace unless
23874         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
23875         * lib/time.in.h (localtime, gmtime):
23876         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
23877         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23878         * modules/time (time.h):
23879         Don't worry about the possibility of localtime and gmtime
23880         being absent; they're present in all C libraries we know about.
23881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
23882         Don't assume sys_time is present and has been initialized.
23883         Instead, use a hack that should work even if it hasn't been.
23884         Don't use a portcheck for gmtime or localtime; this supports
23885         the hack.
23886         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
23888 2013-12-17  John W. Eaton  <jwe@gnu.org>
23890         gettimeofday: fix C++ crosscompilation
23892         Never replace gmtime and localtime by macros when compiling with
23893         C++, this prevents <ctime> from being included.
23895         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
23896         define gmtime and localtime as preprocessor macros.  Instead
23897         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
23898         REPLACE_LOCALTIME substitutions.
23899         * lib/time.in.h: Declare gmtime and localtime when needed.
23900         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
23901         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
23902         * modules/time: Depend on gettimeofday, and substitute the above
23903         variables in time.h.
23905 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
23907         qacl: port to Windows better
23908         See Eli Zaretskii in
23909         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
23910         * lib/file-has-acl.c (acl_access_nontrivial):
23911         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
23912         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
23914 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
23916         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
23917         * lib/gl_openssl.h: Cast void pointers to a specific type.
23919 2013-12-07  Pádraig Brady  <P@draigBrady.com>
23921         open-tests: fix build failure with -Werror=old-style-declaration
23922         * tests/test-open.h: Reorder the inline to avoid the issue.
23924 2013-12-07  Pádraig Brady  <P@draigBrady.com>
23926         md5, sha1, sha256, sha512: fix link error with partial libcrypto
23927         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
23928         init time, so that if early checks find crypto routines,
23929         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
23930         avoiding link failures.
23932 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
23934         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
23935         This provides a new way to specify the default for
23936         gl_CRYPTO_CHECK, one that is reflected in the --help message.
23937         Emacs uses this, as well as the old way.
23938         This attempts to implement a suggestion by Pádraig Brady in
23939         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
23940         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
23941         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
23943         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
23944         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
23945         Add support for a new option, --with-openssl=auto, which causes
23946         the library to be used if available and silently ignored if not.
23947         Add support to allow configure.ac to specify its own
23948         default, by setting with_openssl_default before invoking gl_INIT.
23950 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
23952         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
23953         Problem reported by Daiki Ueno in:
23954         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
23955         * tests/test-open.h (__always_inline):
23956         New macro, if not already defined.
23957         (test_open): Use it.
23959 2013-12-04  Eric Blake  <eblake@redhat.com>
23961         include_next: minimize code duplication
23962         * modules/include_next (Depends-on): Add absolute-header.
23963         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
23964         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
23966 2013-12-04  Pádraig Brady  <P@draigBrady.com>
23968         getcwd: fix compile error in configure check
23969         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
23971 2013-12-04  Pádraig Brady  <P@draigBrady.com>
23973         regex: suppress core dumps from detection code
23974         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
23975         to suppress core dumps that may well occur on glibc systems.
23976         These core dumps might not be cleaned up automatically, or could
23977         trigger some system core dump handling logic.
23979 2013-12-03  Pádraig Brady  <P@draigBrady.com>
23981         md5, sha1, sha256, sha512: support mandating use of openssl
23982         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
23983         description, to list the now 3 separate options.  also don't
23984         mention the default=no, since this is implicit given the option
23985         is described as --with-openssl rather than --without-openssl.
23986         If projects change the default they're free to document that.
23987         with --with-openssl[=yes] we now error out when the specified
23988         hash algorithm is not available in libcrypto.
23990 2013-12-03  Ivailo  <xakepa10@gmail.com>
23992         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
23993         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
23994         -Wformat-nonliteral checks, as these edge cases are part of the test.
23996 2013-12-03  Eric Blake  <eblake@redhat.com>
23998         regex: avoid glibc deadlock during configure
23999         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
24000         glibc bug 15078 in turn triggers bug 16159.
24001         Reported by Michal Privoznik.
24003 2013-12-02  Pádraig Brady  <P@draigBrady.com>
24005         md5, sha1, sha256, sha512: use openssl routines if available.
24006         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
24007         routines will be used if available, requiring apps to link @LIB_CRYPTO@
24008         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
24009         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
24010         in the standard system location.
24011         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
24012         * m4/sha256.m4: Likewise with SHA256.
24013         * m4/sha512.m4: Likewise with SHA512.
24014         * m4/md5.m4: Likewise with MD5.
24015         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
24016         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
24017         * lib/sha256.h: Likewise with SHA256.
24018         * lib/sha512.h: Likewise with SHA512.
24019         * lib/md5.h: Likewise with MD5.
24020         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
24021         * lib/sha256.c: Likewise with SHA256.
24022         * lib/sha512.c: Likewise with SHA512.
24023         * lib/md5.c: Likewise with MD5.
24024         * modules/crypto/sha1 (Link:): Add the new optional lib.
24025         (Depends-on:): Add dependency on extern-inline.
24026         * modules/crypto/sha256: Likewise.
24027         * modules/crypto/sha512: Likewise.
24028         * modules/crypto/md5: Likewise.
24029         * modules/crypto/sha1-tests: Reference the lib here too.
24030         * modules/crypto/md5-tests: Likewise.
24031         * modules/crypto/gc-des-tests: Likewise.
24032         * modules/crypto/gc-hmac-md5-tests: Likewise.
24033         * modules/crypto/gc-hmac-sha1-tests: Likewise.
24034         * modules/crypto/gc-hmac-sha256-tests: Likewise.
24035         * modules/crypto/gc-hmac-sha512-tests: Likewise.
24036         * modules/crypto/gc-md5-tests: Likewise.
24037         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
24038         * modules/crypto/gc-sha1-tests: Likewise.
24039         * modules/crypto/gc-tests: Likewise.
24040         * modules/crypto/hmac-md5-tests: Likewise.
24041         * modules/crypto/hmac-sha1-tests: Likewise.
24042         * modules/crypto/hmac-sha256-tests: Likewise.
24043         * modules/crypto/hmac-sha512-tests: Likewise.
24045 2013-11-29  RV1971  <rv1971@web.de>
24047         base64: (trivial) fix compilation regression on some compilers
24048         * lib/base64.c: Don't return the void function,
24049         instead split to a separate return statement.
24051 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
24053         ignore-value: revert previous code change
24054         * lib/ignore-value.h (ignore_value): Use __extension__ and
24055         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
24056         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
24057         Change the comment to try to explain this better.
24059 2013-11-27  Pádraig Brady  <P@draigBrady.com>
24061         selinux-h: improve stub types and add more stub functions
24063         * lib/se-selinux.in.h: Change security_context_t to a typedef
24064         rather than a define, as it's a pointer type and so is better
24065         as a typedef to avoid issues declaring multiple variables
24066         with the comma operator.  Also add stub for string_to_security_class().
24067         * lib/se-context.in.h: Add stub functions for
24068         context_{type,range,role,user}_get().
24070 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
24072         ignore-value: prefer GCC version back through 2.0
24073         The code didn't match the comments, so I did a bit of software
24074         archaeology.  GCC 2.0 seems to support __extension__ and
24075         __typeof__, so fix both code and comments to use 2.0.
24076         * lib/ignore-value.h (ignore_value): Use __extension__ and
24077         __typeof__ for GCC 2.0 through 3.3, too.
24079 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
24081         pty: Activate the signature wrapper of forkpty.
24082         The intended preprocessor macro HAVE_FORKPTY is
24083         never defined, yet `lib/forkpty.c' depends on it.
24085         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
24086         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
24087         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
24089 2013-11-18  Jim Meyering  <meyering@fb.com>
24090         and Paul Eggert  <eggert@cs.ucla.edu>
24092         quotearg: don't attempt to store 1 << 31 into an "int"
24093         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
24094         gcc's new -fsanitize=undefined and running its tests triggered some
24095         new test failures due to undefined behavior, all with this diagnostic:
24096           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
24097             cannot be represented in type int
24098         Rather than shifting "1" left to form a mask, shift the bits right and
24099         simply use "1" as the mask.
24101 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
24103         error: depend on stdio
24104         Problem reported by Nikos Mavrogiannopoulos in
24105         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
24106         * modules/error (Depends-on): Add stdio.
24108 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
24110         * doc/relocatable-maint.texi (Supporting Relocation): Improve
24111         wording.
24112         Reported by Reuben Thomas <rrt@sc3d.org>.
24114 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
24116         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
24117         New function and macro, to work around _DARWIN_C_SOURCE problem.
24118         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
24120 2013-11-11  Pádraig Brady  <P@draigBrady.com>
24122         base64: provide a fast path for encoding well sized buffers
24123         Avoid conditionals in the base64 encoding loop,
24124         which was seen to give 60% better throughput.
24125         * lib/base64.c (base64_encode_fast): A new function to be called
24126         when we don't want to NUL terminate, and we have enough space
24127         in the output to encode the given input.
24128         (base64_encode): Call the _fast() version when appropriate.
24129         Also remove a redundant mask with 0x3F on the first encoded byte.
24131 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
24133         extern-inline: port better to OS X 10.9
24134         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
24135         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
24136         OS X 10.9, except for g++ where the bug is still present.
24137         See <http://trac.macports.org/ticket/41033>.
24139 2013-11-08  Eric Blake  <eblake@redhat.com>
24141         fpending: fix regression on DragonFly BSD
24142         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
24143         * lib/fpending.h (__fpending): Don't declare twice.
24144         Reported by GW in
24145         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
24147 2013-11-05  Jim Meyering  <meyering@fb.com>
24149         hash: relax license to LGPLv2+, for libguestfs
24150         * modules/hash (License): Change from GPL to LGPLv2+.
24152 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
24154         intprops: port to Oracle Studio c99
24155         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
24156         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
24158 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
24160         obstack: pacify HP C
24161         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
24162         warning "conversion from pointer to smaller integer" from HP
24163         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
24164         C89 or later nowadays, so cast to void instead of int.  Privately
24165         reported by H.Merijn Brand.  Also, change header to match glibc's,
24166         to make checking against glibc easier.
24168 2013-10-29  Jim Meyering  <meyering@fb.com>
24170         maint.mk: prefer gpgv2 over gpgv
24171         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
24172         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
24173         Reported by Gary Vaughan.
24175 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
24177         isnan: port to VAX
24178         Reported by John Klos for NetBSD-5/VAX in
24179         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
24180         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
24181         (FUNC): Use it.
24183 2013-10-28  Jim Meyering  <meyering@fb.com>
24185         gnulib-tool: protect against CDPATH
24186         * gnulib-tool: Many "cd" built-in functions print a directory name
24187         to stdout when CDPATH is set, e.g.,
24188           $ bash -c 'CDPATH=/; cd tmp'
24189           /tmp
24190         Unset it, when possible.  Prompted by a comment from Bruce Korb.
24192         maint.mk: restore functionality removed by recent change...
24193         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
24194         the context of a shallow-cloned gnulib repository: "git describe"
24195         would fail in such a directory.  However, that change made it so
24196         the reported gnulib revision no longer includes the version number
24197         or a commit count, even when run from a full clone.
24198         * top/maint.mk (gnulib-version): Use the full "git describe"
24199         output when possible, e.g., the form above, rather than the
24200         abbreviated, no-tag, no-commit-count string, and fall back to
24201         using a 10-byte hash, rather than the default minimal-length
24202         hash prefix, since while the minimal-length one may be fine today,
24203         it is likely not to be unique for very long.
24205 2013-10-26  Jim Meyering  <meyering@fb.com>
24207         maint.mk: fix "release" target to build _version
24208         This fixes a bug in README-release whereby following the outlined
24209         steps, one would publish a tarball whose programs would report
24210         --version output not consistent with the package version number.
24211         This bug caused grep-2.15 to produce a grep program whose
24212         --version option made it print 2.14.56-1e3d rather than 2.15.
24213         * top/maint.mk (release): Making this target build "_version"
24214         ensures that the new version number is reflected in configure.
24216 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
24218         install-reloc: Support multi-binary installation.
24219         * build-aux/install-reloc: Support installing multiple programs in
24220         one invocation, as done by Automake starting with commit
24221         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
24222         Haible <bruno@clisp.org>, archived at
24223         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
24224         Reported by Sylvain <beuc@gnu.org>.
24226 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
24228         selinux-h: Really build without selinux when library is missing.
24229         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
24230         continue without selinux, as already told in the warning message.
24232 2013-10-21  Jim Meyering  <meyering@fb.com>
24234         regex: also remove dependency on HAVE_WCSCOLL
24235         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
24237 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
24239         xfreopen: Fix typo. s/frepoen/freopen/
24240         * lib/xfreopen.c: Fix description.
24241         * modules/xfreopen: Likewise.
24243 2013-10-21  Jim Meyering  <meyering@fb.com>
24245         regex: don't depend on wcscoll
24246         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
24247         It is no longer used.
24249 2013-10-20  Jim Meyering  <meyering@fb.com>
24251         error: add the printf attribute to a static function
24252         * lib/error.c (error_tail): Add the printf attribute, to placate
24253         gcc's -Werror=suggest-attribute=format option.
24255 2013-09-30  Jim Meyering  <meyering@fb.com>
24257         fpending, obstack, strerror-override: use pure+const function attrs
24258         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
24259         * lib/obstack.c (_obstack_allocated_p): Likewise.
24260         * lib/obstack.h (_obstack_memory_used): Likewise.
24261         (_obstack_memory_used): Likewise.
24262         * lib/strerror-override.h (strerror_override): Declare with
24263         the "const" attribute.
24265 2013-10-18  Eric Blake  <eblake@redhat.com>
24267         extern-inline: make safe for -Wundef usage
24268         Reported by Vladimir 'phcoder' Serbinenko in
24269         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
24270         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
24272 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
24274         mkfifo-tests, etc.: allow HP-UX 11.11 bug
24275         Problem reported by Daniel Richard G. in
24276         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
24277         * doc/posix-functions/mkfifo.texi (mkfifo):
24278         * doc/posix-functions/mkfifoat.texi (mkfifoat):
24279         * doc/posix-functions/mknod.texi (mknod):
24280         * doc/posix-functions/mknodat.texi (mknodat):
24281         Document the HP-UX 11.11 bug.
24282         * tests/test-mkfifo.h (test_mkfifo):
24283         Allow the HP-UX 11.11 bug.
24285 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
24287         acl: allow cross-compilation to Gentoo
24288         Problem reported by Gabriel Marcano in
24289         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
24290         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
24291         test only whether it links.
24293 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24295         mgetgroups: remove dependency on realloc-gnu
24296         The dependency violates the comment in realloc-gnu, which
24297         says that tests can't depend on realloc-gnu; some tests depend
24298         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
24299         Problem reported by Daniel Richard G. in
24300         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
24301         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
24302         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
24303         not realloc-gnu.
24305 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
24307         regex-tests: port to HP-UX 11.11
24308         Problem reported by Daniel Richard G. in
24309         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
24310         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
24312 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24314         verify: document some 'assume' pitfalls
24315         * doc/verify.texi (Compile-time Assertions):
24316         Mention that 'assume (E)' can sometimes slow things down.
24317         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
24319 2013-10-10  Eric Blake  <eblake@redhat.com>
24321         strtoumax: fix typo in previous commit.
24322         * modules/strtoumax (Depends-on): Fix typo.
24323         * modules/strtoimax (Depends-on): Likewise.
24325 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24327         strtoumax: port to Solaris 8
24328         This problem was introduced in the recent HP-UX patch.
24329         Reported by Tom G. Christensen in
24330         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
24331         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
24332         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
24334 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
24336         strtoimax, strtoumax: port to HP-UX 11.11
24337         Problem reported by Daniel Richard G. in
24338         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
24339         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
24340         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
24341         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
24342         REPLACE_STRTOUMAX.
24343         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
24344         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
24345         Replace the function if defined as a macro but not as a function.
24346         * modules/inttypes-incomplete (inttypes.h): Substitute
24347         REPLACE_STRTOUMAX.
24348         * modules/strtoumax (configure.ac): Replace strtoumax if
24349         REPLACE_STRTOUMAX.
24351 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24353         strtoimax: port to HP-UX 11.11
24354         Problem reported by Daniel Richard G.
24355         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
24356         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
24357         they might clash with inttypes.h.
24359 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24361         New module 'count-trailing-zeros'.
24362         * MODULES.html.sh: Mention it.
24363         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
24364         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
24365         * modules/count-trailing-zeros-tests:
24366         * tests/test-count-trailing-zeros.c:
24367         New files.
24369         count-leading-zeros: port to MSC; support types wider than 64 bits
24370         The ideas behind the MSC port are stolen from Emacs.
24371         * lib/count-leading-zeros.h:
24372         Don't include verify.h: it's no longer needed, as types wider than
24373         64 bits are now supported.
24374         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
24375         performance with MSC.  All uses changed.  Do not assume that TYPE
24376         has at most 64 bits.
24377         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
24378         All uses changed.  Fold the subtraction from 31 into the table.
24380         count-one-bits: port to MSC; support types wider than 64 bits
24381         The ideas behind the MSC port are stolen from Emacs.
24382         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
24383         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
24384         Don't include verify.h: it's no longer needed, as types wider than
24385         64 bits are now supported.
24386         (COUNT_ONE_BITS_GENERIC): New macro.
24387         (popcount_supported) [_MSC_VER]: New inline function.
24388         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
24389         performance with MSC.  All uses changed.  Do not assume that TYPE
24390         has at most 64 bits.
24391         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
24393 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
24395         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
24396         * lib/mountlist.c (read_file_system_list): fix leak of directory
24397         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
24399 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
24401         tests: improve diagnostic when an assertion fails
24402         * tests/macros.h (ASSERT): Report the assertion that failed.
24404 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
24406         verify: new macro 'assume'
24407         This is taken from Emacs, and should be generally useful.
24408         * doc/verify.texi (assume): Document it.
24409         * lib/verify.h (assume): New macro.
24410         (__has_builtin): Expand to 0 if not defined.
24412 2013-09-26  Eric Blake  <eblake@redhat.com>
24414         dup2, dup3: work around another cygwin crasher
24415         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
24416         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
24417         * tests/test-dup2.c (main): Likewise.
24418         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
24419         * lib/dup3.c (dup3): Likewise.
24420         * doc/posix-functions/dup2.texi (dup2): Document it.
24421         * doc/glibc-functions/dup3.texi (dup3): Likewise.
24423         getdtablesize: work around cygwin issue
24424         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
24425         * modules/getdtablesize (configure.ac): Build replacement.
24426         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
24427         * modules/unistd (Makefile.am): Expose the witness.
24428         * lib/unistd.in.h (getdtablesize): Declare replacement.
24429         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
24430         * tests/test-getdtablesize.c (main): Test it.
24431         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
24433 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
24435         pmccabe2html: escaping of special characters
24436         Escape all '<', '>', and '&' in HTML output.
24437         * build-aux/pmccabe2html (html_fnc): Call gsub()
24438         instead of sub() to capture all '<', '>', and '&'.
24439         Neither of '<' and '>' is special in a regexp,
24440         so first arguments to gsub() are corrected. Also,
24441         in replacement strings, ampersand must be escaped.
24442         Finally, '&' must be handled first, then '<' and '>'.
24444 2013-09-24  Eric Blake  <eblake@redhat.com>
24446         manywarnings: enable nicer gcc warning messages
24447         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
24448         some -f options for optimal warnings.
24450 2013-09-21  Jim Meyering  <meyering@fb.com>
24452         timespec: use the new TIMESPEC_RESOLUTION in a few more places
24453         * lib/timespec-add.c (timespec_add): Also replace 999999999
24454         with TIMESPEC_RESOLUTION - 1.
24455         * lib/timespec-sub.c (timespec_sub): Likewise.
24457 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
24459         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
24460         Problem reported by Dagobert Michelsen via Eric Blake in
24461         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
24462         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
24463         not AC_COMPILE_IFELSE.
24465 2013-09-23  Eric Blake  <eblake@redhat.com>
24467         configmake: support new --runstatedir option
24468         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
24469         even if autoconf was too old to provide the command line option.
24470         * modules/configmake (Makefile.am): Propagate it to .h file.
24472 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24474         ctype, string: depend on extern-inline
24475         This is needed to complete the recent OS X fixes.
24476         Also, fix related documentation as suggested by Eric Blake.
24477         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
24478         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
24479         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
24480         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
24481         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
24482         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
24483         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
24484         * doc/posix-functions/toupper.texi:
24485         List the 'ctype' gnulib module.
24486         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
24487         * doc/posix-functions/strncpy.texi:
24488         List the 'string' gnulib module.
24489         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
24490         Add string.
24491         * modules/ctype, modules/string (Depends-on): Add extern-inline.
24493 2013-09-19  Pádraig Brady  <P@draigBrady.com>
24495         userspec: support optional parameters to parse_user_spec()
24496         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
24497         then avoid group processing and treat the full spec as a user.
24498         (parse_with_separator): Allow the USERNAME and GROUPNAME to
24499         be optional params (NULL), in which case they're ignored.
24501 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
24503         timespec: new function make_timespec, and new constants
24504         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
24505         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
24506         (make_timespec): New function.
24507         * lib/dtotimespec.c (dtotimespec):
24508         * lib/timespec-add.c (timespec_add):
24509         * lib/timespec-sub.c (timespec_sub):
24510         * lib/utimens.c (validate_timespec):
24511         * lib/utimensat.c (rpl_utimensat):
24512         Use these new constants and functions.
24514         stdio: OS X port of putc_unlocked + extern inline
24515         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
24516         * doc/posix-functions/putc_unlocked.texi:
24517         * doc/posix-functions/putchar_unlocked.texi:
24518         Document this portability problem.
24520         signal: OS X port of sigaddset etc. + extern inline
24521         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
24522         (sigismember): #undef on problematic Apple platforms.
24523         * doc/posix-functions/sigaddset.texi:
24524         * doc/posix-functions/sigdelset.texi:
24525         * doc/posix-functions/sigemptyset.texi:
24526         * doc/posix-functions/sigfillset.texi:
24527         * doc/posix-functions/sigismember.texi:
24528         Document this portability problem.
24530         extern-inline: do not always suppress extern inline on OS X
24531         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
24532         extern inline on Apple only if the particular compile-time
24533         configuration is known to have the problem.
24534         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
24535         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
24536         other Gnulib modules.
24538         extern-inline: document fixes for ctype and wctype macros
24539         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
24540         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
24541         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
24542         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
24543         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
24544         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
24545         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
24546         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
24547         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
24548         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
24549         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
24550         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
24551         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
24552         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
24553         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
24554         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
24555         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
24556         * doc/posix-functions/strncpy.texi:
24557         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
24558         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
24559         Document that Gnulib fixes portability problems with these
24560         functions on OS X 10.8 and earlier when called from plain inline
24561         or extern inline functions.
24563 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
24565         fflush, freadahead, fseeko: Fix for Android
24566         Suggested by Bruno Haible in:
24567         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
24568         * lib/stdio-impl.h: Use local __sfileext definition.
24570 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
24572         pmccabe2html: Portability to other awk versions.
24573         The functions systime() and strftime() are available
24574         in Gawk only.  Properly close two HTML-tags 'style'
24575         and 'span'.
24576         * build-aux/pmccabe2html (BEGIN): Store timing
24577         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
24578         systime() in HTML_COMMENT.
24579         (html_header): Correctly close tag 'style'.
24580         (END): Replace strftime() by CHRONOS_TIME.  Close
24581         tag 'span' correctly, not as 'div'.
24583 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
24585         getgroups: statement without effect
24586         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
24587         Change equality conditional to expected assignment.
24589 2013-09-09  Eric Blake  <eblake@redhat.com>
24591         glob: fix compilation
24592         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
24594 2013-09-07  Eric Blake  <eblake@redhat.com>
24596         glob: fix build for platforms without __THROW
24597         * lib/glob.in.h (__THROW): Add definition again.
24599 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
24601         regex-quote: fix buffer access out of bounds
24602         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
24603         * lib/regex-quote.c (regex_quote_spec_pcre):
24604         Fix typo that resulted in an out-of-bounds read.
24606 2013-09-04  Eric Blake  <eblake@redhat.com>
24608         glob: avoid -Wattribute warnings on glibc
24609         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
24610         __THROWNL, not __THROW, on static functions.
24611         * lib/glob.in.h (__THROW): Adjust...
24612         (__THROWNL): ...accordingly.
24614 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24616         headers: check that _GL_INLINE_HEADER_BEGIN is defined
24617         Suggested by Bruce Korb in:
24618         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
24619         * doc/extern-inline.texi (extern inline):
24620         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
24621         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
24622         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
24623         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
24624         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
24625         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
24626         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
24627         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
24628         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
24629         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
24630         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
24631         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
24632         * lib/xtime.h:
24633         Check that _GL_INLINE_HEADER_BEGIN is defined.
24635 2013-08-29  Pádraig Brady  <P@draigBrady.com>
24637         bootstrap: remove the --version requirement from ancillary tools
24638         * build-aux/bootstrap (check_exists): A new refactored function to
24639         determine if a command exists.
24640         (find_tool): Use the new function which does not require the
24641         --version option to be supported.
24642         (check_versions): Use the new function.
24644 2013-08-26  Simon Josefsson  <simon@josefsson.org>
24646         gc: support HMAC-SHA256 and HMAC-SHA512.
24647         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
24648         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
24649         functions.
24650         (gc_hmac_md5): Use symbolic constant.
24651         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
24652         (gc_hmac_sha256, gc_hmac_sha512): New functions.
24653         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
24654         * m4/sha256.m4: Protect against empty expansion.
24655         * m4/sha512.m4: Likewise.
24656         * lib/hmac-sha256.c: New file.
24657         * lib/hmac-sha512.c: Likewise.
24658         * m4/gc-hmac-sha256.m4: Likewise.
24659         * m4/gc-hmac-sha512.m4: Likewise.
24660         * m4/gc-sha256.m4: Likewise.
24661         * m4/gc-sha512.m4: Likewise.
24662         * modules/crypto/gc-hmac-sha256: Likewise.
24663         * modules/crypto/gc-hmac-sha256-tests: Likewise.
24664         * modules/crypto/gc-hmac-sha512: Likewise.
24665         * modules/crypto/gc-hmac-sha512-tests: Likewise.
24666         * modules/crypto/hmac-sha256: Likewise.
24667         * modules/crypto/hmac-sha256-tests: Likewise.
24668         * modules/crypto/hmac-sha512: Likewise.
24669         * modules/crypto/hmac-sha512-tests: Likewise.
24670         * tests/test-gc-hmac-sha256.c: Likewise.
24671         * tests/test-gc-hmac-sha512.c: Likewise
24672         * tests/test-hmac-sha256.c: Likewise.
24673         * tests/test-hmac-sha512.c: Likewise
24675 2013-08-24  Daiki Ueno  <ueno@gnu.org>
24677         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
24678         of AC_CHECK_DECLS.
24680 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24682         selinux-at: omit unnecessary include
24683         * lib/selinux-at.c: Don't include dosname.h; not needed, since
24684         this source file doesn't use its macros, and subsidiary files that
24685         use the macros already include it.
24687 2013-08-21  Eric Blake  <eblake@redhat.com>
24689         d-ino: avoid false negative on symlink
24690         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
24691         Reported by Stephane Chazelas.
24693 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
24695         bootstrap: port to OpenBSD sed
24696         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
24697         does not interpret `-' as a file argument to mean stdin.
24699 2013-08-15  Eric Blake  <eblake@redhat.com>
24701         warnings: minor optimization
24702         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
24704         warnings: check -Wfoo rather than -Wno-foo
24705         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
24706         -Wno-, test if the compiler recognizes the positive form instead.
24708 2013-08-15  Karl Berry  <karl@gnu.org>
24710         * config/srclist-update: add option "doclicense" to placate
24711         pulling *.texi files from Emacs.  Write terse usage
24712         documentation at the top.
24714 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
24716         xvasprintf-tests: port to GCC with hardening flags
24717         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
24718         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
24719         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
24721 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
24723         fpending: port to recent Cygwin change to stdio_ext.h
24724         Reported by LRN in
24725         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
24726         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
24727         just declare __fpending unless it's a macro.
24728         A duplicate decl shouldn't hurt.
24729         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
24730         call compiles and links, instead of separately checking for
24731         decl and lib function.
24732         * modules/fpending (configure-ac):
24733         Adjust to fpending.m4's renaming of shell variable.
24735 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
24737         sys_time: port to OpenBSD
24738         * lib/sys_time.in.h: Simply delegate to the system's header
24739         in the BSDish cases as well.  Problem reported by Mike Miller in
24740         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
24741         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
24742         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
24743         wider than time_t.
24745 2013-08-09  Pádraig Brady  <P@draigBrady.com>
24747         bootstrap: support checksum utils having -c but not --status
24748         * build-aux/bootstrap: Only look for sha1sum if updating po files.
24749         Add sha1 to the list of supported checksum utils since it's now
24750         supported through adjustments below.
24751         (update_po_files): Remove the use of --status
24752         in a way that will suppress all error messages, but since this is
24753         only used to minimize updates, it shouldn't cause an issue.
24754         Exit early if there is a problem updating the po file checksums.
24755         (find_tool): Remove the check for --version support as this
24756         is optional as per commit 86186b17.  Don't even check for the
24757         presence of the command as if that is needed, it's supported
24758         through configuring prerequisites in bootstrap.conf.
24759         Prompt that when a tool isn't found, one can define an environment
24760         variable to add to the hardcoded search list.
24762 2013-08-05  Jim Meyering  <meyering@fb.com>
24764         regex: port to non-glibc/lock-using systems
24765         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
24766         system with GNULIB_LOCK would fail due to absence of the
24767         included "glthread/lock.h".  This would affect any package
24768         for which the "lock" module is used only by the regex module,
24769         and not explicitly used.
24770         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
24771         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
24772         Add a dependency on the "lock" module.
24774 2013-07-20  Daiki Ueno  <ueno@gnu.org>
24776         localecharset: make locale_charset thread-safe on Mac OS X
24777         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
24778         instead of MB_CUR_MAX.
24780 2013-07-20  Daiki Ueno  <ueno@gnu.org>
24782         gettext: update to version 0.18.3
24783         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
24784         require AC_PROG_SED to allow user to specify custom sed command when
24785         generating en@quot PO file.
24787 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
24789         bootstrap: use correct source when copying build-aux files
24790         * build-aux/bootstrap (gnulib_extra_files): This variable is
24791         relative to upstream gnulib layout, not downstream.
24793 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
24795         tmpdir: fix bug in VMS port
24796         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
24797         See Steven M. Schweda in
24798         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
24800 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
24802         tmpdir: port to VMS, to // != /, and to long dirs
24803         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
24804         __secure_getenv, so that we're more like the glibc version.
24805         All uses changed.
24806         (path_search): Don't put slash after directory if __VMS.
24807         Problem reported by Steven M. Schweda in
24808         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
24809         Simplify code to add slash; no need for a loop.
24810         Do not remove trailing slash from "//".
24811         Do not assume dlen <= INT_MAX.
24813 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
24815         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
24816         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
24817         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
24818         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
24820         accept4, dup3, pipe2: port to Cygwin
24821         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
24822         * lib/accept4.c (accept4) [O_BINARY]:
24823         * lib/dup3.c (dup3) [O_BINARY]:
24824         * lib/pipe2.c (pipe2) [O_BINARY]:
24825         Use set_binary_mode, not setmode.
24826         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
24827         * modules/binary-io (Depends-on): Remove module indicator.
24828         These last two bits undo the previous change to pipe2 and binary-io.
24830 2013-07-09  Pádraig Brady  <P@draigBrady.com>
24832         mountlist: add support for deallocating returned list entries
24833         * lib/mountlist.c (free_mount_entry): A new exported function
24834         to deallocate a mount list entry.
24835         (read_file_system_list): Refactor to use the new deallocation function.
24836         Suggested by Anton Ovchinnikov.
24838 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
24840         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
24841         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
24842         * lib/stdalign.in.h (_Alignas, _Alignof):
24843         Port to FreeBSD 9.1, and to C11 and C++11.
24844         (_Alignas): Also support ICC.
24845         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
24846         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
24848 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
24850         fnmatch: don't goto over declaration
24851         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
24852         undefined behavior for goto over a declaration.
24853         Problem reported by Charlie Brown in
24854         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
24856         pipe2: decouple from binary-io a bit
24857         This is for Emacs, which needs pipe2 but not binary-io.
24858         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
24859         * modules/binary-io (Depends-on): Add module indicator.
24861 2013-07-03  Eric Blake  <eblake@redhat.com>
24863         mgetgroups: relax license to LGPLv2+
24864         * modules/getugroups (License): Change from GPLv3+.
24865         * modules/mgetgroups (License): Likewise.
24866         * modules/getgroups (License): Change from LGPLv3+.
24868         xalloc-oversized: relax license to LGPLv2+
24869         * modules/xalloc-oversized (License): Change from GPLv3+.
24871         nproc: relax license to LGPLv2+
24872         * modules/nproc (License): Change from LGPLv3+.
24874         bootstrap: honor --no-git
24875         * build-aux/bootstrap: Don't even try to use git when user is
24876         pointing to a static checkout.
24878 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24880         ignore-value: port to gcc -pedantic
24881         * lib/ignore-value.h (ignore_value):
24882         Port to gcc -pedantic, by using __extension__.
24883         Reindent as per usual gnulib style nowadays.
24884         Simplify GCC version check.
24886 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24888         extern-inline: port to gcc -std=c89
24889         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
24890         Do not use __gnu_inline__ if pedantic and pre-C99.
24892 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
24894         doc: document extern-inline
24895         * doc/extern-inline.texi: New file.
24896         * doc/gnulib.texi (alloca-opt): Include it.
24897         * m4/extern-inline.m4: Move some comments to documentation,
24898         and others closer to what they describe.
24900         doc: chatter less
24901         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
24902         (updated-stamp): Use it.  This causes 'make' to output just
24903         one file name rather than zillions.
24905         fflush, fseeko: port to musl cross-compiles
24906         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
24907         on some implementation that (1) is not known to be buggy,
24908         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
24909         cross-compiled to so we can't easily check for lack of
24910         conformance.  This is for cross-compiling to musl.
24911         Reported by Rich Felker in
24912         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
24913         * m4/fclose.m4 (gl_FUNC_FCLOSE):
24914         * m4/fflush.m4 (gl_FUNC_FFLUSH):
24915         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
24916         Adjust to above change.
24917         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
24918         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
24919         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
24920         known not to work, or unknown.
24922 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
24924         msvc-inval: port to mingw-w64
24925         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
24926         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
24927         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
24929 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
24931         getcwd-lgpl: port to Tru64
24932         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
24933         Problem reported by Steven M. Schweda in
24934         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
24936         tests: port large-fd POSIX spawn tests to OS X
24937         Problem reported by Daiki Ueno in
24938         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
24939         * tests/test-posix_spawn_file_actions_addclose.c:
24940         * tests/test-posix_spawn_file_actions_adddup2.c:
24941         * tests/test-posix_spawn_file_actions_addopen.c:
24942         Include <limits.h>, for OPEN_MAX, if available.
24943         (big_fd): New static function.
24944         (main): Use it.
24946 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
24948         tests/nap.h: use an adaptive delay to avoid ctime update issues
24949         The recent change in nap.h (5191133e) decreased the probability of lost
24950         races to about a third, however such problems could still be observed
24951         in virtual machines and openSUSE's OBS.
24952         Before, nap() detected the needed time once empirically and then used
24953         that delay (together with a small correction multiplier) in further
24954         calls.  This problem has been reported and discussed several times,
24955         including guesses about possible kernel issues:
24956         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
24957         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
24958         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
24959         http://bugs.gnu.org/12820
24960         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
24961         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
24962         Now, nap() avoids the race alltogether by verifying on a reference
24963         file whether a timestamp difference has happened.
24964         * tests/nap.h (nap_fd): Define file descriptor variable for the
24965         witness file.
24966         (nap_works): Change return value to bool.  Change passing
24967         the old file's status by value instead of by reference as this function
24968         does no longer update that timestamp; rename the function argument from
24969         st to old_st.  Remove the local variables cdiff and mdiff because that
24970         function now returns true/false instead of the precise delay.
24971         (guess_delay): Remove function.
24972         (clear_tmp_file): Add new function to close and unlink the witness file.
24973         (nap): Instead of re-using the delay which has been calculated during
24974         the first call, avoid the race by actually verifying that a timestamp
24975         difference can be observed on the current file system.  Use an adaptive
24976         approach for the delay to minimize execution time.  Assert that the
24977         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
24978         = 2^31 - 1 = 2.1s.
24979         Use atexit to call clear_tmp_file when the process terminates.
24981 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
24983         sig2str: port to C++
24984         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
24985         Reported by Daniel J Sebald in
24986         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
24988 2013-05-30  Eric Blake  <eblake@redhat.com>
24990         docs: mention cygwin shortcoming in <sys/un.h>
24991         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
24993         vasnprintf: silence mingw compiler warning
24994         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
24996 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
24998         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
24999         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
25000         This fixes a porting bug I recently reintroduced in regex, and
25001         some other instances that I discovered while testing the fix.
25002         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
25003         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
25004         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
25005         with an empty argument if this is a pedantic pre-C99 GCC.
25006         * lib/verify.h: Do not use _Static_assert if this is a pedantic
25007         pre-C11 GCC.
25009         regex: adapt to locking regime instead of depending on pthread
25010         Instead of depending on pthread, adapt to whatever thread
25011         modules are in use.  Problem reported by Ludovic Courtès in
25012         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
25013         and by Mats Erik Andersson in
25014         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
25015         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
25016         Support either the 'lock' module, or the 'pthread' module, or
25017         no module.
25018         (lock_lock, lock_unlock): New macros.
25019         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
25020         * modules/lock, modules/pthread (configure.ac): Add module indicator.
25021         * modules/regex (Depends-on): Remove pthread.
25023 2013-05-22  Eric Blake  <eblake@redhat.com>
25025         getgroups: document portability issues
25026         * doc/glibc-functions/initgroups.texi (initgroups): Mention
25027         multithread safety.
25028         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
25029         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
25030         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
25031         getugroups.
25032         * doc/posix-functions/getgroups.texi (getgroups): Mention
25033         multithread safety and mgetgroups.
25035 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
25037         test-lchown, test-chown: also skip test if chown fails with EPERM
25038         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
25039         skip this test, to handle FAT file systems.
25040         * tests/test-chown.h (test_chown): Likewise.
25042 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
25044         regex: fix dfa race in multithreaded uses
25045         Problem reported by Ludovic Courtès in
25046         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
25047         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
25048         New macros.  All uses of __libc_lock_define, __libc_lock_init
25049         changed to use the first two of these.
25050         (__libc_lock_lock, __libc_lock_unlock): New macros, for
25051         non-glibc platforms.
25052         (struct re_dfa_t): Define the lock unconditionally.
25053         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
25054         '#ifdef _LIBC"s.
25055         * modules/regex (Depends-on): Add pthread, if we use the
25056         included regex.
25058         * lib/regcomp.c: Do actions that are not needed for glibc,
25059         but may be needed elsewhere.
25060         (regfree, re_compile_internal): Destroy the lock.
25061         (re_compile_internal): Check for lock-initialization failure.
25063         malloca: port to compilers that reject size-zero arrays
25064         This fixes a bug introduced in my previous patch.
25065         * lib/malloca.c (struct preliminary_header): Use an int
25066         rather than a character array of size int; that's simpler.
25067         (struct header): Remove, replacing with ...
25068         (union header): New type.  This avoids the need for declaring a
25069         character array of size zero, which is not allowed on some platforms.
25070         All uses changed.
25072 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
25074         parse-datetime, tests: don't use "string" + int
25075         Recent versions of 'clang' complain about C source code that
25076         uses expressions of the form '"string literal" + integer',
25077         I guess on the theory that it's confusing for readers who are
25078         used to C++.  On those grounds I suppose it's OK to make this
25079         minor style change.
25080         * lib/parse-datetime.y (parse_datetime):
25081         * tests/test-fchdir.c (main):
25082         * tests/test-snprintf-posix.h (test_function):
25083         * tests/test-snprintf.c (main):
25084         * tests/test-vasnprintf-posix.c (test_function):
25085         * tests/test-vasnprintf.c (test_function):
25086         * tests/test-vsnprintf.c (main):
25087         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
25088         Rewrite '"str" + E' to '&"str"[E]'.
25090 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25092         argmatch: port to C++
25093         * lib/argmatch.h [__cplusplus]: Add extern "C".
25095         argp: typo fix
25096         * lib/argp-help.c: Typo in comment.
25098 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
25100         manywarnings: update for GCC 4.8.0
25101         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
25102         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
25103         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
25104         -Wmissing-noreturn, as they are duplicates of other warnings.
25105         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
25106         was documented to be flaky in earlier versions of GCC.
25108         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
25109         * tests/test-spawn.c (main):
25110         * tests/test-sys_socket.c (main):
25111         * tests/test-sys_wait.c (main):
25112         Don't have a switch value that isn't covered by a case.
25114         getaddrinfo-tests: port --enable-gcc-warnings to clang
25115         * tests/test-getaddrinfo.c (simple):
25116         Avoid casts from looser to stricter-aligned pointers.
25118         thread: port --enable-gcc-warnings to clang
25119         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
25120         Include <signal.h>, to pacify a warning about pthread_sigmask.
25122         stdio: use __REDIRECT for fwrite, fwrite_unlocked
25123         * lib/stdio.in.h (fwrite):
25124         When working around bug 11959, use __REDIRECT rather than '#define
25125         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
25126         fix the -Wunused-value issue with clang, and it works with GCC too.
25127         Problem with targeting reported by Eric Blake in
25128         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
25129         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
25130         debugging the fwrite issue.
25132         stdio: port --enable-gcc-warnings to clang
25133         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
25134         since the GCC workaround for fwrite does not pacify clang.
25136         sig2str: port --enable-gcc-warnings to clang
25137         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
25139         obstack: port --enable-gcc-warnings to clang
25140         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
25141         Avoid casts from looser to stricter-aligned pointers.
25143         memchr2: port --enable-gcc-warnings to clang
25144         * lib/memchr2.c (memchr2):
25145         Avoid casts from looser to stricter-aligned pointers.
25147         mbsstr: port --enable-gcc-warnings to clang
25148         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
25149         Avoid casts from looser to stricter-aligned pointers.
25151         malloca: port --enable-gcc-warnings to clang
25152         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
25153         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
25155         inttostr: port --enable-gcc-warnings to clang
25156         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
25158         warnings: port to clang
25159         Problem reported by Daniel P. Berrange via Eric Blake in
25160         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
25161         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
25162         (gl_WARN_ADD): Use it.
25164 2013-05-11  Jim Meyering  <meyering@fb.com>
25166         quotearg: do not read beyond end of buffer
25167         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
25168         end of an ARG for which no length was specified.  With an N-byte
25169         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
25170         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
25171         via coreutils' misc/sort-debug-keys.sh test and detected by running
25172         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
25173         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
25174         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
25175         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
25176         characters correctly."
25178 2013-05-11  Daiki Ueno  <ueno@gnu.org>
25180         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
25181         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
25182         compilation target is Mac OS X 10.6.
25183         Problem reported by parafin and Andoni Morales in
25184         <http://savannah.gnu.org/bugs/?37844> and
25185         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
25187 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
25189         mkdir-p: remove assumptions about umask and mode
25190         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
25191         umask is 0, or that MODE is a subset of MODE_BITS.
25193 2013-05-10  Eric Blake  <eblake@redhat.com>
25195         maint.mk: catch more abuse of HAVE_DECL in syntax-check
25196         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
25198 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
25200         deps: require Automake >= 1.9.6 in generated Makefile fragments
25202         That is the same minimal version required in the DEPENDENCIES file.
25203         Moreover, the old code generated a requirement of Automake >= 1.5,
25204         and that is an insanely outdated version.
25206         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
25207         * tests/havelib/rpathlx/Makefile.am: Likewise.
25208         * tests/havelib/rpathly/Makefile.am: Likewise.
25209         * tests/havelib/rpathlyx/Makefile.am: Likewise.
25210         * tests/havelib/rpathlz/Makefile.am: Likewise.
25211         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
25212         * tests/havelib/rpathx/Makefile.am: Likewise.
25213         * tests/havelib/rpathy/Makefile.am: Likewise.
25214         * tests/havelib/rpathz/Makefile.am: Likewise.
25216 2013-05-08  Eric Blake  <eblake@redhat.com>
25218         bootstrap: AC_INIT may have more than four parameters
25219         * build-aux/bootstrap (extract_package_name): Correctly extract
25220         non-empty tarname field.  Avoid range in regex.
25221         Based on a report by Sami Kerola <kerolasa@iki.fi>.
25223 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
25225         qacl: port to MS-Windows port of GNU Emacs
25226         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
25227         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
25228         port of GNU Emacs.  Problem reported by Eli Zaretskii in
25229         <http://bugs.gnu.org/14295#14>.
25231 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
25233         acl: include quote.h
25234         * lib/copy-acl.c: Include quote.h.
25235         * lib/set-acl.c: Likewise.
25237 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
25239         fchownat, renameat, unlinkat: update statat dependencies
25240         These modules use statat and lstatat, not fstatat; so depend on
25241         the statat module, which was split out recently from fstatat.
25242         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
25243         * modules/renameat: Likewise.  Also delete fstat.
25244         URL: http://bugs.gentoo.org/468790
25246 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
25248         Assume gnulib is checked out from Git, not CVS
25250         In fact, access to the gnulib repository through CVS has been
25251         disabled, or more precisely, got broken and was never restored; see:
25252         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
25254         Note that support for CVS is not removed completely and unthinkingly
25255         by this change: only support for CVS checkouts of gnulib itself is
25256         removed.  For example, the 'bootstrap' script still cater to .cvsingore
25257         files and CVS directories, for the benefit of those poor gnulib clients
25258         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
25260         * gnulib-tool: Simplify accordingly.
25261         * posix-modules: Likewise.
25262         * MODULES.html.sh: Likewise.
25263         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
25264         repository.
25265         * doc/gnulib-intro.texi: Likewise.
25266         * doc/gnulib-readme.texi: Likewise.
25267         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
25268         sample '.gitignore' file rather than a sample '.cvsignore'.
25269         * NEWS: Update.
25270         * m4/extensions.m4: While at it, remove a comment mistakenly referring
25271         to "CVS Autoconf" rather than "git Autoconf".
25273 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
25275         utimensat-tests, etc.: try to fix some races
25276         Problem reported by Bernhard Voelker in
25277         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
25278         I don't know whether this patch fixes that race condition, but it
25279         fixes *some* race conditions, so it should be a win.
25280         * modules/chown-tests (Depends-on):
25281         * modules/fchownat-tests (Depends-on):
25282         * modules/fdutimensat-tests (Depends-on):
25283         * modules/futimens-tests (Depends-on):
25284         * modules/lchown-tests (Depends-on):
25285         * modules/stat-time-tests (Depends-on):
25286         * modules/utimens-tests (Depends-on):
25287         * modules/utimensat-tests (Depends-on):
25288         Depend on nanosleep, not usleep.
25289         * modules/chown-tests (test_chown_LDADD):
25290         * modules/lchown-tests (test_lchown_LDADD):
25291         * modules/stat-time-tests (test_stat_time_LDADD):
25292         New macro.
25293         * modules/fchownat-tests (test_fchownat_LDADD):
25294         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
25295         * modules/futimens-tests (test_futimens_LDADD):
25296         * modules/utimens-tests (test_utimens_LDADD):
25297         * modules/utimensat-tests (test_utimensat_LDADD):
25298         Add $(LIB_NANOSLEEP).
25299         * modules/stat-time-tests (Files): Add tests/nap.h.
25300         * tests/nap.h: Include <limits.h>, for INT_MAX.
25301         (lt_mtime): Remove.
25302         (diff_timespec): New function.
25303         (get_stat): Rename from get_mtime.  All callers changed.
25304         (nap_works): Determine the needed delay by inspecting the
25305         file system's timestamp jumps; this should be more reliable.
25306         Look at both mtime and ctime, and take the maximum of the two jumps.
25307         (nap_works, guess_delay):
25308         Return a nanosecond count, not a microsecond count.
25309         All callers changed.
25310         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
25311         failure.
25312         (nap): Multiply the guess by 1.125, to accommodate the case where
25313         the file system's clock is a bit slower than nanosleep's clock.
25314         * tests/test-stat-time.c (BASE): New macro.
25315         Include nap.h.
25316         (nap): Remove; nap.h now defines this.  This removes a duplicate
25317         implementation of 'nap'.
25319         utimens, utimensat: work around Solaris UTIME_OMIT bug
25320         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
25321         Linux kernel 2.6.32 does.  Work around it in the same way.
25322         * doc/posix-functions/futimens.texi (futimens):
25323         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
25324         * lib/utimens.c (fdutimens, lutimens):
25325         * lib/utimensat.c (rpl_utimensat): Work around the bug.
25327         gettext: now it's your responsibility to add -I$(top_builddir)/intl
25328         Formerly, it was your responsibility to do this for all Makefile.ams
25329         other than Gnulib's.  Now it's your responsibility to do it for
25330         Gnulib's Makefile.am, too.
25331         * NEWS: Document this.
25332         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
25334         acl: include errno.h to get errno
25335         Reported by Daiki Ueno in
25336         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
25337         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
25339 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
25341         tests: don't assume getdtablesize () <= 10000000
25342         * modules/cloexec-tests:
25343         * modules/dup2-tests:
25344         * modules/dup3-tests:
25345         * modules/nonblocking-tests:
25346         * modules/posix_spawn_file_actions_addclose-tests:
25347         * modules/posix_spawn_file_actions_adddup2-tests:
25348         * modules/posix_spawn_file_actions_addopen-tests:
25349         * modules/unistd-safer-tests:
25350         Depend on the getdtablesize module.
25351         * tests/test-cloexec.c:
25352         * tests/test-dup-safer.c:
25353         * tests/test-dup2.c:
25354         * tests/test-dup3.c:
25355         * tests/test-fcntl.c:
25356         * tests/test-nonblocking.c:
25357         * tests/test-posix_spawn_file_actions_addclose.c:
25358         * tests/test-posix_spawn_file_actions_adddup2.c:
25359         * tests/test-posix_spawn_file_actions_addopen.c:
25360         Don't assume getdtablesize () <= 10000000.
25362 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
25364         extern-inline: work around bug in Sun c99
25365         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
25366         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
25368 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
25370         qacl: new module, broken out from the acl module
25371         This is for GNU Emacs, which wants the acl functions but does
25372         not want 'error' invoked when they fail.
25373         * lib/acl-internal.h: Do not include error.h, quote.h.
25374         (ENOSYS, ENOTSUP): Remove; no longer needed.
25375         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
25376         * lib/acl.h: Include <stdbool.h>.
25377         (acl_errno_valid): New function.
25378         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
25379         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
25380         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
25381         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
25382         (ACL_INTERNAL_INLINE): Remove; no longer needed.
25383         * lib/file-has-acl.c (file_has_acl):
25384         * lib/qcopy-acl.c (qcopy_acl):
25385         * lib/qset-acl.c (qset_acl):
25386         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
25387         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
25388         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
25389         lib/file-has-acl.c, m4/acl.m4 to qacl module.
25390         Add lib/set-acl.c.
25391         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
25392         Add qacl.
25393         (configure.ac): Move gl_FUNC_ACL to qacl module.
25394         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
25395         Rename set-mode-acl.c to set-acl.c.
25396         * lib/acl-errno-valid.c: New file.
25397         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
25398         copy_acl function remains in copy-acl.c.
25399         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
25400         (_): Remove; not needed.
25401         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
25402         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
25403         * modules/qacl: New file, moved from the old modules/acl.
25404         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
25405         Remove set-mode-acl.c, copy-acl.c.
25406         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
25408         alignof, intprops, malloca: port better to IBM's C compiler
25409         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
25410         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
25411         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
25413 2013-04-25  Daiki Ueno  <ueno@gnu.org>
25415         wctype-h: fix gettext link error on mingw
25416         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
25417         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
25418         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
25419         rpl_towupper and rpl_towupper.
25421 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
25423         regex-tests, regex: allow glibc re_search behavior
25424         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
25425         re_search input data to make the multi-character collating element
25426         in it clearly visible, and treat re_search return code 0 as valid.
25427         * m4/regex.m4 (gl_REGEX): Likewise.
25429 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
25431         stdalign: doc fix
25432         * doc/posix-headers/stdalign.texi (stdalign.h):
25433         Gnulib doesn't support '_Alignof expr'.
25435 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
25437         stdalign: port to stricter ISO C11
25438         ISO C11 says that _Alignof's operand must be a parenthesized type.
25439         Problem reported by Eli Zaretskii in
25440         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
25441         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
25442         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
25444 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25446         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
25447         Problem reported by Marco Atzeri in
25448         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
25449         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
25450         Simply delegate to the system <sys/select.h> in this case too.
25451         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
25452         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
25453         be needed on Solaris either.
25454         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
25455         Simply delegate to the system <sys/time.h> in this case.
25457 2013-03-19  Karl Berry  <karl@gnu.org>
25459         * build-aux/gnupload: check for erroneous (with gnupload) use of
25460         ftp-upload.gnu.org, tweak help.
25462 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25464         copy-file, rpmatch: fix problems found by cppcheck
25465         Reported by Arno Onken in
25466         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
25467         * lib/rpmatch.c (try): Fix memory leak.
25468         * lib/copy-file.c: Include "ignore-value.h".
25469         (qcopy_file_preserving): Ignore chown value.
25470         * modules/copy-file (Depends-on): Add ignore-value.
25472 2013-01-27  Jim Meyering  <jim@meyering.net>
25474         prefix-gnulib-mk: give better diagnostics
25475         * build-aux/prefix-gnulib-mk: Don't just "die".
25476         Give better diagnostics upon failure.
25478 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25480         putenv: port to Solaris 10
25481         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
25482         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
25483         is not what is wanted here.
25484         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
25485         declaration, not for its existence.
25487 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25489         mktime: fix configure typo
25490         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
25492 2013-03-12  Eric Blake  <eblake@redhat.com>
25494         regex-tests: skip UTF-8 test on mingw
25495         * modules/regex-tests (Depends-on): Add localcharset.
25496         * tests/test-regex.c (main): Use it to skip test on mingw.
25498 2013-03-11  Eric Blake  <eblake@redhat.com>
25500         tests: make it easier to bypass alarm time in debugger
25501         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
25502         * tests/test-memmem.c (main): Likewise.
25503         * tests/test-passfd.c (main): Likewise.
25504         * tests/test-ptsname.c (main): Likewise.
25505         * tests/test-ptsname_r.c (main): Likewise.
25506         * tests/test-strcasestr.c (main): Likewise.
25507         * tests/test-strstr.c (main): Likewise.
25509         regex: port to mingw's recent addition of undeclared alarm
25510         * doc/posix-functions/alarm.texi (alarm): Document that alarm
25511         exists but still doesn't work in newer mingw.
25512         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
25513         not existence.  Ensure SIGALRM is not trapped.
25514         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
25515         * m4/regex.m4 (gl_REGEX): Likewise.
25516         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
25517         * tests/test-regex.c (main): Use correct probe for alarm.
25519         putenv: avoid compilation warning on mingw
25520         * lib/putenv.c (_unsetenv): Protect variable declaration.
25521         (putenv): Fix indentation.
25523 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
25525         unistd: don't prevent Tru64 Unix from using gnulib strtod.
25526         * lib/unistd.in.h: be careful not to include un-needed system
25527         stdlib.h from here, because that prevents gnulib stdlib.h from
25528         defining rpl_strtod correctly.
25530 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
25532         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
25533         changesets, but for the 'precision 0' test.
25534         * tests/test-vasprintf-posix.c (test_function): Don't insist on
25535         round-to-even, since POSIX says rounding is implementation-defined
25536         and OS X 10.8.2 rounds 1.51 to 1 here.
25538         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
25539         changeset.
25540         * tests/test-vasprintf-posix.c (test_function): Don't insist on
25541         round-to-even, since POSIX says rounding is implementation-defined
25542         and OS X 10.8.2 rounds 1.5 to 1 here.
25544 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25546         vasnprintf-posix-tests: allow rounding 1.5 to 1
25547         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
25548         round-to-even, since POSIX says rounding is implementation-defined
25549         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
25550         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
25552         bootstrap: port to FreeBSD
25553         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
25554         that treat '--' differently.  Reported by Mats Erik Andersson in
25555         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
25557 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
25559         regex: rename remaining __attribute calls to __attribute__.
25560         2012-02-25 changed definition of __attribute, but left some uses
25561         unchanged, preventing compilation of regex module on most non-gcc
25562         environments.
25563         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
25564         (lookup_collation_sequence_value, build_range_exp)
25565         (build_collating_symbol): Set attributes with newly renamed
25566         __attribute__ decorator.
25567         * lib/regex_internal.c (re_string_peek_byte_case)
25568         (re_node_set_compare, re_node_set_contains): Likewise.
25569         * lib/regexec.c (acquire_init_state_context): Likewise.
25571 2013-03-06  Bruno Haible  <bruno@clisp.org>
25573         execute: Revert last change, but use a different condition.
25574         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
25575         on Windows.
25577 2013-03-05  Eric Blake  <eblake@redhat.com>
25579         execute: drop dead code
25580         * lib/execute.c (nonintr_close, nonintr_open): Delete.
25582 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25584         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
25585         * m4/non-recursive-gnulib-prefix-hack.m4
25586         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
25587         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
25588         <http://bugs.gnu.org/10305#237>.
25590 2013-03-04  Eric Blake  <eblake@redhat.com>
25592         test-getsockopt: avoid compiler warning
25593         * tests/test-getsockopt.c (includes): Ensure close is declared.
25595 2013-03-02  Bruno Haible  <bruno@clisp.org>
25597         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
25598         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
25600 2013-03-02  Bruno Haible  <bruno@clisp.org>
25602         gettext: Update to version 0.18.2.
25603         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
25604         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
25605                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
25607 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
25609         regex: merge patches from libc
25611         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
25612         * lib/regex_internal.h (__attribute__): Rename from __attribute.
25613         All uses changed.
25614         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
25615         (re_string_wchar_at, re_string_elem_size_at):
25616         Mark function as possibly unused.
25618         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
25619         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
25620         elements compare against the byte sequence of it, not its name.
25622 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
25624         putenv: port better to native Windows
25625         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
25626         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
25627         (_unsetenv): Use _putenv if available.
25628         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
25629         a bit less likely to cause damage.
25630         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
25631         Fix the wrong value with SetEnvironmentVariable.
25632         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
25633         code better.
25635 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
25637         regex: ignore old-style-definition warnings
25638         * lib/regex.c: Add pragma to ignore these warnings.
25639         Problem reported for GNU tar by Pavel Raiskup.
25641 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
25643         getcwd: support coreutils better
25644         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
25645         but this might not be correct in coreutils, which disables
25646         the raw decl checks.  Problem reported by Nagendra in
25647         <http://bugs.gnu.org/10305#192>.
25648         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
25649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
25650         Test the getcwd function, not any macro, since getcwd.c wants the
25651         function.
25652         * m4/getcwd.m4 (gl_FUNC_GETCWD):
25653         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
25654         compile, as might happen if there's a macro but no function.
25656         strtod: support coreutils better
25657         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
25658         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
25659         disables the raw decl checks.  This assumes there is an underlying
25660         strtod, but that's a safe assumption these days.
25661         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
25663         mountlist: port to HP NonStop
25664         Reported by Joachim Schmitz in
25665         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
25666         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
25667         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
25669 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
25671         extern-inline: avoid compilation error with HP-UX cc
25672         Reported by Richard Lloyd in
25673         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
25674         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
25675         Suppress extern inline with HP-UX cc.  This should be safe,
25676         though it may hurt performance.  Perhaps someone with some HP-UX
25677         experience can come up with a higher-performance fix.
25679 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25681         putenv: fix heap corruption with mixed putenv/_putenv
25682         Problem reported by Michael Goffioul in
25683         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
25684         * lib/putenv.c (putenv) [HAVE__PUTENV]:
25685         Rely on _putenv to allocate the new environment.
25686         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
25687         * modules/putenv (configure.ac): Use it.
25689 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
25691         unsetenv etc.: port to Solaris 11 + GNU Emacs
25692         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
25693         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
25694         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
25695         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
25696         idea but is too painful to fix right now), and without this gnulib
25697         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
25698         compiling unsetenv.c on Solaris 11.  Fix the problem for
25699         unsetenv.c, and fix other similar occurrences.
25701 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25703         secure_getenv: fix C++ declaration typo
25704         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
25705         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
25706         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
25708 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25710         careadlinkat: stop exporting careadlinkatcwd
25711         Only Emacs used it directly, and Emacs no longer needs it.
25712         * NEWS: Document this simplification.
25713         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
25714         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
25715         for readlink.
25716         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
25717         Don't include stdlib.h; no longer needed.
25718         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
25719         * lib/relocwrapper.c: Adjust comment to match new dependencies.
25720         * modules/areadlink (Depends-on): Add readlink.
25721         (Maintainer): Add self.
25722         * modules/careadlinkat (Depends-on): Remove readlink.
25724         extensions: port better to HP-UX
25725         This is merged from git Autoconf.
25726         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25727         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
25728         so that it's compatible with the value used when compiling.
25730         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
25731         Problem reported by Mats Erik Andersson in
25732         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
25733         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
25734         openpty function exists, not merely when we intend to replace it.
25735         This corrects the 2013-01-31 patch, which mistakenly defined
25736         HAVE_OPENPTY even on hosts that lacked it.
25738 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
25740         secure_getenv: fix include typo
25741         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
25743         secure_getenv: port better to FreeBSD and Solaris
25744         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
25745         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
25746         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
25747         This works better on BSDish platforms.
25748         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
25749         Test for issetugid if __secure_getenv is missing.
25751 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
25753         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
25754         Some of these changes are merged in from git Autoconf.
25755         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
25756         When deciding whether to define _XOPEN_SOURCE, inspect the
25757         preprocessor macro __hpux instead of the more-heavyweight
25758         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
25759         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
25760         as the key for __EXTENSIONS__.
25762         unistd: avoid namespace pollution on non-glibc systems
25763         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
25764         This avoids namespace pollution on non-glibc systems, by causing
25765         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
25766         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
25767         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
25769 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
25771         tmpdir: use secure_getenv
25772         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
25773         Define to secure_getenv, not getenv.
25774         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
25775         as that's now secure_getenv's job.
25776         * modules/tmpdir (Depends-on): Add secure_getenv.
25778         tempname: use secure_getenv
25779         * lib/tempname.c (__secure_getenv) [!_LIBC]:
25780         Define to secure_getenv, not getenv.
25781         * modules/tempname (Depends-on):
25782         Add secure_getenv.
25784         secure_getenv: new module
25785         * MODULES.html.sh (Extra functions based on ANSI C 89):
25786         Add secure_getenv.
25787         * doc/glibc-functions/secure_getenv.texi: New file.
25788         * doc/gnulib.texi: Include it.
25789         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
25790         New files.
25791         * lib/stdlib.in.h (secure_getenv): New decl.
25792         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
25793         * modules/stdlib (stdlib.h):
25794         Add secure_getenv checks.
25796 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
25798         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
25799         Reported for OS X 10.8.2 by Assaf Gordon in
25800         <http://bugs.gnu.org/13516>.
25801         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
25802         !HAVE_OPENAT && !HAVE_FDOPENDIR.
25803         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
25804         so that they can be kept in sync more easily.  Avoid PATH_MAX
25805         test on the Hurd.  Sync from test-getcwd.c for errno tests after
25806         mkdir or chdir failure.
25807         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
25808         lib/getcwd.c.
25809         (test_abort_bug): Do not test for the deep directory bug unless we
25810         have openat support.  Avoid PATH_MAX test on the Hurd.
25812         regex-tests, regex: fix bug: memset undeclared
25813         * tests/test-regex.c: Don't include regex.h twice.  Include
25814         string.h, to declare memset.  Christensen's report also mentioned
25815         this issue.
25816         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
25817         test-regex.c, to avoid future problems like this.  Remove
25818         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
25819         twice.
25821         regex-tests: fix link errors on older Solaris
25822         These need to link with @LIBINTL@ to get libintl_gettext.
25823         Problem reported by Tom G. Christensen in
25824         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
25825         * modules/regex-tests (test_regex_LDADD): New macro.
25827 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
25829         regex-tests: new module
25830         * modules/regex-tests, tests/test-regex.c: New files.
25832         regex: fix off-by-one error in configure test
25833         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
25835 2013-01-31  Eric Blake  <eblake@redhat.com>
25837         regex: avoid infinite configure test
25838         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
25840 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
25842         openpty: fix bug where HAVE_OPENPTY wasn't defined
25843         See the thread starting at:
25844         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
25845         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
25846         openpty function exists, not merely when we intend to replace it.
25848 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25850         sys_time: port to Solaris 2.6
25851         There is a circularity problem on Solaris 2.6, where <time.h> includes
25852         <sys/time.h> for struct timespec.  The include nesting is gnulib
25853         <time.h>, system <time.h>, gnulib <sys/time.h>, system
25854         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
25855         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
25856         <sys/siginfo.h>; the last, innermost file needs struct
25857         timestruc_t, which is defined in <sys/time.h>, which has not been
25858         fully parsed.  Problem reported by Tom G. Christensen in
25859         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
25860         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
25861         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
25862         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
25863         uses split double-inclusion guards.
25865 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
25867         regex: test for buffer overrun
25868         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
25869         for the just-fixed regex bug.
25871 2013-01-29  Andreas Schwab  <schwab@suse.de>
25873         regex: fix buffer overrun in regexp matcher [BZ #15078]
25874         * lib/regexec.c (extend_buffers): Add parameter min_len.
25875         (check_matching): Pass minimum needed length.
25876         (clean_state_log_if_needed): Likewise.
25877         (get_subexp): Likewise.
25879 2013-01-28  Pádraig Brady  <P@draigBrady.com>
25881         mountlist: don't consider "devtmpfs" as dummy
25882         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
25883         as there is storage associcated with it.
25885 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
25887         futimens-tests, utimens-tests: Depend on gettext.
25888         This works around a problem introduced in my 2013-01-12 patch,
25889         which added @LIBINTL@ to these modules.
25890         * modules/futimens-tests (Depends-on):
25891         * modules/utimens-tests (Depends-on): Add gettext.
25893 2013-01-26  Eric Blake  <eblake@redhat.com>
25895         test-getpeername: fix typo
25896         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
25898 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
25900         bootstrap: remove the need for a sorted .gitignore file
25901         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
25902         rename to insert_if_absent(), so that we don't need or generate
25903         a sorted .gitignore file.  We do require a .gitignore with no
25904         existing duplicate entries and enforce that.
25905         (sort_patterns): Remove this function as we now use the simpler
25906         technigue of inserting blacklist entries at the top of the file,
25907         assuming gnulib won't be inserting !whitelist entries.
25909 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
25911         readlinkat: don't depend on gl_FUNC_OPENAT
25912         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
25913         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
25914         renameat.m4, symlinkat.m4; but one thing at a time.
25916         statat: new module, split out from fstatat
25917         GNU Emacs needs the POSIX-specified fstatat, but not the
25918         gnulib-specified statat and lstat.  Split the latter two into a
25919         new module 'statat'.
25920         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
25921         * lib/openat.h, lib/statat.c (STATAT_INLINE):
25922         Rename from FSTATAT_INLINE. All uses changed.
25923         * modules/fstatat (Files): Remove lib/statat.c.
25924         (gl_MODULE_INDICATOR([fstatat])): Remove.
25925         (lib_SOURCES): Remove.
25926         (Maintainer): Add self.
25927         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
25928         * tests/test-fstatat.c (BASE): Don't define if already defined.
25929         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
25931 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
25933         tests: don't assume fd 99 is closed
25934         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
25935         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
25936         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
25937         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
25938         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
25939         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
25940         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
25941         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
25942         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
25943         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
25944         * tests/test-fwrite.c, tests/test-getpeername.c:
25945         * tests/test-getsockname.c, tests/test-getsockopt.c:
25946         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
25947         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
25948         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
25949         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
25950         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
25951         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
25952         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
25953         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
25954         * tests/test-unlinkat.c, tests/test-unlockpt.c:
25955         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
25956         Close file descriptor 99, instead of assuming it's already closed.
25958 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
25960         stpncpy: port to OS X 10.8
25961         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
25962         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
25964 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25966         unistd: port to recent mingw
25967         * lib/unistd.in.h: Remove special invocation convention for mingw,
25968         which breaks for the latest mingw version.  See John W. Eaton in
25969         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
25971         largefile: port better to Mac OS X 10.5
25972         This patch is backported from Autoconf git.
25973         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
25974         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
25975         with ino_t size being different for configuration time versus
25976         build/run time.  Problem reported by PHO in
25977         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
25979 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25981         doc: clarify -Werror
25982         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
25983         clarify that it's intended for developers, not for ordinary builds,
25984         and mention --enable-gcc-warnings as one possible use.
25986 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
25988         stdint: fix build with Android's Bionic fox x86
25989         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
25990         was already included as _SSIZE_T_DEFINED_ might also be defined
25991         in include/machine/_types.h, which is included by stdio.h
25993 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
25995         net_if-tests: port to Solaris 7 + GCC 3.4.6
25996         Problem reported by Tom G. Christensen in
25997         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
25998         * tests/test-net_if.c (ni): Move to next the code that uses it,
25999         so that it's declared only if needed.
26001 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
26003         net_if-tests: port to older Solaris
26004         Problem reported by Tom G. Christensen in
26005         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
26006         * modules/net_if-tests (NET_IF_LIB): New substitution.
26007         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
26008         (HAVE_IF_NAMEINDEX): New C macro.
26009         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
26011         system-quote-tests: port to older Solaris
26012         Problem reported by Tom G. Christensen in
26013         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
26014         * tests/test-system-quote-child.c (fopen, fread): Undef.
26016         c-xvasprintf etc.: fix link errors on older Solaris
26017         These need to link with @LIBINTL@ to get libintl_gettext.
26018         Problem reported by Tom G. Christensen in
26019         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
26020         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
26021         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
26022         * modules/futimens-tests (test_futimens_LDADD):
26023         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
26025 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
26027         locale: port to Solaris 2.6 and 7 + GNU gettext
26028         * lib/locale.in.h: Just include_next <locale.h> when
26029         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
26030         when combining the localename module with GNU gettext 0.18.2.
26031         Problem reported by Tom G. Christensen in
26032         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
26034 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
26036         stdlib: port to Solaris 2.6
26037         Also, the code worked on Solaris 7 through 9 only by accident.
26038         Problem reported by Tom G. Christensen in
26039         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
26040         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
26041         simply include the system stdlib.h.
26042         * lib/getopt.in.h (__need_system_stdlib_h):
26043         * lib/pthread.in.h (__need_system_stdlib_h):
26044         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
26045         Define when including <stdlib.h>, to avoid problems at least for
26046         the pthread case on Solaris 2.6 and 7.  These .h files can get by
26047         with the system stdlib.h.
26049 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
26051         doc: update main copyright year
26052         * doc/gnulib.texi: Update copyright date.
26054         doc: improve ISO 8601 discussion
26055         * doc/parse-datetime.texi (Combined date and time of day items):
26056         Specify more carefully what formats are supported and what is
26057         done with excess precision.
26059 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
26061         doc: avoid small caps
26062         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
26063         they're more trouble than they're worth.  Suggested by Karl Berry
26064         in <http://bugs.gnu.org/13360>.
26066         regex: conform to strict C
26067         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
26068         From Aharon Robbins.
26070         gnulib-tool: fix incompatibility with autopoint 0.18.2
26071         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
26072         Problem reported by Tom G. Christensen in
26073         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
26075 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
26077         fprintftime: bring back and reword fwrite comment
26078         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
26080         stdio: remove now-unnecessary stdio.c
26081         Since stdio.in.h no longer uses inline functions, we no longer
26082         need to compile the extern versions.
26083         * lib/stdio.c: Remove.
26084         * modules/stdio (Files): Remove lib/stdio.c.
26085         (lib_SOURCES): Remove.
26087         unicodeio: depend on stdio, not ignore-value
26088         * lib/unicodeio.c: Do not include ignore-value.h.
26089         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
26090         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
26092         fprintftime: depend on stdio, not ignore-value
26093         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
26094         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
26095         since the stdio module arranges to silence that warning now.
26096         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
26098 2012-10-04  Simon Josefsson  <simon@josefsson.org>
26100         stdint-tests: Fix expanded-before-required-warning.
26101         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
26103 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
26105         fwrite: silence __wur only for older glibc versions
26106         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
26107         This will help us remove this workaround some time in the far future.
26109 2013-01-03  Eric Blake  <eblake@redhat.com>
26111         fwrite: silence __wur without using inline
26112         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
26113         just gcc, and in a way that avoids inline issues.
26114         * modules/stdio (Depends-on): Drop extern-inline.
26116 2013-01-03  Jim Meyering  <jim@meyering.net>
26118         update-copyright: avoid copyright notice date corruption
26119         Given a sequence of copyright year numbers in which the final
26120         one was a two-digit number that happened to be a substring of
26121         a preceding four-digit year number, we would mistakenly update
26122         the substring (from two- to four-digit) rather than the two-digit
26123         number at the end, which, combined with the addition of the current
26124         4-digit year number would yield two 5-digit year numbers, e.g.,
26125         here, it would convert the first "99" to "1999, 2013" rather than
26126         the final one:
26127           1991, 99
26128           11999, 20131, 1999
26129         * build-aux/update-copyright: Tighten a regexp.
26130         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
26131         Reported by Joseph Myers in
26132         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
26134 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26136         regex: omit needless signed-pointer casts
26137         * lib/regcomp.c (build_charclass, build_charclass_op):
26138         Use char *, not unsigned char *, for class name and extra.
26139         The char values are always nonnegative so there's no need to
26140         insist on unsigned char * here, and using char * removes the need
26141         for casts.  Reported by Aharon Robbins in
26142         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26144         regex: support Gawk, which never uses alloca
26145         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
26146         Do not include in this case.  Gawk doesn't supply a substitute
26147         alloca.h and doesn't need one.
26149         regex: port __libc_lock_define usage to C89
26150         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
26151         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
26152         does not conform to C89, as it has an empty macro argument.
26153         Reported by Aharon Robbins in
26154         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26156 2013-01-01  Eric Blake  <eblake@redhat.com>
26158         maint: update all copyright year number ranges
26159         Run "make update-copyright".
26161         version-etc: bump copyright year reported in --version
26162         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
26164 2012-12-31  Eric Blake  <eblake@redhat.com>
26166         sigprocmask-tests: skip test if pid is unexpectedly large
26167         * tests/test-sigprocmask.c (main): Add range check.
26169         git-version-gen: avoid test -z portability glitch
26170         * build-aux/git-version-gen: Prefer portable test spelling, since
26171         git-version-gen is run on more than just developer machines.
26173 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
26175         git-version-gen: add --fallback option to use if git is not present
26176         * build-aux/git-version-gen: Add support for the new option --fallback,
26177         which comes into play when there is no $tarball_version_file and
26178         git is not working.
26179         (scriptversion): Update.
26181         maint.mk: handle missing git with more grace
26182         * top/maint.mk (no-submodule-changes, public-submodule-commit):
26183         Quietly proceed if git is not present.
26185 2012-12-31  Eric Blake  <eblake@redhat.com>
26187         dup2: work around cygwin bug
26188         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
26189         * lib/dup2.c (rpl_dup2): Work around it.
26190         * doc/posix-functions/dup2.texi (dup2): Document it.
26192 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26194         regex: remove unnecessary dependency on localcharset.h
26195         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
26196         hasn't been needed for years.
26197         * modules/regex (Depends-on): Remove localcharset.
26199         regex: revert single-byte change
26200         * lib/regexec.c (check_node_accept_bytes): Revert previous change
26201         to this function.  This was alredy fixed in a different way, at
26202         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
26203         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
26204         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
26206         regex: simplify based on Gawk version
26207         * lib/regex_internal.c (re_dfa_add_node): Simplify.
26208         Reported by Aharon Robbins in
26209         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26211 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26213         regex: check that pattern char is single-byte
26214         Reported by Aharon Robbins in
26215         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26216         * lib/regexec.c (check_node_accept_bytes):
26217         Return 0 if the pattern string has a multibyte character here.
26219         regex: implement rational ranges
26220         Reported by Aharon Robbins in
26221         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26222         * lib/regcomp.c (build_range_exp) [!_LIBC]:
26223         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
26224         Implement rational ranges.
26226         regex: avoid redefining __wctype
26227         Reported by Aharon Robbins in
26228         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26229         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
26230         #undef before defining.
26232         regex: port to hosts where malloc (0) == NULL
26233         Reported by Aharon Robbins in
26234         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26235         * lib/regex_internal.c (re_node_set_alloc):
26236         Don't assume that malloc (0) yields nonnull.
26237         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
26238         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
26239         * modules/regex (Files): Add m4/eealloc.m4.
26241         regex: port to C89
26242         Reported by Aharon Robbins in
26243         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
26244         * lib/regcomp.c (init_word_char): Declaration before statement.
26246         regex: merge glibc changes
26247         Also, copy the license wording from glibc.  This simplifies
26248         merging changes.  gnulib-tool will change the wording to GPL as
26249         appropriate, when importing it to other packages.  The only
26250         glibc change made since the last merge, which needs merging, is:
26251         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
26252         * lib/regex_internal.h (gettext): Remove use of INTUSE.
26254         * users.txt: Add Emacs.
26256         doc: omit mention of version when not needed
26257         * doc/gnulib-intro.texi (Portability and Application Code):
26258         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
26259         Don't mention particular dates or versions when not necessary, so
26260         that the documentation won't go out of date so quickly.
26262         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
26264 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
26266         bootstrap: pass --force to autoreconf.
26267         * build-aux/bootstrap (AUTORECONFFLAGS): New.
26268         Add "--force" so that Automake's ylwrap and other such tools
26269         be updated at each bootstrap invocation.
26270         Use it.
26272 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26274         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
26275         The earlier patch forgot to update one of the #if conditions, causing
26276         a problem on Debian testing i386 reported by Mats Erik Andersson
26277         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
26278         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
26279         (__argp_fmtstream_puts, argp_fmtstream_puts)
26280         (__argp_fmtstream_write, argp_fmtstream_write)
26281         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
26283         * doc/gnulib-readme.texi: Minor fixups.
26284         (Portability guidelines): Modernize URLs.  Remove some repetition.
26285         (Indent with spaces not TABs): Reword to avoid too-long lines.
26286         Remove some '@ifset standalone' stuff that isn't used.
26288         * doc/gnulib-readme.texi (Portability guidelines):
26289         ctype.h, not ctime.h.
26291         Correct name of POSIX.1-2001.
26292         * doc/posix-functions/fgetc.texi (fgetc):
26293         * doc/posix-functions/fgets.texi (fgets):
26294         * doc/posix-functions/fread.texi (fread):
26295         * doc/posix-functions/fscanf.texi (fscanf):
26296         * doc/posix-functions/getc.texi (getc):
26297         * doc/posix-functions/getchar.texi (getchar):
26298         * doc/posix-functions/scanf.texi (scanf):
26299         POSIX.1-2001, not POSIX-2001.
26301         doc: move README into manual
26302         * README: Move contents to new file doc/gnulib-readme.texi.
26303         Replace with a one-line summary.
26304         * doc/gnulib.texi (Brief Overview): New section,
26305         with old intro preface.  Include gnulib-readme.texi for contents.
26306         (Philosophy): Rename from "Introduction", since this
26307         section no longer introduces the rest.  Write a new preface.
26308         * doc/gnulib-readme.texi: New file, with the old contents of
26309         README texinfo-ized.  This way, the README info appears
26310         in the online and printed manual.
26312 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
26314         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
26315         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
26316         c_vasprintf() prototype.
26318 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
26320         c-vasprintf: Fix "empty declaration" warning reported by GCC.
26321         * lib/c-vasprintf.h: Remove stray semicolon.
26323 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26325         gettext: avoid obsolete macro AM_PROG_MKDIR_P
26326         It is obsolete and is planned to be removed from Automake 1.14; see
26327         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
26328         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
26329         (installdirs-data, installdirs-data-yes):
26330         Use $(MKDIR_P), not $(mkdir_p).
26331         * m4/intl.m4 (AM_INTL_SUBDIR):
26332         * m4/po.m4 (AM_PO_SUBDIRS):
26333         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
26335 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26337         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
26338         On this platform, we are not optimizing but we are using
26339         the substitute for extern inlines, so compile as if
26340         C99-style extern inline, or a substitute, is available.
26341         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
26342         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
26343         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
26344         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
26345         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
26346         Declare as ARGP_FS_EI, not as extern.
26347         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
26348         (__option_is_short, _option_is_end, __option_is_end)
26349         [!_LIBC && __USE_EXTERN_INLINES]:
26350         Declare as ARGP_EI, not as extern.
26352 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26354         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
26355         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
26356         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
26357         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
26358         ...), as the latter is fatal with older Autoconfs.
26359         Problem reported and fix suggested by Eric Blake in thread starting at
26360         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
26362 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26364         AC_PROG_MKDIR_P: don't workaround if not buggy
26365         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
26366         Define only for Autoconf versions before 2.62.
26367         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
26368         undocumented m4_PACKAGE_VERSION, for consistency with the
26369         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
26370         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
26371         was introduced in 2.62.
26373 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
26375         New 'c-*printf' modules for formatted output in C locale.
26377         New module 'c-vasnprintf'.
26378         * modules/c-vasnprintf: New file.
26379         * lib/c-vasnprintf.c: New file.
26380         * lib/c-vasnprintf.h: New file.
26382         New module 'c-snprintf'.
26383         * modules/c-snprintf: New file.
26384         * modules/c-snprintf-tests: New file.
26385         * lib/c-snprintf.c: New file.
26386         * lib/c-snprintf.h: New file.
26387         * tests/test-c-snprintf.c: New file.
26388         * tests/test-c-snprintf.sh: New file.
26390         New module 'c-vsnprintf'.
26391         * modules/c-vsnprintf: New file.
26392         * modules/c-vsnprintf-tests: New file.
26393         * lib/c-vsnprintf.c: New file.
26394         * lib/c-vsnprintf.h: New file.
26395         * tests/test-c-vsnprintf.c: New file.
26396         * tests/test-c-vsnprintf.sh: New file.
26398         New module 'c-vasprintf'.
26399         * modules/c-vasprintf: New file.
26400         * modules/c-vasprintf-tests: New file.
26401         * lib/c-asprintf.c: New file.
26402         * lib/c-vasprintf.c: New file.
26403         * lib/c-vasprintf.h: New file.
26404         * tests/test-c-vasprintf.c  +: New file.
26405         * tests/test-c-vasprintf.sh: New file.
26407         New module 'c-xvasprintf'.
26408         * modules/c-xvasprintf: New file.
26409         * modules/c-xvasprintf-tests: New file.
26410         * lib/c-xasprintf.c: New file.
26411         * lib/c-xvasprintf.c: New file.
26412         * lib/c-xvasprintf.h: New file.
26413         * tests/test-c-xvasprintf.c: New file.
26414         * tests/test-c-xvasprintf.sh: New file.
26416 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26418         argp: better 'inline'
26419         Use extern-inline module to declare extern inline functions.
26420         This avoids some bogus warning diagnostics.  Problem discovered
26421         when modifying GNU tar to use the manywarnings module.
26422         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
26423         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
26424         Define based on extern-inline.
26425         * modules/argp (Depends-on): Add extern-inline.
26427 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
26429         filemode, sys_stat: Handle MPX files a la AIX.
26430         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
26431         * lib/sys_stat.in.h (S_ISMPX): New macro.
26432         * tests/test-sys_stat.c: Add tests for MPX files.
26434 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
26436         x-to-1: honor $PERL
26437         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
26438         a chance to use his preferred version of Perl.  This is typically
26439         required by Darwin users whose default /usr/bin/perl does not have all
26440         the libraries required by help2man, and who need to use their MacPorts
26441         installation of Perl instead.
26443 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
26445         gnu-web-doc-update: add all the new files, even in new directories
26446         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
26447         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
26448         Use it.
26449         (main): Don't use cvsutils to get the list of unknown files,
26450         just add all the existing files and directories.
26452 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
26454         gnu-web-doc-update: improve --help
26455         * build-aux/gnu-web-doc-update: Move comments into --help.
26457 2012-12-07  Eric Wong  <normalperson@yhbt.net>
26459         mountlist: recognize more "dummy" file systems
26460         * lib/mountlist.c (ME_DUMMY_0):
26461         Add these dummy FS names to the list:
26462         - "debugfs" virtual filesystem for kernel debugging
26463         - "devpts" PTY slave filesystem
26464         - "devtmpfs" device filesystem on top of tmpfs/ramfs
26465         - "fusectl" control filesystem for FUSE
26466         - "mqueue" enumerates POSIX message queues
26467         - "rpc_pipefs" kernel <-> userspace bridge for NFS
26468         - "sysfs" is for exporting kernel objects
26469         - "devfs" device filesystem for Linux 2.4 and FreeBSD
26471 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
26473         extern-inline: avoid incompatibility with Darwin Libc
26474         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
26475         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
26476         Problem reported by Akim Demaille in
26477         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
26479 2012-12-11  Simon Josefsson  <simon@josefsson.org>
26481         gnupload: Work with GnuPG using gpg-agent (for smartcards).
26482         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
26483         let it handle password prompting.
26485 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
26487         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
26488         * lib/canonicalize.c (canonicalize_filename_mode):
26489         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
26490         fetching the current directory.  Don't overrun the beginning of
26491         rpath if there's no slashes after the MS-Windows drive letter.
26493 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
26495         maint.mk: avoid extra forks
26496         * top/maint.mk (_cfg_mk): The GNU make manual documents that
26497         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
26498         So use that instead of "$(shell test -f FILE && echo FILE)".
26500 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
26502         vasnprintf: fix ASCII_ONLY typo
26503         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26504         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26505         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
26506         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
26507         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
26509 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
26511         list, oset, xlist, xoset: fix extern inline issue with C99
26512         This was introduced by my recent changes for 'inline'.
26513         Problem reported for gettext by Daiki Ueno in
26514         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
26515         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
26516         (gl_list_nx_create, gl_list_size, gl_list_node_value)
26517         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
26518         (gl_list_previous_node, gl_list_get_at)
26519         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
26520         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
26521         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
26522         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
26523         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
26524         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
26525         (gl_list_iterator_free, gl_sortedlist_search)
26526         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
26527         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
26528         (gl_sortedlist_remove):
26529         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
26530         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
26531         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
26532         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
26533         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
26534         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
26535         (gl_list_add_at, gl_sortedlist_add):
26536         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
26537         Wrap these extern decls inside "#if 0", because they are implemented
26538         as inline functions, and extern inline is not what's wanted here.
26539         It would simplify these .h files to remove the extern decls entirely,
26540         although a downside would be less-clear separation between
26541         specification and implementation.
26543 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
26545         sys_stat: no 'static inline'
26546         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
26547         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
26549         extern-inline: no 'static inline'
26550         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
26551         Do not require AC_C_INLINE.
26552         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
26553         'static inline', for older compilers.
26555         snippet/warn-on-use: no 'static inline'
26556         * build-aux/snippet/warn-on-use.h:
26557         Remove unnecessary 'inline' in comment.
26559         rbtree-list, rbtreehash-list: no 'static inline'
26560         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
26561         * lib/gl_anytree_list2.h (node_at):
26562         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
26563         (gl_oset_first, add_nodes_to_buckets):
26564         Now static, not static inline.
26566         regex: no 'static inline'
26567         * lib/regex_internal.c (calc_state_hash):
26568         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
26569         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
26570         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
26571         Now static, not static inline.
26572         (inline) [__GNUC__ < 3 && _LIBC]:
26573         Remove macro; no longer needed.
26575         xvasprintf: no 'static inline'
26576         * lib/xvasprintf.c (xstrcat):
26577         Now static, not static inline.
26578         * m4/xvasprintf.m4 (gl_XVASPRINTF):
26579         Do not require AC_C_INLINE.
26581         parse-datetime, parse-duration: no 'static inline'
26582         * lib/parse-datetime.y (to_uchar):
26583         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
26584         (scale_n_add):
26585         Now static, not static inline.
26586         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
26587         * modules/parse-duration (configure.ac):
26588         Do not require AC_C_INLINE.
26590         getaddrinfo: no 'static inline'
26591         * lib/getaddrinfo.c (validate_family):
26592         Now static, not static inline.
26593         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
26594         Do not require AC_C_INLINE.
26596         ftruncate, fts, lstat, openat, raise: no 'static inline'
26597         * lib/ftruncate.c (chsize_nothrow):
26598         * lib/fts.c (opendirat, diropen):
26599         * lib/lstat.c (orig_lstat):
26600         * lib/openat.c (orig_openat):
26601         * lib/raise.c (raise_nothrow):
26602         Now static, not static inline.
26603         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
26604         * m4/fts.m4 (gl_FUNC_FTS_CORE):
26605         * m4/lstat.m4 (gl_PREREQ_LSTAT):
26606         * m4/openat.m4 (gl_PREREQ_OPENAT):
26607         * m4/raise.m4 (gl_PREREQ_RAISE):
26608         Do not require AC_C_INLINE.
26610         fflush, stat: no 'static inline'
26611         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
26612         (clear_ungetc_buffer, disable_seek_optimization)
26613         (restore_seek_optimization, update_fpos_cache):
26614         * lib/stat.c (orig_stat):
26615         Now static, not static inline.
26616         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
26617         (update_fpos_cache):
26618         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
26619         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
26620         * m4/stat.m4 (gl_PREREQ_STAT):
26621         Do not require AC_C_INLINE.
26623         error, filevercmp: no 'static inline'
26624         * lib/error.c (is_open, flush_stdout):
26625         * lib/filevercmp.c (order):
26626         Now static, not static inline.
26627         * m4/error.m4 (gl_PREREQ_ERROR):
26628         * modules/filevercmp (configure.ac):
26629         Do not require AC_C_INLINE.
26631         dup, execute, fatal-signal, etc.: no 'static inline'
26632         * lib/dup.c (dup_nothrow):
26633         * lib/execute.c (nonintr_close, nonintr_open):
26634         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
26635         * lib/fopen.c (orig_fopen):
26636         * lib/freadseek.c (freadptrinc):
26637         * lib/freopen.c (orig_freopen):
26638         * lib/fstat.c (orig_fstat, fstat_nothrow):
26639         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
26640         (get_rusage_as_via_iterator):
26641         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
26642         * lib/getdtablesize.c (_setmaxstdio_nothrow):
26643         * lib/isatty.c (_isatty_nothrow):
26644         * lib/open.c (orig_open):
26645         * lib/read.c (read_nothrow):
26646         * lib/sigprocmask.c (signal_nothrow):
26647         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
26648         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
26649         * lib/wait-process.c (unregister_slave_subprocess):
26650         * lib/write.c (write_nothrow):
26651         Now static, not static inline.
26652         * lib/spawn-pipe.c (nonintr_open): Define only if
26653         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
26654         * m4/dup.m4 (gl_PREREQ_DUP):
26655         * m4/execute.m4 (gl_EXECUTE):
26656         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
26657         * m4/fopen.m4 (gl_PREREQ_FOPEN):
26658         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
26659         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
26660         * m4/fstat.m4 (gl_PREREQ_FSTAT):
26661         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
26662         * m4/isatty.m4 (gl_PREREQ_ISATTY):
26663         * m4/open.m4 (gl_PREREQ_OPEN):
26664         * m4/read.m4 (gl_PREREQ_READ):
26665         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
26666         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
26667         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
26668         * m4/wait-process.m4 (gl_WAIT_PROCESS):
26669         * m4/write.m4 (gl_PREREQ_WRITE):
26670         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
26671         Do not require AC_C_INLINE.
26673         c-strtod, memcoll, readutmp: no 'static inline'
26674         * lib/c-strtod.c (c_locale):
26675         * lib/memcoll.c (strcoll_loop):
26676         * lib/readutmp.c (desirable_utmp_entry):
26677         Now static, not static inline.
26678         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
26679         * m4/memcoll.m4 (gl_MEMCOLL):
26680         * m4/readutmp.m4 (gl_READUTMP):
26681         Do not require AC_C_INLINE.
26683         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
26684         * lib/arctwo.c (to_uchar):
26685         * lib/md4.c (set_uint32):
26686         * lib/md5.c (set_uint32):
26687         * lib/sha1.c (set_uint32):
26688         * lib/sha256.c (set_uint32):
26689         * lib/sha512.c (set_uint64):
26690         Now static, not static inline.  This is a bit simpler, and doesn't
26691         affect performance with GCC and default optimization.
26692         * m4/arctwo.m4 (gl_ARCTWO):
26693         * m4/md4.m4 (gl_MD4):
26694         * m4/md5.m4 (gl_MD5):
26695         * m4/sha1.m4 (gl_SHA1):
26696         * m4/sha256.m4 (gl_SHA256):
26697         * m4/sha512.m4 (gl_SHA512):
26698         Do not require AC_C_INLINE.
26700         cond, lock, thread: better 'inline'
26701         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
26702         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
26703         New macros.  Use them instead of static inline, for header functions.
26704         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
26705         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
26706         * lib/glthread/lock.c (gl_waitqueue_init)
26707         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
26708         * lib/glthread/thread.c (get_current_thread_handle):
26709         Change 'static inline' to 'inline'.
26710         * lib/glthread/cond.h, lib/glthread/thread.h:
26711         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26712         * m4/cond.m4 (gl_COND):
26713         * m4/lock.m4 (gl_PREREQ_LOCK):
26714         * m4/thread.m4 (gl_THREAD):
26715         Do not require AC_C_INLINE.
26716         * modules/cond, modules/thread (Depends-on): Add extern-inline.
26718         chdir-long, cycle-check, savewd: better 'inline'
26719         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
26720         (find_non_slash):
26721         * lib/cycle-check.c (is_zero_or_power_of_two):
26722         * lib/savewd.c (savewd_delegating):
26723         Change 'static inline' to 'inline'.
26724         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
26725         Replace all remaining uses of 'static inline' with it.
26726         * lib/savewd.h:
26727         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26728         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
26729         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
26730         * m4/savewd.m4 (gl_SAVEWD):
26731         Do not require AC_C_INLINE.
26732         * modules/savewd (Depends-on): Add extern-inline.
26734         base32, base64: no need for 'inline'
26735         * lib/base32.c (to_uchar, get_8, decode_8):
26736         * lib/base64.c (to_uchar, get_4, decode_4):
26737         Change 'static inline' to 'inline'.
26738         * m4/base32.m4 (gl_PREREQ_BASE32):
26739         * m4/base64.m4 (gl_PREREQ_BASE64):
26740         Do not require AC_C_INLINE.
26742         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
26743         * lib/gl_array_oset.c (gl_array_nx_add_at):
26744         (gl_array_remove_at):
26745         * lib/gl_linkedhash_list.c (hash_resize_after_add)
26746         (add_to_bucket, remove_from_bucket):
26747         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
26748         Change 'static inline' to 'static', as it's simpler to omit
26749         'inline' unless there's a significant performance advantage.
26751         list, oset, xlist, xoset, xsublist: simplify via extern inline
26752         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
26753         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
26754         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
26755         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
26756         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
26757         New macro.  Replace all uses of 'static inline' with it.
26758         [HAVE_INLINE]: Implement functions as *_INLINE functions,
26759         instead of as macros FOO that are defined to static inline
26760         functions FOO_inline.
26761         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
26762         * lib/gl_xsublist.c:
26763         Reimplement from scratch, by defining the corresponding *_INLINE
26764         macro and including the corresponding .h file.  This is simpler.
26765         * modules/list, modules/oset, modules/xlist, modules/xoset:
26766         (Files): Remove m4/gl_list.m4.
26767         (configure.ac): Remove gl_LIST.
26768         * m4/gl_list.m4: Remove.
26769         * modules/list, modules/oset, modules/xlist, modules/xoset:
26770         * modules/xsublist:
26771         (Depends-on): Depend on extern-inline, not inline.
26773         xalloc: better 'inline'
26774         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
26775         New macro.  Replace all uses of 'static inline' with it.
26776         (static_inline): Remove.
26777         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
26778         Let 'extern inline' do the work automatically, instead of doing
26779         it by hand.
26780         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
26781         Remove.  All uses removed.
26782         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
26784         gethrxtime: better 'inline'
26785         * lib/xtime.c: New file.
26786         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
26787         * lib/xtime.h (XTIME_INCLUDE):
26788         New macros.  Replace all uses of 'static inline' with them.
26789         * lib/gethrxtime.c (gethrxtime): Define only if
26790         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
26791         this source file is now always compiled, because of the extern inline.
26792         * lib/gethrxtime.h, lib/xtime.h:
26793         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26794         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
26795         if gethrtime works, as they're not needed in that case.
26796         (gl_XTIME): Do not require AC_C_INLINE.
26797         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
26798         compiled now.  Move the check into gl_GETHRXTIME.
26799         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
26800         (Depends-on): Add extern-inline.
26801         (configure.ac): gethrxtime is always compiled now.
26802         (lib_SOURCES): Add gethrxtime.c.
26804         wctype-h: better 'inline'
26805         * lib/wctype-h.c: New file.
26806         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
26807         New macro.  Replace all uses of 'static inline' with it.
26808         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26809         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
26810         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
26811         (Depends-on): Add extern-inline.
26813         unistd: better 'inline'
26814         * lib/unistd.c: New file.
26815         * lib/unistd.in.h (_GL_UNISTD_INLINE):
26816         New macro.  Replace all uses of 'static inline' with it.
26817         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26818         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
26819         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
26820         (Depends-on): Add extern-inline.
26822         sys_socket: better 'inline'
26823         * lib/sys_socket.c: New file.
26824         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
26825         New macro.  Replace all uses of 'static inline' with it.
26826         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26827         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
26828         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
26829         (Depends-on): Add extern-inline.
26831         stdio: better 'inline'
26832         * lib/stdio.c: New file.
26833         * lib/stdio.in.h (_GL_STDIO_INLINE):
26834         New macro.  Replace all uses of 'static inline' with it.
26835         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26836         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
26837         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
26838         (Depends-on): Add extern-inline.
26840         sigaction: better 'inline'
26841         * lib/sig-handler.c: New file.
26842         * lib/sig-handler.h (SIG_HANDLER_INLINE):
26843         New macro.  Replace all uses of 'static inline' with it.
26844         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26845         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
26846         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
26847         (Depends-on): Add extern-inline.
26849         selinux-h: better 'inline'
26850         * lib/se-context.c, lib/se-selinux.c: New files.
26851         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
26852         * lib/se-context.in.h (SE_CONTEXT_INLINE):
26853         New macro.  Replace all uses of 'static inline' with it.
26854         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26855         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
26856         New macro.  Replace all uses of 'static inline' with it.
26857         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26858         * modules/selinux-h (Files, lib_SOURCES):
26859         Add lib/se-context.c, lib/se-selinux.c.
26860         (Depends-on): Add extern-inline.
26861         (configure.ac): Do not require AC_C_INLINE.
26863         pthread: better 'inline'
26864         * lib/pthread.c: New file.
26865         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
26866         New macro.  Replace all uses of 'static inline' with it.
26867         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26868         * m4/pthread.m4 (gl_PTHREAD_CHECK):
26869         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
26870         * modules/pthread (Files): Add lib/pthread.c.
26871         (Depends-on): Add extern-inline.
26873         math: better 'inline'
26874         * lib/math.c: New file.
26875         * lib/math.in.h (_GL_MATH_INLINE):
26876         New macro.  Replace all uses of 'static inline' with it.
26877         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26878         * m4/math_h.m4 (gl_MATH_H):
26879         Do not require AC_C_INLINE.
26880         * modules/math (Files, lib_SOURCES):
26881         Add lib/math.c.
26882         (Depends-on): Add extern-inline.
26884         count-one-bits: better 'inline'
26885         * lib/count-one-bits.c: New file.
26886         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
26887         New macro.  Replace all uses of 'static inline' with it.
26888         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26889         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
26890         Do not require AC_C_INLINE.
26891         * modules/count-one-bits (Files, lib_SOURCES):
26892         Add lib/count-one-bits.c.
26893         (Depends-on): Add extern-inline.
26895         count-leading-zeros: better 'inline'
26896         * lib/count-leading-zeros.c: New file.
26897         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
26898         New macro.  Replace all uses of 'static inline' with it.
26899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26900         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
26901         Do not require AC_C_INLINE.
26902         * modules/count-leading-zeros (Files, lib_SOURCES):
26903         Add lib/count-leading-zeros.c.
26904         (Depends-on): Add extern-inline.
26906         bitrotate: better 'inline'
26907         * lib/bitrotate.c: New file.
26908         * lib/bitrotate.h (BITROTATE_INLINE):
26909         New macros.
26910         Replace all uses of 'static inline' with them.
26911         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26912         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
26913         (Depends-on): Add extern-inline.
26914         (configure.ac): Do not require AC_C_INLINE.
26916 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
26918         maint.mk: avoid gratuitous failure
26919         Reported by Stefano Lattarini in
26920         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
26921         * top/maint.mk (public-submodule-commit): Quote more safely.
26923 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
26925         canonicalize, canonicalize-lgpl: support MS-Windows file names
26926         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
26927         for test cases, which it'd be nice to add at some point.
26928         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
26929         * lib/canonicalize.c (canonicalize_filename_mode):
26930         * lib/canonicalize-lgpl.c (__realpath):
26931         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
26932         slash is at the beginning of the file name.  Use ISSLASH, instead
26933         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
26934         the first character with '/'.  Test for
26935         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
26936         with a drive letter.
26937         * lib/canonicalize.c (SLASHES): New macro.
26938         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
26940 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
26942         fts: introduce FTS_VERBATIM
26943         * lib/fts_.h (FTS_VERBATIM): New bit flag.
26944         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
26945         * lib/fts.c (fts_open): Honor it.
26947 2012-11-09  Pádraig Brady  <P@draigBrady.com>
26949         getlogin-tests: allow errno == ENXIO
26950         * tests/test-getlogin.c (main): Skip tests if getlogin fails
26951         with errno == ENXIO (No controlling tty).
26952         getlogin_r-tests: Likewise. Also allow errno == ENOENT
26953         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
26954         with errno == ENOENT.  This was reported to happen in various
26955         situations on GNU/Linux.
26957 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
26959         getlogin-tests: allow errno == ENOENT
26960         * tests/test-getlogin.c (main): Skip tests if getlogin fails
26961         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
26962         when running a test in an Emacs shell buffer.
26964 2012-11-08  Jim Meyering  <jim@meyering.net>
26966         tests/nap.h: avoid warning about unused variable
26967         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
26969         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
26970         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
26971         white space before each of the special-cased file names, to avoid
26972         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
26973         in http://bugs.gnu.org/12830.
26975 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
26977         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
26978         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
26979         fails with errno == EBADF when fd is opened with O_PATH.
26980         Reported by Jim Meyering in
26981         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
26982         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
26983         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
26985 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26987         test-utimens: speed up by taking shorter naps
26988         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
26989         New functions.
26990         (nap): Use them, to do a better job of guessing the delay.
26991         On Fedora 17 with ext4 atop md atop hard disks, this made
26992         test-utimens run 10x faster, because the test napped for
26993         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
26994         <http://bugs.gnu.org/12820#11>.
26996 2012-11-07  Jim Meyering  <jim@meyering.net>
26998         mountlist.c: fix a compilation failure
26999         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
27000         I introduced while transforming commit v0.0-7683-g613bcb6
27002 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27004         errno: port to LynxOS 178 2.2.2
27005         Problem reported by Joel Brobecker in
27006         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
27007         * doc/posix-headers/errno.texi (errno.h): Document this.
27008         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
27009         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
27010         Supply a string for EILSEQ.
27011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
27013 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
27015         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
27016         Linux kernel 2.6.39 introduced O_PATH (see
27017         <http://lwn.net/Articles/433854/>) and this is a better fallback
27018         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
27019         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
27020         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
27021         * lib/fcntl.in.h (O_ACCMODE):
27022         * tests/test-fcntl-h.c (main):
27023         Do not reject O_ACCMODE merely because it has more than the
27024         minimal number of bits, as POSIX allows extensions here.
27026 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
27028         mountlist: do not classify a bind-mounted dir entry as "dummy"
27029         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
27030         the "none"-testing clause.
27031         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
27032         exception for bind-mounted directories.
27034 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
27036         quote: provide a means to escape strings with nul characters
27037         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
27038         (quote, quote_n): Rename formal arguments for consistency with
27039         quotearg.
27041 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
27043         test-raise: don't assume 199 is an invalid signal
27044         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
27046         sh-quote-tests: port to Solaris 9
27047         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
27048         Problem reported by Dagobert Michelsen in
27049         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
27051 2012-10-28  Jim Meyering  <jim@meyering.net>
27053         maint.mk: rename a new configurable variable
27054         * top/maint.mk (_gl_translatable_string_re): Rename from
27055         translation-markers: _gl_ prefix to insulate from user Makefile code,
27056         and the _re suffix to inform that it's a regular expression.
27058 2012-10-26  Eric Blake  <eblake@redhat.com>
27060         maint.mk: let packages tweak sc_po_check pattern
27061         * top/maint.mk (sc_po_check): Add translation-markers, to allow
27062         finding files with other translation markers.
27064 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
27066         euidaccess: speed up 'configure' on GNU hosts
27067         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
27068         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
27069         it's needed only in this case.  Use AC_CHECK_DECLS, not
27070         AC_CHECK_DECLS_ONCE.
27071         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
27072         or AC_REQUIRE for AC_FUNC_GETGROUPS.
27074         * lib/regexec.c (re_search_internal): Fix grammar in comment.
27076 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
27078         fchmodat, fchownat, fstatat: port to non-inlining compilers
27079         Problem reported for FreeBSD 9 by Jim Meyering in
27080         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
27081         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
27082         New files, which define FCHMODAT_INLINE etc.
27083         * lib/fchmodat.c (FCHMODAT_INLINE):
27084         * lib/fchownat.c (FCHOWNAT_INLINE):
27085         * lib/fstatat.c (FSTATAT_INLINE):
27086         Remove, as chmodat.c etc. now do this.
27087         * modules/fchmodat (Files): Add lib/chmodat.c.
27088         * modules/fchownat (Files): Add lib/chownat.c.
27089         * modules/fstatat (Files): Add lib/statat.c.
27091 2012-10-15  Jim Meyering  <jim@meyering.net>
27093         fchmodat.c, fchownat.c: compile-impeding typos
27094         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
27095         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
27096         Introduced in commit v0.0-7636-gd202279.
27098 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
27100         fcntl-h: support GNU flags like O_IGNORE_CTTY
27101         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
27102         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
27103         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
27104         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
27105         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
27106         Define to 0 if not already defined.
27107         * tests/test-fcntl-h.c: Test these new flags.
27109 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
27111         faccessat, etc.: support AT_FDCWD-only use
27112         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
27113         this function only if its first argument is AT_FDCWD.
27114         Emacs wants faccessat for AT_EACCESS but not for any first-arg
27115         values other than AT_FDCWD, so it doesn't want all the openat
27116         machinery with fchdir etc.
27117         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
27118         * modules/fstatat, modules/mkdirat, modules/openat (Files):
27119         * modules/unlinkat (Files):
27120         Remove lib/openat-priv.h, as at-internal supplies this file.
27121         Removing this file here allows us to support programs like Emacs
27122         that avoid at-internal.
27124         faccessat: speed up 'configure' on mainstream hosts
27125         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
27126         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
27127         since it's only on unusual platforms that we need to check for
27128         'access', and it's better not to slow 'configure' down on all
27129         platforms.
27131         faccessat: port to Solaris 10
27132         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
27133         Needed on Solaris 10, which doesn't have AT_EACCESS,
27134         so we need the Gnulib fcntl.h, which defines it.
27136 2012-10-14  Pádraig Brady  <P@draigBrady.com>
27137         canonicalize: fix C89 compilation
27138         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
27139         declarations so C89 is supported.  Also remove the comment
27140         referencing memorty allocation as the suggested feature could
27141         not be implemented as suggested.
27142         Reported by Michael Goffioul.
27144 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
27146         group-member: omit unnecessary dependencies
27147         This is for Emacs, which has its own allocator and where we
27148         don't want to use xalloc.
27149         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
27150         since we no longer use xmalloc.  Do not include stdbool.h, since
27151         the changes below happen to remove the only use of bool.
27152         (GROUPBUF_SIZE): New constant.
27153         (struct group_info): Remove n_groups member.  Add groupbuf member.
27154         This lets us get the groups without using malloc, usually.
27155         (free_group_info, get_group_info): Adjust to this.
27156         (get_group_info): Return the number of groups found, or -1 on error.
27157         Use plain malloc not xmalloc, and treat its failure as if there
27158         are no groups, as the user already loses in case of error.
27159         (group_member): Simplify, based on changes to get_group_info.
27160         * modules/group-member (Depends-on): Remove dependencies on
27161         xalloc and stdbool.  Add dependency on xalloc-oversized.
27163 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
27165         gethrxtime: port to C++
27166         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
27168 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
27170         ptsname: fix macro-name typo
27171         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
27173 2012-10-03  Simon Josefsson  <simon@josefsson.org>
27175         inttostr: Relax license.
27176         * modules/inttostr (License): Change from LGPL to LGPLv2+.
27178 2012-10-03  Eric Blake  <eblake@redhat.com>
27180         ptsname_r: support ptys returned by FreeBSD posix_openpt
27181         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
27182         lives in /dev/pts/.
27184 2012-10-02  Eric Blake  <eblake@redhat.com>
27186         pselect: reject invalid file descriptors
27187         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
27188         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
27189         * modules/pselect (Depends-on): Add dup2.
27190         * doc/posix-functions/pselect.texi (pselect): Document this.
27192         select: reject invalid file descriptors
27193         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
27194         * lib/select.c (rpl_select) [!win32]: Work around it.
27195         * modules/select (Depends-on): Add dup2.
27196         * doc/posix-functions/select.texi (select): Document this.
27198         select: enhance test
27199         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
27200         New functions.
27201         (test_function): Enhance test.
27202         (do_select_bad_fd): Avoid any stale errno values.
27204         ptsname: reject invalid file descriptors
27205         http://www.austingroupbugs.net/view.php?id=503
27206         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
27207         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
27208         * modules/stdlib (Makefile.am): Replace witness.
27209         * lib/stdlib.in.h (ptsname): Allow for replacement.
27210         * modules/ptsname (configure.ac): Trigger replacement.
27211         * doc/posix-functions/ptsname.texi (ptsname): Document this.
27213 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
27215         hash-pjw-bare: new module
27216         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
27217         * lib/hash-pjw-bare.h: Likewise.
27218         * modules/hash-pjw-bare: New file.
27219         * MODULES.html.sh (Misc): Add it.
27221 2012-10-02  Eric Blake  <eblake@redhat.com>
27223         manywarnings: cater to more gcc infelicities
27224         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
27225         -Wuninitialized without -O.
27227 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
27229         select, poll tests: Make setsockopt invocation effective.
27230         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
27231         the bind() call.
27232         * tests/test-select.h (open_server_socket): Likewise.
27234 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
27236         sockets, sys_stat: restore AC_C_INLINE
27237         This undoes the 2012-09-22 patch.
27238         * m4/sockets.m4 (gl_SOCKETS):
27239         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
27240         Restore AC_C_INLINE, since MSVC requires __inline or _inline
27241         and does not support plain 'inline'.  Reported by Bruno Haible in
27242         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
27244 2012-09-30  Bruno Haible  <bruno@clisp.org>
27246         localeconv tests: Avoid test failure on OpenIndiana.
27247         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
27248         skip the 'grouping' and 'mon_grouping' tests.
27249         Reported by Jim Meyering.
27251 2012-09-30  Bruno Haible  <bruno@clisp.org>
27253         havelib: Follow libtool developments.
27254         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
27255         Suggested by Simon Josefsson.
27257 2012-09-29  Jim Meyering  <meyering@redhat.com>
27259         fstatat.c: fix a compile-impeding typo
27260         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
27261         Introduced in commit v0.0-7636-gd202279.
27262         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
27264 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
27266         extern-inline: provide a -Wundef safe config.h
27267         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
27268         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
27269         to produce a -Wundef warning free config.h.
27271 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
27273         hash-pjw: relax license to LGPLv2+
27274         * modules/hash-pjw (License): Relax, with consent of author.
27276 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
27278         maint.mk: fix strict vs. lazy variable issues with RELEASE
27279         * top/maint.mk (_equal): New function.
27280         (member_check): Strip the result to avoid spurious spaces.
27281         (url_dir_list): Do not use ifeq, which is strict, as it will
27282         require RELEASE_TYPE to be defined.
27283         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
27284         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
27285         (announcement_Cc_alpha,announcement_mail_headers_alpha)
27286         (announcement_Cc_beta,announcement_mail_headers_beta)
27287         (announcement_Cc_stable,announcement_mail_headers_stable): these.
27288         (release): Do not depend on $(release-type), as it forces its
27289         evaluation.  Bounce to it.
27291 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
27293         maint.mk: formatting changes
27294         * top/maint.mk: Indent bodies of if's.
27296 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
27298         maint.mk: factor the validation of RELEASE_TYPE
27299         With help from Jim Meyering.
27300         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
27301         * top/maint.mk (_empty, _sp): Move their definition earlier.
27302         (member-check, release-type): New.
27303         Use the latter instead of $(RELEASE_TYPE).
27304         Remove now useless local checks.
27306 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
27308         maint.mk: provide "make upload" to ease uploading
27309         See
27310         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
27311         Do not depend simply on the current $(VERSION), as there may have been
27312         new commits since the tarball generation.  Rather, rely on $(RELEASE),
27313         as "make release-commit" already does.
27315         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
27316         "make TYPE".
27318         * top/maint.mk (upload_command, upload, release): New.
27319         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
27320         (VERSION): first word of $(RELEASE) is always right.
27321         (emit_upload_commands): Adjust.
27322         * top/README-release: Update.
27324 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
27326         maint.mk: silent rules
27327         With help from Stefano Lattarini.
27328         * top/maint.mk (writable-files): Use $(AM_V_GEN).
27329         (announcement): Use $(AM_V_at).
27331 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27333         localename: port gl_locale_name_thread_unsafe to FreeBSD
27334         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
27335         and use the simpler FreeBSD implementation on Mac OS X as well.
27336         Original idea suggested by Ed Maste in
27337         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
27339 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27341         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
27342         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
27343         * lib/mbuiter.c, lib/xsize.c: New files.
27344         * lib/binary-io.h (BINARY_IO_INLINE):
27345         * lib/eealloc.h (EEALLOC_INLINE):
27346         * lib/mbfile.h (MBFILE_INLINE):
27347         * lib/mbiter.h (MBITER_INLINE):
27348         * lib/mbuiter.h (MBUITER_INLINE):
27349         * lib/xsize.h (XSIZE_INLINE):
27350         New macros.
27351         Replace all uses of 'static inline' with them.
27352         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27353         * m4/eealloc.m4 (gl_EEALLOC):
27354         * m4/mbfile.m4 (gl_MBFILE):
27355         * m4/mbiter.m4 (gl_MBITER):
27356         * m4/xsize.m4 (gl_XSIZE):
27357         Do not require AC_C_INLINE.
27358         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
27359         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
27360         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
27361         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
27362         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
27363         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
27364         * modules/binary-io, modules/eealloc, modules/mbfile:
27365         * modules/mbiter, modules/mbuiter:
27366         (Depends-on): Add extern-inline.
27368         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
27369         * lib/pipe-filter-aux.c: New file.
27370         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
27371         Replace all uses of 'static inline' with it.
27372         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27373         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
27374         (filter_retcode): No real need for inline here.
27375         * modules/pipe-filter-gi, modules/pipe-filter-ii:
27376         (Files): Add lib/pipe-filter-aux.c.
27377         (Depends-on): Add extern-inline.
27378         (configure.ac): Do not require AC_C_INLINE.
27379         (lib_SOURCES): Add pipe-filter-aux.c.
27381         fdutimensat: omit unnecessary AC_C_INLINE
27382         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
27384         fchmodat, fchownat, fstatat: use extern-inline
27385         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
27386         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
27387         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
27388         New macros.
27389         * lib/openat.h:
27390         Replace all uses of 'static inline' with them.
27391         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27392         * modules/fchmodat, modules/fchownat, modules/fstatat:
27393         * modules/openat-h:
27394         (Depends-on):
27395         Add extern-inline.
27396         (configure.ac): Remove AC_C_INLINE.
27398         acl, mbchar, priv-set: use extern-inline
27399         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
27400         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
27401         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
27402         New macros.
27403         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
27404         Replace all uses of 'static inline' with it.
27405         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27406         * m4/acl.m4 (gl_FUNC_ACL):
27407         * m4/mbchar.m4 (gl_MBCHAR):
27408         * m4/priv-set.m4 (gl_PRIV_SET):
27409         Remove AC_C_INLINE, since 'inline' is no longer used directly.
27410         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
27411         Add extern-inline.
27413         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
27414         * m4/sockets.m4 (gl_SOCKETS):
27415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
27416         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
27417         environments where it's already guaranteed to work, so we needn't
27418         check for it at 'configure'-time.
27420         tls-tests: omit unnecessary 'inline'
27421         * tests/test-tls.c (perhaps_yield): No longer inline.
27422         Simplicity and portability trump efficiency in test cases.
27424         utimens-tests: avoid unnecessary 'inline'
27425         * modules/fdutimensat-tests (configure.ac):
27426         * modules/futimens-tests (configure.ac):
27427         * modules/utimens-tests (configure.ac):
27428         * modules/utimensat-tests (configure.ac):
27429         Remove AC_C_INLINE.
27430         * tests/test-utimens-common.h (ctime_compare):
27431         No longer inline.  Simplicity and portability trump efficiency here.
27433         misc: don't limit commentary to inline functions
27434         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
27435         * lib/xalloc-oversized.h, lib/xsize.h:
27436         Contrast macros to functions in general, not just to inline functions,
27437         when the commentary does not apply only to inline functions.
27439 2012-09-20  Jim Meyering  <meyering@redhat.com>
27441         non-recursive-gnulib-prefix-hack: new module
27442         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
27443         the file that originated in Bison.
27444         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
27445         largely copied from a snippet that resided in bison's configure.ac.
27446         * modules/non-recursive-gnulib-prefix-hack: New file.
27447         * MODULES.html.sh (Support for maintaining and releasing projects):
27448         Add it.
27450 2012-09-18  Jim Meyering  <meyering@redhat.com>
27452         maint.mk: generalize _gl_tight_scope for non-recursive make
27453         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
27454         that *.h would describe additional .h files in the directory
27455         specified by $(_gl_TS_dir).  I.e., add this...
27456         (_gl_TS_other_headers): New variable.
27458         maint.mk: exempt trailing blanks found in "binary" files
27459         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
27460         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
27461         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27463 2012-09-17  Jim Meyering  <meyering@redhat.com>
27465         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
27466         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
27467         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
27468         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27470 2012-09-17  Jim Meyering  <meyering@redhat.com>
27472         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
27473         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
27474         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
27475         It is not in the same category as "exit (0)" or "exit (1)", and
27476         besides, I know of no symbolic name for that 77.  Reported by
27477         Richard W.M. Jones in
27478         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27480 2012-09-17  Jim Meyering  <meyering@redhat.com>
27482         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
27483         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
27484         all uses of #define, not just those that start in column 1.
27485         Richard W.M. Jones reported a false positive in
27486         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
27488 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27490         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
27491         * lib/localcharset.c (locale_charset) [DARWIN7]:
27492         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
27493         as these two values are incompatible.  Problem reported by Max Horn.
27494         For more discussion, please see
27495         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
27497         doc: document sticky-EOF issue
27498         * doc/posix-functions/fgetc.texi (fgetc):
27499         * doc/posix-functions/fgets.texi (fgets):
27500         * doc/posix-functions/fread.texi (fread):
27501         * doc/posix-functions/fscanf.texi (fscanf):
27502         * doc/posix-functions/getc.texi (getc):
27503         * doc/posix-functions/getchar.texi (getchar):
27504         * doc/posix-functions/scanf.texi (scanf):
27505         Mention that glibc and default Solaris do not conform to
27506         C99 and POSIX-2001 or later, with respect to how getchar
27507         etc. behave when feof reports nonzero.
27509 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
27511         poll: fix poll(0, NULL, msec)
27512         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
27513         but nfd is 0.  In that case poll should behave like select.
27515 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
27516             Paolo Bonzini  <bonzini@gnu.org>
27518         poll: fix for systems that can't recv() on a non-socket
27519         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
27520         is readable.  In this case POLLHUP will not be supported.
27521         * doc/posix-functions/poll.texi: Document this.
27523 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
27525         poll/select: document portability problems not fixed by Gnulib.
27526         * doc/posix-functions/poll.texi: poll does not work well on
27527         pipes under Windows.  It has the same limitations as select on
27528         BeOS.
27529         * doc/posix-functions/select.texi: select does not work well
27530         on pipes under Windows.
27532 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27534         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
27535         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
27536         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
27537         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
27539 2012-09-06  Eric Blake  <eblake@redhat.com>
27541         net_if: give more details about the bug being fixed
27542         * doc/posix-headers/net_if.texi: Add clarification.
27544 2012-09-05  Eric Blake  <eblake@redhat.com>
27546         net_if: new module
27547         * modules/net_if: New module, borrowing ideas from netinet_in.
27548         * m4/net_if_h.m4: New file.
27549         * lib/net_if.in.h: Likewise.
27550         * doc/posix-headers/net_if.texi (net/if.h): Document it.
27551         * MODULES.html.sh (lacking POSIX:2008): Likewise.
27552         * tests/test-net_if.c: Make function checks conditional.
27553         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
27555 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
27557         readutmp: fix non-portable UT_PID use
27558         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
27559         Use `UT_PID (u) > 0' as absolute condition.
27561 2012-09-04  Jim Meyering  <meyering@redhat.com>
27563         fts: reduce two or more trailing spaces to just one, usually
27564         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
27565         or more slashes, trim all but the final one.  But if a name consists
27566         solely of two slashes, don't modify it.  If it consists solely of
27567         three or more slashes, strip all but one.
27569         This is part of the solution to a minor problem with rm:
27570         it would print a bogus ELOOP diagnostic when failing to remove
27571         the slash-decorated name of a symlink-to-directory:
27573             $ mkdir d && ln -s d s && env rm -r s/
27574             rm: cannot remove 's': Too many levels of symbolic links
27576         With the change below and a trivial don't-trim-trailing-slashes
27577         adjustment to remove.c, it does this:
27579             $ env rm -r s/
27580             rm: cannot remove 's/': Not a directory
27582         Improved by: Eric Blake
27584         fts: when there is no risk of overlap, use memcpy, not memmove
27585         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
27587 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
27589         stdbool: be more compatible with mixed C/C++ compiles
27590         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
27591         Define to bool, true, false, respectively, as GCC's builtin
27592         stdbool.h does.  Problem reported by Michael Goffioul in
27593         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
27595 2012-08-28  Jim Meyering  <meyering@redhat.com>
27597         revert last change: it was not needed
27598         * tests/test-vc-list-files-git.sh: There's already a test for
27599         a working git, just below.
27601 2012-08-28  Jim Meyering  <meyering@redhat.com>
27603         tests: test-vc-list-files-git.sh: skip if git is not available
27604         * tests/test-vc-list-files-git.sh: Skip this test when git is
27605         not available.
27607 2012-08-26  Bruno Haible  <bruno@clisp.org>
27609         gnulib-tool: Remove no-op option --no-changelog.
27610         * gnulib-tool (func_usage): Don't mention --no-changelog.
27611         (do_changelog): Remove variable.
27612         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27614 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27616         doc: remove fdl-1.2.texi
27617         It is no longer used or maintained, and its use of @acronym
27618         is problematic.  See the thread containing
27619         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
27620         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
27621         * doc/old-licenses/fdl-1.2.texi: Remove.
27623         execinfo: port to FreeBSD
27624         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
27625         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
27626         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
27627         * modules/execinfo (Link): Add $(LIB_EXECINFO).
27629 2012-08-23  Jim Meyering  <meyering@redhat.com>
27631         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
27632         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
27633         to placate gcc's -Wold-style-declaration.
27635 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
27637         doc: do not use @acronym
27638         * doc/inet_ntoa.texi (inet_ntoa):
27639         * doc/parse-datetime.texi (Seconds since the Epoch)
27640         (Specifying time zone rules):
27641         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
27642         Don't use @acronym.  Problem reported by John Darlington in
27643         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
27645 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
27647         stdnoreturn: port to newer GCCs
27648         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
27649         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
27650         Problem reported by Jim Meyering in
27651         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
27652         Also, rename the 'test' function to a void a clash with the
27653         already-supplied 'main' function; this fixes a bug that incorrectly
27654         rejected GCC 4.7.1's <stdnoreturn.h>.
27655         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
27656         Document GCC problem.
27658 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
27660         pipe-filter: fix comment typo
27661         * lib/pipe-filter.h: Mention correct function.
27663 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
27665         execinfo: new module
27666         This is for Emacs.  Currently, it provides a no-effect stub
27667         on all platforms where it does not already work.
27668         It already works on glibc-based systems, and on Solaris 11.
27669         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
27670         New files.
27671         * doc/glibc-headers/execinfo.texi (execinfo.h):
27672         * MODULES.html.sh (Misc): Document it.
27674 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
27676         extern-inline: support old GCC 'inline'
27677         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
27678         if available.  This applies to GCC versions 2.7 through 4.2, or
27679         when newer GCC is using -fgnu89-inline.  The goal is to address
27680         some of the performance issues mentioned by Bruno Haible in
27681         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
27683 2012-08-20  Eric Blake  <eblake@redhat.com>
27685         maint.mk: avoid redundant file name in message
27686         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
27687         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
27688         (sc_makefile_path_separator_check): Remove bogus $(ME).
27690 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
27692         timer-time: fix link order when static linking on glibc
27693         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
27694         _after_ -lrt so that it's significant.
27696 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
27698         timespec: omit unnecessary AC_C_INLINE
27699         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
27701         stat-time: omit unnecessary AC_C_INLINE
27702         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
27703         Do not require AC_C_INLINE.
27705         ignore-value: omit unnecessary AC_C_INLINE
27706         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
27708         sys_select: avoid 'static inline'
27709         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
27711         mktime: avoid 'static inline'
27712         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
27713         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
27715 2012-08-19  Bruno Haible  <bruno@clisp.org>
27717         gnulib-tool: Improve coding style.
27718         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
27719         func_emit_lib_Makefile_am.
27720         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27722 2012-08-19  Bruno Haible  <bruno@clisp.org>
27724         gnulib-tool: Fix indentation.
27725         * gnulib-tool (func_import): Fix indentation.
27727 2012-08-19  Bruno Haible  <bruno@clisp.org>
27729         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
27730         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
27731         on the list of removed files.
27733 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
27735         test-parse-datetime: avoid glibc leap-second glitch
27736         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
27737         with the 2012 rules.  Problem reported by Bruce Dubbs in
27738         <http://bugs.gnu.org/12206>.
27740 2012-08-14  Bruno Haible  <bruno@clisp.org>
27742         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
27743         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
27744         from argument.
27745         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27747 2012-08-14  Eric Blake  <eblake@redhat.com>
27749         ldexp: relax license
27750         * modules/ldexp (License): Trivial relax, since the module only
27751         provides a permissively licensed m4 file.
27753 2012-08-13  Bruno Haible  <bruno@clisp.org>
27755         gnulib-tool: Fix persistence of --witness-c-macro option.
27756         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
27757         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
27759 2012-08-11  Eric Blake  <eblake@redhat.com>
27761         count-leading-zeros: use a lookup table on non-gcc compilers
27762         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
27763         alternate implementation, suggested by Jim Meyering.
27765 2012-08-10  Eric Blake  <eblake@redhat.com>
27767         count-leading-zeros: new module
27768         * modules/count-leading-zeros: New module.
27769         * m4/count-leading-zeros.m4: New file.
27770         * lib/count-leading-zeros.h: Likewise.
27771         * modules/count-leading-zeros-tests: New test.
27772         * tests/test-count-leading-zeros.c: New file.
27773         * MODULES.html.sh (Integer arithmetic functions): Document it.
27775 2012-08-07  Simon Josefsson  <simon@josefsson.org>
27776             Jim Meyering  <meyering@redhat.com>
27778         maintainer-makefile: Fix syntax error with dash.
27779         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
27780         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
27782 2012-08-05  Jim Meyering  <meyering@redhat.com>
27784         extern-inline: also ignore -Wmissing-declarations
27785         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
27786         required with gcc-4.8.0-to-be.
27788         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
27789         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
27790         for /error ?([^,]*)/.  This avoids false-positives for strings like
27791         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
27793 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
27795         gnumakefile: better interaction with Automake-NG
27796         * modules/gnumakefile [Makefile.am]: The makefiles generated by
27797         Automake-NG always contain a definition of VPATH, even in non-VPATH
27798         builds (its value being simply '.' in that case).  So, in the
27799         'clean-GNUmakefile' rule, to determine whether running under a
27800         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
27801         '$(VPATH)' expands to the empty string.
27803 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
27805         base64: Use extern C scope in header file, for C++.
27806         * lib/base64.h: Add C++ namespace protection.
27808 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
27810         stat-time, timespec, u64: support naive out-of-dir builds
27811         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
27812         Use '#include "foo.h"', not '#include <foo.h>', when including
27813         one's own interface.  This works better when configuring with
27814         out-of-directory builds, since packages need not add an
27815         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
27817 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
27819         utimens: use extern-inline
27820         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
27821         * lib/utimens.h: Add copyright notice, since this is now large enough
27822         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27823         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
27824         * modules/utimens (Depends-on): Add extern-inline.
27826         u64: use extern-inline
27827         * lib/u64.c: New file.
27828         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27829         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
27830         * modules/u64 (Files): Add lib/u64.c.
27831         (Depends-on): Add extern-inline.
27832         (configure.ac): No need to require AC_C_INLINE, since extern-inline
27833         does that now.
27834         (lib_SOURCES): Add u64.c.
27836         timespec: use extern-inline
27837         * lib/timespec.c: New file.
27838         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27839         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
27840         * modules/timespec (Files): Add lib/timespec.c.
27841         (Depends-on): Add extern-inline.
27842         (lib_SOURCES): Add timespec.c.
27844         stat-time: use extern-inline
27845         * lib/stat-time.c: New file.
27846         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
27847         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
27848         * modules/stat-time (Files): Add lib/stat-time.c.
27849         (Depends-on): Add extern-inline.
27850         (lib_SOURCES): Add stat-time.c.
27852         extern-inline: new module
27853         * modules/extern-inline, m4/extern-inline.m4: New files.
27854         This is for better support of 'extern inline' a la ISO C99,
27855         with a portable alternative on compilers that do not support
27856         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
27857         of the Emacs executable, when compiled with debugging disabled,
27858         which is a typical way that Emacs is built while developing.
27860 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
27862         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
27863         * build-aux/do-release-commit-and-tag: Move variable definitions
27864         together.
27865         ($branch): Instead of defaulting to "master", default to the current
27866         branch (as gnu-web-doc-update does).
27867         (help): Display the current values of the option arguments.
27868         * top/maint.mk (release-commit): New.
27869         * top/README-release: Simplify the corresponding step.
27871 2012-07-30  Eric Blake  <eblake@redhat.com>
27873         passfd: fix comment on recvfd
27874         * lib/passfd.c (recvfd): Fix comment.
27875         Reported by Jann Horn <jannhorn@googlemail.com>.
27877 2012-07-30  Jim Meyering  <meyering@redhat.com>
27879         maint.mk: avoid a sub-shell
27880         * top/maint.mk (release-prep): Remove unneeded sub-shell.
27882 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27884         maint.mk: use silent-rules support from Automake
27885         * top/maint.mk (news-check, vc-diff-check, announcement)
27886         (no-submodule-changes, alpha beta stable, release-prep)
27887         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
27889 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27891         maint.mk: provide a web-manual-update target
27892         * top/maint.mk: here.
27893         * top/README-release: Use it to simplify the web manual update step.
27895 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27897         README-release: shorten the circuit to post a news
27898         * top/README-release: Point directly to the news submission form.
27900 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27902         gnu-web-doc-update: fix --help
27903         * build-aux/gnu-web-doc-update: The information "top level" was written
27904         twice.
27906 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
27908         maint.mk: absolute VPATH issue
27909         * top/maint.mk (release-prep): Help Git find .git/.
27910         From Jim Meyering.
27912 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27914         gitlog-to-changelog: fix previous change
27915         * build-aux/gitlog-to-changelog: Fix condition.
27916         Add missing ";".
27918 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27920         gitlog-to-changelog: don't expect .git to be in $srcdir
27921         Reported by Bruno Haible.
27922         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
27923         * build-aux/gitlog-to-changelog (&git_dir_option): New.
27924         Use it.
27926 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
27928         maint.mk: absolute VPATH build fix
27929         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
27930         $(srcdir) is not a parent of $(builddir).
27932 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
27934         clean-temp: Fix memory leak.
27935         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
27936         'files' members of tmpdir.
27938 2012-07-27  Jim Meyering  <meyering@redhat.com>
27940         maint.mk: new rule: refresh-gnulib-patches
27941         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
27942         Use this rule to refresh them.
27943         * top/maint.mk (refresh-gnulib-patches): New rule.
27945 2012-07-24  Bruno Haible  <bruno@clisp.org>
27947         gnulib-tool: Fix handling of inctests variable.
27948         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
27949         Reported by Nick Bowler <nbowler@elliptictech.com>.
27951 2012-07-22  Bruno Haible  <bruno@clisp.org>
27953         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
27954         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
27955         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
27956         Remove exemption for getpass.h.
27957         Suggested by Eric Blake.
27959 2012-07-20  Eric Blake  <eblake@redhat.com>
27961         verify: document conflict with -Wnested-externs
27962         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
27964         maint.mk: forbid exit(-1)
27965         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
27967 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
27969         fsusage: port back to Solaris
27970         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
27971         error (fsd not declared) on Solaris 10.  Reported privately by
27972         Andrew Borodin.
27974 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
27976         gnu-web-doc-update: fix error messages
27977         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
27979         gnu-web-doc-update: check the requirements.
27980         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
27981         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
27982         * build-aux/bootstrap (find_tool): Comment change.
27984 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
27986         maint.mk: minor simplication.
27987         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
27988         for default values.
27990 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
27992         gitlog-to-changelog: VPATH build issues
27993         If builddir is not a subdirectory of srcdir, running git from it will
27994         fail.
27995         * build-aux/gitlog-to-changelog (--srcdir): New option.
27997 2012-07-15  Bruno Haible  <bruno@clisp.org>
27999         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
28000         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
28001         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
28002         Remove exemption for fpending.h.
28003         Suggested by Eric Blake.
28005 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28007         pthread_sigmask: fix bug on FreeBSD 9
28008         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
28009         Include string.h.
28010         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
28011         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
28012         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
28013         but pthread_sigmask (1729, NULL, NULL) returns zero.
28014         See <http://bugs.gnu.org/11884>.
28015         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
28016         by inspecting whether the main call changed the old mask.
28018 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
28020         README-release: make it more legible
28021         * top/README-release: Improve typography slightly.
28023 2012-07-15  Jim Meyering  <meyering@redhat.com>
28025         maint: require that each sc_... command start with "@"
28026         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
28027         "make sc_maint" helps us avoid this nit.
28029 2012-07-15  Jim Meyering  <meyering@redhat.com>
28031         maint.mk: add leading "@" to quiet new "make syntax-check" rule
28032         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
28034 2012-07-13  Eric Blake  <eblake@redhat.com>
28036         maint.mk: new syntax check for HAVE_DECL checks
28037         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
28038         * cfg.mk
28039         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
28040         Exempt some false positives.
28041         Based on a report by Karel Zak.
28043         argp: make HAVE_DECL usage consistent
28044         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
28045         macros, not whether they are defined.
28046         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
28047         convention with other declaration checks.
28048         Reported by Karel Zak, with suggestions from Paul Eggert.
28050         stat-time: relax license to LGPLv2+
28051         * modules/stat-time (License): Relax, with consent of all authors.
28053         strndup: fix m4 usage error
28054         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
28055         defined, to either 0 or 1.
28056         Reported by Karel Zak.
28058 2012-07-11  Jim Meyering  <meyering@redhat.com>
28060         maint: enable the sc_avoid_if_before_free syntax-check rule
28061         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
28062         (if_before_free_offenders_): Define.
28063         (if_before_free_basename_re_): Define.
28064         Exempt current files with useless if-before-free.
28066 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
28068         gettext: do not assume '#define ... defined ...' behavior
28069         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
28070         Do not use '#define FOO ... defined BAR ...', as the C standard says
28071         it's not portable to expect that this works after macro expansion.
28072         Problem reported for gzip by Steven M. Schweda in
28073         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
28075 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
28077         getloadavg: clean out old Emacs and Autoconf cruft
28078         See Glenn Morris in <http://bugs.gnu.org/11905>.
28079         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
28080         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
28081         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
28082         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
28084 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
28086         bootstrap: let warn be like tests/init.sh's warn_
28087         Reported by Jim Meyering.
28088         * build-aux/bootstrap (warn): Remove, replaced by...
28089         (warnf_, warn_): these.
28090         Adjust callers.
28091         Shorten messages that no longer fit in 80 columns.
28093 2012-07-09  Bruno Haible  <bruno@clisp.org>
28095         getopt: Simplify after Emacs changed.
28096         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
28097         (gl_GETOPT_IFELSE): Remove macro.
28099 2012-07-09  Jim Meyering  <meyering@redhat.com>
28101         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
28102         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
28104         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
28105         Bugs in both of those conspired to make the
28106         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
28107         _sc_search_regexp's handling of non-empty $in_files would filter
28108         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
28109         choice of in_files value meant there would be no match in most
28110         projects, due to the presence of two or more Makefile.in files.
28111         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
28112         Fix a bug in how a non-empty $$in_files was processed:
28113         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
28114         in spite of the name, it's a regexp, not a list of file names.
28116 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
28118         getloadavg, getopt: fix commentary re configure.in
28119         Autoconf is deprecating the name 'configure.in', so change it to
28120         to the new name 'configure.ac' in a couple of places.
28121         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
28122         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
28123         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
28124         Emacs has renamed it to configure.ac, and it no longer refers
28125         to these macros anyway.
28127         timespec: mark functions with const attributes
28128         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
28129         Mark with _GL_ATTRIBUTE_CONST.
28131 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
28133         canonicalize[-lgpl]: handle "guessing" values when cross-building
28134         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
28135         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
28136         matches "*yes" instead of just "yes".  Regression introduced in commit
28137         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
28139 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
28140             Bruno Haible  <bruno@clisp.org>
28142         canonicalize: make the right guess when cross-compiling to GNU
28143         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
28144         determine whether cross-compiling to glibc systems, so as to
28145         include GNU/Hurd.
28147 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
28149         timespec-sub: avoid duplicate include
28150         * lib/timespec-sub.c: Do not include <config.h> twice.
28151         Reported by Juanma Barranquero.
28153 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
28155         bootstrap: use a more consistent error reporting scheme
28156         * build-aux/bootstrap (warn, die): New.
28157         Use them.
28159 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
28161         sys_time: allow too-wide tv_sec
28162         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
28163         timeval even if tv_sec is wider than time_t.  This allows
28164         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
28165         as without this patch gnulib replaces struct timeval
28166         and OpenBSD futimes therefore has a type mismatch.
28167         * doc/posix-headers/sys_time.texi: Mention this.
28169         pthread: check for both pthread_create and pthread_join
28170         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
28171         alter the check so that it tests for both pthread_create and
28172         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
28173         Suggested by Bruno Haible and Richard Yao in
28174         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
28176         parse-datetime: doc tuneup
28177         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
28178         spacing issues.
28180 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
28182         do-release-commit-and-tag: fix the previous commit
28183         * build-aux/do-release-commit-and-tag: Actually the test was right,
28184         but the comment and the error message were misleading.
28185         Fix comment, and improve error message.
28186         Perform check first, so that NEWS is not modified uselessly.
28188         do-release-commit-and-tag: fix typo
28189         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
28190         _not_ start with a stub.
28192 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
28194         pthread: check for pthread_create, not pthread_join
28195         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
28196         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
28197         pthread_join in libc.  I hope this removes the need for all the
28198         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
28199         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
28201 2012-07-04  Jim Meyering  <meyering@redhat.com>
28203         parse-datetime: fix failure to diagnose invalid input
28204         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
28205         rather than diagnosing the invalid input.  Now it reports this:
28206         date: invalid date '\260'
28207         * lib/parse-datetime.y (to_uchar): Define.
28208         (yylex): Don't sign-extend "other" bytes.
28209         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
28210         Thanks to Bruno Haible for the patch to this file.
28211         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
28212         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
28214 2012-07-03  Jim Meyering  <meyering@redhat.com>
28216         bootstrap: do not require now-removed build-aux/missing
28217         Now that build-aux/missing is, er, missing, bootstrap would
28218         silently fail.
28219         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
28220         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
28221         no longer part of gnulib.
28222         Diagnose the failure.
28224 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28226         alloca: add support for HP NonStop TNS/E native
28227         * lib/alloca.in.h (alloca): Support the new host.
28228         From a suggestion by Joachim Schmitz in
28229         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
28231 2012-07-02  Pádraig Brady  <P@draigBrady.com>
28233         fsusage: remove code not needed on non GNU/Linux systems.
28235         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
28236         Don't include headers no longer needed in this case.
28237         * lib/fsusage.c [STAT_STATVFS &&
28238         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
28239         STAT_STATFS2_FRSIZE to exclude code not used in this case.
28241 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
28243         fsusage: include files needed for glibc 2.6 fallback
28244         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
28245         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
28246         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
28247         Problem reported by Ludovic Courtès in
28248         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
28250         fsusage: avoid needless check on GNU/Linux
28251         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
28252         on GNU/Linux systems, since it can't possibly work.
28254 2012-07-01  Bruno Haible  <bruno@clisp.org>
28256         log: Fix an autoconf >= 2.64 warning.
28257         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
28258         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
28260 2012-06-28  Bruno Haible  <bruno@clisp.org>
28262         log10f: Fix possible configuration problem.
28263         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
28264         $LOGF_LIBM.
28265         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
28267 2012-06-28  Bruno Haible  <bruno@clisp.org>
28269         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
28270         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
28271         not gl_cv_func_unlink_works.
28272         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
28274 2012-06-27  Eric Blake  <eblake@redhat.com>
28276         config: drop scripts that automake says are not independent
28277         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
28278         * build-aux/elisp-comp: Delete.
28279         * build-aux/missing: Likewise.
28280         * build-aux/ylwrap: Likewise.
28281         * modules/elisp-comp: Likewise.
28282         * MODULES.html.sh: Drop mention of elisp-comp.
28283         * NEWS: Mention this.
28285 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
28287         root-uid: new module
28288         This is for portability to Tandem's NonStop Kernel.
28289         * lib/root-uid.h, modules/root-uid: New files.
28290         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
28291         * lib/write-any-file.c, tests/test-sethostname2.c:
28292         Include "root-uid.h".
28293         * lib/euidaccess.c (euidaccess):
28294         * lib/pt_chown.c (main):
28295         * lib/unlinkdir.c (cannot_unlink_dir):
28296         * lib/write-any-file.c (can_write_any_file):
28297         * m4/mknod.m4 (gl_FUNC_MKNOD):
28298         * tests/test-sethostname2.c (geteuid, main):
28299         Don't assume ROOT_UID == 0.
28300         * modules/euidaccess (Depends-on):
28301         * modules/pt_chown (Depends-on):
28302         * modules/sethostname-tests (Depends-on):
28303         * modules/unlinkdir (Depends-on):
28304         * modules/write-any-file (Depends-on):
28305         Add root-uid.
28307         regex: use locale-independent comparison for codeset name
28308         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
28309         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
28310         for codeset name.
28311         * lib/regex_internal.h: Do not include <strings.h>, since we
28312         no longer use strcasecmp.
28313         * modules/regex (Depends-on): Remove strcase.
28315 2012-06-23  Bruno Haible  <bruno@clisp.org>
28317         getopt-posix: No longer guarantee that option processing is resettable.
28318         * doc/posix-functions/getopt.texi: Drop description of problem with
28319         internal state. Fix info about mingw and msvc9.
28320         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
28321         option processing by getopt(). Run three test programs instead of one.
28322         Simplify cross-compilation guess.
28323         * NEWS: Mention the change.
28324         Reported by Rich Felker <dalias@aerifal.cx>.
28326 2012-06-26  Bruno Haible  <bruno@clisp.org>
28328         argp, regex: Ensure strcasecmp gets declared.
28329         * lib/argp-help.c: Include <strings.h>.
28330         * lib/regex_internal.h: Likewise.
28331         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
28333 2012-06-24  Bruno Haible  <bruno@clisp.org>
28335         ptsname_r: Make it consistent with ptsname on AIX.
28336         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
28337         implementation as for OSF/1.
28338         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
28339         a pty master.
28341         ptsname_r: Make it consistent with ptsname on OSF/1.
28342         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
28343         OSF/1.
28345 2012-06-24  Bruno Haible  <bruno@clisp.org>
28347         ttyname_r: Fix result on OSF/1, Solaris.
28348         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
28350 2012-06-24  Bruno Haible  <bruno@clisp.org>
28352         ptsname_r: Add support for Solaris.
28353         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
28354         Solaris.
28356         ptsname_r: Fix test failure on native Windows.
28357         * modules/ptsname_r (Depends-on): Add isatty.
28359         ptsname_r: Fix test failures on IRIX, Solaris.
28360         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
28361         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
28362         accordingly.
28363         * lib/ptsname_r.c: Include <fcntl.h>.
28364         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
28365         set errno if fd is invalid.
28366         * tests/test-isatty.c (main): Update comments.
28368 2012-06-24  Bruno Haible  <bruno@clisp.org>
28370         ptsname test: Extend test.
28371         * tests/test-ptsname.c: Include <errno.h>.
28372         (main): Test behaviour with invalid file descriptor.
28374 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28376         time: fix obsolete comment
28377         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
28378         reference to HAVE_STRUCT_TIMESPEC in comment.
28380 2012-06-23  Bruno Haible  <bruno@clisp.org>
28382         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
28383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
28384         does not handle abbreviated long options with equivalent
28385         disambiguations, set gl_replace_getopt to yes.
28386         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
28388 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
28390         time_r: fix typo that always overrode localtime_r decl
28391         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
28392         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
28393         not in a standard include.
28395 2012-06-22  Bruno Haible  <bruno@clisp.org>
28397         Write "Mac OS X" instead of "MacOS X".
28398         * README: Write "Mac OS X" instead of "MacOS X".
28399         * build-aux/bootstrap: Likewise.
28400         * build-aux/install-reloc: Likewise.
28401         * lib/acl-internal.h: Likewise.
28402         * lib/acl_entries.c: Likewise.
28403         * lib/argp-ba.c: Likewise.
28404         * lib/argp-pv.c: Likewise.
28405         * lib/config.charset: Likewise.
28406         * lib/copy-acl.c: Likewise.
28407         * lib/csharpexec.c: Likewise.
28408         * lib/euidaccess.c: Likewise.
28409         * lib/fbufmode.c: Likewise.
28410         * lib/fflush.c: Likewise.
28411         * lib/file-has-acl.c: Likewise.
28412         * lib/filemode.h: Likewise.
28413         * lib/fpurge.c: Likewise.
28414         * lib/freadable.c: Likewise.
28415         * lib/freadahead.c: Likewise.
28416         * lib/freading.c: Likewise.
28417         * lib/freadptr.c: Likewise.
28418         * lib/freadseek.c: Likewise.
28419         * lib/fseeko.c: Likewise.
28420         * lib/fseterr.c: Likewise.
28421         * lib/fsusage.c: Likewise.
28422         * lib/fwritable.c: Likewise.
28423         * lib/fwriting.c: Likewise.
28424         * lib/get-rusage-as.c: Likewise.
28425         * lib/get-rusage-data.c: Likewise.
28426         * lib/getdomainname.c: Likewise.
28427         * lib/idpriv-drop.c: Likewise.
28428         * lib/idpriv-droptemp.c: Likewise.
28429         * lib/localcharset.c: Likewise.
28430         * lib/locale.in.h: Likewise.
28431         * lib/localename.c: Likewise.
28432         * lib/mbsrtowcs-state.c: Likewise.
28433         * lib/nproc.c: Likewise.
28434         * lib/passfd.c: Likewise.
28435         * lib/posix_openpt.c: Likewise.
28436         * lib/printf-parse.c: Likewise.
28437         * lib/progreloc.c: Likewise.
28438         * lib/safe-read.h: Likewise.
28439         * lib/safe-write.h: Likewise.
28440         * lib/sched.in.h: Likewise.
28441         * lib/set-mode-acl.c: Likewise.
28442         * lib/signal.in.h: Likewise.
28443         * lib/stdint.in.h: Likewise.
28444         * lib/stdio-impl.h: Likewise.
28445         * lib/stdlib.in.h: Likewise.
28446         * lib/strtod.c: Likewise.
28447         * lib/sys_select.in.h: Likewise.
28448         * lib/tcgetsid.c: Likewise.
28449         * lib/unistd.in.h: Likewise.
28450         * lib/unlockpt.c: Likewise.
28451         * lib/vasnprintf.c: Likewise.
28452         * lib/vma-iter.c: Likewise.
28453         * lib/wcsrtombs-state.c: Likewise.
28454         * m4/acl.m4: Likewise.
28455         * m4/acosl.m4: Likewise.
28456         * m4/asinl.m4: Likewise.
28457         * m4/atanl.m4: Likewise.
28458         * m4/c-stack.m4: Likewise.
28459         * m4/cosl.m4: Likewise.
28460         * m4/expl.m4: Likewise.
28461         * m4/extensions.m4: Likewise.
28462         * m4/fdatasync.m4: Likewise.
28463         * m4/fmal.m4: Likewise.
28464         * m4/frexp.m4: Likewise.
28465         * m4/frexpf.m4: Likewise.
28466         * m4/frexpl.m4: Likewise.
28467         * m4/fsusage.m4: Likewise.
28468         * m4/getdomainname.m4: Likewise.
28469         * m4/getloadavg.m4: Likewise.
28470         * m4/getopt.m4: Likewise.
28471         * m4/gettext.m4: Likewise.
28472         * m4/gnulib-common.m4: Likewise.
28473         * m4/intdiv0.m4: Likewise.
28474         * m4/intlmacosx.m4: Likewise.
28475         * m4/largefile.m4: Likewise.
28476         * m4/ldexpl.m4: Likewise.
28477         * m4/link-follow.m4: Likewise.
28478         * m4/locale-ar.m4: Likewise.
28479         * m4/locale-fr.m4: Likewise.
28480         * m4/locale-ja.m4: Likewise.
28481         * m4/locale-tr.m4: Likewise.
28482         * m4/locale-zh.m4: Likewise.
28483         * m4/locale_h.m4: Likewise.
28484         * m4/lock.m4: Likewise.
28485         * m4/logl.m4: Likewise.
28486         * m4/mathfunc.m4: Likewise.
28487         * m4/minus-zero.m4: Likewise.
28488         * m4/mktime.m4: Likewise.
28489         * m4/mmap-anon.m4: Likewise.
28490         * m4/multiarch.m4: Likewise.
28491         * m4/nanosleep.m4: Likewise.
28492         * m4/nocrash.m4: Likewise.
28493         * m4/poll.m4: Likewise.
28494         * m4/printf-frexpl.m4: Likewise.
28495         * m4/printf.m4: Likewise.
28496         * m4/signbit.m4: Likewise.
28497         * m4/sinl.m4: Likewise.
28498         * m4/sqrtl.m4: Likewise.
28499         * m4/strerror_r.m4: Likewise.
28500         * m4/tanl.m4: Likewise.
28501         * m4/threadlib.m4: Likewise.
28502         * m4/ttyname_r.m4: Likewise.
28503         * m4/unlink.m4: Likewise.
28504         * m4/visibility.m4: Likewise.
28505         * m4/wcwidth.m4: Likewise.
28506         * tests/minus-zero.h: Likewise.
28507         * tests/test-alloca-opt.c: Likewise.
28508         * tests/test-copy-acl.sh: Likewise.
28509         * tests/test-copy-file.sh: Likewise.
28510         * tests/test-fdatasync.c: Likewise.
28511         * tests/test-file-has-acl.sh: Likewise.
28512         * tests/test-flock.c: Likewise.
28513         * tests/test-fsync.c: Likewise.
28514         * tests/test-localename.c: Likewise.
28515         * tests/test-malloca.c: Likewise.
28516         * tests/test-nonblocking-pipe.h: Likewise.
28517         * tests/test-nonblocking-socket.h: Likewise.
28518         * tests/test-openpty.c: Likewise.
28519         * tests/test-posix_openpt.c: Likewise.
28520         * tests/test-ptsname.c: Likewise.
28521         * tests/test-ptsname_r.c: Likewise.
28522         * tests/test-sameacls.c: Likewise.
28523         * tests/test-select.h: Likewise.
28524         * tests/test-set-mode-acl.sh: Likewise.
28525         * tests/test-snprintf-posix.h: Likewise.
28526         * tests/test-sprintf-posix.h: Likewise.
28527         * tests/test-strtod.c: Likewise.
28528         * tests/test-time.c: Likewise.
28529         * tests/test-vasnprintf-posix.c: Likewise.
28530         * tests/test-vasprintf-posix.c: Likewise.
28531         * doc/acl-resources.txt: Likewise.
28532         * doc/**/*.texi: Likewise.
28533         Reported by Max Horn <max@quendi.de>.
28535 2012-06-22  Bruno Haible  <bruno@clisp.org>
28537         grantpt: Relax requirement regarding invalid file descriptors.
28538         * lib/grantpt.c: Don't include <fcntl.h>.
28539         (grantpt): Don't verify the validity of the file descriptor.
28540         * modules/grantpt (Depends-on): Remove fcntl-h.
28541         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
28542         file descriptors.
28543         * doc/posix-functions/grantpt.texi: Document more platforms on which
28544         grantpt succeeds for invalid file descriptors.
28545         Reported by Rich Felker <dalias@aerifal.cx>.
28547 2012-06-22  Bruno Haible  <bruno@clisp.org>
28549         fbufmode test: Don't test unportable behaviour.
28550         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
28551         (main): Invoke it three times.
28552         Reported by Szabolcs Nagy <nsz@port70.net>
28553         and Rich Felker <dalias@aerifal.cx>.
28555 2012-06-21  Bruno Haible  <bruno@clisp.org>
28557         gnulib-tool: Refactor inctests variable.
28558         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
28559         (func_modules_transitive_closure,
28560         func_modules_transitive_closure_separately,
28561         func_import, func_create_testdir): Update.
28563         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
28564         * gnulib-tool: Accept option --without-tests.
28565         (func_usage): Document --without-tests option. Rearrange.
28566         (inctests): Normalize according to the mode.
28567         * NEWS: Mention the change.
28568         Suggested by Simon Josefsson.
28570 2012-06-21  Bruce Korb  <bkorb@gnu.org>
28572         parse-duration test: Avoid spurious output.
28573         * tests/test-parse-duration.sh: Reindent with leading tabs.
28575 2012-06-21  Jim Meyering  <meyering@redhat.com>
28577         maint: disable the strncpy prohibition
28578         * cfg.mk: Do not prohibit strncpy here.
28580 2012-06-21  Bruno Haible  <bruno@clisp.org>
28582         nonblocking: Avoid compilation error on mingw64.
28583         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
28584         fscanf.
28585         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
28586         * modules/vfscanf (configure.ac): Likewise.
28587         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
28588         definition only if stdio.h has prepared it.
28589         Reported by Daniel P. Berrange <berrange@redhat.com>.
28591 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
28593         gnulib-tool: Use readlink if it is available.
28594         * gnulib-tool (func_readlink): Choose function more appropriately.
28596 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
28598         posixtm-tests: port to buggy compiler
28599         Problem reported by Simon Josefsson in
28600         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
28601         * modules/posixtm-tests (Depends-on): Add stdint.
28602         * tests/test-posixtm.c (struct posixtm_test.t_expected):
28603         Now of type int_least64_t, not int64_t, both because that's
28604         what INT64_C returns and because int_least64_t works even
28605         on 72-bit hosts.
28606         (T): Use INT64_C on constants outside the traditional int range,
28607         to work around compiler bug noted by Simon.
28609         mktime: fix integer overflow in 'configure'-time test
28610         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
28611         after integer overflow.  Problem reported by Rich Felker in
28612         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
28613         Also, don't look for further instances of a bug if we've already
28614         found one instance; this helps 'configure' run faster.
28616 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
28618         tmpfile, clean-temp: Fix invocation of GetVersionEx.
28619         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
28620         GetVersionEx correctly.
28621         * lib/clean-temp.c (supports_delete_on_close): Likewise.
28623 2012-06-20  Bruno Haible  <bruno@clisp.org>
28625         fdopen: Allow implementations that don't reject invalid fd arguments.
28626         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
28627         succeeds.
28628         Reported by Rich Felker <dalias@aerifal.cx>.
28630 2012-06-20  Simon Josefsson  <simon@josefsson.org>
28632         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
28633         bring in LIBINTL.
28635 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
28637         init.sh: do not rely on autoupated PWD
28638         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
28639         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
28640         Although Nelson's bug was not necessarily fixed by this patch,
28641         it seems wise to make the change for safety.
28642         * tests/init.sh (path_prepend_): Do not rely on PWD updating
28643         automagically after 'cd'; this is not reliable on older shells.
28644         (setup_): Fail if we cannot cd to temporary directory.
28646 2012-06-19  Bruno Haible  <bruno@clisp.org>
28648         stat, fstat: Avoid warnings on mingw64.
28649         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
28650         redefining.
28651         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
28652         Reported by Daniel P. Berrange <berrange@redhat.com>.
28654 2012-06-19  Bruno Haible  <bruno@clisp.org>
28656         stdioext: Add support for musl libc.
28658         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
28659         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
28661         * m4/fseterr.m4: New file.
28662         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
28663         function exists.
28664         * modules/fseterr (Files): Add m4/fseterr.m4.
28665         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
28666         __fseterr does not exist.
28667         (Makefile.am): Remove fseterr.c from lib_SOURCES.
28669         * lib/freadable.h: Update comment.
28671         * lib/fwritable.h: Update comment.
28673         * lib/freading.h: Update comment.
28675         * lib/fwriting.h: Update comment.
28677         * m4/freadahead.m4: New file.
28678         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
28679         that function exists.
28680         * modules/freadahead (Files): Add m4/freadahead.m4.
28681         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
28682         __freadahead does not exist.
28683         (Makefile.am): Remove freadahead.c from lib_SOURCES.
28685         * m4/freadptr.m4: New file.
28686         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
28687         function exists.
28688         * modules/freadptr (Files): Add m4/freadptr.m4.
28689         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
28690         __freadptr does not exist.
28691         (Makefile.am): Remove freadptr.c from lib_SOURCES.
28693         * m4/freadseek.m4: New file.
28694         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
28695         exists.
28696         * modules/freadseek (Files): Add m4/freadseek.m4.
28697         (configure.ac): Invoke gl_FUNC_FREADSEEK.
28699         * lib/fpurge.c (fpurge): Update comment.
28701         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
28703 2012-06-19  Bruno Haible  <bruno@clisp.org>
28705         *printf-posix: Put more info into config.log.
28706         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
28707         exit code into config.log.
28709 2012-06-19  Bruno Haible  <bruno@clisp.org>
28711         getopt-gnu: Fix exit code overflow in autoconf test.
28712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
28713         to keep them below < 128.
28715 2012-06-17  Jim Meyering  <meyering@redhat.com>
28717         maint.mk: fix typo in code to derive GPG key at release time
28718         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
28720 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
28722         regex: avoid warning when pointers are not long
28723         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
28724         and uintptr_t, not long, for portability to hosts where pointers and
28725         long have different sizes.  Issue noted by Daniel P. Berrange in
28726         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
28727         and fix suggested by Bruno Haible in
28728         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
28730 2012-06-17  Bruno Haible  <bruno@clisp.org>
28732         dummy: Relicense into the public domain.
28733         * modules/dummy (License): Set to "public domain".
28734         Suggested by Reuben Thomas.
28736 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
28738         announce-gen: VPATH issues
28739         * build-aux/announce-gen (--srcdir): New option, used to trim the
28740         $srcdir part of the path from $builddir to NEWS.
28741         * top/maint.mk (announcement): Adjust.
28743 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
28745         gnu-web-doc-update: VPATH builds
28746         * build-aux/gnu-web-doc-update (--builddir): New option.
28747         Revamp the handling of options.
28748         Prefer $(...) to `...`.
28749         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
28750         the template, and it is GNU mktemp specific.
28751         Prefer set -e to long series of &&.
28752         Restore the initial git branch, not "master".
28753         Properly initialize submodules (don't rely only on bootstrap).
28754         Do not reconfigure blindly, use config.status.
28755         * top/README-release: Update instructions for gnu-web-doc-update.
28757 2012-06-11  Jim Meyering  <meyering@redhat.com>
28759         maint.mk: revert most of the previous change re "all these"
28760         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
28761         For rationale, see the discussion at
28762         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
28764 2012-06-10  Karl Berry  <karl@gnu.org>
28766         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
28768         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
28770 2012-06-10  Bruce Korb  <bkorb@gnu.org>
28772         parse-duration: Relicense under LGPLv2+.
28773         * modules/parse-duration (License): Change to LGPLv2+.
28775 2012-06-10  Jim Meyering  <meyering@redhat.com>
28777         maint.mk: prohibit common grammar error: "all these"
28778         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
28779         the list of prohibited word sequences.  It should be "all of these".
28780         * lib/tempname.c (__gen_tempname): Fix one of them.
28782 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28784         do-release-commit-and-tag: support VPATH builds
28785         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
28786         (noteworthy): Defined earlier to factor its value.
28787         (noteworthy_stub): New.
28788         Use it to factor.
28789         (help_version): Split into...
28790         (help, version): these.
28791         Adjust the option processing part.
28792         Support "--option=value" in addition to "--option value".
28793         (builddir): New.
28794         (--builddir): New option.
28795         * top/README-release: Document this.
28796         Reword slightly so that the reader cannot understand that he
28797         has to do these steps before calling do-release-commit-and-tag.
28799 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28801         readme-release: also require announce-gen and maintainer-makefile
28802         * modules/readme-release (Depends-on): here.
28803         * modules/announce-gen, modules/do-release-commit-and-tag,
28804         modules/gnu-web-doc-update, modules/maintainer-makefile
28805         (Description): Point to readme-release.
28807 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
28809         maint.mk: fix VPATH issues.
28810         * top/maint.mk (news-check): GNU Make understand $< very well.
28811         (release-prep): NEWS is in $(srcdir).
28813 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
28815         readme-release: require the promoted modules.
28816         * modules/readme-release (Depends-on): Add
28817         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
28818         in this text.
28820 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28821             Bruno Haible  <bruno@clisp.org>
28823         error, strerror-override: Support mingw64 from Fedora 17.
28824         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
28825         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
28826         EINPROGRESS.
28827         * lib/strerror-override.h (strerror_override): Test it.
28828         * lib/strerror-override.c (strerror_override): Likewise.
28829         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
28831 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28832             Bruno Haible  <bruno@clisp.org>
28834         error, strerror-override: Support mingw64 from Fedora 17.
28835         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
28836         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
28837         * lib/strerror-override.h (strerror_override): Test it.
28838         * lib/strerror-override.c (strerror_override): Likewise.
28840 2012-06-03  Bruno Haible  <bruno@clisp.org>
28842         error, strerror-override: Support new errno values from POSIX:2008.
28843         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
28844         ENOTRECOVERABLE.
28845         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
28846         platforms.
28847         * lib/strerror-override.c (strerror_override): Conditionalize the
28848         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
28849         * lib/strerror-override.h (strerror_override): Declare also if
28850         GNULIB_defined_EOWNERDEAD is defined.
28851         * tests/test-errno.c (e130, e131): New variables.
28852         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
28853         ENOTRECOVERABLE.
28854         Reported by Paolo Bonzini.
28856 2012-05-31  Jim Meyering  <meyering@redhat.com>
28858         savewd: add missing dependency on sys_wait module
28859         * modules/savewd (Depends-on): Add sys_wait, needed at least
28860         for MSVC.  Report and suggested change by Michael Goffioul.
28862 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
28864         system-quote-tests: port to CentOS 5
28865         Problem reported by Tom G. Christensen in
28866         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
28867         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
28869 2012-05-29  Jim Meyering  <meyering@redhat.com>
28871         maint: fix typos in comments and ChangeLog
28872         Culprits identified and fixed mostly automatically using these commands:
28873         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
28874         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
28875         using http://github.com/lyda/misspell-check
28876         * ChangeLog: Fix typos.
28877         * doc/solaris-versions: Likewise.
28878         * lib/regexec.c (re_search_stub): Likewise.
28879         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
28881 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
28883         manywarnings: remove duplicate -Wmultichar entry
28884         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
28885         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
28886         so keep the entry marked as documented.
28888 2012-05-27  Karl Berry  <karl@gnu.org>
28890         * config/srclist.txt (mktime.c): remove last libc sync,
28891         perhaps just temporarily.
28893 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
28895         regex: don't assume uint64_t or uint32_t
28896         * lib/regcomp.c (init_word_char): Don't assume that the types
28897         uint64_t and uint32_t exist.  The C standard doesn't guarantee
28898         them, and on some 32-bit compilers there is no uint64_t.
28899         Problem reported by Gianluigi Tiesi in
28900         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
28902 2012-05-25  Jim Meyering  <meyering@redhat.com>
28904         maint.mk: add strncpy-prohibiting syntax-check rule
28905         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
28907 2012-05-24  Jim Meyering  <meyering@redhat.com>
28909         maint.mk: compute $(gpg_key_ID) more portably
28910         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
28911         That use of sed is not portable to some fringe systems.
28912         Reported by Paul Eggert in
28913         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
28915 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
28917         mktime: sync from glibc
28918         * config/srclist.txt: Uncomment mktime.c.
28919         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
28920         First, indent with tabs, since glibc uses tabs and doesn't want to
28921         change and we'd rather be identical to glibc.  Also, two small
28922         coding changes:
28923         (isdst_differ): Use &&, not &, as && is the usual style.
28924         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
28925         for clarity.
28927 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28929         announce-gen: du -h is more portable than du --human
28930         * build-aux/announce-gen (sizes): Invoke du with -h instead
28931         of --human.  Accept leading white space in its output.
28933 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28935         announce-gen: Improve diagnostics.
28936         * build-aux/announce-gen: When parsing command line options,
28937         prefer "announce-gen: option --release-type requires an argument"
28938         to "Option release-type requires an argument".
28940 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
28942         maint.mk: gpg_key_ID: use sed more portably
28943         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
28944         the closing brace.
28945         (refresh-po): Fuse two sed invocations into one.
28947 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
28949         gitlog-to-changelog: support the log message format used in Bison.
28950         * build-aux/gitlog-to-changelog: Support --strip-tab and
28951         --strip-cherry-picked.
28953 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
28955         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
28956         the rest of the current time slice to another thread in the current
28957         process. So if the thread that feeds the file decscriptor we're
28958         polling is not in the current process, we get busy-waiting.
28959         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
28960         Patch from Theodore Leblond.
28961         * lib/select.c: Split polling out of the loop that sets the output
28962         fd_sets.  Check for zero result and loop if the wait timeout is
28963         infinite.
28965 2012-05-21  Simon Josefsson  <simon@josefsson.org>
28967         select: Fix build error on IRIX 6.5.
28968         * lib/select.c: Include stddef.h for NULL.
28970 2012-05-21  Simon Josefsson  <simon@josefsson.org>
28972         gc: fix libgcrypt detection on older machines.
28973         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
28974         copyright years because the file has been distributed every year
28975         since it was created.
28977 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
28979         crypto: fix bug in large buffer handling
28980         Problem reported by Serge Belyshev for glibc in
28981         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
28982         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
28983         * lib/md4.c (md4_process_block):
28984         * lib/md5.c (md5_process_block):
28985         * lib/sha1.c (sha1_process_block):
28986         * lib/sha256.c (sha256_process_block):
28987         Don't assume the buffer length is less than 2**32.
28988         * lib/sha512.c (sha512_process_block): Likewise.
28989         Here, the bug is present only in the rare case where the host does
28990         not support uint64_t or where size_t is wider than 64 bits.
28991         Use u64size to work around the problems.
28992         * lib/u64.h (u64size): New macro.
28994 2012-05-15  Pádraig Brady  <P@draigBrady.com>
28996         fsusage: fix block size returned on older Linux 2.6
28998         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
28999         which is available since Linux 2.6.
29000         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
29001         when the member is available so it can be used as a fallback.
29002         * doc/posix-functions/statvfs.texi: Mention the hang issue
29003         on Linux < 2.6.36.
29005 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
29007         bootstrap: suppress stderr chatter
29008         * build-aux/bootstrap (insert_sorted_if_absent, main program):
29009         Omit unnecessary chatter to stderr.  The main program chatter
29010         was there only inadvertantly.
29012         bootstrap: .gitignore files created by autopoint, libtool
29013         I ran into this problem when bootstrapping the latest diffutils.
29014         After './bootstrap', 'git status' reported lots of untracked files
29015         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
29016         autopoint and do not need to be version-controlled.
29017         * build-aux/bootstrap: Put into .gitignore the files that
29018         autopoint and libtool create, by keeping track of files that exist
29019         after but not before these programs are run.
29020         (version_controlled_file): Move up.  2nd arg is now full file
29021         name, not base name; this is more convenient.  Put CVS at the end,
29022         as it's now somewhat deprecated.
29024 2012-05-14  Jim Meyering  <meyering@redhat.com>
29026         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
29027         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
29028         definition.  Reported by Bruno Haible.
29030 2012-05-13  Bruno Haible  <bruno@clisp.org>
29031             Paul Eggert  <eggert@cs.ucla.edu>
29033         binary-io: Define set_binary_mode function.
29034         * lib/binary-io.h (set_binary_mode): New function.
29035         (SET_BINARY): Define in terms of set_binary_mode.
29036         * modules/binary-io (configure.ac): Require AC_C_INLINE.
29037         * tests/test-binary-io.c (main): Accept an argument, and test either
29038         set_binary_mode or SET_BINARY depending on the argument.
29039         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
29040         argument. Clean up also t-bin-out0.tmp.
29042 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
29044         bootstrap: take advantage of POSIX shell features
29046         The 'bootstrap' script offered by Gnulib script already uses POSIX
29047         shell features (like $((...)) arithmetic expansions) that are not
29048         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
29049         means that bootstrap must already be run using a proper POSIX shell,
29050         which will thus provide more features, like ${var#pattern} parameter
29051         expansion or inversion of a command exit status with '!'.  We can
29052         thus use these features to improve the clarity and the performances
29053         of the bootstrap script.
29055         Suggested by Eric Blake.
29057         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
29058         of sed/expr plus command substitutions, to save some forks.  While
29059         we are at it, prefer the POSIX $(...) form of command substitution,
29060         rather than the legacy form `...` (since the former is visually
29061         clearer and interacts better with quoting), and prefer the idiom:
29062           "if ! CMD; then ACTION ..."
29063         over the idiom:
29064           "if CMD; then :; else ACTION ..."
29065         which was required by legacy Bourne shells not supporting '!'.
29067 2012-05-12  Bruno Haible  <bruno@clisp.org>
29069         system-quote: Add more comments.
29070         * lib/system-quote.h: Add more comments about wilcards and limitations.
29071         Suggested by Eli Zaretskii <eliz@gnu.org>.
29073         sh-quote, system-quote: Add comments about wildcards.
29074         * lib/sh-quote.h: Clarify what happens with wildcard characters.
29075         * lib/system-quote.h: Likewise.
29076         Reported by Eli Zaretskii <eliz@gnu.org>.
29078 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
29080         fsusage: check for GNU/Linux statvfs problem dynamically
29081         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
29082         Define STAT_STATFS2_BSIZE too, since in this case the code now
29083         checks dynamically whether statvfs is reliable, falling back on
29084         Linux-style statfs otherwise.
29085         (statvfs_works): New function, for dynamically testing statvfs.
29086         (get_fs_usage) [STAT_STATVFS]: Use it.
29087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
29088         statvfs on GNU/Linux hosts, since it's now done dynamically.
29090 2012-05-10  Bruno Haible  <bruno@clisp.org>
29092         system-quote, execute, spawn-pipe: Escape '?' on Windows.
29093         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
29094         '?' character.
29095         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
29096         * tests/test-system-quote-main.c (check_all): Check also strings like
29097         "??????????".
29098         Reported by Eli Zaretskii <eliz@gnu.org>.
29100 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
29102         _Noreturn: port config.h to gcc -Wundef
29103         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
29104         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
29105         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
29107 2012-05-10  Bruno Haible  <bruno@clisp.org>
29109         system-quote: Refactor.
29110         * lib/system-quote.h (system_quote_copy): Fix comment.
29111         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
29112         New functions, extracted from system_quote_copy.
29113         (system_quote_length, system_quote_copy): Use these functions.
29114         Reported by Paul Eggert.
29116 2012-05-08  Bruno Haible  <bruno@clisp.org>
29118         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
29119         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
29121 2012-05-08  Bruno Haible  <bruno@clisp.org>
29123         Tests for module 'system-quote'.
29124         * modules/system-quote-tests: New file.
29125         * tests/test-system-quote.sh: New file.
29126         * tests/test-system-quote-main.c: New file.
29127         * tests/test-system-quote-child.c: New file.
29129         New module 'system-quote'.
29130         * lib/system-quote.h: New file.
29131         * lib/system-quote.c: New file.
29132         * modules/system-quote: New file.
29134 2012-05-08  Bruno Haible  <bruno@clisp.org>
29136         sh-quote: Make C++ safe and allow multiple inclusion.
29137         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
29138         declarations in extern "C".
29140 2012-05-08  Bruno Haible  <bruno@clisp.org>
29142         sh-quote tests: Make tests stricter.
29143         * tests/test-sh-quote.c (check_one): Check the return value of
29144         shell_quote_copy.
29145         (main): Check a string with a CR character. Check a string that
29146         contains UCHAR_MAX.
29148 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
29150         warnings.m4: provide a means to specify the program to compile.
29151         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
29152         (gl_WARN_ADD): here.
29153         Use gl_AS_VAR_APPEND.
29154         Support an argument to specify the program to compile.
29155         (gl_WARN_ADD): Accept an argument to specify the program to compile.
29156         AC_SUBST the WARN_CFLAGS when they are used.
29157         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
29158         leave this to gl_WARN_ADD.
29160 2012-05-08  Eric Blake  <eblake@redhat.com>
29162         doc: recommendations on gettext version
29163         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
29164         choice between versions.
29165         * DEPENDENCIES (gettext): Cover both approaches.
29167 2012-05-08  Jim Meyering  <meyering@redhat.com>
29169         init.sh: explain why EXEEXT support uses aliases rather than functions
29170         * tests/init.sh: Add a comment.
29172         init.sh: don't let bash aliases interfere with tests
29173         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
29174         is bash.  This avoids problems for those who alias standard commands to
29175         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
29176         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
29178 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
29180         stdint: be more consistent with glibc, SunOS libc
29181         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
29182         (gl_int_fast16_t, gl_uint_fast16_t)
29183         (gl_int_fast32_t, gl_uint_fast32_t)
29184         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
29185         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
29186         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
29187         Be consistent with glibc by default, and with SunOS 5.10 and later
29188         if __sun is defined.  This lessens the likelihood of clashes if
29189         code compiled for older hosts is combined with code compiled for
29190         newer ones.  Problem reported by Niels Möller in
29191         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
29193 2012-05-07  Eric Blake  <eblake@redhat.com>
29195         isatty: relax license to LGPLv2+
29196         * modules/isatty (License): Relax license.
29198 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29200         stat-size: comment fix
29201         * lib/stat-size.h: Remove obsolete comment about indenting.
29203 2012-05-06  Bruno Haible  <bruno@clisp.org>
29205         Tests for module 'sh-quote'.
29206         * modules/sh-quote-tests: New file.
29207         * tests/test-sh-quote.c: New file.
29209 2012-05-06  Bruno Haible  <bruno@clisp.org>
29211         sh-quote: Improve shell_quote_argv's signature.
29212         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
29213         * lib/sh-quote.c (shell_quote_argv): Likewise.
29215 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
29217         stdint: document issues with int_fast8_t etc.
29218         * doc/posix-headers/stdint.texi (stdint.h): Say that other
29219         stdint.h substitutes may define these types differently.  See
29220         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
29222 2012-05-05  Bruno Haible  <bruno@clisp.org>
29224         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
29225         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
29226         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
29227         or 'guessing no (mishandles large arguments)'.
29229 2012-05-05  Bruno Haible  <bruno@clisp.org>
29231         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
29232         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
29233         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
29234         set gl_cv_func_link_follows_symlink to "guessing no".
29236 2012-05-05  Bruno Haible  <bruno@clisp.org>
29238         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
29239         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
29240         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
29241         "guessing no".
29242         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
29244 2012-05-05  Bruno Haible  <bruno@clisp.org>
29246         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
29247         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
29248         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
29249         set gl_cv_struct_dirent_d_ino to "guessing yes".
29251 2012-05-05  Bruno Haible  <bruno@clisp.org>
29253         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
29254         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
29255         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
29256         "guessing yes".
29258 2012-05-05  Bruno Haible  <bruno@clisp.org>
29260         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
29261         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
29262         compiling to a glibc system, set gl_cv_func_signbit and
29263         gl_cv_func_signbit_gcc to "guessing yes".
29265 2012-05-05  Bruno Haible  <bruno@clisp.org>
29267         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
29268         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
29269         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
29270         to "guessing yes".
29271         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
29272         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
29274 2012-05-05  Bruno Haible  <bruno@clisp.org>
29276         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
29277         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
29278         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
29279         gl_cv_func_realpath_works to "guessing yes".
29281 2012-05-05  Bruno Haible  <bruno@clisp.org>
29283         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
29284         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
29285         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
29287 2012-05-04  Bruno Haible  <bruno@clisp.org>
29289         Tweak last commit.
29290         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
29291         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
29293 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
29295         unistd_h: make it easier to avoid sys_types_h
29296         This is useful for Emacs, which has its own method of porting to
29297         Windows, and which therefore does not need the sys_types_h module.
29298         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
29299         code moved here from gl_SYS_TYPES_H.
29300         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
29301         using the code directly.
29302         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
29303         gl_SYS_TYPES_H.
29304         * modules/sys_types (Files):
29305         * modules/unistd (Files): Add m4/off_t.m4.
29307 2012-05-03  Bruno Haible  <bruno@clisp.org>
29309         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
29310         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
29311         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
29312         "guessing yes" or "guessing no".
29313         (gl_FUNC_LSTAT): Update.
29314         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
29315         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
29316         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
29318 2012-05-03  Bruno Haible  <bruno@clisp.org>
29320         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
29321         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
29322         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
29323         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
29324         cross-compiling, choose the first alternative on glibc systems.
29325         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
29327 2012-05-03  Bruno Haible  <bruno@clisp.org>
29329         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
29330         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
29331         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
29333 2012-05-03  Bruno Haible  <bruno@clisp.org>
29335         chown: Avoid "guessing no" when cross-compiling to glibc systems.
29336         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
29338 2012-05-03  Bruno Haible  <bruno@clisp.org>
29340         Avoid "guessing no" guesses when cross-compiling to glibc systems.
29341         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
29342         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
29343         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
29344         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
29345         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
29346         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
29347         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
29348         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
29349         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
29350         compiling to glibc systems, set gl_cv_func_chown_slash_works,
29351         gl_cv_func_chown_ctime_works to "guessing yes".
29352         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
29353         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
29354         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
29355         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
29356         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
29357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
29358         compiling to glibc systems, set gl_cv_func_open_directory_works to
29359         "guessing yes".
29360         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
29361         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
29362         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
29363         "guessing yes".
29364         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
29365         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
29366         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
29367         compiling to glibc systems, set gl_cv_func_floorf_ieee to
29368         "guessing yes".
29369         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
29370         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
29371         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
29372         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
29373         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
29374         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
29375         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
29376         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
29377         "guessing yes".
29378         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
29379         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
29380         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
29381         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
29382         "guessing yes".
29383         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
29384         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
29385         "guessing yes".
29386         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
29387         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
29388         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
29389         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
29390         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
29391         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
29392         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
29393         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
29394         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
29395         compiling to glibc systems, set gl_cv_func_log10f_ieee to
29396         "guessing yes".
29397         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
29398         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
29399         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
29400         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
29401         "guessing yes".
29402         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
29403         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
29404         "guessing yes".
29405         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
29406         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
29407         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
29408         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
29409         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
29410         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
29411         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
29412         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
29413         compiling to glibc systems, set gl_cv_func_mkfifo_works to
29414         "guessing yes".
29415         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
29416         compiling to glibc systems, set gl_cv_func_mknod_works to
29417         "guessing yes".
29418         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
29419         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
29420         "guessing yes".
29421         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
29422         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
29423         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
29424         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
29425         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
29426         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
29427         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
29428         compiling to glibc systems, set gl_cv_func_svid_putenv to
29429         "guessing yes".
29430         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
29431         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
29432         "guessing yes".
29433         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
29434         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
29435         "guessing yes".
29436         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
29437         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
29438         to "guessing yes".
29439         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
29440         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
29441         to "guessing yes".
29442         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
29443         compiling to glibc systems, set gl_cv_func_rmdir_works to
29444         "guessing yes".
29445         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
29446         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
29447         gl_cv_func_unlink_parent_fails to "guessing yes".
29448         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
29449         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
29450         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
29451         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
29452         gl_cv_func_rename_dest_works to "guessing yes".
29453         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
29454         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
29455         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
29456         compiling to glibc systems, set gl_cv_func_roundf_ieee to
29457         "guessing yes".
29458         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
29459         compiling to glibc systems, set gl_cv_func_roundl_ieee to
29460         "guessing yes".
29461         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
29462         compiling to glibc systems, set gl_cv_func_setenv_works to
29463         "guessing yes".
29464         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
29465         compiling to glibc systems, set gl_cv_func_unsetenv_works to
29466         "guessing yes".
29467         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
29468         compiling to glibc systems, set gl_cv_func_sleep_works to
29469         "guessing yes".
29470         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
29471         compiling to glibc systems, set gl_cv_func_stat_file_slash to
29472         "guessing yes".
29473         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
29474         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
29475         "guessing yes".
29476         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
29477         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
29478         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
29479         compiling to glibc systems, set gl_cv_func_truncf_ieee to
29480         "guessing yes".
29481         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
29482         compiling to glibc systems, set gl_cv_func_truncl_ieee to
29483         "guessing yes".
29484         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
29485         compiling to glibc systems, set gl_cv_func_usleep_works to
29486         "guessing yes".
29487         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
29488         compiling to glibc systems, set gl_cv_func_futimesat_works to
29489         "guessing yes".
29491 2012-05-03  Bruno Haible  <bruno@clisp.org>
29493         Say "guessing yes" or "guessing no" when cross-compiling.
29494         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
29495         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
29496         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
29497         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
29498         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
29499         am_cv_func_working_getline to "guessing yes" or "guessing no".
29500         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
29501         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
29502         (gl_FUNC_MEMMEM): When cross-compiling, set
29503         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
29504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
29505         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
29506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
29507         set gl_cv_func_strcasestr_works_always to "guessing yes" or
29508         "guessing no".
29509         (gl_FUNC_STRCASESTR): When cross-compiling, set
29510         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
29511         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
29512         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
29513         (gl_FUNC_STRSTR): When cross-compiling, set
29514         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
29515         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
29516         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
29517         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
29518         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
29520 2012-05-01  Bruno Haible  <bruno@clisp.org>
29522         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
29523         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
29524         * build-aux/reloc-ldflags: Likewise.
29525         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
29527 2012-05-01  Bruno Haible  <bruno@clisp.org>
29529         gnulib-tool: Remove transitional code.
29530         * gnulib-tool: Don't warn about --import with 0 arguments any more.
29531         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
29533 2012-05-01  Bruno Haible  <bruno@clisp.org>
29535         getcwd: Fix misindentation.
29536         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
29538 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
29540         exclude: process exclude and include directives in order
29541         This restores the pre-2009 behavior, and is part of a fix of a
29542         grep bug reported by Quentin Arce in
29543         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
29544         * lib/exclude.c (struct exclude): Remove 'tail' member.
29545         (new_exclude_segment): Prepend the new segment instead of appending.
29546         Return void, since that's now more convenient.
29547         (file_pattern_matches): Renamed from excluded_file_pattern_p.
29548         (file_name_matches): Renamed from excluded_file_name_p.
29549         (file_pattern_matches, file_name_matches):
29550         Return true if the pattern matches, not if it excludes.
29551         All callers changed.
29552         (excluded_file_name): Process the list in reverse order;
29553         since the list is now reversed this restores the pre-2009 behavior.
29554         (add_exclude): Adjust to new reversed-order list.  Use local var
29555         rather than macro, for clarity.
29556         * tests/test-exclude7.sh: Adjust to corrected behavior.
29558         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
29559         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
29560         it's not possible here.  Handle the case of \ at end of pattern
29561         without dumping core.
29562         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
29564         _Noreturn: future-proof non-GNU and non-MSVC compilers
29565         * build-aux/snippet/_Noreturn.h (_Noreturn):
29566         * m4/gnulib-common.m4 (gl_COMMON_BODY):
29567         Do not define _Noreturn if __STDC_VERSION__ indicates this is
29568         C11 or later.  This is more likely to work with random future C
29569         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
29570         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
29572         exclude: handle wildcards with FNM_EXTMATCH
29573         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
29574         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
29575         comment that "has wildcards" really means "has or may have
29576         wildcards".  Simplify by avoiding the need to call strcspn.
29578 2012-04-29  Bruno Haible  <bruno@clisp.org>
29580         gnulib-tool: Fix list of authors.
29581         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
29583 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
29585         bootstrap: support Automake-NG in $buildreq
29586         * bootstrap (check_versions): Handle automake and aclocal from
29587         Automake-NG specially.  They can be specified as respectively
29588         the "automake-ng" and "aclocal-ng" requirements.
29590 2012-04-25  Eric Blake  <eblake@redhat.com>
29592         bootstrap: only force latest Makefile.in.in for gettext module
29593         * build-aux/bootstrap (with_gettext): Only install latest
29594         Makefile.in.in for projects requesting bleeding edge gettext.
29596 2012-04-22  Bruno Haible  <bruno@clisp.org>
29598         doc: Mention reason for replacement on glibc/Linux systems.
29599         * doc/posix-functions/dprintf.texi: Mention the problem with special
29600         'long double' values.
29601         * doc/posix-functions/fprintf.texi: Likewise.
29602         * doc/posix-functions/printf.texi: Likewise.
29603         * doc/posix-functions/snprintf.texi: Likewise.
29604         * doc/posix-functions/sprintf.texi: Likewise.
29605         * doc/posix-functions/vdprintf.texi: Likewise.
29606         * doc/posix-functions/vfprintf.texi: Likewise.
29607         * doc/posix-functions/vprintf.texi: Likewise.
29608         * doc/posix-functions/vsnprintf.texi: Likewise.
29609         * doc/posix-functions/vsprintf.texi: Likewise.
29610         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
29611         platforms with F_DUPFD_CLOEXEC problems.
29612         * doc/posix-functions/glob.texi: Mention which platforms are affected
29613         by the problem with symbolic links.
29614         * doc/posix-functions/linkat.texi: Mention the problem with
29615         AT_SYMLINK_FOLLOW on Linux.
29617 2012-04-22  Bruno Haible  <bruno@clisp.org>
29619         pwrite: Don't replace on all platforms.
29620         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
29622 2012-04-22  Bruno Haible  <bruno@clisp.org>
29624         rint* tests: Avoid gcc warnings.
29625         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
29626         * tests/test-rintf.c (INFINITY, NAN): Likewise.
29627         * tests/test-rintl.c (INFINITY, NAN): Likewise.
29629 2012-04-21  Bruno Haible  <bruno@clisp.org>
29631         users.txt: Update.
29632         * users.txt: Add freedink, wdiff. Update URLs for projects that have
29633         switched from CVS to git, bzr, or svn.
29635 2012-04-21  Bruno Haible  <bruno@clisp.org>
29637         Large File Support for native Windows platforms.
29639         * m4/largefile.m4 (gl_LARGEFILE): New macro.
29640         * modules/largefile (configure.ac): Require gl_LARGEFILE.
29642         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
29643         type.
29644         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
29645         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
29646         * doc/posix-headers/sys_types.texi: Mention the effect of the
29647         'largefile' module.
29649         * lib/fcntl.in.h: Add comments about off_t.
29650         * modules/fcntl-h (Depends-on): Add sys_types.
29652         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
29653         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
29654         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
29655         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
29656         * modules/unistd (Depends-on): Add sys_types.
29657         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
29659         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
29660         instead of lseek.
29661         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
29662         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
29663         * modules/lseek (Depends-on): Add sys_types.
29665         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
29666         msvc-nothrow.h.
29667         (SetFileSize): New function.
29668         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
29669         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
29670         if Large File Support is requested.
29671         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
29672         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
29674         * lib/stdio.in.h: Add comments about off_t.
29675         * modules/stdio (Depends-on): Add sys_types.
29677         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
29678         instead of ftello.
29679         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
29680         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
29681         (gl_PREREQ_FTELLO): New macro.
29682         * modules/ftello (Depends-on): Add sys_types.
29683         (configure.ac): Incoke gl_PREREQ_FTELLO.
29685         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
29686         instead of fseeko.
29687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
29688         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
29689         (gl_PREREQ_FSEEKO): New macro.
29690         * modules/fseeko (Depends-on): Add sys_types.
29691         (configure.ac): Invoke gl_PREREQ_FSEEKO.
29693         * lib/sys_stat.in.h: Add comments about off_t.
29694         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
29695         64-bit integer for st_size in 'struct stat'.
29696         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
29697         Define _GL_WINDOWS_64_BIT_ST_SIZE.
29698         * modules/sys_stat (Depends-on): Add sys_types.
29699         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
29701         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
29702         instead of stat or _stat.
29704         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
29705         'struct _stati64' instead of fstat and 'struct stat'.
29706         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
29707         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
29709         Reported by Ray Satiro <raysatiro@yahoo.com>.
29711 2012-04-19  Eric Blake  <eblake@redhat.com>
29713         bootstrap: accommodate older libtool
29714         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
29715         Reported by Daniel P. Berrange.
29717 2012-04-19  Jim Meyering  <meyering@redhat.com>
29719         announce-gen: avoid failure due to lack of Digest::SHA1
29720         Even with the preferred Digest::SHA available, this script
29721         would fail when the backup module, Digest::SHA1, was not installed.
29722         * build-aux/announce-gen: Quote the conditional use of "use".
29723         Reported by Reuben Thomas in:
29724         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
29726         bootstrap: don't let a user's CDPATH setting affect this script
29727         When CDPATH is set, cd will sometimes generate output.
29728         When "cd" is run in a subshell whose output matters, that
29729         surprising-to-some output can cause malfunction.
29730         Unsetting CDPATH turns off this shell "feature."
29731         * build-aux/bootstrap (CDPATH): Unset.
29732         Reported by Reuben Thomas in:
29733         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
29734         and inspired by his patch here:
29735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
29737 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
29738         and Jim Meyering  <meyering@redhat.com>
29740         maint.mk: catch "see @xref{}" and similar
29741         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
29742         prohibit "See also @xref{", "Also see @pxref{", and similar.
29744 2012-04-16  Jim Meyering  <meyering@redhat.com>
29746         bootstrap: really use gnulib's po/Makefile.in.in
29747         * build-aux/bootstrap: Correct the source file name in previous change.
29748         Reported by Akim Demaille.
29750         configmake: correct minor inconsistency in Makefile rule
29751         * modules/configmake (Makefile.am): All other rules like this one
29752         run the final "mv -f ..." in the same backslash-continued command
29753         as the one that does everything else.  This one put the mv -f ...
29754         command on a separate, non-backslash-continued line.
29755         Make it like the others.
29757         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
29758         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
29759         the one from gettext.  Reported by Akim Demaille.
29761 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
29763         Fix recursion of install-* into po directories.
29764         Bison's install-pdf bug reported by Hans Aberg at
29765         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
29766         * build-aux/po/Makefile.in.in (install-dvi, install-html)
29767         (install-info, install-pdf, install-ps): New targets.
29769 2012-04-16  Jim Meyering  <meyering@redhat.com>
29771         maint: avoid spurious "make sc_maint" failure
29772         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
29773         exempt all *.class file names, for lib/javaversion.class.
29775 2012-04-15  Bruno Haible  <bruno@clisp.org>
29777         lseek: Make configure test independent of environment.
29778         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
29779         Windows, we know that lseek() on pipes is broken; skip the runtime
29780         test.
29782 2012-04-14  Bruno Haible  <bruno@clisp.org>
29784         stat: Bypass buggy override in mingw64.
29785         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
29786         * lib/stat.c (stat) [mingw64]: Define to _stat.
29787         * doc/posix-functions/stat.texi: Mention mingw64 bug.
29789 2012-04-14  Bruno Haible  <bruno@clisp.org>
29791         pathmax: Fix compilation error on MSVC 9.
29792         * modules/pathmax (Depends-on): Add unistd.
29794 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
29796         README: document pointer comparison assumption
29797         * README (Portability guidelines): Document assumption about
29798         pointer comparisons, in response to a recent bug-gnulib comment by
29799         Jeffrey Kegler.
29801 2012-04-12  Bruno Haible  <bruno@clisp.org>
29803         Tests for module 'getrusage'.
29804         * modules/getrusage-tests: New file.
29805         * tests/test-getrusage.c: New file.
29807         New module 'getrusage'.
29808         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
29809         warn-on-use.h.
29810         (getrusage): New declaration.
29811         * lib/getrusage.c: New file.
29812         * m4/getrusage.m4: New file.
29813         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
29814         is declared.
29815         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
29816         HAVE_GETRUSAGE.
29817         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
29818         snippet/c++defs, snippet/warn-on-use.
29819         (Makefile.am): Update generation of sys/resource.h. Substitute
29820         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
29821         * modules/getrusage: New file.
29822         * doc/posix-functions/getrusage.texi: Mention the new module.
29824 2012-04-12  Bruno Haible  <bruno@clisp.org>
29826         Tests for module 'sys_resource'.
29827         * modules/sys_resource-tests: New file.
29828         * tests/test-sys_resource.c: New file.
29830         New module 'sys_resource'.
29831         * lib/sys_resource.in.h: New file.
29832         * m4/sys_resource_h.m4: New file.
29833         * modules/sys_resource: New file.
29834         * doc/posix-headers/sys_resource.texi: Mention the new module.
29836 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
29838         ioctl: Fix compilation error on mingw.
29839         * lib/ioctl.c: Include <windows.h>.
29840         Also reported by Ray Satiro <raysatiro@yahoo.com>.
29842 2012-04-04  Jim Meyering  <meyering@redhat.com>
29844         regex: correct #pragma guard expression
29845         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
29846         not 4.3.  Correct its cpp guard expression.
29848 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
29850         regex: remove unnecessary type punning
29851         Problem reported by Vladimir Serbinenko in
29852         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
29853         * lib/regex.h (struct re_pattern_buffer): Change the type of
29854         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
29855         Fix comment to match code.
29856         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
29857         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
29858         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
29859         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
29860         (set_regs):
29861         Omit no-longer-necessary casts.
29863 2012-04-03  Bruno Haible  <bruno@clisp.org>
29865         Tests for module 'ilogbl'.
29866         * modules/ilogbl-tests: New file.
29867         * tests/test-ilogbl.c: New file.
29869         New module 'ilogbl'.
29870         * lib/math.in.h (ilogbl): New declaration.
29871         * lib/ilogbl.c: New file.
29872         * m4/ilogbl.m4: New file.
29873         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
29874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
29875         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
29876         Split sed invocation, to avoid the limit of 100 substitutions of
29877         HP-UX 'sed'.
29878         * modules/ilogbl: New file.
29879         * tests/test-math-c++.cc: Check the declaration of ilogbl.
29880         * doc/posix-functions/ilogbl.texi: Mention the new module.
29882 2012-04-03  Bruno Haible  <bruno@clisp.org>
29884         Tests for module 'ilogbf'.
29885         * modules/ilogbf-tests: New file.
29886         * tests/test-ilogbf.c: New file.
29888         New module 'ilogbf'.
29889         * lib/math.in.h (ilogbf): New declaration.
29890         * lib/ilogbf.c: New file.
29891         * m4/ilogbf.m4: New file.
29892         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
29893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
29894         REPLACE_ILOGBF.
29895         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
29896         REPLACE_ILOGBF.
29897         * modules/ilogbf: New file.
29898         * tests/test-math-c++.cc: Check the declaration of ilogbf.
29899         * doc/posix-functions/ilogbf.texi: Mention the new module.
29901 2012-04-03  Bruno Haible  <bruno@clisp.org>
29903         Tests for module 'ilogb'.
29904         * modules/ilogb-tests: New file.
29905         * tests/test-ilogb.c: New file.
29906         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
29907         tests/test-logb-ieee.h.
29909         New module 'ilogb'.
29910         * lib/math.in.h (ilogb): New declaration.
29911         * lib/ilogb.c: New file.
29912         * m4/ilogb.m4: New file.
29913         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
29914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
29915         REPLACE_ILOGB.
29916         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
29917         REPLACE_ILOGB.
29918         * modules/ilogb: New file.
29919         * tests/test-math-c++.cc: Check the declaration of ilogb.
29920         * doc/posix-functions/ilogb.texi: Mention the new module.
29922 2012-04-03  Bruno Haible  <bruno@clisp.org>
29924         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
29925         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
29926         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
29927         (main): Check their values.
29928         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
29929         problem.
29931 2012-04-03  Bruno Haible  <bruno@clisp.org>
29933         Tests for module 'logbl-ieee'.
29934         * modules/logbl-ieee-tests: New file.
29935         * tests/test-logbl-ieee.c: New file.
29937         New module 'logbl-ieee'.
29938         * modules/logbl-ieee: New file.
29940         Tests for module 'logb-ieee'.
29941         * modules/logb-ieee-tests: New file.
29942         * tests/test-logb-ieee.c: New file.
29944         New module 'logb-ieee'.
29945         * modules/logb-ieee: New file.
29947         Tests for module 'logbf-ieee'.
29948         * modules/logbf-ieee-tests: New file.
29949         * tests/test-logbf-ieee.c: New file.
29950         * tests/test-logb-ieee.h: New file.
29952         New module 'logbf-ieee'.
29953         * modules/logbf-ieee: New file.
29955 2012-04-03  Bruno Haible  <bruno@clisp.org>
29957         Tests for module 'logbl'.
29958         * modules/logbl-tests: New file.
29959         * tests/test-logbl.c: New file.
29961         New module 'logbl'.
29962         * lib/math.in.h (logbl): New declaration.
29963         * lib/logbl.c: New file.
29964         * m4/logbl.m4: New file.
29965         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
29966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
29967         REPLACE_LOGBL.
29968         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
29969         REPLACE_LOGBL.
29970         * modules/logbl: New file.
29971         * tests/test-math-c++.cc: Check the declaration of logbl.
29972         * doc/posix-functions/logbl.texi: Mention the new module.
29974 2012-04-02  Bruno Haible  <bruno@clisp.org>
29976         Tests for module 'logbf'.
29977         * modules/logbf-tests: New file.
29978         * tests/test-logbf.c: New file.
29980         New module 'logbf'.
29981         * lib/math.in.h (logbf): New declaration.
29982         * lib/logbf.c: New file.
29983         * m4/logbf.m4: New file.
29984         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
29985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
29986         REPLACE_LOGBF.
29987         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
29988         REPLACE_LOGBF.
29989         * modules/logbf: New file.
29990         * tests/test-math-c++.cc: Check the declaration of logbf.
29991         * doc/posix-functions/logbf.texi: Mention the new module.
29993 2012-04-02  Bruno Haible  <bruno@clisp.org>
29995         logb tests: More tests.
29996         * tests/test-logb.h: New file, based on tests/test-logb.c and
29997         tests/test-frexp.h.
29998         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
29999         (main): Just invoke test_function.
30000         * modules/logb-tests (Files): Add tests/test-logb.h,
30001         tests/minus-zero.h, tests/randomd.c.
30002         (Makefile.am): Add randomd.c to test_logb_SOURCES.
30004         logb: Provide replacement and workarounds.
30005         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
30006         is 1.
30007         * lib/logb.c: New file.
30008         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
30009         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
30010         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
30011         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
30012         * modules/logb (Files): Add lib/logb.c.
30013         (Depends-on): Add isfinite, frexp, isnand.
30014         (configure.ac): Compile the replacement code logb.c if needed.
30015         * tests/test-math-c++.cc: Check the declaration of logb.
30016         * doc/posix-functions/logb.texi: Mention the replacement and the bug
30017         with subnormal numbers.
30019 2012-04-02  Bruno Haible  <bruno@clisp.org>
30021         log10* tests: Speed up.
30022         * tests/test-log10.h (test_function): Reduce amount of random numbers
30023         to test.
30025 2012-04-01  Bruno Haible  <bruno@clisp.org>
30027         logf-ieee: Fix test whether logf works.
30028         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
30030 2012-04-01  Bruno Haible  <bruno@clisp.org>
30032         log10l: Work around log10l-ieee test failure on IRIX 6.5.
30033         * lib/log10l.c: Include <float.h>
30034         (log10l): On IRIX, normalize the +Infinity value.
30035         * modules/log10l (Depends-on): Add 'float'.
30036         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
30037         +Infinity.
30039         log10f-ieee: Work around test failure on NetBSD 5.1.
30040         * m4/log10f-ieee.m4: New file.
30041         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
30042         test whether log10f works with a negative argument. Replace it if not.
30043         * lib/log10f.c (log10f): For negative arguments, return NaN.
30044         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
30045         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
30046         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
30048         log10f-ieee: Work around test failure on Solaris 9.
30049         * modules/log10f-ieee (Depends-on): Add log10-ieee.
30050         (configure.ac): Require gl_FUNC_LOG10F.
30052         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
30053         * m4/log10-ieee.m4: New file.
30054         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
30055         whether log10 works with a negative argument. Replace it if not.
30056         * lib/log10.c (log10): For negative arguments, return NaN.
30057         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
30058         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
30059         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
30061         Tests for module 'log10l-ieee'.
30062         * modules/log10l-ieee-tests: New file.
30063         * tests/test-log10l-ieee.c: New file.
30065         New module 'log10l-ieee'.
30066         * modules/log10l-ieee: New file.
30068         Tests for module 'log10-ieee'.
30069         * modules/log10-ieee-tests: New file.
30070         * tests/test-log10-ieee.c: New file.
30072         New module 'log10-ieee'.
30073         * modules/log10-ieee: New file.
30075         Tests for module 'log10f-ieee'.
30076         * modules/log10f-ieee-tests: New file.
30077         * tests/test-log10f-ieee.c: New file.
30078         * tests/test-log10-ieee.h: New file.
30080         New module 'log10f-ieee'.
30081         * modules/log10f-ieee: New file.
30083 2012-04-01  Bruno Haible  <bruno@clisp.org>
30085         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
30086         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
30087         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
30088         workaround.
30089         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
30090         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
30091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
30092         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
30093         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
30094         (Depends-on): Update conditions.
30095         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
30096         IRIX 6.5, OSF/1 5.1 problems.
30098 2012-04-01  Bruno Haible  <bruno@clisp.org>
30100         log10f: Work around OSF/1 5.1 bug.
30101         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
30102         * lib/log10f.c (log10f): If logf exists, use it and provide just the
30103         workaround.
30104         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
30105         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
30106         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
30107         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
30108         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
30109         (Depends-on): Update conditions.
30110         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
30112 2012-04-01  Bruno Haible  <bruno@clisp.org>
30114         log10: Work around OSF/1 5.1 bug.
30115         * lib/math.in.h (log10): New declaration.
30116         * lib/log10.c: New file.
30117         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
30118         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
30119         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
30120         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
30121         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
30122         * modules/log10 (Files): Add lib/log10.c.
30123         (Depends-on): Add math.
30124         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
30125         * tests/test-math-c++.cc: Check the declaration of log10.
30126         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
30128 2012-03-31  Bruno Haible  <bruno@clisp.org>
30130         log10l tests: More tests.
30131         * modules/log10l-tests (Files): Add tests/test-log10l.h,
30132         tests/minus-zero.h, tests/randoml.c.
30133         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
30134         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
30135         (main): Invoke test_function.
30137         log10f tests: More tests.
30138         * modules/log10f-tests (Files): Add tests/test-log10.h,
30139         tests/minus-zero.h, tests/randomf.c.
30140         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
30141         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
30142         (main): Invoke test_function.
30144         log10 tests: More tests.
30145         * tests/test-log10.h: New file.
30146         * modules/log10-tests (Files): Add tests/test-log10.h,
30147         tests/minus-zero.h, tests/randomd.c.
30148         (Makefile.am): Add randomd.c to test_log10_SOURCES.
30149         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
30150         (main): Invoke test_function.
30152 2012-03-31  Simon Josefsson  <simon@josefsson.org>
30154         fflush: Fix syntax error.
30155         * lib/fflush.c: Include unused-parameter.h, needed for
30156         _GL_UNUSED_PARAMETER.
30157         * modules/fflush (Depends-on): Add snippet/unused-parameter.
30159 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
30161         regex: pacify GCC when compiling GRUB
30162         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
30163         a diagnostic.  Reported by Vladimir Serbinenko in
30164         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
30166 2012-03-29  Eric Blake  <eblake@redhat.com>
30168         stdio: don't assume gets any more
30169         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
30170         support.
30171         * modules/stdio (Makefile.am): Likewise.
30172         * lib/stdio-read.c (gets): Likewise.
30173         * tests/test-stdio-c++.cc: Likewise.
30174         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
30175         * lib/stdio.in.h (gets): Make warning occur in more places.
30176         * doc/posix-functions/gets.texi (gets): Update documentation.
30177         Reported by Christer Solskogen.
30179         maint.mk: fix syntax checks without exclusions
30180         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
30181         Reported by Daniel P. Berrange.
30183         strerror_r: avoid compiler warning
30184         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
30185         level.
30187         fflush: avoid compiler warning
30188         * lib/fflush.c (update_fpos_cache): Mark variables that are
30189         potentially unused.
30191 2012-03-25  Bruno Haible  <bruno@clisp.org>
30193         Tests for module 'localeconv'.
30194         * modules/localeconv-tests: New file.
30195         * tests/test-localeconv.c: New file.
30197         New module 'localeconv'.
30198         * lib/locale.in.h (localeconv): New declaration.
30199         * lib/localeconv.c: New file.
30200         * m4/localeconv.m4: New file.
30201         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
30202         REPLACE_LOCALECONV.
30203         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
30204         REPLACE_LOCALECONV.
30205         * modules/localeconv: New file.
30206         * modules/nl_langinfo (Depends-on): Add localeconv.
30207         * modules/human (Depends-on): Likewise.
30208         * doc/posix-functions/localeconv.texi: Mention the new module.
30210 2012-03-25  Bruno Haible  <bruno@clisp.org>
30212         locale: Provide a complete 'struct lconv'.
30213         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
30214         'struct lconv' does not contain int_p_cs_precedes.
30215         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
30216         * doc/posix-headers/locale.texi: Update.
30218         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
30219         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
30220         * doc/posix-headers/locale.texi: Update.
30222         locale: Provide a working 'struct lconv'.
30223         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
30224         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
30225         'struct lconv' does not even contain decimal_point.
30226         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
30227         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
30228         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
30229         * doc/posix-headers/locale.texi: Mention the problems with
30230         'struct lconv'.
30231         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
30233 2012-03-24  Bruno Haible  <bruno@clisp.org>
30235         Enable common subexpression optimization in GCC.
30236         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
30237         macros.
30238         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
30239         GCC attribute 'const'.
30240         (uc_locale_language): Declare with GCC attribute 'pure'.
30241         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
30242         with GCC attribute 'const'.
30243         * lib/unictype.in.h (uc_is_general_category_withtable,
30244         uc_combining_class, uc_combining_class_name,
30245         uc_combining_class_long_name, uc_bidi_class_name,
30246         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
30247         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
30248         uc_decimal_value, uc_digit_value, uc_numeric_value,
30249         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
30250         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
30251         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
30252         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
30253         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
30254         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
30255         Declare with GCC attribute 'const'.
30256         (uc_general_category_name, uc_general_category_long_name,
30257         uc_general_category_byname, uc_general_category,
30258         uc_is_general_category, uc_combining_class_byname,
30259         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
30260         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
30261         Declare with GCC attribute 'pure'.
30262         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
30263         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
30264         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
30265         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
30266         with GCC attribute 'pure'.
30267         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
30268         'const'.
30269         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
30270         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
30271         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
30272         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
30273         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
30274         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
30275         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
30276         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
30277         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
30278         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
30279         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
30280         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
30281         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
30282         GCC attribute 'pure'.
30283         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
30284         'const'.
30285         * lib/uniwidth.in.h (uc_width): Simplify declaration.
30286         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
30287         u32_strwidth): Declare with GCC attribute 'pure'.
30289         Enable common subexpression optimization in GCC.
30290         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30291         (alphasort): Declare with GCC attribute 'pure'.
30292         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30293         (atoll): Declare with GCC attribute 'pure'.
30294         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
30295         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
30296         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
30297         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
30298         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
30299         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
30300         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
30302 2012-03-24  Bruno Haible  <bruno@clisp.org>
30304         gnulib-tool: Avoid unintended error output from 'cmp'.
30305         * gnulib-tool (func_add_file, func_update_file, func_import): Use
30306         "cmp -s", not "cmp > /dev/null".
30308 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
30310         gnulib-tool: fix imprecise comments w.r.t. an automake bug
30312         It's not just Automake versions < 1.9b that creates an empty
30313         pkgdatadir at installation time if pkgdata_DATA is specified
30314         to empty; modern automake versions do this as well, at least
30315         until automake 1.11.4 (not yet released at the moment of writing,
30316         but soon to appear).  That behaviour was generally considered a
30317         feature rather than a bug, at least until this discussion:
30318         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
30320         See also automake bugs #10997 and #11030.
30322         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
30323         reference to relevant automake bug numbers.
30324         (func_emit_tests_Makefile_am): Likewise.
30326 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
30328         announce-gen: use Digest::SHA when possible
30329         * build-aux/announce-gen: Use Digest::SHA when possible, falling
30330         back to Digest::SHA1 if necessary.
30332 2012-03-20  Jim Meyering  <meyering@redhat.com>
30334         tests: avoid gcc warnings about argv vs. const initializers
30335         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
30336         warnings about discarding 'const' qualifier from pointer target type.
30337         * tests/test-posix_spawn2.c (main): Likewise.
30339 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
30341         README-release: simplify slightly
30342         * top/README-release: Run "git checkout master" only once.
30344 2012-03-15  Mark Wielaard  <mark@klomp.org>
30346         git-merge-changelog: add specific example on how to use with hg.
30347         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
30349 2012-03-18  Mark Wielaard  <mark@klomp.org>
30351         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
30353 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
30355         git-version-gen: don't let "prefix" envvar cause trouble
30356         * build-aux/git-version-gen (prefix): Initialize properly,
30357         so as not to use a value specified via the environment.
30358         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
30360 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30362         regex: diagnose too-large repeat counts in EREs
30363         Previously, the code did not diagnose the too-large repeat count
30364         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
30365         as if it were 'b\{1000000000}', which is unexpected.
30366         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
30367         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
30368         is a reasonable one for this problem.  Another option would be to
30369         create a new REG_OVERFLOW error for repeat counts that are too large.
30370         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
30371         count is too large, so that the caller can distinguish the two cases.
30372         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
30373         "Too large" return code, and that repeat counts are one example of this.
30375 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
30377         doc: some glibc x32 integer width issues
30378         * doc/posix-headers/sys_types.texi (sys/types.h):
30379         * doc/posix-headers/time.texi (time.h):
30380         Mention that glibc x32 does not conform to POSIX in a couple of
30381         areas related to integer widths.
30383 2012-03-15  Bruno Haible  <bruno@clisp.org>
30385         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
30386         * lib/fma.c (VOLATILE): New macro.
30387         (FUNC): Use it to work around a GCC compiler bug.
30389 2012-03-13  Bruno Haible  <bruno@clisp.org>
30391         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30392         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
30393         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
30394         REPLACE_HYPOTL to 1.
30395         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
30397 2012-03-13  Bruno Haible  <bruno@clisp.org>
30399         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30400         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
30401         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
30402         REPLACE_REMAINDERL to 1.
30403         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
30404         bug.
30406 2012-03-13  Bruno Haible  <bruno@clisp.org>
30408         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30409         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
30410         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
30411         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
30412         too big rounding errors.
30413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
30414         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
30415         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
30416         (Depends-on): Update conditions.
30417         * tests/test-sqrtl.c (my_ldexpl): New function.
30418         (main): Add test of a particular value.
30419         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
30421 2012-03-13  Pádraig Brady  <P@draigBrady.com>
30423         doc: Update timer_* platform portability notes.
30424         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
30425         that always return ENOSYS.
30426         * doc/posix-functions/timer_delete.texi: Likewise.
30427         * doc/posix-functions/timer_gettime.texi: Likewise.
30428         * doc/posix-functions/timer_settime.texi: Likewise.
30430 2012-03-13  Bruno Haible  <bruno@clisp.org>
30432         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
30433         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
30434         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
30435         REPLACE_CBRTL to 1.
30436         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
30438 2012-03-13  Bruno Haible  <bruno@clisp.org>
30440         remainderl: Avoid compilation error on AIX >= 5.2.
30441         * lib/math.in.h (remainderl): Undefine macro from the system header.
30443 2012-03-13  Bruno Haible  <bruno@clisp.org>
30445         Avoid compilation errors with MSVC option -fp:strict.
30446         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
30447         * lib/cbrtf.c: Likewise.
30448         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30450 2012-03-12  Bruno Haible  <bruno@clisp.org>
30452         uninorm: Don't crash in out-of-memory conditions.
30453         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
30454         gracefully.
30455         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
30456         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
30458 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
30460         quote: fix syntax-check
30461         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
30462         also exports quote_quoting_options.
30464 2012-03-12  Simon Josefsson  <simon@josefsson.org>
30466         Collapse list of copyright years to ranges.  See
30467         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
30468         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
30469         build-aux/csharpexec.sh.in, build-aux/gnupload,
30470         build-aux/install-reloc, build-aux/javacomp.sh.in,
30471         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
30472         build-aux/move-if-change, build-aux/reloc-ldflags,
30473         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
30475 2012-03-11  Bruno Haible  <bruno@clisp.org>
30477         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
30478         * m4/log2f-ieee.m4: New file.
30479         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
30480         whether log2f works with a minus zero argument. Replace it if not.
30481         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
30482         (Depends-on): Add log2-ieee.
30483         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
30484         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
30486         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
30487         * m4/log2-ieee.m4: New file.
30488         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
30489         whether log2 works with a minus zero argument. Replace it if not.
30490         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
30491         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
30492         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
30494         Tests for module 'log2l-ieee'.
30495         * modules/log2l-ieee-tests: New file.
30496         * tests/test-log2l-ieee.c: New file.
30498         New module 'log2l-ieee'.
30499         * modules/log2l-ieee: New file.
30501         Tests for module 'log2-ieee'.
30502         * modules/log2-ieee-tests: New file.
30503         * tests/test-log2-ieee.c: New file.
30505         New module 'log2-ieee'.
30506         * modules/log2-ieee: New file.
30508         Tests for module 'log2f-ieee'.
30509         * modules/log2f-ieee-tests: New file.
30510         * tests/test-log2f-ieee.c: New file.
30511         * tests/test-log2-ieee.h: New file.
30513         New module 'log2f-ieee'.
30514         * modules/log2f-ieee: New file.
30516 2012-03-11  Bruno Haible  <bruno@clisp.org>
30518         Tests for module 'log2l'.
30519         * modules/log2l-tests: New file.
30520         * tests/test-log2l.c: New file.
30522         New module 'log2l'.
30523         * lib/math.in.h (log2l): New declaration.
30524         * lib/log2l.c: New file.
30525         * m4/log2l.m4: New file.
30526         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
30527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
30528         REPLACE_LOG2L.
30529         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
30530         REPLACE_LOG2L.
30531         * modules/log2l: New file.
30532         * tests/test-math-c++.cc: Check the declaration of log2l.
30533         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
30534         and OSF/1 problems.
30536 2012-03-11  Bruno Haible  <bruno@clisp.org>
30538         Tests for module 'log2f'.
30539         * modules/log2f-tests: New file.
30540         * tests/test-log2f.c: New file.
30542         New module 'log2f'.
30543         * lib/math.in.h (log2f): New declaration.
30544         * lib/log2f.c: New file.
30545         * m4/log2f.m4: New file.
30546         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
30547         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
30548         REPLACE_LOG2F.
30549         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
30550         REPLACE_LOG2F.
30551         * modules/log2f: New file.
30552         * tests/test-math-c++.cc: Check the declaration of log2f.
30553         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
30554         and OSF/1 and Cygwin problems.
30556 2012-03-11  Bruno Haible  <bruno@clisp.org>
30558         Tests for module 'log2'.
30559         * modules/log2-tests: New file.
30560         * tests/test-log2.c: New file.
30561         * tests/test-log2.h: New file.
30563         New module 'log2'.
30564         * lib/math.in.h (log2): New declaration.
30565         * lib/log2.c: New file.
30566         * m4/log2.m4: New file.
30567         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
30568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
30569         REPLACE_LOG2.
30570         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
30571         REPLACE_LOG2.
30572         * modules/log2: New file.
30573         * tests/test-math-c++.cc: Check the declaration of log2.
30574         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
30575         and OSF/1 and Cygwin problems.
30577 2012-03-11  Bruno Haible  <bruno@clisp.org>
30579         exp2* tests: More tests.
30580         * tests/test-exp2.h (test_function): Test all integral arguments that
30581         don't need to overflow or denormalized numbers.
30582         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
30583         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
30584         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
30586 2012-03-10  Bruno Haible  <bruno@clisp.org>
30588         log1pl-ieee: Work around test failure on AIX 7.1.
30589         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
30591         log1pl-ieee: Work around test failure on IRIX 6.5.
30592         * m4/log1pl-ieee.m4: New file.
30593         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
30594         test whether log1pl works with a minus zero argument. Replace it if
30595         not.
30596         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
30597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
30598         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
30599         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
30600         (Depends-on): Update conditions.
30601         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
30602         m4/signbit.m4.
30603         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
30604         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
30606         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
30607         * m4/log1pf-ieee.m4: New file.
30608         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
30609         test whether log1pf works with a minus zero argument. Replace it if
30610         not.
30611         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
30612         m4/signbit.m4.
30613         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
30614         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
30616         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
30617         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
30618         (configure.ac): Require gl_FUNC_LOG1PF.
30620         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
30621         * m4/log1p-ieee.m4: New file.
30622         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
30623         whether log1p works with a minus zero argument. Replace it if not.
30624         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
30625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
30626         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
30627         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
30628         (Depends-on): Update conditions.
30629         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
30630         m4/signbit.m4.
30631         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
30632         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
30634         Tests for module 'log1pl-ieee'.
30635         * modules/log1pl-ieee-tests: New file.
30636         * tests/test-log1pl-ieee.c: New file.
30638         New module 'log1pl-ieee'.
30639         * modules/log1pl-ieee: New file.
30641         Tests for module 'log1p-ieee'.
30642         * modules/log1p-ieee-tests: New file.
30643         * tests/test-log1p-ieee.c: New file.
30645         New module 'log1p-ieee'.
30646         * modules/log1p-ieee: New file.
30648         Tests for module 'log1pf-ieee'.
30649         * modules/log1pf-ieee-tests: New file.
30650         * tests/test-log1pf-ieee.c: New file.
30651         * tests/test-log1p-ieee.h: New file.
30653         New module 'log1pf-ieee'.
30654         * modules/log1pf-ieee: New file.
30656 2012-03-10  Bruno Haible  <bruno@clisp.org>
30658         Tests for module 'log1pl'.
30659         * modules/log1pl-tests: New file.
30660         * tests/test-log1pl.c: New file.
30662         New module 'log1pl'.
30663         * lib/math.in.h (log1pl): New declaration.
30664         * lib/log1pl.c: New file.
30665         * m4/log1pl.m4: New file.
30666         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
30667         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
30668         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
30669         * modules/log1pl: New file.
30670         * tests/test-math-c++.cc: Check the declaration of log1pl.
30671         * doc/posix-functions/log1pl.texi: Mention the new module.
30673 2012-03-10  Bruno Haible  <bruno@clisp.org>
30675         Tests for module 'log1pf'.
30676         * modules/log1pf-tests: New file.
30677         * tests/test-log1pf.c: New file.
30679         New module 'log1pf'.
30680         * lib/math.in.h (log1pf): New declaration.
30681         * lib/log1pf.c: New file.
30682         * m4/log1pf.m4: New file.
30683         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
30684         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
30685         REPLACE_LOG1PF.
30686         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
30687         REPLACE_LOG1PF.
30688         * modules/log1pf: New file.
30689         * tests/test-math-c++.cc: Check the declaration of log1pf.
30690         * doc/posix-functions/log1pf.texi: Mention the new module.
30692 2012-03-10  Bruno Haible  <bruno@clisp.org>
30694         log1p tests: More tests.
30695         * tests/test-log1p.h: New file.
30696         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
30697         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
30698         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
30699         (main): Invoke test_function.
30701         log1p: Provide replacement for Minix and MSVC.
30702         * lib/math.in.h (log1p): New declaration.
30703         * lib/log1p.c: New file.
30704         * m4/log1p.m4: New file.
30705         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
30706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
30707         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
30708         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
30709         (Depends-on): Add math, isnand, log, round.
30710         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
30711         HAVE_LOG1P is 0.
30712         * tests/test-math-c++.cc: Check the declaration of log1p.
30713         * doc/posix-functions/log1p.texi: Mention the replacement.
30715 2012-03-10  Bruno Haible  <bruno@clisp.org>
30717         math tests: Small simplification.
30718         * tests/test-exp.h (test_function): Use the same err_bound for
30719         'double' on platforms with sizeof (long double) == sizeof (double)
30720         than on platforms with sizeof (long double) > sizeof (double).
30721         * tests/test-exp2.h (test_function): Likewise.
30722         * tests/test-expm1.h (test_function): Likewise.
30723         * tests/test-log.h (test_function): Likewise.
30725 2012-03-10  Bruno Haible  <bruno@clisp.org>
30727         Fix some comments.
30728         * lib/expl.c: Fix an ambiguous comment.
30729         * lib/expm1.c: Likewise.
30730         * lib/expm1l.c: Likewise.
30731         * lib/exp2.c: Likewise.
30732         * lib/exp2l.c: Likewise.
30734 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
30736         regex: allow inclusion of <regex.h> before <limits.h>
30737         Without this patch, portable programs had to include <limits.h> before
30738         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
30739         I ran into this problem with a test version of GNU grep on Solaris 8.
30740         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
30741         This is done conditionally so that this change can be merged
30742         back to glibc.
30743         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
30744         using the included regex.
30746         fts: depend on fdopendir
30747         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
30748         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
30749         problem was introduced when fdopendir was split out.
30751 2012-03-10  Bruno Haible  <bruno@clisp.org>
30753         Remove unused variables.
30754         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
30755         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
30757 2012-03-10  Bruno Haible  <bruno@clisp.org>
30759         isnanf-nolibm: Fix last commit.
30760         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
30762         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
30763         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
30765 2012-03-10  Bruno Haible  <bruno@clisp.org>
30767         logf-ieee: Work around test failure on NetBSD 5.1.
30768         * m4/logf-ieee.m4: New file.
30769         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
30770         whether logf works with a negative argument. Replace it if not.
30771         * lib/logf.c (logf): For negative arguments, return NaN.
30772         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
30773         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
30774         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
30776         logf-ieee: Work around test failure on Solaris 9.
30777         * modules/logf-ieee (Depends-on): Add log-ieee.
30778         (configure.ac): Require gl_FUNC_LOGF.
30780         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
30781         * m4/log-ieee.m4: New file.
30782         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
30783         log works with a negative argument. Replace it if not.
30784         * lib/log.c (log): For negative arguments, return NaN.
30785         * modules/log-ieee (Files): Add m4/log-ieee.m4.
30786         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
30787         * doc/posix-functions/log.texi: Mention the log-ieee module.
30789         Tests for module 'logl-ieee'.
30790         * modules/logl-ieee-tests: New file.
30791         * tests/test-logl-ieee.c: New file.
30793         New module 'logl-ieee'.
30794         * modules/logl-ieee: New file.
30796         Tests for module 'log-ieee'.
30797         * modules/log-ieee-tests: New file.
30798         * tests/test-log-ieee.c: New file.
30800         New module 'log-ieee'.
30801         * modules/log-ieee: New file.
30803         Tests for module 'logf-ieee'.
30804         * modules/logf-ieee-tests: New file.
30805         * tests/test-logf-ieee.c: New file.
30806         * tests/test-log-ieee.h: New file.
30808         New module 'logf-ieee'.
30809         * modules/logf-ieee: New file.
30811 2012-03-10  Bruno Haible  <bruno@clisp.org>
30813         log: Fix bug introduced on 2012-03-09.
30814         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
30816 2012-03-10  Pádraig Brady  <P@draigBrady.com>
30818         timer-time: link explicitly with pthreads on glibc
30819         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
30820         to support static linking, when newer glibc is
30821         detected, as that contains pthread emulation of
30822         POSIX timer functions where required.
30823         * modules/timer-time: Depend on threadlib to
30824         pull in the appropriate library to link.
30826 2012-03-10  Bruno Haible  <bruno@clisp.org>
30828         log* tests: More tests.
30829         * tests/test-log.h: New file.
30830         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
30831         (main): Invoke test_function.
30832         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
30833         (main): Invoke test_function.
30834         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
30835         (main): Invoke test_function.
30836         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30837         tests/randomd.c.
30838         (Makefile.am): Add randomd.c to test_log_SOURCES.
30839         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30840         tests/randomf.c.
30841         (Makefile.am): Add randomf.c to test_logf_SOURCES.
30842         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
30843         tests/randoml.c.
30844         (Depends-on): Add 'float'.
30845         (Makefile.am): Add randoml.c to test_logl_SOURCES.
30847 2012-03-09  Bruno Haible  <bruno@clisp.org>
30849         logl: Work around OSF/1 5.1 bug.
30850         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
30851         * lib/logl.c (logl): If logl exists, use it and provide just the
30852         workaround.
30853         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
30854         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
30855         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
30856         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
30857         * modules/logl (configure.ac): Consider REPLACE_LOGL.
30858         (Depends-on): Update conditions.
30859         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
30861 2012-03-09  Bruno Haible  <bruno@clisp.org>
30863         logf: Work around OSF/1 5.1 bug.
30864         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
30865         * lib/logf.c (logf): If logf exists, use it and provide just the
30866         workaround.
30867         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
30868         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
30869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
30870         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
30871         * modules/logf (configure.ac): Consider REPLACE_LOGF.
30872         (Depends-on): Update conditions.
30873         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
30875 2012-03-09  Bruno Haible  <bruno@clisp.org>
30877         log: Work around OSF/1 5.1 bug.
30878         * lib/math.in.h (log): New declaration.
30879         * lib/log.c: New file.
30880         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
30881         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
30882         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
30883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
30884         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
30885         * modules/log (Files): Add lib/log.c.
30886         (Depends-on): Add math.
30887         (configure.ac): If REPLACE_LOG is 1, compile an override.
30888         * tests/test-math-c++.cc: Check the declaration of log.
30889         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
30891 2012-03-09  Jim Meyering  <meyering@redhat.com>
30893         readtokens.c: adjust wording in a comment
30894         * lib/readtokens.c: Insert omitted "that" in a comment.
30896 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
30898         modechange: add notations +40, 00440, etc.
30899         * lib/modechange.c (mode_compile): Support new notations
30900         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
30902 2012-03-08  Bruno Haible  <bruno@clisp.org>
30904         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
30905         * m4/exp2l-ieee.m4: New file.
30906         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
30907         test whether exp2l works with a NaN argument and with a negative
30908         infinity argument. Replace it if not.
30909         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
30910         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
30911         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
30912         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
30913         (Depends-on): Update conditions.
30914         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
30915         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
30916         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
30918         Tests for module 'exp2l-ieee'.
30919         * modules/exp2l-ieee-tests: New file.
30920         * tests/test-exp2l-ieee.c: New file.
30922         New module 'exp2l-ieee'.
30923         * modules/exp2l-ieee: New file.
30925         Tests for module 'exp2-ieee'.
30926         * modules/exp2-ieee-tests: New file.
30927         * tests/test-exp2-ieee.c: New file.
30929         New module 'exp2-ieee'.
30930         * modules/exp2-ieee: New file.
30932         Tests for module 'exp2f-ieee'.
30933         * modules/exp2f-ieee-tests: New file.
30934         * tests/test-exp2f-ieee.c: New file.
30935         * tests/test-exp2-ieee.h: New file.
30937         New module 'exp2f-ieee'.
30938         * modules/exp2f-ieee: New file.
30940 2012-03-08  Bruno Haible  <bruno@clisp.org>
30942         Tests for module 'exp2l'.
30943         * modules/exp2l-tests: New file.
30944         * tests/test-exp2l.c: New file.
30946         New module 'exp2l'.
30947         * lib/math.in.h (exp2l): New declaration.
30948         * lib/exp2l.c: New file.
30949         * lib/expl-table.c: New file, extracted from lib/expl.c.
30950         * lib/expl.c (gl_expl_table): New declaration.
30951         (expl): Remove expl_table. Update reference.
30952         * m4/exp2l.m4: New file.
30953         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
30954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
30955         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
30956         * modules/exp2l: New file.
30957         * modules/expl (Files): Add lib/expl-table.c.
30958         (configure.ac): Compile also expl-table.c.
30959         * tests/test-math-c++.cc: Check the declaration of exp2l.
30960         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
30961         problem.
30963 2012-03-08  Bruno Haible  <bruno@clisp.org>
30965         Tests for module 'exp2f'.
30966         * modules/exp2f-tests: New file.
30967         * tests/test-exp2f.c: New file.
30969         New module 'exp2f'.
30970         * lib/math.in.h (exp2f): New declaration.
30971         * lib/exp2f.c: New file.
30972         * m4/exp2f.m4: New file.
30973         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
30974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
30975         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
30976         * modules/exp2f: New file.
30977         * tests/test-math-c++.cc: Check the declaration of exp2f.
30978         * doc/posix-functions/exp2f.texi: Mention the new module and the
30979         IRIX problem.
30981 2012-03-08  Bruno Haible  <bruno@clisp.org>
30983         Tests for module 'exp2'.
30984         * modules/exp2-tests: New file.
30985         * tests/test-exp2.c: New file.
30986         * tests/test-exp2.h: New file.
30988         New module 'exp2'.
30989         * lib/math.in.h (exp2): New declaration.
30990         * lib/exp2.c: New file.
30991         * m4/exp2.m4: New file.
30992         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
30993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
30994         REPLACE_EXP2.
30995         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
30996         REPLACE_EXP2.
30997         * modules/exp2: New file.
30998         * tests/test-math-c++.cc: Check the declaration of exp2.
30999         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
31000         and OpenBSD problems.
31002 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
31004         savedir: fix comment typo
31005         * lib/savedir.c (savedirstream): Fix typo in comment.
31007 2012-03-08  Bruno Haible  <bruno@clisp.org>
31009         test-readtokens.c: use const; remove unwarranted cast
31010         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
31012 2012-03-08  Bruno Haible  <bruno@clisp.org>
31014         fmal: Avoid compilation error on AIX.
31015         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
31016         AIX 5.2..7.1.
31018 2012-03-08  Bruno Haible  <bruno@clisp.org>
31020         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
31021         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
31022         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
31023         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
31024         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
31025         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
31026         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
31028 2012-03-08  Bruno Haible  <bruno@clisp.org>
31030         remainderf: Override buggy system function on IRIX 6.5.
31031         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
31032         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
31033         when it exists.
31034         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
31036 2012-03-08  Jim Meyering  <meyering@redhat.com>
31038         test-readtokens.c: avoid const-related compilation warnings
31039         * tests/test-readtokens.c: Avoid const-related compilation warnings.
31041 2012-03-07  Jim Meyering  <meyering@redhat.com>
31042             Bruno Haible  <bruno@clisp.org>
31044         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
31045         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
31046         tests/randomd.c.
31047         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
31048         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
31049         tests/randoml.c.
31050         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
31052 2012-03-07  Bruno Haible  <bruno@clisp.org>
31054         expm1l: Avoid compilation error on AIX.
31055         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
31056         AIX 5.2..7.1.
31058 2012-03-07  Bruno Haible  <bruno@clisp.org>
31060         expm1l: Don't override undeclared system function on IRIX 6.5.
31061         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
31062         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
31063         it exists. Set HAVE_DECL_EXPM1L.
31064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
31065         HAVE_EXPM1L.
31066         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
31067         HAVE_EXPM1L.
31068         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
31070 2012-03-07  Bruno Haible  <bruno@clisp.org>
31072         remainderl: Don't override undeclared system function on IRIX 6.5.
31073         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
31074         HAVE_REMAINDERL.
31075         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
31076         declared when it exists. Set HAVE_DECL_REMAINDERL.
31077         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
31078         not HAVE_REMAINDERL.
31079         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
31080         HAVE_REMAINDERL.
31081         * doc/posix-functions/remainderl.texi: Mention missing declaration
31082         problem.
31084 2012-03-07  Bruno Haible  <bruno@clisp.org>
31086         rintf: Don't override undeclared system function on IRIX 6.5.
31087         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
31088         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
31089         exists. Set HAVE_DECL_RINTF.
31090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
31091         HAVE_RINTF.
31092         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
31093         HAVE_RINTF.
31094         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
31096 2012-03-07  Bruno Haible  <bruno@clisp.org>
31098         roundl: Avoid compilation error on AIX.
31099         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
31100         AIX 5.2..7.1.
31102 2012-03-07  Bruno Haible  <bruno@clisp.org>
31104         roundl: Don't override undeclared system function on IRIX 6.5.
31105         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
31106         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
31107         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
31108         * modules/roundl (configure.ac): For replacement code, test
31109         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
31110         (Depends-on): Update conditions.
31111         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
31113 2012-03-07  Bruno Haible  <bruno@clisp.org>
31115         roundf: Don't override undeclared system function on IRIX 6.5.
31116         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
31117         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
31118         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
31119         * modules/roundf (configure.ac): For replacement code, test
31120         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
31121         (Depends-on): Update conditions.
31122         * modules/roundf-ieee (Depends-on): Update conditions.
31123         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
31125 2012-03-07  Bruno Haible  <bruno@clisp.org>
31127         round: Don't override undeclared system function on IRIX 6.5.
31128         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
31129         argument.
31130         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
31131         also when it is not declared. Set HAVE_ROUND. For replacement code,
31132         test HAVE_ROUND, not HAVE_DECL_ROUND.
31133         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
31134         not HAVE_DECL_ROUND.
31135         (Depends-on): Update conditions.
31136         * modules/round-ieee (Depends-on): Update conditions.
31137         * doc/posix-functions/round.texi: Mention the IRIX problem.
31139 2012-03-07  Bruno Haible  <bruno@clisp.org>
31141         copysignf: Don't override undeclared system function on IRIX 6.5.
31142         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
31143         HAVE_COPYSIGNF.
31144         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
31145         declared when it exists. Set HAVE_DECL_COPYSIGNF.
31146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
31147         not HAVE_COPYSIGNF.
31148         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
31149         HAVE_COPYSIGNF.
31150         * doc/posix-functions/copysignf.texi: Mention missing declaration
31151         problem.
31153 2012-03-07  Jim Meyering  <meyering@redhat.com>
31155         readtokens: add tests
31156         * modules/readtokens-tests: New file.
31157         * tests/test-readtokens.c: New file.
31159 2012-03-07  Jim Meyering  <meyering@redhat.com>
31161         quotearg: the module must now include quote.h
31162         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
31163         So must the module.
31164         * modules/quotearg (Files): Add quote.h.
31166 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
31168         readtokens: avoid core dumps with unusual calling patterns
31169         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
31170         * lib/readtokens.c: Include limits.h.
31171         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
31172         (readtoken): Don't cache the delimiters; the cache code was buggy
31173         if !delim && saved_delim, or if the new n_delim differs from the old.
31174         Also, it wasn't thread-safe.
31176 2012-03-07  Bruno Haible  <bruno@clisp.org>
31178         quote: Adhere to common module description layout.
31179         * modules/quote (Makefile.am): Add back empty section.
31181 2012-03-06  Akim Demaille  <demaille@gostai.com>
31183         quote: fuse into quotearg
31184         This patch is made for the benefit of Bison.
31185         quote does not leave the choice of the quoting style to the user.
31186         quoting_style provides poor customizability, yet quoting_options,
31187         which is very rich, is hidden inside quotearg.c.  So in order to
31188         allow quote customization, move its implementation to quotearg.c.
31189         * lib/quote.c: Remove.
31190         * modules/quote: Adjust.
31191         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
31192         warning: provide all the members of literal structs.
31193         (quote_quoting_options): New.
31194         (quote, quote_n): Import implementation from quote.c.
31195         * lib/quote.h: Import the comments from quote.c.
31196         (quote_quoting_options): New.
31198 2012-03-06  Bruno Haible  <bruno@clisp.org>
31200         Tests for module 'expm1l-ieee'.
31201         * modules/expm1l-ieee-tests: New file.
31202         * tests/test-expm1l-ieee.c: New file.
31204         New module 'expm1l-ieee'.
31205         * modules/expm1l-ieee: New file.
31207         Tests for module 'expm1f-ieee'.
31208         * modules/expm1f-ieee-tests: New file.
31209         * tests/test-expm1f-ieee.c: New file.
31211         New module 'expm1f-ieee'.
31212         * modules/expm1f-ieee: New file.
31214         Tests for module 'expm1-ieee'.
31215         * modules/expm1-ieee-tests: New file.
31216         * tests/test-expm1-ieee.c: New file.
31217         * tests/test-expm1-ieee.h: New file.
31219         New module 'expm1-ieee'.
31220         * modules/expm1-ieee: New file.
31221         * m4/expm1-ieee.m4: New file.
31222         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
31223         whether expm1 works with a minus zero argument. Replace it if not.
31224         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
31225         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
31226         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
31227         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
31228         (Depends-on): Update conditions.
31229         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
31230         AIX problem.
31232 2012-03-06  Bruno Haible  <bruno@clisp.org>
31234         Work around expm1f bug on IRIX 6.5.
31235         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
31236         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
31237         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
31238         not work.
31239         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
31240         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
31241         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
31242         (Depends-on): Update conditions.
31243         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
31245 2012-03-06  Bruno Haible  <bruno@clisp.org>
31247         Tests for module 'expm1l'.
31248         * modules/expm1l-tests: New file.
31249         * tests/test-expm1l.c: New file.
31251         New module 'expm1l'.
31252         * lib/math.in.h (expm1l): New declaration.
31253         * lib/expm1l.c: New file.
31254         * m4/expm1l.m4: New file.
31255         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
31256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
31257         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
31258         * modules/expm1l: New file.
31259         * tests/test-math-c++.cc: Check the declaration of expm1l.
31260         * doc/posix-functions/expm1l.texi: Mention the new module.
31262 2012-03-06  Bruno Haible  <bruno@clisp.org>
31264         Tests for module 'expm1f'.
31265         * modules/expm1f-tests: New file.
31266         * tests/test-expm1f.c: New file.
31268         New module 'expm1f'.
31269         * lib/math.in.h (expm1f): New declaration.
31270         * lib/expm1f.c: New file.
31271         * m4/expm1f.m4: New file.
31272         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
31273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
31274         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
31275         * modules/expm1f: New file.
31276         * tests/test-math-c++.cc: Check the declaration of expm1f.
31277         * doc/posix-functions/expm1f.texi: Mention the new module.
31279 2012-03-06  Bruno Haible  <bruno@clisp.org>
31281         Tests for module 'expm1'.
31282         * modules/expm1-tests: New file.
31283         * tests/test-expm1.c: New file.
31284         * tests/test-expm1.h: New file.
31286         New module 'expm1'.
31287         * lib/math.in.h (expm1): New declaration.
31288         * lib/expm1.c: New file.
31289         * m4/expm1.m4: New file.
31290         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
31291         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
31292         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
31293         * modules/expm1: New file.
31294         * tests/test-math-c++.cc: Check the declaration of expm1.
31295         * doc/posix-functions/expm1.texi: Mention the new module.
31297 2012-03-06  Bruno Haible  <bruno@clisp.org>
31299         math: Ensure declarations of math functions.
31300         * modules/acosf (Depends-on): Add 'extensions'.
31301         * modules/asinf (Depends-on): Likewise.
31302         * modules/atan2f (Depends-on): Likewise.
31303         * modules/atanf (Depends-on): Likewise.
31304         * modules/cbrt (Depends-on): Likewise.
31305         * modules/cbrtf (Depends-on): Likewise.
31306         * modules/cbrtl (Depends-on): Likewise.
31307         * modules/copysignf (Depends-on): Likewise.
31308         * modules/copysignl (Depends-on): Likewise.
31309         * modules/cosf (Depends-on): Likewise.
31310         * modules/coshf (Depends-on): Likewise.
31311         * modules/expf (Depends-on): Likewise.
31312         * modules/fabsf (Depends-on): Likewise.
31313         * modules/fabsl (Depends-on): Likewise.
31314         * modules/fmaf (Depends-on): Likewise.
31315         * modules/fmal (Depends-on): Likewise.
31316         * modules/fmodf (Depends-on): Likewise.
31317         * modules/fmodl (Depends-on): Likewise.
31318         * modules/frexpf (Depends-on): Likewise.
31319         * modules/frexpl (Depends-on): Likewise.
31320         * modules/hypot (Depends-on): Likewise.
31321         * modules/hypotf (Depends-on): Likewise.
31322         * modules/hypotl (Depends-on): Likewise.
31323         * modules/ldexpf (Depends-on): Likewise.
31324         * modules/ldexpl (Depends-on): Likewise.
31325         * modules/log10f (Depends-on): Likewise.
31326         * modules/log10l (Depends-on): Likewise.
31327         * modules/log1p (Depends-on): Likewise.
31328         * modules/logb (Depends-on): Likewise.
31329         * modules/logf (Depends-on): Likewise.
31330         * modules/modff (Depends-on): Likewise.
31331         * modules/modfl (Depends-on): Likewise.
31332         * modules/powf (Depends-on): Likewise.
31333         * modules/remainderf (Depends-on): Likewise.
31334         * modules/remainderl (Depends-on): Likewise.
31335         * modules/rintf (Depends-on): Likewise.
31336         * modules/rintl (Depends-on): Likewise.
31337         * modules/sinf (Depends-on): Likewise.
31338         * modules/sinhf (Depends-on): Likewise.
31339         * modules/sqrtf (Depends-on): Likewise.
31340         * modules/tanf (Depends-on): Likewise.
31341         * modules/tanhf (Depends-on): Likewise.
31342         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
31343         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
31344         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
31345         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
31346         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
31347         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
31348         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
31349         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
31350         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
31351         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
31352         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
31353         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
31354         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
31355         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
31356         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
31357         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
31358         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
31359         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
31360         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
31361         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
31362         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
31363         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
31364         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
31365         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
31366         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
31367         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
31368         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
31369         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
31370         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
31371         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
31372         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
31373         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
31374         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
31375         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
31376         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
31377         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
31378         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
31379         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
31380         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
31381         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
31382         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
31384 2012-03-06  Bruno Haible  <bruno@clisp.org>
31386         math: Update module names in warnings.
31387         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
31388         tanl): Use specific module name in warn-on-use warning.
31390 2012-03-06  Bruno Haible  <bruno@clisp.org>
31392         expl: Simplify computation.
31393         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
31395 2012-03-05  Bruno Haible  <bruno@clisp.org>
31397         exp* tests: More tests.
31398         * tests/test-exp.h: New file.
31399         * tests/test-exp.c: Include <float.h> and test-exp.h.
31400         (main): Invoke test_function.
31401         * tests/test-expf.c: Include <float.h> and test-exp.h.
31402         (main): Invoke test_function.
31403         * tests/test-expl.c: Include <float.h> and test-exp.h.
31404         (main): Invoke test_function.
31405         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
31406         (Makefile.am): Add randomd.c to test_exp_SOURCES.
31407         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
31408         (Makefile.am): Add randomf.c to test_expf_SOURCES.
31409         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
31410         (Depends-on): Add 'float'.
31411         (Makefile.am): Add randoml.c to test_expl_SOURCES.
31413         expl: Fix precision of computed result.
31414         * lib/expl.c: Completely rewritten.
31415         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
31416         (Maintainer): Add me.
31417         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
31419 2012-03-05  Bruno Haible  <bruno@clisp.org>
31421         cbrt* tests: More tests.
31422         * tests/test-cbrt.h: New file.
31423         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
31424         (main): Invoke test_function.
31425         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
31426         (main): Invoke test_function.
31427         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
31428         (main): Invoke test_function.
31429         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
31430         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
31431         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
31432         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
31433         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
31434         (Depends-on): Add 'float'.
31435         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
31437 2012-03-05  Bruno Haible  <bruno@clisp.org>
31439         hypot* tests: More tests.
31440         * tests/test-hypot.h: New file, partially extracted from
31441         tests/test-hypotl.c.
31442         * tests/test-hypot.c: Include test-hypot.h.
31443         (main): Invoke test_function.
31444         * tests/test-hypotf.c: Include test-hypot.h.
31445         (main): Invoke test_function.
31446         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
31447         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
31448         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
31449         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
31450         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
31451         tests/randomf.c.
31452         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
31453         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
31454         tests/randoml.c.
31455         (Depends-on): Add 'fpucw', 'float'.
31456         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
31458 2012-03-05  Bruno Haible  <bruno@clisp.org>
31460         fpucw: Doc about FreeBSD.
31461         * lib/fpucw.h: Mention FreeBSD in comments.
31463 2012-03-04  Bruno Haible  <bruno@clisp.org>
31465         sqrt* tests: More tests.
31466         * tests/test-sqrt.h: New file.
31467         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
31468         (main): Invoke test_function.
31469         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
31470         (main): Invoke test_function.
31471         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
31472         (main): Invoke test_function.
31473         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
31474         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
31475         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
31476         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
31477         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
31478         (Depends-on): Add 'float'.
31479         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
31481 2012-03-04  Bruno Haible  <bruno@clisp.org>
31483         remainder* tests: More tests.
31484         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
31485         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
31486         (main): Invoke test_function.
31487         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
31488         (main): Invoke test_function.
31489         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
31490         (main): Invoke test_function.
31491         * modules/remainder-tests (Files): Add tests/test-remainder.h,
31492         tests/randomd.c.
31493         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
31494         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
31495         tests/randomf.c.
31496         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
31497         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
31498         tests/randoml.c.
31499         (Depends-on): Add 'float'.
31500         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
31502 2012-03-04  Bruno Haible  <bruno@clisp.org>
31504         remainder, remainderf, remainderl: Fix computation for large quotients.
31505         * lib/remainder.c: Completely rewritten.
31506         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
31507         USE_FLOAT.
31508         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
31509         USE_LONG_DOUBLE.
31510         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
31511         isnand, isinf. Remove round, fma.
31512         * modules/remainderf (Files): Add lib/remainder.c.
31513         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
31514         Remove roundf, fmaf.
31515         * modules/remainderl (Files): Add lib/remainder.c.
31516         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
31517         isinf. Remove roundl, fmal.
31518         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
31519         REMAINDER_LIBM.
31520         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
31521         REMAINDERF_LIBM.
31522         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
31523         REMAINDERL_LIBM.
31525 2012-03-04  Bruno Haible  <bruno@clisp.org>
31527         fmod* tests: More tests.
31528         * tests/test-fmod.h (my_ldexp): New function.
31529         (test_function): Reduce amount of random numbers to test. Add tests
31530         of very large quotients x / y.
31531         * tests/test-fmod.c (MAX_EXP): New macro.
31532         * tests/test-fmodf.c (MAX_EXP): Likewise.
31533         * tests/test-fmodl.c (MAX_EXP): Likewise.
31535 2012-03-04  Bruno Haible  <bruno@clisp.org>
31537         fmod, fmodl: Fix computation for large quotients x / y.
31538         * lib/fmod.c: Completely rewritten.
31539         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
31540         USE_LONG_DOUBLE.
31541         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
31542         isnand. Remove fma.
31543         * modules/fmodl (Files): Add lib/fmod.c.
31544         (Depends-on): Add float, isfinite, signbit, fabsl,
31545         frexpl, ldexpl, isnanl. Remove fma.
31546         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
31547         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
31549 2012-03-03  Bruno Haible  <bruno@clisp.org>
31551         fmod* tests: More tests.
31552         * tests/test-fmod.h: New file.
31553         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
31554         (main): Invoke test_function.
31555         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
31556         (main): Invoke test_function.
31557         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
31558         (main): Invoke test_function.
31559         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
31560         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
31561         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
31562         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
31563         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
31564         (Depends-on): Add 'float'.
31565         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
31567 2012-03-03  Bruno Haible  <bruno@clisp.org>
31569         rint* tests: More tests.
31570         * tests/test-rint.h: New file, partially extracted from
31571         tests/test-rintl.c.
31572         * tests/test-rint.c: Include test-rint.h.
31573         (main): Invoke test_function.
31574         * tests/test-rintf.c: Include test-rint.h.
31575         (main): Invoke test_function.
31576         * tests/test-rintl.c: Include test-rint.h.
31577         (main): Invoke test_function.
31578         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
31579         (Makefile.am): Add randomd.c to test_rint_SOURCES.
31580         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
31581         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
31582         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
31583         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
31585 2012-03-03  Bruno Haible  <bruno@clisp.org>
31587         modf* tests: More tests.
31588         * tests/test-modf.h: New file.
31589         * tests/test-modf.c: Include <float.h> and test-modf.h.
31590         (main): Invoke test_function.
31591         * tests/test-modff.c: Include <float.h> and test-modf.h.
31592         (main): Invoke test_function.
31593         * tests/test-modfl.c: Include <float.h> and test-modf.h.
31594         (main): Invoke test_function.
31595         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
31596         (Makefile.am): Add randomd.c to test_modf_SOURCES.
31597         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
31598         (Makefile.am): Add randomf.c to test_modff_SOURCES.
31599         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
31600         (Depends-on): Add 'float'.
31601         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
31603 2012-03-03  Bruno Haible  <bruno@clisp.org>
31605         fabs* tests: More tests.
31606         * tests/test-fabs.h: New file, partially extracted from
31607         tests/test-fabsl.c.
31608         * tests/test-fabs.c (RANDOM): New macro.
31609         * tests/test-fabsf.c (RANDOM): New macro.
31610         * tests/test-fabsl.c (RANDOM): New macro.
31611         * modules/fabs-tests (Files): Add tests/randomd.c.
31612         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
31613         * modules/fabsf-tests (Files): Add tests/randomf.c.
31614         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
31615         * modules/fabsl-tests (Files): Add tests/randoml.c.
31616         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
31618 2012-03-03  Bruno Haible  <bruno@clisp.org>
31620         ldexp* tests: More tests.
31621         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
31622         * tests/test-ldexp.c (RANDOM): New macro.
31623         * tests/test-ldexpf.c (RANDOM): New macro.
31624         * tests/test-ldexpl.c (RANDOM): New macro.
31625         * modules/ldexp-tests (Files): Add tests/randomd.c.
31626         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
31627         * modules/ldexpf-tests (Files): Add tests/randomf.c.
31628         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
31629         * modules/ldexpl-tests (Files): Add tests/randoml.c.
31630         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
31632 2012-03-03  Bruno Haible  <bruno@clisp.org>
31634         frexp* tests: More tests.
31635         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
31636         * tests/test-frexp.c (RANDOM): New macro.
31637         * tests/test-frexpf.c (RANDOM): New macro.
31638         * tests/test-frexpl.c (RANDOM): New macro.
31639         * modules/frexp-tests (Files): Add tests/randomd.c.
31640         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
31641         * modules/frexpf-tests (Files): Add tests/randomf.c.
31642         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
31643         * modules/frexpl-tests (Files): Add tests/randoml.c.
31644         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
31646 2012-03-03  Bruno Haible  <bruno@clisp.org>
31648         Support for pseudo-random numbers in tests.
31649         * tests/randomf.c: New file.
31650         * tests/randomd.c: New file.
31651         * tests/randoml.c: New file.
31652         * tests/macros.h (randomf, randomd, randoml): New declarations.
31654 2012-03-03  Bruno Haible  <bruno@clisp.org>
31656         frexp* tests: Refactor.
31657         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
31658         * tests/test-frexp.c: Include and use it.
31659         * tests/test-frexpf.c: Likewise.
31660         * tests/test-frexpl.c: Likewise.
31661         * modules/frexp-tests (Files): Add tests/test-frexp.h.
31662         * modules/frexpf-tests (Files): Likewise.
31663         * modules/frexpl-tests (Files): Likewise.
31665 2012-03-02  Jim Meyering  <meyering@redhat.com>
31667         maint: don't specify XZ_OPT=-9ev in dist-related rule
31668         Using xz's -9 option is warranted only if you have a very large
31669         tarball (see xz's documentation for the sizes vs. presets), and
31670         requires 64MiB of memory at decompression time.
31671         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
31672         Automake's default of just "-e" is fine.  Override on a
31673         per-package basis by setting XZ_OPT e.g., in cfg.mk.
31675 2012-03-01  Eric Blake  <eblake@redhat.com>
31677         maint.mk: allow announcement for non-gnulib project
31678         * maint.mk (announcement): Skip gnulib version if not used.
31680 2012-03-01  Jim Meyering  <meyering@redhat.com>
31682         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
31683         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
31684         envvar settings cannot interfere.  Otherwise, setting envvars like
31685         prohibit=foo require=bar, etc. would cause spurious test failures.
31687 2012-03-01  Eric Blake  <eblake@redhat.com>
31689         maint.mk: add per-line exclusions to prohibitions
31690         * maint.mk (_sc_search_regexp): Add $exclude parameter.
31691         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
31692         (sc_const_long_option): Use it.
31694 2012-03-01  Bruno Haible  <bruno@clisp.org>
31696         Tests for module 'expl-ieee'.
31697         * modules/expl-ieee-tests: New file.
31698         * tests/test-expl-ieee.c: New file.
31700         New module 'expl-ieee'.
31701         * modules/expl-ieee: New file.
31703         Tests for module 'exp-ieee'.
31704         * modules/exp-ieee-tests: New file.
31705         * tests/test-exp-ieee.c: New file.
31707         New module 'exp-ieee'.
31708         * modules/exp-ieee: New file.
31710         Tests for module 'expf-ieee'.
31711         * modules/expf-ieee-tests: New file.
31712         * tests/test-expf-ieee.c: New file.
31713         * tests/test-exp-ieee.h: New file.
31715         New module 'expf-ieee'.
31716         * modules/expf-ieee: New file.
31718 2012-02-29  Bruno Haible  <bruno@clisp.org>
31720         cbrtl-ieee: Work around test failure on IRIX 6.5.
31721         * m4/cbrtl-ieee.m4: New file.
31722         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
31723         test whether cbrtl works with a minus zero argument. Replace it if not.
31724         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
31725         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
31726         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
31727         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
31728         (Depends-on): Update conditions.
31729         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
31730         m4/signbit.m4.
31731         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
31732         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
31733         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
31735         Tests for module 'cbrtl-ieee'.
31736         * modules/cbrtl-ieee-tests: New file.
31737         * tests/test-cbrtl-ieee.c: New file.
31739         New module 'cbrtl-ieee'.
31740         * modules/cbrtl-ieee: New file.
31742         Tests for module 'cbrt-ieee'.
31743         * modules/cbrt-ieee-tests: New file.
31744         * tests/test-cbrt-ieee.c: New file.
31746         New module 'cbrt-ieee'.
31747         * modules/cbrt-ieee: New file.
31749         Tests for module 'cbrtf-ieee'.
31750         * modules/cbrtf-ieee-tests: New file.
31751         * tests/test-cbrtf-ieee.c: New file.
31752         * tests/test-cbrt-ieee.h: New file.
31754         New module 'cbrtf-ieee'.
31755         * modules/cbrtf-ieee: New file.
31757 2012-02-29  Bruno Haible  <bruno@clisp.org>
31759         cbrtf: Work around bug in IRIX 6.5 system function.
31760         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
31761         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
31762         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
31763         work.
31764         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
31765         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
31766         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
31767         (Depends-on): Update conditions.
31768         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
31770 2012-02-29  Bruno Haible  <bruno@clisp.org>
31772         Tests for module 'cbrtl'.
31773         * modules/cbrtl-tests: New file.
31774         * tests/test-cbrtl.c: New file.
31776         New module 'cbrtl'.
31777         * lib/math.in.h (cbrtl): New declaration.
31778         * lib/cbrtl.c: New file.
31779         * m4/cbrtl.m4: New file.
31780         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
31781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
31782         HAVE_DECL_CBRTL.
31783         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
31784         HAVE_DECL_CBRTL.
31785         * modules/cbrtl: New file.
31786         * tests/test-math-c++.cc: Check the declaration of cbrtl.
31787         * doc/posix-functions/cbrtl.texi: Mention the new module.
31789 2012-02-29  Bruno Haible  <bruno@clisp.org>
31791         Tests for module 'cbrtf'.
31792         * modules/cbrtf-tests: New file.
31793         * tests/test-cbrtf.c: New file.
31795         New module 'cbrtf'.
31796         * lib/math.in.h (cbrtf): New declaration.
31797         * lib/cbrtf.c: New file.
31798         * m4/cbrtf.m4: New file.
31799         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
31800         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
31801         HAVE_DECL_CBRTF.
31802         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
31803         HAVE_DECL_CBRTF.
31804         * modules/cbrtf: New file.
31805         * tests/test-math-c++.cc: Check the declaration of cbrtf.
31806         * doc/posix-functions/cbrtf.texi: Mention the new module.
31808 2012-02-29  Bruno Haible  <bruno@clisp.org>
31810         cbrt: Provide replacement on MSVC and Minix.
31811         * lib/math.in.h (cbrt): New declaration.
31812         * lib/cbrt.c: New file.
31813         * m4/cbrt.m4: New file.
31814         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
31815         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
31816         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
31817         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
31818         (Depends-on): Add dependencies.
31819         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
31820         * tests/test-math-c++.cc: Check the declaration of cbrt.
31821         * doc/posix-functions/cbrt.texi: Mention that the module provides a
31822         replacement.
31824 2012-02-29  Bruno Haible  <bruno@clisp.org>
31826         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
31827         * m4/hypotl-ieee.m4: New file.
31828         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
31829         test whether hypotl works with mixed NaN and Infinity arguments.
31830         Replace it if not.
31831         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
31832         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
31833         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
31834         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
31835         (Depends-on): Update conditions.
31836         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
31837         (Depends-on): Add hypot-ieee.
31838         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
31839         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
31841         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
31842         * m4/hypotf-ieee.m4: New file.
31843         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
31844         test whether hypotf works with mixed NaN and Infinity arguments.
31845         Replace it if not.
31846         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
31847         (Depends-on): Add hypot-ieee.
31848         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
31849         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
31851         hypot-ieee: Work around test failure on OSF/1 and native Windows.
31852         * lib/math.in.h (hypot): New declaration.
31853         * lib/hypot.c: New file.
31854         * m4/hypot-ieee.m4: New file.
31855         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
31856         whether hypot works with mixed NaN and Infinity arguments. Replace it
31857         if not.
31858         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
31859         REPLACE_HYPOT.
31860         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
31861         * modules/hypot (Files): Add lib/hypot.c.
31862         (Depends-on): Add dependencies.
31863         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
31864         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
31865         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
31866         * tests/test-math-c++.cc: Check the declaration of hypot.
31867         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
31869         Tests for module 'hypotl-ieee'.
31870         * modules/hypotl-ieee-tests: New file.
31871         * tests/test-hypotl-ieee.c: New file.
31873         New module 'hypotl-ieee'.
31874         * modules/hypotl-ieee: New file.
31876         Tests for module 'hypot-ieee'.
31877         * modules/hypot-ieee-tests: New file.
31878         * tests/test-hypot-ieee.c: New file.
31880         New module 'hypot-ieee'.
31881         * modules/hypot-ieee: New file.
31883         Tests for module 'hypotf-ieee'.
31884         * modules/hypotf-ieee-tests: New file.
31885         * tests/test-hypotf-ieee.c: New file.
31886         * tests/test-hypot-ieee.h: New file.
31888         New module 'hypotf-ieee'.
31889         * modules/hypotf-ieee: New file.
31891 2012-02-29  Bruno Haible  <bruno@clisp.org>
31893         Remove unused variables.
31894         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
31895         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
31896         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
31897         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
31899 2012-02-29  Eric Blake  <eblake@redhat.com>
31901         termios: fix pid_t always, not just for tcgetsid
31902         * doc/posix-headers/termios.texi (termios.h): Mention problem.
31903         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
31904         just when building tcgetsid.
31906 2012-02-29  Bruno Haible  <bruno@clisp.org>
31908         Tests for module 'hypotl'.
31909         * modules/hypotl-tests: New file.
31910         * tests/test-hypotl.c: New file.
31912         New module 'hypotl'.
31913         * lib/math.in.h (hypotl): New declaration.
31914         * lib/hypotl.c: New file.
31915         * m4/hypotl.m4: New file.
31916         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
31917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
31918         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
31919         * modules/hypotl: New file.
31920         * tests/test-math-c++.cc: Check the hypotl declaration.
31921         * doc/posix-functions/hypotl.texi: Mention the new module.
31923 2012-02-29  Eric Blake  <eblake@redhat.com>
31925         tcgetsid: fix cygwin header bug
31926         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
31928         docs: update cygwin progress
31929         * doc/posix-functions/llround.texi (llround): Added in cygwin
31930         1.7.8.
31931         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
31932         * doc/glibc-functions/program_invocation_name.texi
31933         (program_invocation_name): Likewise.
31934         * doc/glibc-functions/program_invocation_short_name.texi
31935         (program_invocation_short_name): Likewise.
31936         * doc/glibc-functions/madvise.texi (madvise): Likewise.
31937         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
31938         Likewise.
31939         * doc/posix-functions/pthread_spin_destroy.texi
31940         (pthread_spin_destroy): Added in cygwin 1.7.10.
31941         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
31942         Likewise.
31943         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
31944         Likewise.
31945         * doc/posix-functions/pthread_spin_trylock.texi
31946         (pthread_spin_trylock): Likewise.
31947         * doc/posix-functions/pthread_spin_unlock.texi
31948         (pthread_spin_unlock): Likewise.
31949         * doc/posix-functions/pthread_setschedprio.texi
31950         (pthread_setschedprio): Likewise.
31951         * doc/posix-functions/pthread_attr_getstack.texi
31952         (pthread_attr_getstack): Likewise.
31953         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
31954         (pthread_attr_getstackaddr): Likewise.
31955         * doc/glibc-functions/pthread_getattr_np.texi
31956         (pthread_getattr_np): Likewise.
31957         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
31958         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
31959         * doc/posix-functions/clock_settime.texi (clock_settime):
31960         Likewise.
31961         * doc/posix-functions/pthread_attr_getguardsize.texi
31962         (pthread_attr_getguardsize): Likewise.
31963         * doc/posix-functions/pthread_attr_setguardsize.texi
31964         (pthread_attr_setguardsize): Likewise.
31965         * doc/posix-functions/pthread_attr_setstack.texi
31966         (pthread_attr_setstack): Likewise.
31967         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
31968         (pthread_attr_setstackaddr): Likewise.
31969         * doc/posix-functions/clock_getcpuclockid.texi
31970         (clock_getcpuclockid): Likewise.
31971         * doc/posix-functions/pthread_getcpuclockid.texi
31972         (pthread_getcpuclockid): Likewise.
31973         * doc/glibc-functions/error.texi (error): Likewise.
31974         * doc/glibc-functions/error_at_line.texi (error_at_line):
31975         Likewise.
31976         * doc/glibc-functions/error_message_count.texi
31977         (error_message_count): Likewise.
31978         * doc/glibc-functions/error_one_per_line.texi
31979         (error_one_per_line): Likewise.
31980         * doc/glibc-functions/error_print_progname.texi
31981         (error_print_progname): Likewise.
31982         * doc/posix-functions/pthread_condattr_getclock.texi
31983         (pthread_condattr_getclock): Likewise.
31984         * doc/posix-functions/pthread_condattr_setclock.texi
31985         (pthread_condattr_setclock): Likewise.
31986         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
31987         Likewise.
31988         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
31989         * doc/glibc-functions/getpt.texi (getpt): Likewise.
31990         * doc/glibc-functions/get_current_dir_name.texi
31991         (get_current_dir_name): Likewise.
31992         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
31993         Likewise.
31994         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
31995         wrong return type.
31996         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
31997         1.7.11.
31999 2012-02-29  Bruno Haible  <bruno@clisp.org>
32001         Tests for module 'hypotf'.
32002         * modules/hypotf-tests: New file.
32003         * tests/test-hypotf.c: New file.
32005         New module 'hypotf'.
32006         * lib/math.in.h (hypotf): New declaration.
32007         * lib/hypotf.c: New file.
32008         * m4/hypotf.m4: New file.
32009         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
32010         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
32011         REPLACE_HYPOTF.
32012         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
32013         REPLACE_HYPOTF.
32014         * modules/hypotf: New file.
32015         * tests/test-math-c++.cc: Check the hypotf declaration.
32016         * doc/posix-functions/hypotf.texi: Mention the new module.
32018         hypot: Prepare for hypotf module.
32019         * m4/hypot.m4: New file.
32020         * modules/hypot (Files): Add m4/hypot.m4.
32021         (configure.ac): Invoke gl_FUNC_HYPOT.
32023 2012-02-29  Bruno Haible  <bruno@clisp.org>
32025         hypot tests: More tests.
32026         * tests/test-hypot.c: Include <float.h>.
32027         (main): Add tests about overflow and underflow.
32029 2012-02-29  Bruno Haible  <bruno@clisp.org>
32031         math code: Add comments.
32032         * lib/acosl.c: Add comment about related glibc source files.
32033         * lib/asinl.c: Likewise.
32034         * lib/atanl.c: Likewise.
32035         * lib/expl.c: Likewise.
32036         * lib/logl.c: Likewise.
32037         * lib/sincosl.c: Likewise.
32038         * lib/sinl.c: Likewise.
32039         * lib/tanl.c: Likewise.
32040         * lib/trigl.c: Likewise.
32041         * lib/cosl.c: Likewise. Fix comments.
32043 2012-02-28  Bruno Haible  <bruno@clisp.org>
32045         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
32046         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
32047         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
32048         HUGE_VALL are defined.
32049         (numeric_equald): Renamed from numeric_equal.
32050         (numeric_equalf, numeric_equall): New functions.
32051         (main): Check also HUGE_VALF, HUGE_VALL.
32052         * modules/math-tests (Files): Add tests/macros.h.
32053         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
32054         HUGE_VALL.
32056 2012-02-28  Bruno Haible  <bruno@clisp.org>
32058         doc: Move ISO C11 feature notes into POSIX chapters.
32059         * doc/posix-functions/aligned_alloc.texi: Renamed from
32060         doc/glibc-functions/aligned_alloc.texi.
32061         * doc/posix-functions/quick_exit.texi: Renamed from
32062         doc/glibc-functions/quick_exit.texi.
32063         * doc/posix-headers/uchar.texi: Renamed from
32064         doc/glibc-headers/uchar.texi.
32065         * doc/posix-functions/c16rtomb.texi: Renamed from
32066         doc/glibc-functions/c16rtomb.texi.
32067         * doc/posix-functions/c32rtomb.texi: Renamed from
32068         doc/glibc-functions/c32rtomb.texi.
32069         * doc/posix-functions/mbrtoc16.texi: Renamed from
32070         doc/glibc-functions/mbrtoc16.texi.
32071         * doc/posix-functions/mbrtoc32.texi: Renamed from
32072         doc/glibc-functions/mbrtoc32.texi.
32073         * doc/gnulib.texi: Update.
32074         (Glibc uchar.h): Remove section.
32075         Suggested by Eric Blake.
32077 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
32079         stdnoreturn: port to MSVC better
32080         MSVC standard headers use __declspec(noreturn), so #define noreturn
32081         to empty on that platform.  Reported by Bruno Haible in
32082         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
32083         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
32084         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
32086 2012-02-28  Bruno Haible  <bruno@clisp.org>
32088         doc: Mention new glibc headers and functions.
32089         * doc/glibc-headers/uchar.texi: New file.
32090         * doc/glibc-functions/aligned_alloc.texi: New file.
32091         * doc/glibc-functions/c16rtomb.texi: New file.
32092         * doc/glibc-functions/c32rtomb.texi: New file.
32093         * doc/glibc-functions/clock_adjtime.texi: New file.
32094         * doc/glibc-functions/fanotify_init.texi: New file.
32095         * doc/glibc-functions/fanotify_mark.texi: New file.
32096         * doc/glibc-functions/inet6_opt_append.texi: New file.
32097         * doc/glibc-functions/inet6_opt_find.texi: New file.
32098         * doc/glibc-functions/inet6_opt_finish.texi: New file.
32099         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
32100         * doc/glibc-functions/inet6_opt_init.texi: New file.
32101         * doc/glibc-functions/inet6_opt_next.texi: New file.
32102         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
32103         * doc/glibc-functions/inet6_rth_add.texi: New file.
32104         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
32105         * doc/glibc-functions/inet6_rth_init.texi: New file.
32106         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
32107         * doc/glibc-functions/inet6_rth_segments.texi: New file.
32108         * doc/glibc-functions/inet6_rth_space.texi: New file.
32109         * doc/glibc-functions/login.texi: New file.
32110         * doc/glibc-functions/mbrtoc16.texi: New file.
32111         * doc/glibc-functions/mbrtoc32.texi: New file.
32112         * doc/glibc-functions/name_to_handle_at.texi: New file.
32113         * doc/glibc-functions/ntp_gettimex.texi: New file.
32114         * doc/glibc-functions/open_by_handle_at.texi: New file.
32115         * doc/glibc-functions/prlimit.texi: New file.
32116         * doc/glibc-functions/process_vm_readv.texi: New file.
32117         * doc/glibc-functions/process_vm_writev.texi: New file.
32118         * doc/glibc-functions/recvmmsg.texi: New file.
32119         * doc/glibc-functions/scandirat.texi: New file.
32120         * doc/glibc-functions/sendmmsg.texi: New file.
32121         * doc/glibc-functions/setns.texi: New file.
32122         * doc/glibc-functions/timespec_get.texi: New file.
32123         * doc/gnulib.texi: Include them.
32124         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
32125         sections.
32126         Reported by Eric Blake.
32128 2012-02-28  Bruno Haible  <bruno@clisp.org>
32130         Avoid compilation errors with MSVC option -fp:strict.
32131         * lib/floor.c: Use MSVC specific pragma fenv_access.
32132         * lib/ceil.c: Likewise.
32133         * lib/trunc.c: Likewise.
32134         * lib/round.c: Likewise.
32135         * lib/rint.c: Likewise.
32136         * lib/fma.c: Likewise.
32137         * lib/integer_length.c: Likewise.
32138         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32139         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32140         * tests/test-floor2.c: Likewise.
32141         * tests/test-floorf2.c: Likewise.
32142         * tests/test-ceil2.c: Likewise.
32143         * tests/test-ceilf2.c: Likewise.
32144         * tests/test-trunc2.c: Likewise.
32145         * tests/test-truncf2.c: Likewise.
32146         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
32148 2012-02-27  Bruno Haible  <bruno@clisp.org>
32150         Tests for module 'sqrtl-ieee'.
32151         * modules/sqrtl-ieee-tests: New file.
32152         * tests/test-sqrtl-ieee.c: New file.
32154         New module 'sqrtl-ieee'.
32155         * modules/sqrtl-ieee: New file.
32157         Tests for module 'sqrt-ieee'.
32158         * modules/sqrt-ieee-tests: New file.
32159         * tests/test-sqrt-ieee.c: New file.
32161         New module 'sqrt-ieee'.
32162         * modules/sqrt-ieee: New file.
32164         Tests for module 'sqrtf-ieee'.
32165         * modules/sqrtf-ieee-tests: New file.
32166         * tests/test-sqrtf-ieee.c: New file.
32167         * tests/test-sqrt-ieee.h: New file.
32169         New module 'sqrtf-ieee'.
32170         * modules/sqrtf-ieee: New file.
32172 2012-02-27  Bruno Haible  <bruno@clisp.org>
32174         remainderl-ieee: Work around test failure on OSF/1.
32175         * m4/remainderl-ieee.m4: New file.
32176         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
32177         present, test whether remainderl works with a zero second argument.
32178         Replace it if not.
32179         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
32180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
32181         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
32182         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
32183         (Depends-on): Update conditions.
32184         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
32185         (Depends-on): Add remainder-ieee.
32186         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
32187         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
32188         module.
32190         remainderf-ieee: Work around test failure on OSF/1.
32191         * m4/remainderf-ieee.m4: New file.
32192         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
32193         present, test whether remainderf works with a zero second argument.
32194         Replace it if not.
32195         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
32196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
32197         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
32198         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
32199         (Depends-on): Update conditions.
32200         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
32201         (Depends-on): Add remainder-ieee.
32202         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
32203         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
32204         module.
32206         remainder-ieee: Work around test failure on OSF/1.
32207         * m4/remainder-ieee.m4: New file.
32208         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
32209         present, test whether remainder works with a zero second argument.
32210         Replace it if not.
32211         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
32212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
32213         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
32214         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
32215         (Depends-on): Update dependencies.
32216         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
32217         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
32218         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
32220         Tests for module 'remainderl-ieee'.
32221         * modules/remainderl-ieee-tests: New file.
32222         * tests/test-remainderl-ieee.c: New file.
32224         New module 'remainderl-ieee'.
32225         * modules/remainderl-ieee: New file.
32227         Tests for module 'remainder-ieee'.
32228         * modules/remainder-ieee-tests: New file.
32229         * tests/test-remainder-ieee.c: New file.
32231         New module 'remainder-ieee'.
32232         * modules/remainder-ieee: New file.
32234         Tests for module 'remainderf-ieee'.
32235         * modules/remainderf-ieee-tests: New file.
32236         * tests/test-remainderf-ieee.c: New file.
32237         * tests/test-remainder-ieee.h: New file.
32239         New module 'remainderf-ieee'.
32240         * modules/remainderf-ieee: New file.
32242 2012-02-27  Bruno Haible  <bruno@clisp.org>
32244         modff, modfl: Fix configure syntax error.
32245         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
32246         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
32248 2012-02-27  Bruno Haible  <bruno@clisp.org>
32250         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
32251         * m4/fmodl-ieee.m4: New file.
32252         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
32253         whether fmodl works with zero arguments. Replace it if not.
32254         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
32255         (Depends-on): Add fmod-ieee.
32256         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
32257         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
32259         fmodf-ieee: Work around test failure on OSF/1.
32260         * m4/fmodf-ieee.m4: New file.
32261         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
32262         whether fmodf works with zero arguments. Replace it if not.
32263         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
32264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
32265         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
32266         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
32267         (Depends-on): Update dependencies.
32268         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
32269         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
32270         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
32272         fmodf-ieee: Work around test failure on MSVC 9.
32273         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
32274         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
32276         fmod-ieee: Work around test failures on OSF/1, mingw.
32277         * m4/fmod-ieee.m4: New file.
32278         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
32279         whether fmod works with zero arguments. Replace it if not.
32280         * lib/math.in.h (fmod): New declaration.
32281         * lib/fmod.c: New file.
32282         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
32283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
32284         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
32285         * modules/fmod (Files): Add lib/fmod.c.
32286         (Depends-on): Add math, isinf, trunc, fma.
32287         (configure.ac): Arrange to compile lib/fmod.c if needed.
32288         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
32289         m4/signbit.m4.
32290         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
32291         * tests/test-math-c++.cc: Check the declaration of fmod.
32292         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
32294         fmodl-ieee: Fix test failures.
32295         * lib/fmodl.c (fmodl): Treat Inf specially.
32296         * modules/fmodl (Depends-on): Add isinf.
32298         Tests for module 'fmodl-ieee'.
32299         * modules/fmodl-ieee-tests: New file.
32300         * tests/test-fmodl-ieee.c: New file.
32302         New module 'fmodl-ieee'.
32303         * modules/fmodl-ieee: New file.
32305         Tests for module 'fmod-ieee'.
32306         * modules/fmod-ieee-tests: New file.
32307         * tests/test-fmod-ieee.c: New file.
32309         New module 'fmod-ieee'.
32310         * modules/fmod-ieee: New file.
32312         Tests for module 'fmodf-ieee'.
32313         * modules/fmodf-ieee-tests: New file.
32314         * tests/test-fmodf-ieee.c: New file.
32315         * tests/test-fmod-ieee.h: New file.
32317         New module 'fmodf-ieee'.
32318         * modules/fmodf-ieee: New file.
32320 2012-02-27  Bruno Haible  <bruno@clisp.org>
32322         Tests for module 'rintl-ieee'.
32323         * modules/rintl-ieee-tests: New file.
32324         * tests/test-rintl-ieee.c: New file.
32326         New module 'rintl-ieee'.
32327         * modules/rintl-ieee: New file.
32329         Tests for module 'rint-ieee'.
32330         * modules/rint-ieee-tests: New file.
32331         * tests/test-rint-ieee.c: New file.
32333         New module 'rint-ieee'.
32334         * modules/rint-ieee: New file.
32336         Tests for module 'rintf-ieee'.
32337         * modules/rintf-ieee-tests: New file.
32338         * tests/test-rintf-ieee.c: New file.
32339         * tests/test-rint-ieee.h: New file.
32341         New module 'rintf-ieee'.
32342         * modules/rintf-ieee: New file.
32344 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
32346         regex: re_search etc. should return -2 when memory exhausted
32347         This bug was uncovered when testing 'grep'.  Without the fix,
32348         re_search and friends return -1 when memory is exhausted, but -1
32349         means no match, and this causes grep to falsely report no-match
32350         instead of memory-exhaustion.  See
32351         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
32352         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
32353         trouble; this can occur if re_search_internal ran out of memory.
32355 2012-02-26  Bruno Haible  <bruno@clisp.org>
32357         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
32358         * m4/modfl-ieee.m4: New file.
32359         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
32360         whether modfl works with Inf. Replace it if not.
32361         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
32362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
32363         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
32364         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
32365         (Depends-on): Update dependencies.
32366         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
32367         m4/signbit.m4.
32368         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
32369         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
32371         modfl-ieee: Fix dependencies.
32372         * modules/modfl-ieee (Depends-on): Add modf-ieee.
32374         modfl-ieee: Fix test failures.
32375         * lib/modfl.c (modfl): Treat NaN and Inf specially.
32376         * modules/modfl (Depends-on): Add isfinite, isinf.
32378         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
32379         * m4/modff-ieee.m4: New file.
32380         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
32381         whether modff works with NaN and Inf. Replace it if not.
32382         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
32383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
32384         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
32385         * modules/modff (configure.ac): Consider REPLACE_MODFF.
32386         (Depends-on): Update dependencies.
32387         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
32388         m4/signbit.m4.
32389         (Depends-on): Add modf-ieee.
32390         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
32391         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
32393         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
32394         * m4/modf-ieee.m4: New file.
32395         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
32396         whether modf works with NaN and Inf. Replace it if not.
32397         * lib/math.in.h (modf): New declaration.
32398         * lib/modf.c: New file.
32399         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
32400         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
32401         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
32402         * modules/modf (Files): Add lib/modf.c.
32403         (Depends-on): Add math, isfinite, trunc, isinf.
32404         (configure.ac): Addrange to compile lib/modf.c if needed.
32405         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
32406         m4/signbit.m4.
32407         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
32408         * tests/test-math-c++.cc: Check the declaration of modf.
32409         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
32411         Tests for module 'modfl-ieee'.
32412         * modules/modfl-ieee-tests: New file.
32413         * tests/test-modfl-ieee.c: New file.
32415         New module 'modfl-ieee'.
32416         * modules/modfl-ieee: New file.
32418         Tests for module 'modf-ieee'.
32419         * modules/modf-ieee-tests: New file.
32420         * tests/test-modf-ieee.c: New file.
32422         New module 'modf-ieee'.
32423         * modules/modf-ieee: New file.
32425         Tests for module 'modff-ieee'.
32426         * modules/modff-ieee-tests: New file.
32427         * tests/test-modff-ieee.c: New file.
32428         * tests/test-modf-ieee.h: New file.
32430         New module 'modff-ieee'.
32431         * modules/modff-ieee: New file.
32433 2012-02-26  Bruno Haible  <bruno@clisp.org>
32435         Tests for module 'fabsl-ieee'.
32436         * modules/fabsl-ieee-tests: New file.
32437         * tests/test-fabsl-ieee.c: New file.
32439         New module 'fabsl-ieee'.
32440         * modules/fabsl-ieee: New file.
32442         Tests for module 'fabs-ieee'.
32443         * modules/fabs-ieee-tests: New file.
32444         * tests/test-fabs-ieee.c: New file.
32446         New module 'fabs-ieee'.
32447         * modules/fabs-ieee: New file.
32449         Tests for module 'fabsf-ieee'.
32450         * modules/fabsf-ieee-tests: New file.
32451         * tests/test-fabsf-ieee.c: New file.
32452         * tests/test-fabs-ieee.h: New file.
32454         New module 'fabsf-ieee'.
32455         * modules/fabsf-ieee: New file.
32457 2012-02-26  Bruno Haible  <bruno@clisp.org>
32459         Tests for module 'fmal-ieee'.
32460         * modules/fmal-ieee-tests: New file.
32461         * tests/test-fmal-ieee.c: New file.
32463         New module 'fmal-ieee'.
32464         * modules/fmal-ieee: New file.
32466         Tests for module 'fma-ieee'.
32467         * modules/fma-ieee-tests: New file.
32468         * tests/test-fma-ieee.c: New file.
32470         New module 'fma-ieee'.
32471         * modules/fma-ieee: New file.
32473         Tests for module 'fmaf-ieee'.
32474         * modules/fmaf-ieee-tests: New file.
32475         * tests/test-fmaf-ieee.c: New file.
32476         * tests/test-fma-ieee.h: New file.
32478         New module 'fmaf-ieee'.
32479         * modules/fmaf-ieee: New file.
32481 2012-02-26  Bruno Haible  <bruno@clisp.org>
32483         Tests for module 'ldexpl-ieee'.
32484         * modules/ldexpl-ieee-tests: New file.
32485         * tests/test-ldexpl-ieee.c: New file.
32487         New module 'ldexpl-ieee'.
32488         * modules/ldexpl-ieee: New file.
32490         Tests for module 'ldexp-ieee'.
32491         * modules/ldexp-ieee-tests: New file.
32492         * tests/test-ldexp-ieee.c: New file.
32494         New module 'ldexp-ieee'.
32495         * modules/ldexp-ieee: New file.
32497         Tests for module 'ldexpf-ieee'.
32498         * modules/ldexpf-ieee-tests: New file.
32499         * tests/test-ldexpf-ieee.c: New file.
32500         * tests/test-ldexp-ieee.h: New file.
32502         New module 'ldexpf-ieee'.
32503         * modules/ldexpf-ieee: New file.
32505 2012-02-26  Bruno Haible  <bruno@clisp.org>
32507         Refactor frexp*-ieee tests.
32508         * tests/test-frexp-ieee.h: New file.
32509         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
32510         (main): Just call test_function.
32511         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
32512         (main): Just call test_function.
32513         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
32514         (main): Just call test_function.
32515         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
32516         * modules/frexp-ieee-tests (Files): Likewise.
32517         * modules/frexpl-ieee-tests (Files): Likewise.
32519         Tests for module 'frexpl-ieee'.
32520         * modules/frexpl-ieee-tests: New file.
32521         * tests/test-frexpl-ieee.c: New file.
32523         New module 'frexpl-ieee'.
32524         * modules/frexpl-ieee: New file.
32526         Tests for module 'frexp-ieee'.
32527         * modules/frexp-ieee-tests: New file.
32528         * tests/test-frexp-ieee.c: New file.
32530         New module 'frexp-ieee'.
32531         * modules/frexp-ieee: New file.
32533         Tests for module 'frexpf-ieee'.
32534         * modules/frexpf-ieee-tests: New file.
32535         * tests/test-frexpf-ieee.c: New file.
32537         New module 'frexpf-ieee'.
32538         * modules/frexpf-ieee: New file.
32540 2012-02-26  Bruno Haible  <bruno@clisp.org>
32542         roundl-ieee tests: More tests.
32543         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32544         (main): Add tests for [MX] shaded specification in POSIX.
32545         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32546         (Depends-on): Add isnanl-nolibm.
32548         round-ieee tests: More tests.
32549         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32550         (main): Add tests for [MX] shaded specification in POSIX.
32551         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32552         (Depends-on): Add isnand-nolibm.
32554         roundf-ieee tests: More tests.
32555         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32556         (main): Add tests for [MX] shaded specification in POSIX.
32557         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32558         (Depends-on): Add isnanf-nolibm.
32560         truncl-ieee tests: More tests.
32561         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32562         (main): Add tests for [MX] shaded specification in POSIX.
32563         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32564         (Depends-on): Add isnanl-nolibm.
32566         trunc-ieee tests: More tests.
32567         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32568         (main): Add tests for [MX] shaded specification in POSIX.
32569         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32570         (Depends-on): Add isnand-nolibm.
32572         truncf-ieee tests: More tests.
32573         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32574         (main): Add tests for [MX] shaded specification in POSIX.
32575         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32576         (Depends-on): Add isnanf-nolibm.
32578         ceill-ieee tests: More tests.
32579         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32580         (main): Add tests for [MX] shaded specification in POSIX.
32581         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32582         (Depends-on): Add isnanl-nolibm.
32584         ceil-ieee tests: More tests.
32585         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32586         (main): Add tests for [MX] shaded specification in POSIX.
32587         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32588         (Depends-on): Add isnand-nolibm.
32590         ceilf-ieee tests: More tests.
32591         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32592         (main): Add tests for [MX] shaded specification in POSIX.
32593         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32594         (Depends-on): Add isnanf-nolibm.
32596         floorl-ieee tests: More tests.
32597         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
32598         (main): Add tests for [MX] shaded specification in POSIX.
32599         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32600         (Depends-on): Add isnanl-nolibm.
32602         floor-ieee tests: More tests.
32603         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
32604         (main): Add tests for [MX] shaded specification in POSIX.
32605         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32606         (Depends-on): Add isnand-nolibm.
32608         floorf-ieee tests: More tests.
32609         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
32610         (main): Add tests for [MX] shaded specification in POSIX.
32611         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
32612         (Depends-on): Add isnanf-nolibm.
32614 2012-02-26  Bruno Haible  <bruno@clisp.org>
32616         fpieee: More comments.
32617         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
32619 2012-02-25  Bruno Haible  <bruno@clisp.org>
32621         Tests for module 'log10l'.
32622         * modules/log10l-tests: New file.
32623         * tests/test-log10l.c: New file.
32624         * tests/test-math-c++.cc: Check the declaration of log10l.
32626         New module 'log10l'.
32627         * lib/math.in.h (log10l): New declaration.
32628         * lib/log10l.c: New file.
32629         * m4/log10l.m4: New file.
32630         * modules/log10l: New file.
32631         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
32632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
32633         HAVE_DECL_LOG10L.
32634         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
32635         HAVE_DECL_LOG10L.
32636         * doc/posix-functions/log10l.texi: Mention the new module.
32638 2012-02-25  Bruno Haible  <bruno@clisp.org>
32640         fmodl, remainder*: Avoid wrong results due to rounding errors.
32641         * lib/fmodl.c (fmodl): Correct the result if it is not within the
32642         expected bounds.
32643         * lib/remainderf.c (remainderf): Likewise.
32644         * lib/remainder.c (remainder): Likewise.
32645         * lib/remainderl.c (remainderl): Likewise.
32647 2012-02-25  Bruno Haible  <bruno@clisp.org>
32649         Tests for module 'remainderl'.
32650         * modules/remainderl-tests: New file.
32651         * tests/test-remainderl.c: New file.
32652         * tests/test-math-c++.cc: Check the declaration of remainderl.
32654         New module 'remainderl'.
32655         * lib/math.in.h (remainderl): New declaration.
32656         * lib/remainderl.c: New file.
32657         * m4/remainderl.m4: New file.
32658         * modules/remainderl: New file.
32659         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
32660         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
32661         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
32662         HAVE_REMAINDERL.
32663         * doc/posix-functions/remainderl.texi: Mention the new module.
32665 2012-02-25  Bruno Haible  <bruno@clisp.org>
32667         Tests for module 'remainderf'.
32668         * modules/remainderf-tests: New file.
32669         * tests/test-remainderf.c: New file.
32670         * tests/test-math-c++.cc: Check the declaration of remainderf.
32672         New module 'remainderf'.
32673         * lib/math.in.h (remainderf): New declaration.
32674         * lib/remainderf.c: New file.
32675         * m4/remainderf.m4: New file.
32676         * modules/remainderf: New file.
32677         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
32678         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
32679         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
32680         HAVE_REMAINDERF.
32681         * doc/posix-functions/remainderf.texi: Mention the new module.
32683 2012-02-25  Bruno Haible  <bruno@clisp.org>
32685         remainder: Support for MSVC.
32686         * lib/math.in.h (remainder): New declaration.
32687         * lib/remainder.c: New file.
32688         * m4/remainder.m4: New file.
32689         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
32690         (Depends-on): Add math, round, fma.
32691         (configure.ac): Use results of gl_FUNC_REMAINDER.
32692         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
32693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
32694         HAVE_DECL_REMAINDER.
32695         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
32696         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
32697         * tests/test-math-c++.cc: Check the declaration of remainder.
32698         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
32699         problems are fixed.
32701 2012-02-25  Bruno Haible  <bruno@clisp.org>
32703         Tests for module 'fmodl'.
32704         * modules/fmodl-tests: New file.
32705         * tests/test-fmodl.c: New file.
32706         * tests/test-math-c++.cc: Check the declaration of fmodl.
32708         New module 'fmodl'.
32709         * lib/math.in.h (fmodl): New declaration.
32710         * lib/fmodl.c: New file.
32711         * m4/fmodl.m4: New file.
32712         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
32713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
32714         REPLACE_FMODL.
32715         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
32716         REPLACE_FMODL.
32717         * modules/fmodl: New file.
32718         * doc/posix-functions/fmodl.texi: Mention the new module.
32720 2012-02-25  Bruno Haible  <bruno@clisp.org>
32722         Tests for module 'modfl'.
32723         * modules/modfl-tests: New file.
32724         * tests/test-modfl.c: New file.
32725         * tests/test-math-c++.cc: Check the declaration of modfl.
32727         New module 'modfl'.
32728         * lib/math.in.h (modfl): New declaration.
32729         * lib/modfl.c: New file.
32730         * m4/modfl.m4: New file.
32731         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
32732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
32733         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
32734         * modules/modfl: New file.
32735         * doc/posix-functions/modfl.texi: Mention the new module.
32737 2012-02-25  Bruno Haible  <bruno@clisp.org>
32739         Tests for module 'fabsl'.
32740         * modules/fabsl-tests: New file.
32741         * tests/test-fabsl.c: New file.
32742         * tests/test-math-c++.cc: Check the declaration of fabsl.
32744         New module 'fabsl'.
32745         * lib/math.in.h (fabsl): New declaration.
32746         * lib/fabsl.c: New file.
32747         * m4/fabsl.m4: New file.
32748         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
32749         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
32750         REPLACE_FABSL.
32751         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
32752         REPLACE_FABSL.
32753         * modules/fabsl: New file.
32754         * doc/posix-functions/fabsl.texi: Mention the new module.
32756 2012-02-25  Bruno Haible  <bruno@clisp.org>
32758         fabs tests: More tests.
32759         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
32760         (zero): New variable.
32761         (main): Add tests for signed zero.
32762         * modules/fabs-tests (Files): Add tests/minus-zero.h.
32764         fabsf tests: More tests.
32765         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
32766         (zero): New variable.
32767         (main): Add tests for signed zero.
32768         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
32770 2012-02-24  Bruno Haible  <bruno@clisp.org>
32772         atanl: Provide function definition on MSVC.
32773         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
32774         function pointer.
32775         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
32777 2012-02-24  Bruno Haible  <bruno@clisp.org>
32779         acosl: Provide function definition on MSVC.
32780         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
32781         function pointer.
32782         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
32784 2012-02-24  Bruno Haible  <bruno@clisp.org>
32786         asinl: Provide function definition on MSVC.
32787         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
32788         function pointer.
32789         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
32791 2012-02-24  Bruno Haible  <bruno@clisp.org>
32793         tanl: Provide function definition on MSVC.
32794         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
32795         function pointer.
32796         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
32798 2012-02-24  Bruno Haible  <bruno@clisp.org>
32800         cosl: Provide function definition on MSVC.
32801         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
32802         function pointer.
32803         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
32805 2012-02-24  Bruno Haible  <bruno@clisp.org>
32807         sinl: Provide function definition on MSVC.
32808         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
32809         function pointer.
32810         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
32812 2012-02-24  Bruno Haible  <bruno@clisp.org>
32814         logl: Provide function definition on MSVC.
32815         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
32816         function pointer.
32817         * lib/math.in.h (logl): Undefine if it does not exist as a function.
32819 2012-02-24  Bruno Haible  <bruno@clisp.org>
32821         expl: Provide function definition on MSVC.
32822         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
32823         function pointer.
32824         * lib/math.in.h (expl): Undefine if it does not exist as a function.
32826 2012-02-24  Bruno Haible  <bruno@clisp.org>
32828         sqrtl: Provide function definition on MSVC.
32829         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
32830         a function pointer.
32831         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
32833 2012-02-24  Bruno Haible  <bruno@clisp.org>
32835         ceill: Provide function definition on MSVC.
32836         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
32837         used as a function pointer.
32838         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
32840 2012-02-24  Bruno Haible  <bruno@clisp.org>
32842         floorl: Provide function definition on MSVC.
32843         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
32844         used as a function pointer.
32845         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
32847 2012-02-24  Bruno Haible  <bruno@clisp.org>
32849         ceilf: Provide function definition on MSVC.
32850         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
32851         used as a function pointer.
32852         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
32854 2012-02-24  Bruno Haible  <bruno@clisp.org>
32856         floorf: Provide function definition on MSVC.
32857         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
32858         used as a function pointer.
32859         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
32861 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
32863         stdnoreturn: new module
32864         This implements a replacement for C11's <stdnoreturn.h>.
32865         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
32866         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
32867         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
32868         * tests/test-stdnoreturn.c: New files.
32870 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
32872         regex: fix false multibyte matches in some regular expressions
32873         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
32874         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
32875         * lib/regex_internal.c (re_string_skip_chars):
32876         Fix miscomputation of remain_len that may cause incomplete
32877         multi-byte character and false match.
32879 2012-02-24  Jim Meyering  <meyering@redhat.com>
32881         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
32882         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
32883         uses with "==" *before* the call, e.g., 0 == strcmp (...)
32884         Remove now-unnecessary str''cmp obfuscation.
32885         Suggested by Akim Demaille.
32887 2012-02-24  Bruno Haible  <bruno@clisp.org>
32889         streq: Rename macro.
32890         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
32891         * NEWS: Mention the change.
32892         * lib/mbrtowc.c (mbrtowc): Update.
32893         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
32894         * lib/wcwidth.c (wcwidth): Update.
32895         Suggested by Akim Demaille and Jim Meyering.
32897 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
32899         regex: fix typo in definition of MIN
32900         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
32901         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
32903 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32904             Bruno Haible  <bruno@clisp.org>
32906         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
32907         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
32908         entries into a stack-allocated buffer directly.
32909         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
32911 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
32912             Bruno Haible  <bruno@clisp.org>
32914         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
32916          - There were several instances of this pattern:
32918              for (;;) {
32919                n = acl (f, GETACLCNT, 0, NULL);
32920                [ allocate an array A of size N ]
32921                if (acl (f, GETACL, n, a) == n)
32922                  break;
32923              }
32925            This loop might never terminate if some other process is constantly
32926            manipulating the file's ACL.  The loop should be rewritten to
32927            terminate.
32929          - The acl (... GETACLNT ...) call is merely an optimization; its value
32930            is merely a hint as to how big to make the array.  A better
32931            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
32932            and just guess a reasonably-big size, growing the size and trying
32933            again if it's not large enough.  This guarantees termination, and
32934            saves a system call.
32936         * lib/acl-internal.h: Include <limits.h>.
32937         (MIN, SIZE_MAX): New macros.
32938         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
32939         a stack-allocated buffer, and use malloc if it does not fit. Don't
32940         use GETACLCNT.
32941         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
32943 2012-02-19  Bruno Haible  <bruno@clisp.org>
32945         acl: Fix endless loop on Solaris with vxfs.
32946         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
32947         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
32948         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
32949         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
32950         * tests/test-sameacls.c (main)[Solaris]: Likewise.
32951         Reported by Bill Jones in
32952         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
32954 2012-02-19  Bruno Haible  <bruno@clisp.org>
32956         acl: Fix copy-acl test failure on Solaris 11.0.
32957         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
32958         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
32959         that this function returns 0 in some more cases.
32961 2012-02-19  Bruno Haible  <bruno@clisp.org>
32963         acl: Update doc references.
32964         * doc/acl-resources.txt: Update links to Solaris documentation.
32966 2012-02-19  Bruno Haible  <bruno@clisp.org>
32968         Fix test failure in many locales on Solaris 11.
32969         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
32970         'tr' arguments.
32971         * tests/test-pipe-filter-ii1.c (main): Likewise.
32972         * build-aux/bootstrap (check_versions): Run 'tr' command with range
32973         expressions in the C locale.
32974         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
32975         * m4/host-os.m4 (gl_HOST_OS): Likewise.
32977 2012-02-19  Bruno Haible  <bruno@clisp.org>
32979         gnulib-tool: Improve usage message.
32980         * gnulib-tool (func_usage): Move doc of --help and --version to the
32981         section "Operation modes".
32983 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
32985         README-release: make it easier to execute commands
32986         * top/README-release: break commands out on to separate lines.
32988 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
32990         GNUmakefile: simplify detection of unconfigured trees
32991         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
32992         whether the tree make is being run from is already configured or
32993         not.  Related simplifications.
32995 2012-02-13  Simon Josefsson  <simon@josefsson.org>
32997         * gnulib-tool (func_usage): Document --help and --version.
32999 2012-02-11  Jim Meyering  <meyering@redhat.com>
33001         bootstrap: don't exit 0 upon gnulib-tool failure
33002         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
33003         its exit status, not 0.
33005 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
33007         README-release: various improvements
33008         * top/README-release: Give a command to push changes for the
33009         release.  Add "distcheck" to list of other pre-release checks.
33010         Fix instance of "make stable" which should be "make TYPE".
33012 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
33014         maint: replace FSF snail-mail addresses with URLs
33015         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
33016         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
33017         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
33018         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
33019         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
33020         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
33021         * lib/check-version.c, lib/check-version.h, lib/config.charset:
33022         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
33023         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
33024         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
33025         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
33026         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
33027         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
33028         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
33029         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
33030         * lib/glthread/thread.c, lib/glthread/thread.h:
33031         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
33032         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
33033         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
33034         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
33035         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
33036         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
33037         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
33038         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
33039         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
33040         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
33041         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
33042         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
33043         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
33044         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
33045         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
33046         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
33047         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
33048         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
33049         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
33050         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
33051         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
33052         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
33053         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
33054         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
33055         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
33056         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
33057         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
33058         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
33059         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
33060         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
33061         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
33062         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
33063         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
33064         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
33065         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
33066         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
33067         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
33068         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
33069         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
33070         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
33071         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
33072         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
33073         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
33074         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
33075         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
33076         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
33077         * tests/test-poll.c, tests/test-quotearg-simple.c:
33078         * tests/test-quotearg.c, tests/test-quotearg.h:
33079         * tests/test-round-ieee.c, tests/test-round1.c:
33080         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
33081         * tests/test-roundl-ieee.c, tests/test-roundl.c:
33082         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
33083         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
33084         * tests/test-strerror.c, tests/test-strerror_r.c:
33085         * tests/test-strsignal.c, tests/test-strverscmp.c:
33086         * tests/test-xmemdup0.c:
33087         Replace FSF snail mail addresses with URLs, as per GNU coding
33088         standards.  See glibc bug
33089         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
33091 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
33093         README-release: capitalize a word and split a line
33094         * top/README-release: Fix punctuation and spacing.
33096 2012-02-08  Akim Demaille  <demaille@gostai.com>
33098         fatal-signal: use C prototypes (with explicit void).
33099         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
33100         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
33102 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33104         regex: spelling fix
33105         * lib/regexec.c: spelling fix
33107         regex: rely on stdint.h for SIZE_MAX
33108         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
33110 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
33112         regex: merge glibc changes
33114         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
33115         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
33116         (init_word_char): Work even if bitset words are not exactly 32 or
33117         64 bits wide.  Don't assume there are no padding bits.
33118         * lib/regex.c [_LIBC]: Do not include <config.h>.
33119         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
33120         and -Wtype-limits.
33121         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
33122         needless disagreement with glibc.  All uses changed.  Define it to
33123         1 only if _GNU_SOURCE, to match glibc.
33124         (_REG_RM_NAME): Remove; no longer needed, since the names in
33125         question are now all protected by __USE_GNU.
33126         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
33127         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
33128         * lib/regex_internal.h (MIN): New macro.
33130         2012-01-03 Ulrich Drepper <drepper@gmail.com>
33131         * lib/regcomp.c (init_word_char): Optimize regex a bit.
33133         2011-12-30 Jakub Jelinek <jakub@redhat.com>
33134         * lib/regex_internal.c (re_string_fetch_byte_case):
33135         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
33136         is miscompiled, and it turns out it is because of an incorrect
33137         attribute on re_string_fetch_byte_case.  Unlike
33138         re_string_peek_byte_case, this one is really not pure, it modifies
33139         memory (increments pstr->cur_idx), and with the pure attribute GCC
33140         assumed it doesn't and it cached the presumed value of
33141         regexp->cur_idx in a variable across the
33142          for (;; ++i)
33143            {
33144              if (i >= BRACKET_NAME_BUF_SIZE)
33145                return REG_EBRACK;
33146              if (token->type == OP_OPEN_CHAR_CLASS)
33147                ch = re_string_fetch_byte_case (regexp);
33148              else
33149                ch = re_string_fetch_byte (regexp);
33150              if (re_string_eoi(regexp))
33151                return REG_EBRACK;
33152              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
33153                break;
33154              elem->opr.name[i] = ch;
33155            }
33157         2011-11-29 Andreas Schwab <schwab@redhat.com>
33158         * lib/regcomp.c (build_equiv_class):
33159         Fix access after end of search string in regex matcher.
33161         2011-11-12 Ulrich Drepper <drepper@redhat.com>
33162         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
33164         2011-10-12 Ulrich Drepper <drepper@redhat.com>
33165         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
33167         2011-10-11 Ulrich Drepper <drepper@redhat.com>
33168         * lib/regcomp.c (parse_branch, parse_sub_exp):
33169         More regex memory leak fixes and tests.
33170         (parse_sub_exp, parse_bracket_exp):
33171         Fix memory leak for some invalid regular expressions.
33173         2011-05-28 Ulrich Drepper <drepper@gmail.com>
33174         * lib/regex_internal.c, lib/regexec.c:
33175         Fix unnecessary overallocation due to incomplete character.  When
33176         incomplete characters are found at the end of a string the code
33177         ran amok and allocated lots of memory.  Stricter limits are now in
33178         place.
33180         2011-05-20 Reuben Thomas <rrt@sc3d.org>
33181         * lib/regex.h: Update documentation.
33183         2011-05-16 Aharon Robbins <arnold@skeeve.com>
33184         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
33186         2010-05-05 Andreas Schwab <schwab@redhat.com>
33187         * lib/regexec.c (find_collation_sequence_value):
33188         Fix lookup of collation sequence value during regexp matching.
33190         2010-01-22 Ulrich Drepper <drepper@redhat.com>
33191         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
33193         2008-01-16 Ulrich Drepper <drepper@redhat.com>
33194         * lib/regex.h: Cleanup namespace.
33196         2007-11-26 Ulrich Drepper <drepper@redhat.com>
33197         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
33199         2007-08-26 Ulrich Drepper <drepper@redhat.com>
33200         * lib/regex_internal.h: Prevent some declarations and definitions
33201         to be seen when used in tests.
33203         2005-05-06 Ulrich Drepper <drepper@redhat.com>
33204         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
33205         __libc_lock_* macros if not _LIBC.
33206         (struct re_dfa_t): Add lock.
33208 2012-02-07  Eric Blake  <eblake@redhat.com>
33210         maint.mk: also prohibit lower-case @var@
33211         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
33212         lower case, like @top_srcdir@.
33214 2012-02-04  Eric Blake  <eblake@redhat.com>
33216         canonicalize: avoid uninitialized memory use
33217         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
33218         random '/' left in dest.
33219         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
33221 2012-02-04  Bruno Haible  <bruno@clisp.org>
33223         isatty: Fix test failure of ptsname_r on native Windows.
33224         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
33225         and don't set errno.
33226         (isatty): Test first whether fd is valid. Set errno when returning 0.
33228 2012-02-04  Bruno Haible  <bruno@clisp.org>
33230         spawn-pipe tests: Fix a NULL program name in a diagnostic.
33231         * tests/test-spawn-pipe-main.c: Include progname.h.
33232         (main): Invoke set_program_name.
33233         * modules/spawn-pipe-tests (Depends-on): Add progname.
33235         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
33236         * tests/test-nonblocking-socket-main.c: Include progname.h.
33237         (main): Invoke set_program_name.
33238         * modules/nonblocking-socket-tests (Depends-on): Add progname.
33240         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
33241         * tests/test-nonblocking-pipe-main.c: Include progname.h.
33242         (main): Invoke set_program_name.
33243         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
33245 2012-02-04  Eric Blake  <eblake@redhat.com>
33247         canonicalize-lgpl: fix // handling
33248         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
33250         canonicalize: fix // handling
33251         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
33252         /// to //, since only // is special.
33254 2012-02-04  Bruno Haible  <bruno@clisp.org>
33256         ioctl: Fix test failure on native Windows.
33257         * lib/ioctl.c: Include msvc-nothrow.h.
33258         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
33260 2012-02-04  Bruno Haible  <bruno@clisp.org>
33262         fsync: Avoid test failure on native Windows.
33263         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
33264         read-only.
33266 2012-02-04  Bruno Haible  <bruno@clisp.org>
33268         sys_select: Avoid syntax error on OpenBSD 5.0.
33269         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
33270         currently being included, just include the system's <sys/select.h>.
33272 2012-02-04  Bruno Haible  <bruno@clisp.org>
33274         sys_select: Avoid syntax error on OpenBSD 5.0.
33275         * lib/sys_select.in.h: Include <signal.h> only after the include_next
33276         <sys/select.h>, not before.
33277         Reported by Jiri B <jirib@devio.us>.
33279 2012-02-04  Bruno Haible  <bruno@clisp.org>
33281         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
33282         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
33283         global variables.
33284         * tests/test-get-rusage-data.c (main): Likewise.
33285         Reported by Jim Meyering.
33287 2012-02-04  Bruno Haible  <bruno@clisp.org>
33289         stdioext: Fix last commit.
33290         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
33292 2012-02-03  Bruno Haible  <bruno@clisp.org>
33294         stdioext: Add tentative support for Plan9.
33295         * lib/stdio-impl.h: Include <errno.h>.
33296         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
33297         * lib/freadable.c (freadable): Likewise.
33298         * lib/fwritable.c (fwritable): Likewise.
33299         * lib/fbufmode.c (fbufmode): Likewise.
33300         * lib/freading.c (freading): Likewise.
33301         * lib/fwriting.c (fwriting): Likewise.
33302         * lib/freadptr.c (freadptr): Likewise.
33303         * lib/freadseek.c (freadptrinc): Likewise.
33304         * lib/freadahead.c (freadahead): Likewise.
33305         * lib/fpurge.c (fpurge): Likewise.
33306         * lib/fseeko.c (rpl_fseeko): Likewise.
33307         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
33308         Reported by Jens Staal <staal1978@gmail.com>.
33310 2012-02-02  Jim Meyering  <meyering@redhat.com>
33312         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
33313         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
33314         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
33315         not even to try to add the attribute.  Instead, add a pragma to suppress
33316         the suggestion/warning.
33318 2012-01-31  Karl Berry  <karl@gnu.org>
33320         setstate doc: typo.
33321         * doc/posix-functions/setstate.texi (setstate): { not (.
33323 2012-01-31  Bruno Haible  <bruno@clisp.org>
33325         popen: Make more robust on Windows.
33326         * lib/popen.c: On native Windows, use the _popen based code even if
33327         HAVE_POPEN is set.
33328         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
33329         environment variable on native Windows.
33331 2012-01-30  Bruno Haible  <bruno@clisp.org>
33333         pclose: Fix typo.
33334         * lib/stdio.in.h (pclose): Fix typo in warning message.
33336 2012-01-30  Bruno Haible  <bruno@clisp.org>
33338         doc about getlogin_r, setstate.
33339         * doc/posix-functions/getlogin_r.texi: List the incompatible
33340         declaration problem under "not fixed by gnulib".
33341         * doc/posix-functions/setstate.texi: Mention incompatible declaration
33342         problem on Solaris 11 and other platforms.
33344 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
33345             Bruno Haible  <bruno@clisp.org>
33347         poll tests: Make test more robust.
33348         * tests/test-poll.c: Include macros.h.
33349         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
33350         return value of various I/O operations.
33351         * modules/poll-tests (Files): Add tests/macros.h.
33353 2012-01-30  Bruno Haible  <bruno@clisp.org>
33355         sys_stat: Fix support for mingw64 and MSVC.
33356         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
33357         header files already do it.
33358         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
33359         stat itself.
33360         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
33362 2012-01-30  Bruno Haible  <bruno@clisp.org>
33364         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
33365         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
33366         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
33368 2012-01-29  Bruno Haible  <bruno@clisp.org>
33370         quotearg: Fix test failure on MacOS X 10.5.
33371         * tests/test-quotearg-simple.c: Include localcharset.h.
33372         (main): If the locale encoding is not ASCII, bypass the tests of
33373         locale_quoting_style and clocale_quoting_style.
33374         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
33376 2012-01-29  Jim Meyering  <meyering@redhat.com>
33378         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
33379         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
33380         detect uses of canonicalize_file_name.
33382 2012-01-28  Bruno Haible  <bruno@clisp.org>
33384         test-framework-sh: Fix test failure with AIX 7.1 diff.
33385         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
33386         in column 1, like 'diff -c' does.
33387         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
33388         whether 'diff -u' is used. Instead, test whether the output contains
33389         some '@' character.
33391 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
33393         strtoimax: eliminate need for stdint.h, inttypes.h checks
33394         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
33395         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
33396         the prerequisites for a recently-introduced strtoimax test.
33397         I guess this might cause strtoimax to be replaced when not
33398         strictly necessary on older hosts, but this shouldn't introduce
33399         any bugs and it should make Emacs 'configure' faster on typical
33400         modern hosts.  Problem discovered when importing the latest gnulib
33401         to an Emacs test version.
33402         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
33404 2012-01-28  Bruno Haible  <bruno@clisp.org>
33406         sys_time: Override 'struct timeval' on some native Windows platforms.
33407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
33408         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
33409         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
33410         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
33411         needs to be overridden.
33412         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
33413         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
33414         * tests/test-sys_select.c: Check that the tv_sec member has the same
33415         size as a 'time_t'.
33416         * tests/test-sys_time.c: Likewise.
33417         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
33418         is set, set also REPLACE_GETTIMEOFDAY.
33419         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
33420         convert the resulting 'struct timeval' before returning.
33421         * lib/select.c: Include <sys/time.h>.
33422         (select, timeval): Undefine at the right place.
33423         * modules/select (Depends-on): Add sys_time.
33424         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
33425         some Windows platforms.
33426         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
33428 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33430         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
33431         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
33432         an integer.
33433         * lib/fcntl.c (dupfd): Likewise.
33434         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
33436 2012-01-28  Bruno Haible  <bruno@clisp.org>
33438         fcntl: Avoid compilation error on native Windows.
33439         * modules/fcntl (Depends-on): Add 'close'.
33441 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33443         select, poll, isatty: Avoid warnings on x86_64 mingw64.
33444         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
33445         pointer to an integer.
33446         * lib/poll.c (IsConsoleHandle): Likewise.
33447         * lib/isatty.c (IsConsoleHandle): Likewise.
33449 2012-01-28  Jim Meyering  <meyering@redhat.com>
33451         doc: clarify README-release
33452         * top/README-release: Clarify: you should make a point to have
33453         the latest stable versions of build tools in your PATH, and the
33454         reference to buildreq is solely for its list of tool names, not
33455         for its minimal-functional version numbers.
33456         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
33458         maint.mk: use more readable (yet functionally equivalent) quoting
33459         It is common to quote a single quote in a single quoted string like
33460         this:  '...'\''...'.  Unless you know the idiom, that looks like
33461         gibberish, so prefer to double-quote the string when possible.
33462         Then you can use a more readable, lone single quote: "...'..."
33463         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
33464         "don't" is more readable than the equivalent 'don'\''t'.
33465         (sc_cast_of_x_alloc_return_value): Likewise.
33466         (sc_cast_of_alloca_return_value): Likewise.
33467         (sc_makefile_path_separator_check): Similar: use ":" in '...',
33468         rather than '\'':'\''.
33470 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33472         stdalign: relax _Alignof and tighten _Alignas test
33473         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
33474         as it was too strict: alignof must divide offsetof, but it need
33475         not equal offsetof.  Inspired by Joseph S. Myers's comment
33476         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
33477         Conversely, tighten the _Alignas test a bit, as the resulting
33478         alignment must be exactly 8.
33480 2012-01-27  Bruno Haible  <bruno@clisp.org>
33482         stdalign: Document the last change.
33483         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
33485 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
33487         stdalign: check that alignof and offsetof are consistent
33488         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
33489         Problem reported for gnulib by Richard W.M. Jones in
33490         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
33492 2012-01-27  Jim Meyering  <meyering@redhat.com>
33494         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
33495         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
33496         convert a sequence with gaps to the minimal containing range.
33497         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
33498         * tests/test-update-copyright.sh: Test for this.
33499         The FSF confirmed it is ok to do this, assuming there is at
33500         least one significant change per year in the affected range:
33501         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
33503 2012-01-26  Bruno Haible  <bruno@clisp.org>
33505         pipe2: refine doc about thread-safety
33506         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
33507         multithread-safety problem.
33508         * doc/glibc-functions/accept4.texi: Likewise.
33510 2012-01-26  Bruno Haible  <bruno@clisp.org>
33512         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
33513         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
33514         In the test program, include <fcntl.h>, for O_RDONLY.
33516 2012-01-26  Eric Blake  <eblake@redhat.com>
33518         pipe2: document lack of thread-safety in replacement
33519         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
33520         issue in replacement.
33521         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33522         Based on a report by Eric Wong.
33524 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
33525             Bruno Haible  <bruno@clisp.org>
33527         malloca: Avoid warnings on x86_64 mingw64.
33528         * lib/malloca.c: Include <stdint.h>.
33529         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
33530         * modules/malloca (Depends-on): Add stdint.
33531         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
33533 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33535         obstack: remove __STDC__ conditionals
33536         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
33537         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
33538         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
33539         m4/include_next.m4 as the only gnulib-maintained places that still
33540         refer to __STDC__.
33542 2012-01-24  Bruno Haible  <bruno@clisp.org>
33544         havelib: Modern quoting.
33545         * build-aux/config.rpath: Quote 'like this', not `like this', as per
33546         the recent change to the GNU coding standards.
33548 2012-01-24  Bruno Haible  <bruno@clisp.org>
33550         stdint: Improve support for Android.
33551         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
33552         Reported by Simon Josefsson <simon@josefsson.org>.
33554 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
33556         doc: omit trailing empty lines from INSTALL etc.
33557         * doc/Makefile (INSTALL): Omit trailing empty lines.
33558         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
33559         omit trailing empty lines.  This simplifies the build procedure.
33561 2012-01-23  Jim Meyering  <meyering@redhat.com>
33563         tests: avoid spurious warnings about gl_sockets_startup
33564         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
33565         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
33566         reporting a "statement with no effect".
33567         * tests/test-accept.c (main): Mark as "(void)".
33568         * tests/test-accept4.c (main): Likewise.
33569         * tests/test-bind.c (main): Likewise.
33570         * tests/test-connect.c (main): Likewise.
33571         * tests/test-getpeername.c (main): Likewise.
33572         * tests/test-getsockname.c (main): Likewise.
33573         * tests/test-getsockopt.c (main): Likewise.
33574         * tests/test-listen.c (main): Likewise.
33575         * tests/test-recv.c (main): Likewise.
33576         * tests/test-recvfrom.c (main): Likewise.
33577         * tests/test-send.c (main): Likewise.
33578         * tests/test-sendto.c (main): Likewise.
33579         * tests/test-setsockopt.c (main): Likewise.
33580         * tests/test-shutdown.c (main): Likewise.
33582 2012-01-21  Bruno Haible  <bruno@clisp.org>
33584         locale-fr.m4: Fix for Android.
33585         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
33586         failure of the test program on Bionic libc.
33588 2012-01-21  Jim Meyering  <meyering@redhat.com>
33590         bootstrap: fail when bootstrap_post_import_hook fails
33591         Otherwise, it's far too easy to miss diagnostics emitted
33592         between gnulib-tool's output and that of running configure.
33593         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
33595 2012-01-17  Jim Meyering  <meyering@redhat.com>
33597         maint: enable sc_trailing_blank
33598         * build-aux/pmccabe.css: Remove trailing blanks.
33599         * doc/acl-cygwin.txt: Likewise.
33600         * doc/gnu-oids.texi: Likewise
33601         * cfg.mk: Enable sc_trailing_blank.
33602         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
33604 2012-01-17  Jim Meyering  <meyering@redhat.com>
33606         maint: enable sc_prohibit_openat_without_use
33607         * cfg.mk: Enable sc_prohibit_openat_without_use.
33608         Exempt lib/selinux-at.c.
33610 2012-01-17  Jim Meyering  <meyering@redhat.com>
33612         maint: enable sc_prohibit_cloexec_without_use
33613         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
33614         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
33616 2012-01-17  Jim Meyering  <meyering@redhat.com>
33618         maint: enable sc_prohibit_intprops_without_use
33619         * cfg.mk: Enable sc_prohibit_intprops_without_use
33620         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
33622 2012-01-17  Jim Meyering  <meyering@redhat.com>
33624         maint: enable sc_prohibit_hash_pjw_without_use
33625         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
33626         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
33627         to match any use of \<hash_pjw\>, i.e., not necessarily with a
33628         following " (".
33630 2012-01-17  Jim Meyering  <meyering@redhat.com>
33632         maint: enable double-word-prohibiting rule
33633         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
33634         Exempt three files.
33636 2012-01-17  Jim Meyering  <meyering@redhat.com>
33638         maint: remove empty lines at EOF, but excluding modules/*
33639         Apply syntax rules at home as well as abroad.  Most changes
33640         were induced by running this:
33641           make srcdir=. _build-aux=build-aux -f top/maint.mk \
33642             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
33643             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
33644         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
33645         Exempt modules/* and two binary files.
33646         Also exempt doc/INSTALL*, per request from Bruno Haible.
33647         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
33648         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
33649         * doc/Copyright/request-assign.future: Likewise.
33650         * doc/Copyright/request-disclaim.changes: Likewise.
33651         * doc/INSTALL: Likewise.
33652         * doc/INSTALL.ISO: Likewise.
33653         * doc/INSTALL.UTF-8: Likewise.
33654         * doc/acl-cygwin.txt: Likewise.
33655         * doc/acl-resources.txt: Likewise.
33656         * doc/fdl-1.2.texi: Likewise.
33657         * doc/fdl-1.3.texi: Likewise.
33658         * doc/fdl.texi: Likewise.
33659         * lib/argp-pin.c: Likewise.
33660         * lib/round.c: Likewise.
33661         * lib/unicase/u16-totitle.c: Likewise.
33662         * lib/unictype/block_test.c: Likewise.
33663         * lib/uninorm/canonical-decomposition.c: Likewise.
33664         * m4/README: Likewise.
33665         * m4/relocatable-lib.m4: Likewise.
33666         * tests/test-isnand-nolibm.c: Likewise.
33667         * tests/test-isnand.c: Likewise.
33668         * tests/uninorm/NormalizationTest.txt: Likewise.
33670 2012-01-17  Jim Meyering  <meyering@redhat.com>
33672         maint: add framework to run syntax-check rules against gnulib sources
33673         * cfg.mk: New file, to disable all currently-failing tests.
33674         We'll enable them one by one, as they are made to pass.
33675         * Makefile (sc_maint): New rule.
33677 2012-01-21  Bruno Haible  <bruno@clisp.org>
33679         stdint: Add support for Android.
33680         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
33681         include the system's <stdint.h>.
33682         Reported by Simon Josefsson <simon@josefsson.org>.
33684 2012-01-19  Jim Meyering  <meyering@redhat.com>
33686         bootstrap: add bootstrap_post_import_hook
33687         Bison does still need something like the gnulib_mk_hook whose
33688         invocation I had to remove along with slurp in commit 767ccd40.
33689         Technically, we could get along without it, but doing so would
33690         have required living with a warning and a mandatory post-bootstrap
33691         automake rerun.
33692         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
33693         (bootstrap_post_import_hook): New function.
33694         Invoke it after gnulib-tool --import and before autoreconf.
33696 2012-01-18  Jim Meyering  <meyering@redhat.com>
33698         gitlog-to-changelog: don't use "no_"-prefixed variable name
33699         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
33700         to enable both --cluster and --no-cluster.  Change variable name,
33701         s/\$no_cluster/$cluster/, and reverse usage to match.
33703         gitlog-to-changelog: use "||", not "or" in expressions
33704         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
33705         expressions.
33707 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
33709         gitlog-to-changelog: new option --no-cluster
33710         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
33711         clustering of adjacent commit messages.
33713 2012-01-17  Jim Meyering  <meyering@redhat.com>
33715         maint: spell file systems with two words, not one
33716         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
33717         two words, not one.
33719 2012-01-16  Jim Meyering  <meyering@redhat.com>
33721         bootstrap: add a FIXME comment to ensure we eventually remove the hack
33722         * build-aux/bootstrap (gnulib_tool_options): Add comment.
33724 2012-01-16  Eric Blake  <eblake@redhat.com>
33726         bootstrap: cater to autoconf 2.59
33727         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
33728         is not available.
33730         bootstrap: properly check for libtool
33731         * build-aux/bootstrap (libtoolize): Also run libtool when older
33732         usage is detected.
33734 2012-01-15  Bruno Haible  <bruno@clisp.org>
33736         Improve support for MSVC 9.
33737         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
33738         clashes on MSVC.
33739         * lib/fcntl.in.h: Likewise.
33740         * lib/stdlib.in.h: Likewise.
33741         * lib/sys_stat.in.h: Likewise.
33743 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
33745         gnupload: we hold the master copy of this script now
33746         For motivation and more information, see:
33747         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
33748         * build-aux/gnupload: Make it clear in the heading comments that the
33749         master copy of this file is maintained by gnulib.  Since we are at
33750         it, bump its copyright year and ...
33751         ($scriptversion): ... the date in its version.
33752         ($usage): Patches and bug reports should be sent to the gnulib list,
33753         not the automake one.
33754         * config/srclist.txt: Don't try to sync 'gnupload' from automake
33755         anymore.
33757 2012-01-15  Bruno Haible  <bruno@clisp.org>
33759         Fix module 'random'.
33760         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
33761         initstate, setstate are declared.
33763 2012-01-14  Bruno Haible  <bruno@clisp.org>
33765         Tests for module 'random'.
33766         * modules/random-tests: New file.
33767         * tests/test-random.c: New file, based on tests/test-random_r.c.
33769         New module 'random'.
33770         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
33771         declarations.
33772         * lib/random.c: New file, based on glibc/stdlib/random.c.
33773         * m4/random.m4: New file.
33774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
33775         HAVE_RANDOM.
33776         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
33777         * modules/random: New file.
33778         * config/srclist.txt: Add an entry for random.c.
33779         * doc/posix-functions/random.texi: Mention the 'random' module.
33780         * doc/posix-functions/initstate.texi: Likewise.
33781         * doc/posix-functions/setstate.texi: Likewise.
33782         * doc/posix-functions/srandom.texi: Likewise.
33784 2012-01-12  Bruno Haible  <bruno@clisp.org>
33786         random_r: Use common idioms.
33787         * lib/random_r.c: Include <stdlib.h> first.
33789         random_r: Override incompatible API on AIX, OSF/1.
33790         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
33791         Override the system function if REPLACE_RANDOM_R is 1.
33792         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
33793         and OSF/1, set REPLACE_RANDOM_R.
33794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
33795         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
33796         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
33797         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
33798         * doc/glibc-functions/random_r.texi: Likewise.
33799         * doc/glibc-functions/setstate_r.texi: Likewise.
33801         random_r: Support for MSVC 9.
33802         * lib/random_r.c: Include stdint.h, not inttypes.h.
33804 2012-01-12  Eric Blake  <eblake@redhat.com>
33806         inet_ntop: guard extra work by IF_LINT
33807         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
33808         better code generation when not checking for warnings.
33809         Suggested by Paul Eggert and Jim Meyering.
33811         strptime: fix regression on mingw
33812         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
33813         Fix regression.  Reported by Bruno Haible.
33815 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
33816             Bruno Haible  <bruno@clisp.org>
33818         copy-file: add error-code-returning variant.
33819         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
33820         (qcopy_file_preserving): New declaration.
33821         * lib/copy-file.c (qcopy_file_preserving): Renamed from
33822         copy_file_preserving. Change return type to 'int'. Don't emit an error
33823         message here.
33824         (copy_file_preserving): New function.
33825         * tests/test-copy-file.c: Include <stdlib.h>.
33826         (main): Test qcopy_file_preserving if the environment variable
33827         NO_STDERR_OUTPUT is set.
33828         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
33829         with NO_STDERR_OUTPUT
33830         * tests/test-copy-file-2.sh: Likewise.
33832 2012-01-10  Bruno Haible  <bruno@clisp.org>
33834         copy-file: Use 'quote' module consistently.
33835         * lib/copy-file.c (copy_file_preserving): Use quote().
33837         copy-file: Refactor.
33838         * lib/copy-file.c: Include quote.h.
33839         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
33840         message here.
33841         * modules/copy-file (Depends-on): Add quote.
33843         acl: Export qcopy_acl.
33844         * lib/acl.h (qcopy_acl): New declaration.
33845         * lib/copy-acl.c (qcopy_acl): Make non-static.
33847         acl: Rename a local variable.
33848         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
33850         acl: Align return values of copy_acl and qcopy_acl.
33851         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
33852         maybe < -1.
33854 2012-01-11  Eric Blake  <eblake@redhat.com>
33856         strptime: silence gcc warnings
33857         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
33858         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
33859         Reported by Daniel P. Berrange.
33861         inet_ntop: silence gcc warning
33862         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
33863         Reported by Daniel P. Berrange.
33865 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
33867         getloadavg test: skip the test on GNU/Linux without /proc mounted
33868         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
33869         file.  When /proc is not mounted, it always fails with ENOENT.
33870         * tests/test-getloadavg.c (main): Treat ENOENT return code from
33871         getloadavg(3) the same way as ENOSYS and ENOTSUP.
33873 2012-01-10  Bruno Haible  <bruno@clisp.org>
33875         regex: Avoid link error on MSVC 9.
33876         * modules/regex (Depends-on): Add wctype.
33878 2012-01-10  Bruno Haible  <bruno@clisp.org>
33880         doc: Mention --with-tests option.
33881         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
33882         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
33883         --with-tests.
33884         Reported by Reuben Thomas.
33886 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
33888         users.txt: order package names lexicographically.
33889         * users.txt: Order package names lexicographically.
33891 2012-01-10  Jim Meyering  <meyering@redhat.com>
33893         maint.mk: fix description in comment
33894         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
33896         ignore-value: remove deprecated ignore_ptr function
33897         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
33898         * NEWS: Note this.
33900 2012-01-09  Jim Meyering  <meyering@redhat.com>
33902         test-init.sh: avoid a subshell
33903         * tests/test-init.sh: Remove protective subshell.
33904         Suggested by Bernhard Voelker.  While a subshell is normally
33905         required to protect against older shells (Solaris, FreeBSD) that
33906         warn about a missing program before performing redirection, the
33907         shell-selection tests performed by init.sh probably exclude any
33908         offending shell.
33910 2012-01-08  Bruno Haible  <bruno@clisp.org>
33912         setlocale tests: Avoid test failure on Solaris 11.0.
33913         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
33914         variable.
33916 2012-01-08  Bruno Haible  <bruno@clisp.org>
33918         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
33919         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33920         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
33921         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
33922         macro.
33923         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
33924         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
33925         * lib/spawn_faction_addopen.c: Add workaround implementation if
33926         HAVE_WORKING_POSIX_SPAWN.
33927         * modules/spawn (Makefile): Substitute
33928         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
33929         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
33930         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
33931         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
33932         (Depends-on): Update conditions.
33933         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
33934         the Solaris 11 bug.
33936 2012-01-08  Bruno Haible  <bruno@clisp.org>
33938         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
33939         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33940         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
33941         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
33942         macro.
33943         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
33944         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
33945         * lib/spawn_faction_adddup2.c: Add workaround implementation if
33946         HAVE_WORKING_POSIX_SPAWN.
33947         * modules/spawn (Makefile): Substitute
33948         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
33949         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
33950         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
33951         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
33952         (Depends-on): Update conditions.
33953         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
33954         the Solaris 11 bug.
33956 2012-01-08  Bruno Haible  <bruno@clisp.org>
33958         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
33959         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
33960         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
33961         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
33962         HAVE_WORKING_POSIX_SPAWN.
33963         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
33964         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
33965         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
33966         * lib/spawn_faction_addclose.c: Add workaround implementation if
33967         HAVE_WORKING_POSIX_SPAWN.
33968         * modules/spawn (Makefile): Substitute
33969         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
33970         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
33971         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
33972         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
33973         (Depends-on): Update conditions.
33974         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
33975         the Solaris 11 bug.
33977 2012-01-08  Bruno Haible  <bruno@clisp.org>
33979         doc: Update for Solaris 11.0.
33980         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
33981         * m4/printf.m4: Update comments.
33983 2012-01-08  Bruno Haible  <bruno@clisp.org>
33985         mktime: Avoid compilation error on Solaris 11.
33986         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
33988 2012-01-08  Bruno Haible  <bruno@clisp.org>
33990         doc: Small fix.
33991         * doc/posix-headers/nl_types.texi: Correct platforms list.
33993 2012-01-08  Simon Josefsson  <simon@josefsson.org>
33995         Add lgpl-3.0 module.
33996         * MODULES.html.sh (Support for building documentation): Add
33997         lgpl-3.0.
33998         * modules/lgpl-3.0: New file.
34000 2012-01-08  Jim Meyering  <meyering@redhat.com>
34002         select.c: indent with spaces, not TABs
34003         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
34005 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
34007         quotearg: do not use grave accent for left quote
34008         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
34009         locale_quoting_style.
34010         (quotearg_buffer_restyled): Fix example.
34011         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
34013 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
34015         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
34016         Most programs do not have translation catalogs for English and much
34017         less separate catalogs for British and American English.  Drop the
34018         suggestion to translators about these two, and provide it
34019         automatically for Unicode locales.  Like most programs, even those
34020         using American English, we use single quotation marks.  This conflicts
34021         with the American typographic convention, but works better when you
34022         cite the entire error message within double quotes.  It also tries not
34023         to clash with established practice and with what non-gnulib programs
34024         will usually do.
34025         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
34026         using an UTF-8 or GB-18030 locale.  The list of other locales with
34027         quotes was provided by Bruno Haible.
34028         (quotearg_buffer_restyled): Adjust instructions to translators.
34029         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
34030         text, since this would be wrong when using Unicode.
34031         * modules/quotearg: Depend on c-strcaseeq.
34033 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
34035         quotearg: fix Wikipedia link
34036         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
34038 2012-01-07  Simon Josefsson  <simon@josefsson.org>
34040         Fix for mingw with MSVC9.
34041         * m4/ld-version-script.m4: Check that compiler rejects version
34042         scripts with syntax errors.  Reported by Bruno Haible
34043         <bruno@clisp.org>.
34045 2012-01-06  Bruno Haible  <bruno@clisp.org>
34047         Talk about "native Windows API", not "Woe32".
34048         * lib/accept4.c: Update comments to mention native Windows.
34049         * lib/execute.c: Likewise.
34050         * lib/fatal-signal.c: Likewise.
34051         * lib/localcharset.c: Likewise.
34052         * lib/nanosleep.c: Likewise.
34053         * lib/nl_langinfo.c: Likewise.
34054         * lib/pclose.c: Likewise.
34055         * lib/pipe-filter-gi.c: Likewise.
34056         * lib/pipe-filter-ii.c: Likewise.
34057         * lib/pipe.c: Likewise.
34058         * lib/pipe2.c: Likewise.
34059         * lib/popen.c: Likewise.
34060         * lib/progreloc.c: Likewise.
34061         * lib/relocatable.c: Likewise.
34062         * lib/sigaction.c: Likewise.
34063         * lib/sigprocmask.c: Likewise.
34064         * lib/spawn-pipe.h: Likewise.
34065         * lib/spawn-pipe.c: Likewise.
34066         * lib/spawni.c: Likewise.
34067         * lib/stat-time.h: Likewise.
34068         * lib/w32spawn.h: Likewise.
34069         * tests/test-isatty.c: Likewise.
34070         * lib/config.charset: More comments.
34071         * doc/gnulib-intro.texi: Mention native Windows.
34072         * doc/posix-functions/_Exit_C99.texi: Likewise.
34073         * doc/posix-headers/fcntl.texi: Likewise.
34075 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
34077         argp: Avoid crash if translator uses % characters in a translation.
34078         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
34079         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
34081 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
34083         doc: C11 and C++11 are now official
34084         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
34085         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
34086         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
34087         * modules/stdalign:
34088         Replace references to draft C1X to C11, and to draft C++0X to C++11.
34090 2012-01-06  Bruno Haible  <bruno@clisp.org>
34092         uc-is-grapheme-break tests: Tweak.
34093         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
34094         message.
34096 2012-01-06  Bruno Haible  <bruno@clisp.org>
34098         test-init.sh: correct the test for diff -u
34099         * tests/test-init.sh: Also redirect stdout to /dev/null.
34101 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
34103         Use ', not `, for quoting output.
34104         * build-aux/announce-gen (usage, sizes, print_news_deltas)
34105         (print_changelog_deltas, get_tool_versions, main program):
34106         * build-aux/git-version-gen:
34107         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
34108         * build-aux/move-if-change (help):
34109         * build-aux/useless-if-before-free (usage, main program):
34110         * check-module (parse_module_file, usage)
34111         (find_included_lib_files, check_module):
34112         * lib/argmatch.c (main) [TEST]:
34113         * lib/argp-help.c (_help):
34114         * lib/getopt1.c (main) [TEST]:
34115         * lib/git-merge-changelog.c (usage):
34116         * lib/xstrtol-error.c (xstrtol_error):
34117         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
34118         * m4/argz.m4 (gl_FUNC_ARGZ):
34119         * m4/bison.m4 (gl_BISON):
34120         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
34121         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
34122         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
34123         * m4/fpending.m4 (gl_PREREQ_FPENDING):
34124         * m4/gc-random.m4 (gl_GC_RANDOM):
34125         * m4/intl.m4 (gt_CHECK_DECL):
34126         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
34127         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
34128         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
34129         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
34130         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
34131         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
34132         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
34133         * tests/test-dirname.c (main):
34134         * tests/test-getpass.c (main):
34135         * tests/test-iconvme.c (main):
34136         * tests/test-parse-datetime.c (LOG):
34137         * tests/test-xstrtoimax.sh:
34138         * tests/test-xstrtol.sh:
34139         * tests/test-xstrtoll.sh:
34140         * tests/test-xstrtoumax.sh:
34141         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
34142         * top/GNUmakefile (abort-due-to-no-makefile):
34143         Quote 'like this', not `like this', as per the recent change to
34144         the GNU coding standards.
34146 2012-01-05  Bruno Haible  <bruno@clisp.org>
34148         strtoimax: Don't force a replacement on systems where intmax_t is int.
34149         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
34150         'intmax_t' is not larger than 'int'.
34151         Reported by Pádraig Brady <P@draigBrady.com>.
34153 2012-01-05  Bruno Haible  <bruno@clisp.org>
34155         doc: Mention NetBSD bugs.
34156         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
34157         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
34159 2012-01-05  Bruno Haible  <bruno@clisp.org>
34161         strtoumax tests: Enhance tests.
34162         * tests/test-strtoumax.c (main): Add tests for large values.
34164 2012-01-05  Bruno Haible  <bruno@clisp.org>
34166         strtoimax: Work around AIX 5.1 bug.
34167         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
34168         definition.
34169         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
34170         Set HAVE_STRTOIMAX.
34171         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
34172         REPLACE_STRTOIMAX.
34173         * modules/inttypes-incomplete (Makefile.am): Substitute
34174         REPLACE_STRTOIMAX.
34175         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
34176         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
34177         (Depends-on): Update conditions.
34178         * tests/test-strtoimax.c (main): Add tests for large values.
34179         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
34181 2012-01-05  Bruno Haible  <bruno@clisp.org>
34183         inttypes: Modernize.
34184         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
34185         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
34186         (Makefile.am): Update inttypes.h rule.
34188 2012-01-05  Jim Meyering  <meyering@redhat.com>
34190         init.sh: don't waste a subshell just to redirect stderr
34191         * tests/init.sh: In testing for diff -u and diff -c, use a
34192         stderr-redirecting exec inside `...` rather than a subshell.
34194         test-init.sh: avoid failure on HP-UX 11.00
34195         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
34196         resolves to diff -c or cmp.  Reported by Bruno Haible.
34198 2012-01-05  Bruno Haible  <bruno@clisp.org>
34200         Tests for module 'strtoull'.
34201         * modules/strtoull-tests: New file.
34202         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
34204 2012-01-05  Bruno Haible  <bruno@clisp.org>
34206         Tests for module 'strtoll'.
34207         * modules/strtoll-tests: New file.
34208         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
34210 2012-01-05  Bruno Haible  <bruno@clisp.org>
34212         Tests for module 'strtoul'.
34213         * modules/strtoul-tests: New file.
34214         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
34216 2012-01-05  Bruno Haible  <bruno@clisp.org>
34218         Tests for module 'strtol'.
34219         * modules/strtol-tests: New file.
34220         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
34222 2012-01-04  Jim Meyering  <meyering@redhat.com>
34224         test-init.sh: accommodate Solaris 5.10's different diff -u output
34225         * tests/test-init.sh: Also exempt @@ lines from the comparison
34226         of diff output, since Solaris 5.10 and GNU diff formats differ.
34227         Reported by Stefano Lattarini.
34229 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34231         test-posixtm: don't assume signed integer wraparound
34232         * tests/test-posixtm.c (main): Don't assume wraparound semantics
34233         after signed integer overflow.  Inspired by (though it may not
34234         fix) Bruno Haible's bug report in
34235         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
34237         Spell out "Windows 9x" and "Windows XP".
34238         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
34239         "Windows 9x" and "WinXP" with "Windows XP".
34241 2012-01-04  Jim Meyering  <meyering@redhat.com>
34243         test-vc-list-files-cvs.sh: remove obsolete comment
34244         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
34245         double exit.  Now that's all encapsulated via skip_ and Exit.
34247 2012-01-04  Bruno Haible  <bruno@clisp.org>
34249         Talk about "native Windows API", not "Win32".
34250         * lib/classpath.c: Update comments to mention native Windows.
34251         * lib/csharpexec.c: Likewise.
34252         * lib/dup2.c: Likewise.
34253         * lib/error.c: Likewise.
34254         * lib/fcntl.c: Likewise.
34255         * lib/filename.h: Likewise.
34256         * lib/findprog.c: Likewise.
34257         * lib/get-rusage-as.c: Likewise.
34258         * lib/get-rusage-data.c: Likewise.
34259         * lib/getpagesize.c: Likewise.
34260         * lib/javaexec.c: Likewise.
34261         * lib/msvc-inval.c: Likewise.
34262         * lib/msvc-nothrow.c: Likewise.
34263         * lib/nanosleep.c: Likewise.
34264         * lib/nonblocking.c: Likewise.
34265         * lib/printf-parse.c: Likewise.
34266         * lib/setlocale.c: Likewise.
34267         * lib/sigaction.c: Likewise.
34268         * lib/strerror_r.c: Likewise.
34269         * lib/tmpdir.c: Likewise.
34270         * lib/vasnprintf.c: Likewise.
34271         * lib/w32spawn.h: Likewise.
34272         * lib/waitpid.c: Likewise.
34273         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
34274         * m4/locale-ar.m4: Likewise.
34275         * m4/locale-fr.m4: Likewise.
34276         * m4/locale-ja.m4: Likewise.
34277         * m4/locale-tr.m4: Likewise.
34278         * m4/locale-zh.m4: Likewise.
34279         * m4/printf.m4: Likewise.
34280         * tests/test-cloexec.c: Likewise.
34281         * tests/test-copy-acl.sh: Likewise.
34282         * tests/test-copy-file.sh: Likewise.
34283         * tests/test-file-has-acl.sh: Likewise.
34284         * tests/test-set-mode-acl.sh: Likewise.
34285         * tests/test-dup-safer.c: Likewise.
34286         * tests/test-dup2.c: Likewise.
34287         * tests/test-dup3.c: Likewise.
34288         * tests/test-fcntl.c: Likewise.
34289         * tests/test-nonblocking-pipe.h: Likewise.
34290         * tests/test-nonblocking-socket.h: Likewise.
34291         * tests/test-pipe.c: Likewise.
34292         * tests/test-pipe2.c: Likewise.
34293         * tests/test-spawn-pipe-child.c: Likewise.
34294         * doc/acl-resources.txt: Likewise.
34295         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34296         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
34297         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
34298         * lib/localcharset.c: Update comments to mention native Windows.
34299         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34300         * lib/localename.c: Likewise.
34301         * lib/progreloc.c: Likewise.
34302         * lib/relocatable.c: Likewise.
34303         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
34304         (windows_compute_revents): Renamed from win32_compute_revents.
34305         (windows_compute_revents_socket): Renamed from
34306         win32_compute_revents_socket.
34307         * lib/select.c: Update comments to mention native Windows.
34308         (windows_poll_handle): Renamed from win32_poll_handle.
34309         * m4/threadlib.m4: Update comments to mention native Windows.
34310         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
34311         --enable-threads=windows instead of --enable-threads=win32. Set
34312         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
34313         * lib/glthread/lock.h: Update comments to mention native Windows.
34314         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
34315         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
34316         USE_WIN32_THREADS.
34317         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
34318         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
34319         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
34320         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
34321         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
34322         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
34323         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
34324         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
34325         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
34326         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
34327         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
34328         * tests/test-tls.c: Likewise.
34329         Rationale:
34330         Microsoft renamed the "Win32 API" to "Windows API", as it is available
34331         on both 32-bit and 64-bit Windows systems.
34332         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
34333         line of distinction is between "native Windows" on one side and Unix/
34334         POSIX systems on the other side. More details in
34335         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
34336         Suggested by Paul Eggert.
34338 2012-01-03  Bruno Haible  <bruno@clisp.org>
34340         isatty: Support for MSVC 9.
34341         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
34342         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
34343         (_isatty_nothrow): New function.
34344         (isatty): Use it instead of _isatty.
34345         (IsConsoleHandle): Add comment, from Paolo Bonzini.
34346         * lib/poll.c (IsConsoleHandle): Likewise.
34347         * lib/select.c (IsConsoleHandle): Likewise.
34348         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
34349         (gl_PREREQ_ISATTY): New macro.
34350         * modules/isatty (Depends-on): Add msvc-inval.
34351         (configure.ac): Invoke gl_PREREQ_ISATTY.
34353 2012-01-03  Jim Meyering  <meyering@redhat.com>
34355         maint.mk: remove temporary transition aid from over 1.5 years ago
34356         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
34357         purpose was to aid in the transition (avoiding silent malfunction)
34358         from that old name to the new _sc_search_regexp.  This shim was
34359         added by commit 219c504b.
34361         init.sh: do not try to accommodate compare arguments starting with "-"
34362         * tests/init.sh (compare_dev_null_): Do not try to accommodate
34363         compare arguments that start with "-".  Besides, we do not worry
34364         about this when invoking diff or cmp; why start now with sed?
34365         Using "--" to separate options from argument would trigger sed
34366         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
34367         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
34369 2012-01-02  Bruno Haible  <bruno@clisp.org>
34371         Enhance tests for module 'isatty'.
34372         * modules/isatty-tests (Depends-on): Add pipe-posix.
34373         * tests/test-isatty.c: Include <fcntl.h>.
34374         (DEV_NULL): New macro.
34375         (main): Test the resut of isatty() also on regular files, pipes, and
34376         /dev/null.
34378         New module 'isatty'.
34379         * lib/unistd.in.h (isatty): New declaration.
34380         * lib/isatty.c: New file, based on an idea of
34381         Bastien Roucariès <roucaries.bastien@gmail.com>.
34382         * m4/isatty.m4: New file.
34383         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
34384         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
34385         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
34386         REPLACE_ISATTY.
34387         * modules/isatty: New file.
34388         * doc/posix-functions/isatty.texi: Mention the new module.
34389         Suggested by Paolo Bonzini.
34391 2012-01-02  Bruno Haible  <bruno@clisp.org>
34393         canonicalize: Tweak 2011-12-29 commit.
34394         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
34395         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
34397 2012-01-02  Jim Meyering  <meyering@redhat.com>
34399         gitlog-to-changelog: describe input syntax in --help output
34400         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
34402         gitlog-to-changelog: fix typo in --help: show backslash before email @
34403         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
34404         in sources, but not in actual output.
34406 2011-12-30  Jim Meyering  <meyering@redhat.com>
34408         gitlog-to-changelog: don't malfunction when name contains %-directive
34409         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
34410         in a name string cause trouble.  E.g., with a user name of "%s",
34411         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
34413 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
34415         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
34416         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
34417         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
34418         the "  (tiny change)" notation that is appended to the standard
34419         ChangeLog "date  name  email" header line.
34421 2012-01-01  Jim Meyering  <meyering@redhat.com>
34423         test-framework-sh: init.sh: fix "make dist" failure
34424         When using gnulib-tool's --with-tests option and any module that
34425         depends on test-framework-sh, "make dist" would fail due to the
34426         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
34427         in the gltests directory, and not in the gllib/ directory.
34428         One way to work around that is to move the EXTRA_DIST += init.sh
34429         from the primary module to the -tests one:
34430         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
34431         * modules/test-framework-sh (Makefile.am): ...not here.
34432         Reported by Tom G. Christensen in
34433         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
34435         version-etc: update copyright year reported by --version
34436         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
34438 2011-12-31  Pádraig Brady  <P@draigBrady.com>
34440         canonicalize: only stat() if required
34441         * lib/canonicalize.c (canonicalize_filename_mode):
34442         Avoid calling l?stat() when both CAN_MISSING,
34443         and CAN_NOLINKS are set, as we neither need
34444         to resolve symlinks or test component existence.
34446 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
34448         doc: cover st_ino issues once; add OpenVMS etc.
34449         * doc/posix-functions/stat.texi (stat):
34450         * doc/posix-functions/lstat.texi (lstat):
34451         * doc/posix-functions/fstatat.texi (fstatat):
34452         * doc/posix-functions/fstat.texi (fstat):
34453         Move general 'struct stat' stuff to sys_stat.texi,
34454         leaving behind a pointer.
34455         * doc/posix-headers/sys_stat.texi (sys/stat.h):
34456         Merge duplicate info about 'struct stat' problems into here.
34457         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
34458         and suggest partial workarounds.
34460         same-inode: port to OpenVMS
34461         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
34462         three st_ino values.
34464 2011-12-30  Pádraig Brady  <P@draigBrady.com>
34466         canonicalize: fix references to stat() and lstat()
34467         * lib/canonicalize.c (canonicalize_filename_mode):
34468         Ensure references always resolve to a replacement
34469         function if required (even via a macro).
34471 2011-12-30  Jim Meyering  <meyering@redhat.com>
34473         gitlog-to-changelog: remove a little duplication
34474         * build-aux/gitlog-to-changelog (main): Grep @lines once,
34475         rather than twice.
34477 2011-12-29  Pádraig Brady  <P@draigBrady.com>
34479         canonicalize: add support for not resolving symlinks
34480         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
34481         indicate we don't want to follow symlinks.  Also
34482         provide CAN_MODE_MASK to aid setting these existing
34483         mutually exclusive values.
34484         * lib/canonicalize.c (canonicalize_filename_mode):
34485         Extract the flags from can_mode parameter, which
34486         are currently just used to select between stat()
34487         and lstat().  Also ensure that mutually exclusive
34488         values are flagged immediately as invalid.
34489         * tests/test-canonicalize.c: Verify symlinks are
34490         not followed, and that invalid flag combinations
34491         are diagnosed.
34493 2011-12-25  Jim Meyering  <meyering@redhat.com>
34495         gitlog-to-changelog: do not clump multi-paragraph entries
34496         Identical header lines (date,name,email+coauthors) are suppressed,
34497         thus putting all entries with those same characteristics under
34498         a single header.  However, when a log entry consists of two or
34499         more paragraphs, it may not be clear where it starts and ends.
34500         This change makes it so that such an entry is always separated
34501         from others by a header line, even when that header would
34502         otherwise be suppressed.
34503         * build-aux/gitlog-to-changelog: Implement the above.
34504         Inspired by a related request from Stefano Lattarini in
34505         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
34507 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
34509         announce-gen: fix `cmd' typo in diagnostic
34510         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
34511         diagnostic: a missing '$' meant that the command was not output.
34513 2011-12-23  Jim Meyering  <meyering@redhat.com>
34515         test-framework-sh: distribute init.sh
34516         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
34517         Otherwise, "make -C gnulib-tests check" (at least in grep) would
34518         fail due to the lack of init.sh.
34520         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
34521         * modules/atexit-tests: Rather than listing tests/init.sh,
34522         now that there's a module for it, simply depend on that new module.
34523         * modules/closein-tests: Likewise.
34524         * modules/exclude-tests: Likewise.
34525         * modules/getcwd-tests: Likewise.
34526         * modules/perror-tests: Likewise.
34527         * modules/pread-tests: Likewise.
34528         * modules/pwrite-tests: Likewise.
34529         * modules/vc-list-files-tests: Likewise.
34530         * modules/verify-tests: Likewise.
34531         * modules/xalloc-die-tests: Likewise.
34532         * modules/xstrtoimax-tests: Likewise.
34533         * modules/xstrtol-tests: Likewise.
34534         * modules/xstrtoll-tests: Likewise.
34535         * modules/xstrtoumax-tests: Likewise.
34536         * modules/yesno-tests: Likewise.
34538 2011-12-22  Jim Meyering  <meyering@redhat.com>
34540         test-framework-sh: add minimal tests of init.sh's compare function
34541         * modules/test-framework-sh-tests: New file.
34542         * tests/test-init.sh: New file.
34544         test-framework-sh: new module
34545         * modules/test-framework-sh: New file.
34546         * MODULES.html.sh (Support for maintaining and releasing projects):
34547         List it.
34549         init.sh: do not emit simulated diff output to stderr
34550         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
34552 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
34554         .gitignore: ignore gnulib.dvi and regex.info
34555         * doc/.gitignore:add gnulib.dvi and regex.info
34557 2011-12-22  Jim Meyering  <meyering@redhat.com>
34559         init.sh: correct previous change
34560         * tests/init.sh (compare): My previous change was wrong.
34561         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
34563         init.sh: avoid unwarranted test failure when using "set -e"
34564         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
34565         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
34566         a use like "compare exp out" would get evoke an unconditional failure.
34568 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
34570         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
34571         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
34572         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
34573         autoreconf that did not.
34574         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
34575         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
34577 2011-12-17  Jim Meyering  <meyering@redhat.com>
34579         bootstrap: remove some now-unneeded code
34580         This script arose back when gnulib-tool was young.
34581         Since then, it has seen improvements that render much of this
34582         script unnecessary.  In particular, it can now make symlinks
34583         to the files it uses.  Also, I no longer see as much value in
34584         marking files as read-only via comments.
34585         If you relied on the symlink-creation feature of the preceding
34586         version of this script, you can get most of that functionality
34587         by adding the --symlink option to the definition of
34588         gnulib_tool_option_extras in your bootstrap.conf file.
34589         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
34590         Run autopoint and libtoolize *before* gnulib-tool.
34591         After it, run an abbreviated autoreconf, rather than a loop around
34592         all tools.
34593         (slirp, bt_mark_as_generated): Remove functions.
34595 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
34597         ftoastr: fix typo
34598         * lib/ftoastr.h: Fix misspelling in comment.
34600 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
34602         * top/README-release: fix punctuation.
34604 2011-12-17  Jim Meyering  <meyering@redhat.com>
34606         bootstrap: correct the recent buildreq change
34607         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
34608         had no effect.
34609         * build-aux/bootstrap (buildreq): Bracket each search term with
34610         "*...*", so that the shell "case" statement works as intended.
34611         Add comments.
34613 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
34615         build: let bootstrap resort to wget when downloading .po files
34616         * build-aux/bootstrap (download_po_files): Fallback to wget when
34617         downloading the .po files via rsync fails.  This is necessary to
34618         bootstrap from behind a strict firewall.
34620 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
34622         stdint: don't assume C++11 when compiling with g++
34623         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
34624         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
34625         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
34626         work also in C++ before C++11, as that improperly inhibits
34627         generating a substitute stdint.h for that case.
34629 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
34631         alloca: protect comment from gnulib-tool
34632         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
34633         that gnulib-tool doesn't think it's a license, and munge it to
34634         say "GCC version 3".
34636 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
34638         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
34639         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
34640         $(abs_top_builddir) instead of $(top_builddir).
34642 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
34644         strftime-tests: also test nanoseconds
34645         * tests/test-strftime.c (T): Add a test of %N.
34647 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
34649         inttypes, stdint: add C++11 support
34650         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
34651         when including inttypes.h and stdint.h.  Support this change to
34652         the standard.
34653         * doc/posix-headers/inttypes.texi (inttypes.h):
34654         * doc/posix-headers/stdint.texi (stdint.h): Document this.
34655         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
34656         Define if not defined already, for the benefit of pre-C++11 hosts.
34657         Define the standard format macros (e.g., PRId8) always.
34658         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
34659         Likewise, if __cpluspus.  Define the standard constant and limit
34660         macros (e.g., INT8_C, INT8_MAX) always.
34661         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
34662         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
34663         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
34664         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
34665         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
34666         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
34667         Likewise.
34669 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34671         nonblocking tests: Fix test failure on Linux/PPC.
34672         Suggested by Prerna Saxena in
34673         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
34674         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
34675         Set to 1100000.
34677 2011-12-12  Jim Meyering  <meyering@redhat.com>
34679         argmatch: don't hard-code `' when listing valid option arguments
34680         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
34681         use the quote function to add quotes.  Use fputs rather than
34682         fprintf for the format string with no format directive.
34684 2011-12-07  Eric Blake  <eblake@redhat.com>
34686         bootstrap: detect tools required by gnulib-tool
34687         * build-aux/bootstrap (buildreq): Provide minimum implicit
34688         dependencies.
34689         * DEPENDENCIES: Mention patch as a prereq.
34691 2011-12-04  Bruno Haible  <bruno@clisp.org>
34693         sethostname: Port to Windows platforms.
34694         * lib/sethostname.c: Provide an alternate implementation for Windows
34695         platforms.
34696         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
34697         (main): Skip the test if sethostname() fails with EPERM. On Windows
34698         platforms, don't check the result of gethostname().
34700 2011-12-04  Bruno Haible  <bruno@clisp.org>
34701             Jim Meyering  <meyering@redhat.com>
34703         tests: Avoid spurious error message on platforms without mktemp program.
34704         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
34706 2011-12-04  Bruno Haible  <bruno@clisp.org>
34708         sethostname: Fix documentation.
34709         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
34710         "not fixed" section.
34712 2011-12-03  Bruno Haible  <bruno@clisp.org>
34714         gnulib-tool: Verify that the License field is present and non-empty.
34715         * gnulib-tool (func_get_license_raw): New function, extracted from
34716         func_get_license.
34717         (func_get_license): Use it. Warn if the module is not a test module and
34718         has no license.
34719         Suggested by Jim Meyering.
34721 2011-12-03  Bruno Haible  <bruno@clisp.org>
34723         sethostname tests: Fix link error on mingw.
34724         * tests/test-sethostname1.c: New file, extracted from
34725         tests/test-sethostname.c.
34726         * tests/test-sethostname2.c: New file, extracted from
34727         tests/test-sethostname.c.
34728         * tests/test-sethostname.c: Remove file.
34729         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
34730         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
34731         (Depends-on): Add gethostname.
34732         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
34733         Link the latter with $(GETHOSTNAME_LIB).
34735         sethostname tests: Fix compilation error on mingw.
34736         * tests/test-sethostname.c: Don't include <sys/types.h>.
34737         (geteuid): Use a dummy value without uid_t.
34738         * modules/sethostname-tests (Depends-on): Remove sys_types.
34740         sethostname tests: Avoid a gcc warning.
34741         * tests/test-sethostname.c (main): Remove an unused variable.
34743         Tweak last commit.
34744         * modules/sethostname-tests (Files): Sort by decreasing importance.
34745         (configure.ac): Check for geteuid.
34746         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
34747         the test when there's nothing to test. Drop an unnecessary cast.
34748         Improve an error message. Verify that the final sethostname() call
34749         succeeds.
34751 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34753         Add a test suite for the sethostname module.
34754         * modules/sethostname-tests: New file.  A test program
34755         for the sethostname module.
34756         * tests/test-sethostname.c: Likewise.
34758 2011-12-03  Bruno Haible  <bruno@clisp.org>
34760         Tweak last commit.
34761         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
34762         Fix preprocessor directives indentation. Fix typos.
34763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
34764         * modules/unistd (Makefile): Likewise.
34766 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34768         Integrate the sethostname module into unistd.
34769         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
34770         into the unistd.h header.
34771         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
34772         preprocessor directives.
34773         * modules/unistd: Setup the Makefile substitutions of the
34774         SETHOSTNAME preprocessor directives.
34776 2011-12-03  Bruno Haible  <bruno@clisp.org>
34778         Tweak last commit.
34779         * lib/sethostname.c: Don't include <string.h>.
34780         (sethostname): No need to copy the argument string to the stack. Don't
34781         call clearerr. Preserve errno when fprintf failed.
34782         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
34783         Don't invoke AC_REPLACE_FUNCS.
34784         * modules/sethostname (Link): Remove empty section.
34785         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
34786         failure problem.
34788 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34790         New module 'sethostname'.
34791         * lib/sethostname.c (sethostname): New file.  Provide sethostname
34792         for systems that lack it.
34793         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
34794         sethostname declaration and function.
34795         * modules/sethostname: New file.  Define the sethostname module.
34797 2011-12-03  Bruno Haible  <bruno@clisp.org>
34799         Tweak last commit.
34800         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
34802 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
34804         Split the HOST_NAME_MAX detection into a separate m4 macro.
34805         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
34806         macro so it can be used by the pending sethostname module.
34808 2011-12-03  Bruno Haible  <bruno@clisp.org>
34810         Fix module descriptions syntax.
34811         * modules/argv-iter (License): Fix syntax.
34812         * modules/di-set (License): Likewise.
34813         * modules/ino-map (License): Likewise.
34814         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
34816 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
34818         stdalign: port to Clang 3.0
34819         Problem reported by Simon Josefsson in
34820         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
34821         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
34822         which has <stdalign.h> but which does not define alignof.
34823         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
34825 2011-12-01  Eric Blake  <eblake@redhat.com>
34827         mktempd: silence dd usage
34828         * build-aux/mktempd (rand_bytes): Silence dd.
34830 2011-11-30  Simon Josefsson  <simon@josefsson.org>
34832         manywarnings: Don't mention gcc version in docstring.
34833         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
34834         Jim Meyering <meyering@redhat.com>.
34836 2011-11-30  Jim Meyering  <meyering@redhat.com>
34838         hash: mark a few floating point constants with "f" suffix
34839         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
34840         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
34841         floating point constants with "f", since they're destined to be
34842         saved/used as "float"s.
34844 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
34846         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
34847         * tests/test-float.c (test_long_double): Correct and re-enable the
34848         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
34850 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
34852         Avoid subtracting two pointers that don't point into the same block.
34853         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
34854         only pointers into the same memory block are subtracted. We cannot
34855         assume that sizeof (ptrdiff_t) == sizeof (void *).
34857 2011-11-29  Eric Blake  <eblake@redhat.com>
34859         maint.mk: add syntax check for use of compare from init.sh
34860         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
34861         moved here from coreutils.
34863         manywarnings: drop -Wunsuffixed-float-constants
34864         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
34865         '1.0D', which is the only way to silence this warning for 'double'.
34867 2011-11-29  Jim Meyering  <meyering@redhat.com>
34869         hash: mark compute_bucket_size with the pure attribute
34870         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
34872         quotearg, propername: correct pragma guard expression
34873         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
34874         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
34876 2011-11-28  Jim Meyering  <meyering@redhat.com>
34878         propername: do not mark proper_name with the const attribute
34879         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
34880         since it examines data pointed to by its parameter.
34881         * lib/propername.c (proper_name): Instead, add a pragma to suppress
34882         the suggestion from -Wsuggest-attribute=const.
34884         propername: mark one more function as const
34885         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
34887 2011-11-27  Jim Meyering  <meyering@redhat.com>
34889         mark functions with const and pure attributes
34891         Mark functions per suggestions from gcc-4.6 when using these options:
34892         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
34893         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
34894         Follow these guidelines: when possible, apply the attribute to
34895         an extern declaration, not to its definition.  Apply it to the
34896         definition only when the definition is static.
34897         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
34898         * lib/argv-iter.h (argv_iter_n_args): Likewise.
34899         * lib/base64.h (isbase64): Likewise.
34900         * lib/basename-lgpl.c (last_component, base_len): Likewise.
34901         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
34902         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
34903         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
34904         (c_tolower, c_toupper): Likewise.
34905         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
34906         * lib/chdir-long.c (find_non_slash): Likewise.
34907         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
34908         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
34909         * lib/file-type.h (file_type): Likewise.
34910         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
34911         * lib/filevercmp.c (verrevcmp): Likewise.
34912         * lib/freadahead.h (freadahead): Likewise.
34913         * lib/fts.c (fts_maxarglen): Likewise.
34914         * lib/hash-pjw.h (hash_pjw): Likewise.
34915         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
34916         * lib/hash.c (is_prime, next_prime): Likewise.
34917         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
34918         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
34919         (hash_table_ok, hash_get_first, hash_string): Likewise.
34920         (compute_bucket_size): Likewise.
34921         * lib/i-ring.h (i_ring_empty): Likewise.
34922         * lib/isnan.c (isnanl): Likewise.
34923         * lib/math.h (isnanl, rpl_isnanl): Likewise.
34924         * lib/memcasecmp.h (memcasecmp): Likewise.
34925         * lib/memchr2.h (memchr2): Likewise.
34926         * lib/memcmp2.h (memcmp2): Likewise.
34927         * lib/parse-datetime.y (lookup_zone): Likewise.
34928         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
34929         [!WINDOWS_SOCKETS]: Likewise.
34930         * lib/strnlen1.h (strnlen1): Likewise.
34931         * lib/uniwidth.in.h (uc_width): Likewise.
34932         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
34933         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
34934         (quoting_options_from_style): Add a comment.
34935         * lib/propername.h (proper_name): Add a comment.
34937 2011-11-27  Bruno Haible  <bruno@clisp.org>
34939         Remove unused macros from !_LIBC code in glibc-borrowed files.
34940         * lib/fnmatch.c (STRCOLL): Remove macro.
34941         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
34942         * lib/glob.c (__stat, __readdir64): Remove macros.
34943         * lib/tempname.c (__open64, __xstat64): Remove macros.
34944         Suggested by Paul Eggert.
34946 2011-11-27  Bruno Haible  <bruno@clisp.org>
34948         getcwd: Fix link error on MSVC 9.
34949         * modules/getcwd (Depends-on): Add readdir, rewinddir.
34951 2011-11-27  Bruno Haible  <bruno@clisp.org>
34953         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
34954         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
34955         HAVE_OPENDIR is 0.
34956         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
34957         HAVE_CLOSEDIR is 0.
34958         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
34959         is 0.
34960         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
34962 2011-11-27  Bruno Haible  <bruno@clisp.org>
34964         getcwd: Fix bug from 2011-08-17.
34965         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
34966         platforms that need it.
34967         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
34968         code of 4 to be a failure, not a success. This ensures that
34969         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
34971 2011-11-27  Bruno Haible  <bruno@clisp.org>
34973         binary-io tests: Avoid test failure on mingw when libtool is used.
34974         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
34975         Don't verify the size of t-bin-out1.tmp here.
34976         * tests/test-binary-io.sh: Verify it here.
34977         Reported by Simon Josefsson.
34979 2011-11-26  Bruno Haible  <bruno@clisp.org>
34981         Fix conflict between two instantiations of module 'unistd'.
34982         * gnulib-tool (func_emit_autoconf_snippet): Substitute
34983         ${include_guard_prefix} also in the autoconf snippet.
34984         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
34985         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
34986         GNULIB_UNISTD_H_GETOPT.
34987         * modules/getopt-posix (configure.ac): Set the
34988         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
34989         * modules/getopt-gnu (configure.ac): Likewise.
34990         * modules/unistd (Makefile.am): Change the substitution value of
34991         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
34992         Reported by Simon Josefsson.
34994 2011-11-25  Bruno Haible  <bruno@clisp.org>
34996         pagealign_alloc: Doc and comments.
34997         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
34998         module.
34999         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
35001 2011-11-25  Jim Meyering  <meyering@redhat.com>
35003         test-update-copyright.sh: avoid false-positive failure
35004         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
35005         around false positive failure on Cygwin/Windows.  The latter was
35006         matching erroneously-created files with names like
35007         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
35009 2011-11-25  Simon Josefsson  <simon@josefsson.org>
35011         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
35012         * m4/valgrind-tests.m4: Check that the parameters that will be
35013         used works, not just a subset of them.  Reported by Bruno Haible
35014         <bruno@clisp.org>.
35016 2011-11-24  Jim Meyering  <meyering@redhat.com>
35018         test-stdalign.c: comment out long double tests
35019         * tests/test-stdalign.c: Don't try to reduce alignment of long double
35020         variables.  That provokes errors like this from gcc-4.7.0 20111124:
35021         error: '_Alignas' specifiers cannot reduce alignment of \
35022         'static_longdouble_alignas'.
35024 2011-11-22  Jim Meyering  <meyering@redhat.com>
35026         init.sh: make "compare /dev/null FILE" output more readable
35027         * tests/init.sh (compare_): Document the preferred order of arguments.
35028         (emit_diff_u_header_): New function.
35029         (compare_dev_null_): Emit a simulated diff, rather than just the
35030         contents of the unexpected file.  Suggestion from Bruno Haible.
35032 2011-11-21  Jim Meyering  <meyering@redhat.com>
35033             Eric Blake  <eblake@redhat.com>
35035         init.sh: work around OSF/1 5.1's mishandling of /dev/null
35036         * tests/init.sh: Make our compare function slightly more portable.
35037         Reported by Bruno Haible in
35038         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
35040 2011-11-21  Simon Josefsson  <simon@josefsson.org>
35042         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
35043         before using it, in code that ends up in config.h.
35045 2011-11-20  Bruno Haible  <bruno@clisp.org>
35047         getcwd: Work around getcwd bug on AIX 5..7.
35048         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
35049         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
35050         Use a different value for gl_cv_func_getcwd_path_max. Move the
35051         definition of HAVE_PARTLY_WORKING_GETCWD from here...
35052         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
35053         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
35054         Define HAVE_MINIMALLY_WORKING_GETCWD.
35055         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
35056         where it is not even minimally working, that is, on AIX.
35057         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
35058         m4/getcwd-path-max.m4.
35059         (main): Update exit code computation.
35060         * doc/posix-functions/getcwd.texi: Mention list of platforms where
35061         getcwd does not handle long file names.
35063 2011-11-20  Bruno Haible  <bruno@clisp.org>
35065         getcwd: Fix bug from 2009-09-10.
35066         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
35067         like "no".
35069 2011-11-20  Simon Josefsson  <simon@josefsson.org>
35071         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
35073 2011-11-20  Bruno Haible  <bruno@clisp.org>
35075         fma tests: Avoid shadowing local variables.
35076         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
35077         expected.
35079 2011-11-20  Bruno Haible  <bruno@clisp.org>
35081         copysignf tests: Fix.
35082         * tests/test-copysignf.c: Fix signature check.
35084 2011-11-20  Bruno Haible  <bruno@clisp.org>
35086         fma: Remove unused code.
35087         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
35088         unused macros.
35090 2011-11-20  Bruno Haible  <bruno@clisp.org>
35092         sethostname: Fix doc about AIX.
35093         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
35094         sethostname; it has it.
35096         sethostname: Mention more portability problems.
35097         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
35098         problem.
35099         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35101 2011-11-19  Bruno Haible  <bruno@clisp.org>
35103         Depend on module fcntl-h when AT_FDCWD is used.
35104         * modules/utimens (Depends-on): Add fcntl-h.
35105         * modules/areadlinkat (Depends-on): Likewise.
35106         * modules/areadlinkat-with-size (Depends-on): Likewise.
35107         * modules/faccessat (Depends-on): Likewise.
35108         * modules/fchmodat (Depends-on): Likewise.
35109         * modules/fchownat (Depends-on): Likewise.
35110         * modules/getcwd (Depends-on): Likewise.
35111         * modules/mkdirat (Depends-on): Likewise.
35112         * modules/mkfifoat (Depends-on): Likewise.
35113         * modules/readlinkat (Depends-on): Likewise.
35114         * modules/symlinkat (Depends-on): Likewise.
35115         * modules/dup2-tests (Depends-on): Likewise.
35116         * modules/fdutimensat-tests (Depends-on): Likewise.
35117         * modules/futimens-tests (Depends-on): Likewise.
35119 2011-11-19  Bruno Haible  <bruno@clisp.org>
35121         euidaccess: Update a comment.
35122         * lib/euidaccess.c: Update comment about platforms with faccessat.
35124 2011-11-19  Bruno Haible  <bruno@clisp.org>
35126         openat: Fix file list.
35127         * modules/openat (Files): Remove lib/at-func.c.
35129 2011-11-19  Bruno Haible  <bruno@clisp.org>
35131         fstatat: Simplify.
35132         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
35133         gnulib should define rpl_fstatat, there is a
35134         "#define fstatat rpl_fstatat" in <sys/stat.h>.
35136 2011-11-19  Bruno Haible  <bruno@clisp.org>
35138         Ensure 'inline' can be used in tests/test-utimens-common.h.
35139         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
35140         * modules/futimens-tests (configure.ac): Likewise.
35141         * modules/utimens-tests (configure.ac): Likewise.
35142         * modules/utimensat-tests (configure.ac): Likewise.
35144 2011-11-19  Simon Josefsson  <simon@josefsson.org>
35146         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
35147         not hash_insert0.
35148         (hash_insert_if_absent): Doc fix.
35150 2011-11-19  Simon Josefsson  <simon@josefsson.org>
35152         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
35154 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
35156         test-getcwd: disambiguate exit status
35157         * tests/test-getcwd.c (test_long_name): Return 0..7.
35158         (main): Exit with an unambiguous exit status.  The old
35159         code yielded a mysterious mixture of two failure codes.
35161         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
35162         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
35163         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
35164         rpl_fstatat or fstatat.  This should fix the other problem
35165         reported by Kai Habel in
35166         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
35167         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
35168         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
35169         and I reproduced it on a Solaris 8 host we still have in production.
35171 2011-11-18  Jim Meyering  <meyering@redhat.com>
35173         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
35174         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
35175         Add a sentence to the comment.
35176         (hash_insert0): New function that simply calls hash_insert_if_absent.
35177         * lib/hash.h (hash_insert_if_absent): Declare it.
35178         (hash_insert0): Add deprecation attribute.
35179         (_GL_ATTRIBUTE_DEPRECATED): Define.
35180         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
35181         not hash_insert0.
35182         * NEWS: Mention it, even though it's not really an incompatible change.
35184 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
35186         openat: avoid compilation failure due to lack of <errno.h> inclusion
35187         * lib/openat.c: Include <errno.h>.
35189 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
35191         * modules/getcwd (Depends-on): Add fdopendir.
35192         This fixes one of the two problems reported by Kai Habel in
35193         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
35195         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
35196         stdalign problem reported by Ian Beckwith in
35197         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
35198         * modules/crypto/gc-arcfour (Depends-on):
35199         Depend conditionally on crypto/arcfour.
35200         * modules/crypto/gc-arctwo (Depends-on):
35201         Depend conditionally on crypto/arctwo.
35202         * modules/crypto/gc-des (Depends-on):
35203         Depend conditionally on crypto/des.
35204         * modules/crypto/gc-hmac-md5 (Depends-on):
35205         Depend conditionally on crypto/hmac-md5.
35206         * modules/crypto/gc-hmac-sha1 (Depends-on):
35207         Depend conditionally on crypto/hmac-sha1.
35208         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
35209         * modules/crypto/gc-md4 (Depends-on):
35210         Depend conditionally on crypto/md4.
35211         * modules/crypto/gc-md5 (Depends-on):
35212         Depend conditionally on crypto/md5.
35213         * modules/crypto/gc-rijndael (Depends-on):
35214         Depend conditionally on crypto/rijndael.
35215         * modules/crypto/gc-sha1 (Depends-on):
35216         Depend conditionally on crypto/sha1.
35217         * modules/crypto/gc-arcfour:
35218         * modules/crypto/gc-arctwo:
35219         * modules/crypto/gc-des:
35220         * modules/crypto/gc-hmac-md5:
35221         * modules/crypto/gc-hmac-sha1:
35222         * modules/crypto/gc-md2:
35223         * modules/crypto/gc-md4:
35224         * modules/crypto/gc-md5:
35225         * modules/crypto/gc-rijndael:
35226         * modules/crypto/gc-sha1:
35227         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
35228         now that the conditional dependencies do the work for us.
35230 2011-11-17  Jim Meyering  <meyering@redhat.com>
35232         tests: factor st_ctime-comparison out of two headers
35233         * tests/test-utimens-common.h (ctime_compare): Define.
35234         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
35235         * tests/test-lutimens.h (test_lutimens): Likewise.
35236         * tests/test-utimens.h (test_utimens): Likewise.
35238         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
35239         Invoke the test program via an init.sh-using wrapper.
35240         * tests/test-getcwd.sh: New file.
35241         * modules/getcwd-tests (Files): Add it.
35242         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
35244 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
35246         gitlog-to-changelog: support multi-author commits.
35247         The FSF cares about keeping track of all authors of patches to its
35248         projects, but Git doesn't provide obvious support for multi-author
35249         changesets. Consensus seems to be forming around the use of extra
35250         Signed-off-by inspired lines in the log message formatted as
35251         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
35252         multi-author commits between version control systems.
35253         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
35254         log message and output in standard ChangeLog multi-author format.
35255         Reported by Peter Rosin <peda@lysator.liu.se>
35257 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35258             Bruno Haible  <bruno@clisp.org>
35260         Fix some modules' file list.
35261         * modules/fstatat (Files): Add m4/lstat.m4.
35262         * modules/openat (Files): Likewise.
35263         * modules/unlinkat (Files): Likewise.
35265 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
35267         maint.mk: fix tight-scope.mk generation in VPATH builds.
35268         * top/maint.mk (tight-scope.mk): Make sure to prefix file
35269         reference with $(srcdir) so that the file is found correctly even
35270         when running `make syntax-check' in a VPATH build.
35272 2011-11-13  Bruno Haible  <bruno@clisp.org>
35273             Jim Meyering  <meyering@redhat.com>
35275         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
35276         * tests/init.sh (compare): Remove "No differences encountered" or
35277         synonymous output from the 'diff' program.
35279 2011-11-13  Bruno Haible  <bruno@clisp.org>
35281         Makefile: Tweak indentation.
35282         * Makefile: Use tab as first character in every line that contains rule
35283         commands.
35285 2011-11-13  Bruno Haible  <bruno@clisp.org>
35287         Syntax check for copyright statements.
35288         * check-copyright: New file.
35289         * Makefile (sc_check_copyright): New rule.
35291 2011-11-13  Simon Josefsson  <simon@josefsson.org>
35293         * build-aux/git-version-gen: Add --prefix to configure the tag
35294         match string.
35296 2011-11-13  Simon Josefsson  <simon@josefsson.org>
35298         * build-aux/git-version-gen: Add --help and --version.
35300 2011-11-12  Jim Meyering  <meyering@redhat.com>
35302         revamp the other test-exclude?.sh scripts to use init.sh, too
35303         * tests/test-exclude1.sh: Use init.sh.
35304         * tests/test-exclude2.sh: Likewise.
35305         * tests/test-exclude3.sh: Likewise.
35306         * tests/test-exclude4.sh: Likewise.
35307         * tests/test-exclude5.sh: Likewise.
35308         * tests/test-exclude6.sh: Likewise.
35309         * tests/test-exclude7.sh: Likewise.
35310         * tests/test-exclude8.sh: Likewise.
35311         * modules/exclude-tests (Files): List init.sh.
35313         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
35314         These shell scripts ignored failure of the binary test-exclude,
35315         so making the latter return 77 didn't cause them to be skipped.
35316         * tests/test-exclude5.sh: Exit with test-exclude's error status
35317         when that program fails.  Revamp to use init.sh.
35318         * tests/test-exclude2.sh: Likewise.
35320         test-exclude: fix a typo
35321         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
35323 2011-11-11  Bruno Haible  <bruno@clisp.org>
35325         obstack: Fix compilation error on MSVC 9.
35326         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
35328 2011-11-11  Jim Meyering  <meyering@redhat.com>
35330         test-exclude: skip tests rather than failing on deficient systems
35331         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
35332         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
35333         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
35334         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
35336 2011-11-10  Bruno Haible  <bruno@clisp.org>
35338         ptsname_r test: Avoid gcc warning on glibc systems.
35339         * tests/test-ptsname_r.c (null_ptr): New function.
35340         (test_errors): Use it.
35342 2011-11-10  Bruno Haible  <bruno@clisp.org>
35344         ptsname_r: Avoid compilation error on OSF/1 5.1.
35345         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
35346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
35347         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
35348         function is not declared or incompatibly declared.
35349         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
35350         * modules/ptsname_r (Depends-on, configure.ac): Update.
35351         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
35353 2011-11-10  Bruno Haible  <bruno@clisp.org>
35355         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
35356         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
35357         When cross-compiling, guess yes on all platforms except AIX.
35358         Reported by Ludovic Courtès <ludo@gnu.org>.
35360 2011-11-09  Bruno Haible  <bruno@clisp.org>
35362         ptsname_r tests: Fix bugs.
35363         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
35364         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
35366 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
35368         fstatat: work with cross-compilation
35369         Problem reported by Ludovic Courtès in
35370         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
35371         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
35372         "cross-compiling" and assume the bug is present.  Replace
35373         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
35374         an inverted sense, to be more conservative about our assumptions.
35375         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
35377 2011-11-09  Bruno Haible  <bruno@clisp.org>
35379         Improve MODULES.html output.
35380         * modules/mkfifoat (Description): Use the word "function".
35381         * modules/readlinkat (Description): Likewise.
35382         * modules/symlinkat (Description): Likewise.
35384 2011-11-09  Eric Blake  <eblake@redhat.com>
35386         ptsname_r-tests: new test module
35387         * modules/ptsname_r-tests: New module.
35388         * tests/test-ptsname_r.c: New file.
35390         ptsname_r: new module
35391         * modules/ptsname_r: New module.
35392         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
35393         * lib/ptsname.c (__ptsname_r): Split...
35394         * lib/ptsname_r.c: ...into new file.
35395         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
35396         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
35397         * modules/stdlib (Makefile.am): Substitute witnesses.
35398         * lib/stdlib.in.h (ptsname_r): Declare it.
35399         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
35400         * MODULES.html.sh (Misc): Likewise.
35401         * modules/ptsname (Depends-on): Alter dependency.
35402         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
35404 2011-11-09  Jim Meyering  <meyering@redhat.com>
35406         announce-gen: be more concise when there's only one URL+tarball
35407         * build-aux/announce-gen (get_tool_versions): When you distribute
35408         only one type of tarball, combine the first two "Here are..."
35409         sections and make the key-checking grammar independent of
35410         how many tarballs there are.
35412 2011-11-09  Eric Blake  <eblake@redhat.com>
35414         openpty: provide a stub on mingw
35415         * lib/pty.in.h (includes): Provide forward declarations.
35416         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
35418         raise: fix mingw handling of SIGPIPE
35419         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
35421 2011-11-08  Bruno Haible  <bruno@clisp.org>
35423         More conditional dependencies.
35424         * modules/faccessat (Depends-on): Add conditions.
35425         * modules/fchmodat (Depends-on): Likewise.
35426         * modules/fchownat (Depends-on): Likewise.
35427         * modules/fstatat (Depends-on): Likewise.
35428         * modules/mkfifoat (Depends-on): Likewise.
35429         * modules/readlinkat (Depends-on): Likewise.
35430         * modules/symlinkat (Depends-on): Likewise.
35431         * modules/unlinkat (Depends-on): Likewise.
35432         * modules/utimensat (Depends-on): Likewise.
35433         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
35434         * modules/linkat (Depends-on): Refine the conditions.
35435         * modules/renameat (Depends-on): Likewise.
35437 2011-11-08  Bruno Haible  <bruno@clisp.org>
35439         faccessat: Move AC_LIBOBJ invocation to module description.
35440         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
35441         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
35442         invocation from here...
35443         * modules/faccessat (configure.ac): ... to here. Invoke
35444         gl_PREREQ_FACCESSAT.
35446 2011-11-08  Bruno Haible  <bruno@clisp.org>
35448         faccessat: Simplify autoconf macro.
35449         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
35450         gl_FUNC_EUIDACCESS.
35452 2011-11-08  Bruno Haible  <bruno@clisp.org>
35454         renameat: Fix dependencies.
35455         * modules/renameat (Depends-on): Add stdbool.
35457 2011-11-08  Bruno Haible  <bruno@clisp.org>
35459         mkfifoat: Fix module description.
35460         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
35461         not gl_UNISTD_MODULE_INDICATOR.
35463 2011-11-08  Bruno Haible  <bruno@clisp.org>
35465         fstatat: Remove unused dependency.
35466         * modules/fstatat (Depends-on): Remove fstat.
35468 2011-11-08  Simon Josefsson  <simon@josefsson.org>
35470         GNUmakefile: behave when Makefile is missing.
35471         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
35473 2011-11-08  Bruno Haible  <bruno@clisp.org>
35475         openat: Conditionalize dependencies.
35476         * lib/openat.c: Reduce the scope of some #includes.
35477         * modules/openat (Depends-on): Add conditions.
35479 2011-11-07  Jim Meyering  <meyering@redhat.com>
35481         maint.mk: extract GPG key ID without using a temporary file
35482         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
35483         without using a temporary file.  Based on a suggestion from Werner Koch
35484         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
35486 2011-11-07  Eric Blake  <eblake@redhat.com>
35488         grantpt: fix typo
35489         * lib/stdlib.in.h (grantpt): Check correct function.
35491         maint.mk: silence new syntax check
35492         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
35494 2011-11-06  Bruno Haible  <bruno@clisp.org>
35496         Doc about floating-point and math API.
35497         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
35498         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
35500 2011-11-06  Bruno Haible  <bruno@clisp.org>
35502         stdalign tests: Skip the test when compiled by Sun C.
35503         * tests/test-stdalign.c (main): Skip the test on Sun C.
35505 2011-11-06  Bruno Haible  <bruno@clisp.org>
35507         ansi-c++-opt: Complete the 2011-06-05 change.
35508         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
35509         does not support namespaces, set the variable to "no", not to ":".
35511 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
35513         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
35515 2011-11-06  Bruno Haible  <bruno@clisp.org>
35517         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
35518         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
35519         (minus_zerol) [HP-UX]: New macro.
35520         (unary_minus) [HP-UX]: New function.
35521         (copysignl) [HP-UX]: Use unary_minus function.
35523 2011-11-06  Bruno Haible  <bruno@clisp.org>
35525         ldexp, ldexpf, ldexpl: Enhance tests.
35526         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
35527         and tests/test-ldexpl.c.
35528         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
35529         LDEXP, MIN_EXP, MAX_EXP): New macros.
35530         Include test-ldexp.h.
35531         (main): Just call test_function.
35532         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
35533         infinity.h, nan.h.
35534         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
35535         MAX_EXP): New macros.
35536         Include test-ldexp.h.
35537         (x, y): Remove variables.
35538         (main): Just call test_function.
35539         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
35540         infinity.h, nan.h.
35541         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
35542         MAX_EXP): New macros.
35543         Include test-ldexp.h.
35544         (x, y): Remove variables.
35545         (main): Just call test_function.
35546         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
35547         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
35548         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
35549         (Depends-on): Add isnand-nolibm, signbit, float.
35550         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
35551         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
35552         (Depends-on): Add isnanf-nolibm, signbit, float.
35554 2011-11-06  Bruno Haible  <bruno@clisp.org>
35556         math tests: Cosmetics.
35557         * tests/test-math-c++.cc: Reorder declarations.
35559 2011-11-05  Bruno Haible  <bruno@clisp.org>
35561         fma*: Simplify test.
35562         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
35563         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
35565         Tests for module 'fmal'.
35566         * modules/fmal-tests: New file.
35567         * tests/test-fmal1.c: New file.
35568         * tests/test-fmal2.c: New file.
35570         New module 'fmal'.
35571         * lib/math.in.h (fmal): New declaration.
35572         * lib/fmal.c: New file.
35573         * m4/fmal.m4: New file.
35574         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
35575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
35576         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
35577         REPLACE_FMAL.
35578         * modules/fmal: New file.
35579         * doc/posix-functions/fmal.texi: Mention the new module and the various
35580         bugs.
35582         Tests for module 'fmaf'.
35583         * modules/fmaf-tests: New file.
35584         * tests/test-fmaf1.c: New file.
35585         * tests/test-fmaf2.c: New file.
35587         New module 'fmaf'.
35588         * lib/math.in.h (fmaf): New declaration.
35589         * lib/fmaf.c: New file.
35590         * m4/fmaf.m4: New file.
35591         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
35592         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
35593         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
35594         REPLACE_FMAF.
35595         * modules/fmaf: New file.
35596         * doc/posix-functions/fmaf.texi: Mention the new module and the various
35597         bugs.
35599         Tests for module 'fma'.
35600         * modules/fma-tests: New file.
35601         * tests/test-fma1.c: New file.
35602         * tests/test-fma1.h: New file.
35603         * tests/test-fma2.c: New file.
35604         * tests/test-fma2.h: New file.
35606         New module 'fma'.
35607         * lib/math.in.h (fma): New declaration.
35608         * lib/fma.c: New file.
35609         * m4/fma.m4: New file.
35610         * m4/fegetround.m4: New file.
35611         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
35612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
35613         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
35614         REPLACE_FMA.
35615         * modules/fma: New file.
35616         * doc/posix-functions/fma.texi: Mention the new module and the various
35617         bugs.
35619         Extend gl_MATHFUNC.
35620         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
35621         Support 'void' as argument type.
35622         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
35624 2011-11-05  Jim Meyering  <meyering@redhat.com>
35626         maint.mk: also prohibit inclusion of dirent.h without use
35627         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
35629 2011-11-05  Bruno Haible  <bruno@clisp.org>
35631         ldexpl tests: Avoid test failure on MSVC 9.
35632         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
35633         value. Needed in order to enforce the conversion from a value greater
35634         than LDBL_MAX to Infinity.
35636 2011-11-05  Bruno Haible  <bruno@clisp.org>
35638         New modules 'at-internal', 'openat-h', split off from module 'openat'.
35639         * modules/at-internal: New file, extracted from modules/openat.
35640         * modules/openat-h: New file.
35641         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
35642         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
35643         * modules/openat (Description): Add reference to POSIX function.
35644         (Files): Remove lib/openat.h, lib/openat-proc.c.
35645         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
35646         intprops, unistd.
35647         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
35648         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
35649         gl_FCNTL_MODULE_INDICATOR.
35650         (Include): Remove unistd.h, openat.h.
35651         * modules/areadlinkat (Files): Add lib/at-func.c.
35652         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35653         openat-die, openat-h, save-cwd.
35654         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
35655         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35656         openat-die, openat-h, save-cwd, unistd.
35657         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
35658         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35659         openat-h, save-cwd. Remove fcntl-h, openat.
35660         * modules/fchmodat (Files): Remove lib/openat.h.
35661         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35662         openat, stdbool, unistd.
35663         * modules/fchownat (Files): Remove lib/openat.h.
35664         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35665         openat, stdbool, sys_stat.
35666         * modules/fdopendir (Files): Remove lib/openat-priv.h,
35667         lib/openat-proc.c.
35668         (Depends-on): Add at-internal.
35669         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
35670         * modules/fstatat (Files): Remove lib/openat.h.
35671         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
35672         stdbool, unistd.
35673         * modules/fts (Depends-on): Add openat-h.
35674         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
35675         openat.
35676         * modules/mkdirat (Files): Remove lib/openat.h.
35677         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
35678         openat, stdbool, sys_stat.
35679         * modules/mkfifoat (Files): Add lib/at-func.c.
35680         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35681         openat-h, save-cwd. Remove fcntl-h, openat.
35682         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
35683         * modules/readlinkat (Files): Add lib/at-func.c.
35684         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35685         openat-h, save-cwd. Remove fcntl-h, openat.
35686         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
35687         openat.
35688         * modules/selinux-at (Files): Add lib/at-func.c.
35689         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
35690         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
35691         * modules/symlinkat (Files): Add lib/at-func.c.
35692         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
35693         openat-h, save-cwd. Remove fcntl-h, openat.
35694         * modules/unlinkat (Files): Remove lib/openat.h.
35695         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
35696         stdbool.
35697         * modules/utimensat (Files): Add lib/at-func.c.
35698         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
35699         openat-die, openat-h, save-cwd.
35700         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
35701         * modules/fdutimensat-tests (Depends-on): Add openat.
35702         * modules/fstatat-tests (Depends-on): Add openat-h.
35703         * modules/readlinkat-tests (Depends-on): Add openat.
35704         * modules/symlinkat-tests (Depends-on): Add openat.
35706 2011-11-05  Bruno Haible  <bruno@clisp.org>
35708         openat: Include <stdbool.h>.
35709         * lib/openat.c: Include <stdbool.h>.
35711 2011-11-04  Bruno Haible  <bruno@clisp.org>
35713         fchownat, renameat, unlinkat: Fix dependencies.
35714         * modules/fchownat (Depends-on): Add fstatat.
35715         * modules/renameat (Depends-on): Likewise.
35716         * modules/unlinkat (Depends-on): Likewise.
35718 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
35720         openat: remove direct dependency on dirent
35721         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
35722         and hasn't been needed ever since fdopendir was split into its own
35723         module on 2009-08-31.
35724         * modules/openat (Depends-on): Remove dirent.
35726 2011-11-04  Bruno Haible  <bruno@clisp.org>
35728         renameat: Optimize code size.
35729         * modules/renameat (configure.ac): Don't compile at-func2.c if
35730         REPLACE_RENAMEAT is 1.
35732 2011-11-04  Bruno Haible  <bruno@clisp.org>
35734         openat tests: Fix file list.
35735         * modules/openat-tests (Files): Add tests/test-open.h.
35737 2011-11-04  Bruno Haible  <bruno@clisp.org>
35739         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
35740         * modules/fchmodat (Depends-on): Add openat-die.
35741         * modules/fchownat (Depends-on): Likewise.
35742         * modules/linkat (Depends-on): Likewise.
35743         * modules/renameat (Depends-on): Likewise.
35744         * modules/openat (Depends-on): Add dirent.
35746 2011-11-04  Jim Meyering  <meyering@redhat.com>
35748         at-func*.c: fix comments
35749         * lib/at-func2.c: Correct/improve first-line comment.
35750         * lib/at-func.c: Correct grammar in first-line comment.
35752 2011-11-04  Bruno Haible  <bruno@clisp.org>
35754         New module 'mkdirat', split off from module 'openat'.
35755         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
35756         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
35757         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
35758         * modules/mkdirat: New file, extracted from modules/openat.
35759         * modules/openat (Files): Remove lib/mkdirat.c.
35760         (Depends-on): Remove mkdir.
35761         (configure.ac): Remove AC_LIBOBJ of mkdirat.
35762         (Include): Remove <sys/stat.h>.
35763         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
35764         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
35765         tests/test-mkdir.h.
35766         (Depends-on): Remove ignore-value.
35767         (Makefile.am): Remove rules for test-mkdirat.
35768         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
35769         of module 'openat'.
35770         * NEWS: Mention the change.
35772 2011-11-04  Bruno Haible  <bruno@clisp.org>
35774         closedir: Avoid warning on mingw.
35775         * lib/closedir.c: Include <unistd.h>.
35777 2011-11-04  Bruno Haible  <bruno@clisp.org>
35779         New module 'fstatat', split off from module 'openat'.
35780         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
35781         defined.
35782         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
35783         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
35784         gl_FUNC_FSTATAT.
35785         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
35786         * modules/fstatat: New file, extracted from modules/openat.
35787         * modules/openat (Files): Remove lib/fstatat.c.
35788         (Depends-on): Remove lstat.
35789         (configure.ac): Remove AC_LIBOBJ of fstatat.
35790         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
35791         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
35792         tests/test-lstat.h, tests/test-stat.h.
35793         (Depends-on): Remove getcwd-lgpl.
35794         (Makefile.am): Remove rules for test-fstatat.
35795         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
35796         of module 'openat'.
35797         * NEWS: Mention the change.
35798         * modules/getcwd (Depends-on): Add fstatat.
35799         * modules/linkat (Depends-on): Likewise.
35800         * modules/mkfifoat-tests (Depends-on): Likewise.
35801         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
35803 2011-11-03  Bruno Haible  <bruno@clisp.org>
35805         New module 'unlinkat', split off from module 'openat'.
35806         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
35807         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
35808         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
35809         * modules/unlinkat: New file, extracted from modules/openat. Correct
35810         the dependency conditions.
35811         * modules/openat (Files): Remove lib/unlinkat.c.
35812         (Depends-on): Remove rmdir, unlink.
35813         (configure.ac): Remove AC_LIBOBJ of unlinkat.
35814         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
35815         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
35816         tests/test-rmdir.h, tests/test-unlink.h.
35817         (Depends-on): Remove unlinkdir.
35818         (Makefile.am): Remove rules for test-unlinkat.
35819         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
35820         of module 'openat'.
35821         * NEWS: Mention the change.
35822         * modules/linkat-tests (Depends-on): Add unlinkat.
35823         * modules/mkfifoat-tests (Depends-on): Likewise.
35824         * modules/readlinkat-tests (Depends-on): Likewise.
35826 2011-11-02  Bruno Haible  <bruno@clisp.org>
35828         New module 'fchmodat', split off from module 'openat'.
35829         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
35830         defined.
35831         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
35832         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
35833         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
35834         * modules/fchmodat: New file, extracted from modules/openat.
35835         * modules/openat (Files): Remove lib/fchmodat.c.
35836         (configure.ac): Remove AC_LIBOBJ of fchmodat.
35837         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
35838         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
35839         (Makefile.am): Remove rules for test-fchmodat.
35840         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
35841         of module 'openat'.
35842         * NEWS: Mention the change.
35844 2011-11-02  Jim Meyering  <meyering@redhat.com>
35846         putenv: indent #definition of "environ" to placate cppi
35847         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
35849         gitlog-to-changelog: provide a ChangeLog-repair mechanism
35850         Git logs are often treated as immutable, because editing them
35851         changes the SHA1 checksums of all descendants.  Thus, errors in
35852         git logs tend to stay there forever.  However, when we generate
35853         a ChangeLog file -- typically for distribution -- from that git log,
35854         we can actually make corrections in the generated file.  The key
35855         lies in recording in machine-readable/applicable form the desired
35856         corrections.  See --help for description and an example.
35857         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
35858         (usage): Describe it; alphabetize option descriptions.
35859         (main): Honor the new option, carefully.
35861 2011-11-01  Jim Meyering  <meyering@redhat.com>
35863         gitlog-to-changelog: avoid an infloop
35864         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
35865         that ends up being empty.
35867 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35869         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
35870         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
35871         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
35872         contains (possibly-quoted) backslashes.  This should avoid
35873         all-too-common shell bugs if COMPLICATED contains backslashes in
35874         the "wrong" places.  Reported by David Evans in
35875         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
35876         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
35877         because we want ASCII ranges.  Is there some reason we don't use
35878         the C locale everywhere in this script?
35879         (func_module, top level): Avoid unwanted pathname expansion when
35880         $repo_url_prefix or $repo_url_suffix_repl contain shell
35881         metacharacters like '?' and '*'.
35883 2011-11-01  Bruno Haible  <bruno@clisp.org>
35885         fchownat: Improve description.
35886         * modules/fchownat (Description): Add link to function.
35888 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35890         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
35891         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
35892         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
35893         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35895 2011-11-01  Bruno Haible  <bruno@clisp.org>
35897         alignof: Avoid collision with stdalign module.
35898         * lib/alignof.h (alignof): Remove macro.
35899         * NEWS: Mention the change.
35900         Reported by Paul Eggert.
35902 2011-11-01  Bruno Haible  <bruno@clisp.org>
35904         New module 'fchownat', split off from module 'openat'.
35905         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
35906         defined.
35907         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
35908         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
35909         invoke gl_FUNC_FCHOWNAT.
35910         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
35911         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
35912         * modules/fchownat: New file, extracted from modules/openat.
35913         * modules/openat (Files): Remove lib/fchownat.c.
35914         (Depends-on): Remove lchown.
35915         (configure.ac): Remove AC_LIBOBJ of fchownat.
35916         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
35917         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
35918         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
35919         (Depends-on): Remove mgetgroups, usleep, stat-time.
35920         (configure.ac): Remove test for getegid.
35921         (Makefile.am): Remove rules for test-fchownat.
35922         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
35923         of module 'openat'.
35924         * NEWS: Mention the change.
35926 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
35928         stdalign: port better to MSVC and to Sun C 5.11
35929         This fixes some of the problems reported by Bruno Haible in
35930         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
35931         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
35932         shortcomings of MSVC and of Sun C 5.11.
35933         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
35934         around __declspec arg.
35935         * modules/stdalign-tests (Files): Add tests/macros.h.
35936         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
35937         Include macros.h, for ASSERT.
35938         (DECLARE_ALIGNED): Remove.
35939         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
35940         to catch bug), and to 1 if not (simplifies the rest of the code).
35941         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
35942         (CHECK_AUTO): Remove.
35943         (CHECK_ALIGNED): Check only the alignment of the static vars,
35944         since auto var alignment isn't supported by Sun C 5.11.
35945         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
35946         ASSERT failures are easier to diagnose.
35948 2011-10-31  Bruno Haible  <bruno@clisp.org>
35950         doc about some IRIX 5.3 problems.
35951         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
35952         on IRIX 5.3.
35953         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
35954         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
35955         5.3.
35956         * doc/posix-functions/grantpt.texi: Likewise.
35957         * doc/posix-functions/unlockpt.texi: Likewise.
35958         * doc/posix-functions/lgamma.texi: Likewise.
35959         * doc/posix-functions/nextafter.texi: Likewise.
35960         * doc/posix-functions/remainder.texi: Likewise.
35961         * doc/posix-functions/select.texi: Mention misplaced declaration on
35962         IRIX 5.3.
35963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
35965 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
35967         gitlog-to-changelog: fix git-log invocation.
35968         git-log mishandles date strings before 1970-01-01 UTC, and there is
35969         no use to specify --since=1970-01-01 by default anyway.
35970         * build-aux/gitlog-to-changelog: By default, when no --since option
35971         was given, do not specify explicit --since option to git-log.
35973 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
35975         gitlog-to-changelog: new option --append-dot.
35976         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
35977         first non-blank line of each commit message terminated with a dot.
35979 2011-10-30  Bruno Haible  <bruno@clisp.org>
35981         ffsl, ffsll: Avoid compilation error due to 'restrict'.
35982         * lib/ffsl.h: Include <config.h>.
35983         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
35985 2011-10-30  Jim Meyering  <meyering@redhat.com>
35987         GNUmakefile: reenable "make syntax-check" for most projects
35988         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
35989         build-aux variable", "syntax-check" would do nothing but succeed with
35990         the "No version control files detected..." diagnostic (unless you
35991         happened to override _build-aux via cfg.mk).
35992         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
35993         to precede inclusion of maint.mk.  Otherwise, these variables would
35994         be used undefined in any project that does not override the default.
35996 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
35998         gitlog-to-changelog: treat a message with only blank lines as empty.
35999         * build-aux/gitlog-to-changelog: Move the code that removes leading and
36000         trailing blank lines before the code that issues a warning about an
36001         empty commit message.
36003 2011-10-30  Jim Meyering  <meyering@redhat.com>
36005         test-parse-datetime.c: avoid new DST-related false positive test failure
36006         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
36007         based on the time/date we'll convert, not the current time.
36008         Otherwise, the moment we cross a DST boundary like today's in
36009         Europe, (CEST to CET), that offset ends up being one hour off.
36011 2011-10-27  Bruno Haible  <bruno@clisp.org>
36013         fstat: Tweak documentation.
36014         * modules/fstat (Description): More precise description.
36016 2011-10-27  Bruno Haible  <bruno@clisp.org>
36018         Update documentation regarding 'largefile' module.
36019         * doc/posix-functions/fstat.texi: Tweak wording.
36020         * doc/posix-functions/opendir.texi: Mention that the module fixes the
36021         problems with huge directories and/or small ino_t types.
36022         * doc/posix-functions/readdir.texi: Likewise.
36023         * doc/posix-functions/rewinddir.texi: Likewise.
36025 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
36027         maint.mk: don't maintain a second build-aux variable.
36028         * maint.mk (build_aux): Removed.  The maintainer-makefile module
36029         depends on GNUmakefile, which already maintains a cfg.mk
36030         overridable $(_build-aux) for projects with a non-standard
36031         build-aux directory location, although without the $(srcdir)
36032         prefix.  Use that variable consistently instead of introducing a
36033         second one.  Adjust all call sites.
36035 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
36037         Add stdalign module and use it in other modules.
36038         This is based on a previous proposal by Bruno Haible
36039         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
36041         stdalign: new module
36042         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
36043         * modules/stdalign: New files.
36044         * MODULES.html.sh (c1x_core_properties): Add stdalign.
36045         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
36047         stdalign-tests: new module
36048         * modules/stdalign-tests, tests/test-stdalign.c: New files.
36050         argp: use stdalign
36051         * lib/argp-parse.c: Include <stdalign.h>.
36052         (alignof): Remove.
36053         * modules/argp (Depends-on): Add stdalign.
36055         crypto libraries: use stdalign
36056         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
36057         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
36058         Do not include <stdlib.h> twice, in md4.c.
36059         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
36060         because we are accessing a pointer's bit-pattern, not a size.
36061         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
36062         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
36063         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
36064         * modules/crypto/sha512: Likewise.
36066         sys_socket: use stdalign, not alignof
36067         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
36068         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
36070 2011-10-27  Bruno Haible  <bruno@clisp.org>
36072         raise test: Avoid a test failure on Linux/MIPS.
36073         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
36074         because 99 is a valid signal on Linux/MIPS.
36076 2011-10-27  Bruno Haible  <bruno@clisp.org>
36078         nonblocking tests: Fix test failure on Linux/MIPS.
36079         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
36080         Set to 270000.
36082 2011-10-27  Bruno Haible  <bruno@clisp.org>
36084         utimensat: Work around problem on Linux/hppa.
36085         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
36086         values.
36087         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
36089 2011-10-25  Jim Meyering  <meyering@redhat.com>
36091         maint.mk: fix a bug in sc_prohibit_stddef_without_use
36092         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
36093         after symbols like NULL, size_t, etc.
36094         Reported by Alfred M. Szmidt.
36096         maint.mk: exempt ENODATA from a syntax-check rule
36097         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
36098         from the sc_prohibit_always-defined_macros syntax-check rule.
36099         Add a comment.  See this for more details:
36100         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
36102 2011-10-23  Jim Meyering  <meyering@redhat.com>
36104         fts: close parent dir FD before returning from post-traversal fts_read
36105         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
36106         unlink A, even though an FD open on A remained.  This is suboptimal
36107         (holding a file descriptor open longer than needed), but otherwise not
36108         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
36109         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
36110         that represents a real problem: it causes the removal of A to fail
36111         with e.g., "rm: cannot remove `A': Device or resource busy"
36113         fts visits each directory twice and keeps a cache (fts_fd_ring) of
36114         directory file descriptors.  After completing the final, FTS_DP,
36115         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
36116         cache, but then proceeded to add a new FD to it via the subsequent
36117         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
36118         final file descriptor would be closed only via fts_close's call to
36119         fd_ring_clear.  Now, it is usually closed earlier, via the final
36120         FTS_DP-returning fts_read call.
36121         * lib/fts.c (restore_initial_cwd): New function, converted from
36122         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
36123         Update callers.
36124         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
36125         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
36127 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
36128             Bruno Haible  <bruno@clisp.org>
36129             Jim Meyering  <jim@meyering.net>
36131         readme-release: improve safety of release prep instructions.
36132         * README-release: Don't git pull all branches when only master
36133         is needed for the release process.
36134         Run make maintainer-clean before changing trees and merging.
36135         Don't try to run ./configure right after git pull in case files
36136         that influence the bootstrap process have changed, move the
36137         ./configure step to after running ./bootstrap.
36138         Don't bootstrap "one last time"... it's the first time!
36140 2011-10-22  Bruno Haible  <bruno@clisp.org>
36142         errno, strerror-override: Support for MSVC 10.
36143         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
36144         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
36145         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
36146         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
36147         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
36148         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
36149         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
36150         Assign values compatible with MSVC 10.
36151         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
36152         New macros.
36153         (GNULIB_defined_EWINSOCK): New macro.
36154         * lib/strerror-override.c (strerror_override): Update accordingly.
36155         * lib/strerror-override.h: Likewise.
36156         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
36157         longer equal to the corresponding errno value.
36158         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36160 2011-10-22  Bruno Haible  <bruno@clisp.org>
36162         perror: Recognize when test program crashes.
36163         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
36164         strerror, set gl_cv_func_perror_works to no.
36165         Reported by Daniel Richard G. <skunk@iskunk.org>.
36167         perror: Fix indentation.
36168         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
36170 2011-10-22  Bruno Haible  <bruno@clisp.org>
36172         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
36173         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
36174         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
36175         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
36176         functions, not as a macro.
36177         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
36178         macros.
36179         (isfinite, isinf, isnan, signbit): Check overloaded functions and
36180         absence of macro.
36181         Suggested by Eric Blake.
36182         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
36184 2011-10-21  Bruno Haible  <bruno@clisp.org>
36186         relocatable-prog-wrapper: Don't leave object files behind.
36187         * build-aux/install-reloc: Re-synchronize list of .o files to be
36188         removed with list of compilation units.
36190 2011-10-20  Bruno Haible  <bruno@clisp.org>
36192         openpty, posix_openpt: Remove code duplication.
36193         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
36194         * lib/openpty.c: Include <stdlib.h>.
36195         (openpty): Use posix_openpt on all platforms except IRIX.
36196         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
36198 2011-10-20  Bruno Haible  <bruno@clisp.org>
36200         unlockpt: Detect invalid argument.
36201         * lib/unlockpt.c: Include <fcntl.h>.
36202         (unlockpt): Check whether fd is valid, using fcntl().
36203         * modules/unlockpt (Depends-on): Add fcntl-h.
36205 2011-10-20  Bruno Haible  <bruno@clisp.org>
36207         openpty: Avoid compilation error on AIX 6.1.
36208         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
36210 2011-10-20  Bruno Haible  <bruno@clisp.org>
36212         posix_openpt: Support for OpenBSD.
36213         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
36214         (posix_openpt) [OpenBSD]: New code.
36215         * lib/grantpt.c: Include <fcntl.h>.
36216         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
36217         * modules/grantpt (Depends-on): Add fcntl-h.
36219 2011-10-20  Bruno Haible  <bruno@clisp.org>
36221         posix_openpt test: Coding style.
36222         * tests/test-posix_openpt.c: Use GNU coding style.
36224 2011-10-20  Bruno Haible  <bruno@clisp.org>
36226         grantpt: Support --avoid=pt_chown.
36227         * modules/grantpt (Files): Add lib/pty-private.h.
36229 2011-10-20  Bruno Haible  <bruno@clisp.org>
36231         posix_openpt: Fix autoconf macro.
36232         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
36233         unneeded check for _getpty.
36235 2011-10-20  Bruno Haible  <bruno@clisp.org>
36237         openpty: Update comments.
36238         * lib/openpty.c: Add comments about Minix.
36240 2011-10-19  Eric Blake  <eblake@redhat.com>
36242         openpty: relax license
36243         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
36245         pt_chown: use configmake to simplify build
36246         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
36248         ptsname and others: relax license
36249         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
36250         * modules/unlockpt (License): Likewise.
36251         * modules/pt_chown (License): Likewise.
36252         * modules/ptsname (License): Likewise.
36253         * modules/ttyname_r (License): Likewise.
36255 2011-10-19  Jim Meyering  <meyering@redhat.com>
36257         posix_openpt: remove spurious #endif
36258         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
36260 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
36262         maint.mk: Respect $(build_aux) in web-manual rule.
36263         * top/maint.mk (web-manual): Find gen-announce script in user's
36264         $(build_aux) directory instead of hard-coding 'build-aux'.
36266 2011-10-19  Bruno Haible  <bruno@clisp.org>
36268         posix_openpt: Fix compilation error.
36269         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
36270         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
36271         Mention the openpty module as an alternative.
36273 2011-10-19  Bruno Haible  <bruno@clisp.org>
36275         Support for old NeXTstep 3.3 frexp().
36276         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
36277         execution time of the test to 5 seconds.
36278         Reported by Daniel Richard G. <skunk@iskunk.org>.
36280 2011-10-19  Bruno Haible  <bruno@clisp.org>
36282         Support for old NeXTstep 3.3 sed.
36283         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
36284         part, use /.../, not \|...|. Escape periods in the header file name.
36285         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
36286         Reported by Daniel Richard G. <skunk@iskunk.org>.
36288 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36290         Support for old NeXTstep 3.3 gcc.
36291         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
36292         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
36293         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
36294         * lib/spawn.in.h (_Restrict_arr_): Likewise.
36295         * lib/regex.h (_Restrict_arr_): Likewise.
36296         * lib/regex_internal.h (re_token_t): Likewise.
36297         * lib/regexec.c (check_node_accept_bytes): Likewise.
36298         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
36300 2011-10-18  Eric Blake  <eblake@redhat.com>
36302         posix_openpt: new module
36303         * modules/posix_openpt: New module.
36304         * m4/posix_openpt.m4: New file.
36305         * lib/posix_openpt.c: Likewise.
36306         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
36307         (gl_STDLIB_H_DEFAULTS): Set defaults.
36308         * modules/stdlib (Makefile.am): Substitute macros.
36309         * lib/stdlib.in.h (posix_openpt): Declare.
36310         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
36311         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
36312         * modules/posix_openpt-tests: New test module.
36313         * tests/test-posix_openpt.c: New test.
36315 2011-10-15  Bruno Haible  <bruno@clisp.org>
36317         xstrtoll: Fix compilation failure.
36318         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
36319         from lib/strtol.c.
36320         * doc/posix-headers/limits.texi: Mention missing numerical limits on
36321         some platforms.
36322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36324 2011-10-15  Bruno Haible  <bruno@clisp.org>
36326         vasnprintf: Optimize bit search operation.
36327         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
36328         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
36329         gl_DOUBLE_EXPONENT_LOCATION.
36330         * modules/vasnprintf (Files): Add m4/exponentd.m4.
36331         * modules/unistdio/u8-vasnprintf (Files): Likewise.
36332         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
36333         * modules/unistdio/u16-vasnprintf (Files): Likewise.
36334         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
36335         * modules/unistdio/u32-vasnprintf (Files): Likewise.
36336         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
36337         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
36338         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
36340 2011-10-15  Bruno Haible  <bruno@clisp.org>
36342         vasnprintf: Fix comments.
36343         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
36345 2011-10-14  Bruno Haible  <bruno@clisp.org>
36347         Tests for module 'integer_length_ll'.
36348         * modules/integer_length_ll-tests: New file.
36349         * tests/test-integer_length_ll.c: New file.
36351         New module 'integer_length_ll'.
36352         * lib/integer_length_ll.c: New file.
36353         * modules/integer_length_ll: New file.
36355 2011-10-14  Bruno Haible  <bruno@clisp.org>
36357         Tests for module 'integer_length_l'.
36358         * modules/integer_length_l-tests: New file.
36359         * tests/test-integer_length_l.c: New file.
36361         New module 'integer_length_l'.
36362         * lib/integer_length_l.c: New file.
36363         * modules/integer_length_l: New file.
36365 2011-10-14  Bruno Haible  <bruno@clisp.org>
36367         Tests for module 'integer_length'.
36368         * modules/integer_length-tests: New file.
36369         * tests/test-integer_length.c: New file.
36371         New module 'integer_length'.
36372         * lib/integer_length.h: New file.
36373         * lib/integer_length.c: New file.
36374         * modules/integer_length: New file.
36376 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36378         popen: Fix dependency conditions.
36379         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
36381 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
36383         perror: Fix autoconf test.
36384         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
36385         <stdlib.h> and <string.h>.
36387 2011-10-14  Bruno Haible  <bruno@clisp.org>
36389         ffsl: Optimize on 64-bit platforms.
36390         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
36391         unrolling.
36393 2011-10-13  Bruno Haible  <bruno@clisp.org>
36395         ffsl: Optimize on 32-bit platforms.
36396         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
36397         use ffs() without a loop.
36399         ffsl, ffsll: Optimize for GCC.
36400         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
36401         * lib/ffsl.c (GCC_BUILTIN): New macro.
36402         * lib/ffsll.c (GCC_BUILTIN): Likewise.
36404 2011-10-13  Bruno Haible  <bruno@clisp.org>
36406         ffs, bcopy, memset: Support symbol renaming via config.h.
36407         * lib/ffs.c: Include <config.h>.
36408         * lib/bcopy.c: Likewise.
36409         * lib/memset.c: Likewise.
36411 2011-10-10  Bruno Haible  <bruno@clisp.org>
36413         atanl: Simplify for platforms where 'long double' == 'double'.
36414         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36415         alternative implementation.
36416         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36417         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36418         * modules/atanl (Depends-on): Add atan. Update conditions.
36420 2011-10-10  Bruno Haible  <bruno@clisp.org>
36422         acosl: Simplify for platforms where 'long double' == 'double'.
36423         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36424         alternative implementation.
36425         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36426         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36427         * modules/acosl (Depends-on): Add acos. Update conditions.
36429 2011-10-10  Bruno Haible  <bruno@clisp.org>
36431         asinl: Simplify for platforms where 'long double' == 'double'.
36432         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36433         alternative implementation.
36434         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36435         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36436         * modules/asinl (Depends-on): Add asin. Update conditions.
36438 2011-10-10  Bruno Haible  <bruno@clisp.org>
36440         tanl: Simplify for platforms where 'long double' == 'double'.
36441         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36442         implementation.
36443         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36444         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36445         * modules/tanl (Depends-on): Add tan. Update conditions.
36446         (configure.ac): Don't compile trigl.c if
36447         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36449 2011-10-10  Bruno Haible  <bruno@clisp.org>
36451         cosl: Simplify for platforms where 'long double' == 'double'.
36452         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36453         implementation.
36454         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36455         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36456         * modules/cosl (Depends-on): Add cos. Update conditions.
36457         (configure.ac): Don't compile sincosl.c and trigl.c if
36458         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36460 2011-10-10  Bruno Haible  <bruno@clisp.org>
36462         sinl: Simplify for platforms where 'long double' == 'double'.
36463         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36464         implementation.
36465         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36466         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36467         * modules/sinl (Depends-on): Add sin. Update conditions.
36468         (configure.ac): Don't compile sincosl.c and trigl.c if
36469         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36471 2011-10-10  Bruno Haible  <bruno@clisp.org>
36473         logl: Simplify for platforms where 'long double' == 'double'.
36474         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36475         implementation.
36476         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36477         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36478         * modules/logl (Depends-on): Add log. Update conditions.
36480 2011-10-10  Bruno Haible  <bruno@clisp.org>
36482         expl: Simplify for platforms where 'long double' == 'double'.
36483         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
36484         implementation.
36485         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36486         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36487         * modules/expl (Depends-on): Add exp. Update conditions.
36489 2011-10-10  Bruno Haible  <bruno@clisp.org>
36491         sqrtl: Simplify for platforms where 'long double' == 'double'.
36492         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36493         alternative implementation.
36494         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36495         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36496         * modules/sqrtl (Depends-on): Update conditions.
36498 2011-10-10  Bruno Haible  <bruno@clisp.org>
36500         ldexpl: Simplify for platforms where 'long double' == 'double'.
36501         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36502         alternative implementation.
36503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36504         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36505         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
36507 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
36509         ffsll: set correct witness
36510         * modules/ffsll (configure.ac): Fix typo.
36512 2011-10-10  Bruno Haible  <bruno@clisp.org>
36514         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
36515         * lib/printf-frexpl.c: Include <config.h>.
36516         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36517         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
36518         second time.
36519         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
36520         gl_LONG_DOUBLE_VS_DOUBLE.
36521         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
36522         conditions.
36524 2011-10-10  Bruno Haible  <bruno@clisp.org>
36526         frexpl: Simplify for platforms where 'long double' == 'double'.
36527         * lib/frexpl.c: Include <config.h>.
36528         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36529         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36530         time.
36531         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36532         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36533         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
36534         * modules/frexpl (Depends-on): Add frexp. Update conditions.
36535         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
36536         conditions.
36538 2011-10-10  Jim Meyering  <meyering@redhat.com>
36540         test-renameat: don't leave behind a temporary file
36541         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
36542           ERROR: files left in build directory after distclean:
36543           ./gltests/test-renameat.too
36544           make[1]: *** [distcleancheck] Error 1
36545         Reported by Tom G. Christensen.
36547 2011-10-09  Bruno Haible  <bruno@clisp.org>
36549         rint: Determine RINT_LIBM correctly on AIX 7.
36550         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
36551         directly, not only through a function pointer. Also accept an optional
36552         4th argument with extra code.
36553         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
36554         rintf() call by gcc when optimizing.
36556         mathfunc.m4: Refactor.
36557         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
36558         m4 variable.
36560 2011-10-09  Bruno Haible  <bruno@clisp.org>
36562         rintl: Simplify for platforms where 'long double' == 'double'.
36563         * lib/rintl.c: Include <config.h>.
36564         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36565         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36566         time.
36567         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36568         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36569         * modules/rintl (Depends-on): Add rint. Update conditions.
36571 2011-10-09  Bruno Haible  <bruno@clisp.org>
36573         roundl: Simplify for platforms where 'long double' == 'double'.
36574         * lib/roundl.c: Include <config.h>.
36575         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36576         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36577         time.
36578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36579         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36580         * modules/roundl (Depends-on): Add round. Update conditions.
36582 2011-10-09  Bruno Haible  <bruno@clisp.org>
36584         truncl: Simplify for platforms where 'long double' == 'double'.
36585         * lib/truncl.c: Include <config.h>.
36586         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36587         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36588         time.
36589         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36590         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36591         * modules/truncl (Depends-on): Add trunc. Update conditions.
36593 2011-10-09  Bruno Haible  <bruno@clisp.org>
36595         ceill: Simplify for platforms where 'long double' == 'double'.
36596         * lib/ceill.c: Include <config.h>.
36597         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36598         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36599         time.
36600         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36601         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36602         * modules/ceill (Depends-on): Add ceil. Update conditions.
36604 2011-10-09  Bruno Haible  <bruno@clisp.org>
36606         floorl: Simplify for platforms where 'long double' == 'double'.
36607         * lib/floorl.c: Include <config.h>.
36608         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
36609         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
36610         time.
36611         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36612         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36613         * modules/floorl (Depends-on): Add floor. Update conditions.
36615 2011-10-09  Bruno Haible  <bruno@clisp.org>
36617         rint: Fix ordering constraints.
36618         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
36619         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
36620         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
36622 2011-10-09  Bruno Haible  <bruno@clisp.org>
36624         copysignl: Simplify for platforms where 'long double' == 'double'.
36625         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
36626         alternative.
36627         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36628         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
36629         * modules/copysignl (Depends-on): Add copysign. Update conditions.
36631 2011-10-09  Bruno Haible  <bruno@clisp.org>
36633         Tests for module 'rintl'.
36634         * modules/rintl-tests: New file.
36635         * tests/test-rintl.c: New file.
36637         New module 'rintl'.
36638         * lib/math.in.h (rintl): New declaration.
36639         * lib/rintl.c: New file.
36640         * m4/rintl.m4: New file.
36641         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
36642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
36643         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
36644         * modules/rintl: New file.
36645         * tests/test-math-c++.cc: Check the declaration of rintl.
36646         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36647         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
36648         * doc/posix-functions/rintl.texi: Mention the new module.
36650 2011-10-09  Bruno Haible  <bruno@clisp.org>
36652         Tests for module 'rintf'.
36653         * modules/rintf-tests: New file.
36654         * tests/test-rintf.c: New file.
36656         New module 'rintf'.
36657         * lib/math.in.h (rintf): New declaration.
36658         * lib/rintf.c: New file.
36659         * m4/rintf.m4: New file.
36660         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
36661         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
36662         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
36663         * modules/rintf: New file.
36664         * tests/test-math-c++.cc: Check the declaration of rintf.
36665         * doc/posix-functions/rintf.texi: Mention the new module.
36667 2011-10-09  Bruno Haible  <bruno@clisp.org>
36669         rint: Support for MSVC.
36670         * lib/math.in.h (rint): New declaration.
36671         * lib/rint.c: New file.
36672         * m4/rint.m4: New file.
36673         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
36674         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
36675         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
36676         * modules/rint (Description): Fix.
36677         (Files): Add lib/rint.c, m4/rint.m4.
36678         (Depends-on): Add math.
36679         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
36680         gl_MATH_MODULE_INDICATOR.
36681         * tests/test-math-c++.cc: Check the declaration of rint.
36682         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36683         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
36684         * doc/posix-functions/rint.texi: Mention the replacement provided by
36685         the module.
36687         rint tests: More tests.
36688         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
36689         minus-zero.h, infinity.h, nan.h.
36690         (main): Skip the test if the current rounding mode is not standard. Add
36691         tests for negative numbers, minus zero, infinity, NaN.
36692         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
36693         tests/nan.h.
36694         (Depends-on): Add isnand-nolibm.
36696 2011-10-09  Bruno Haible  <bruno@clisp.org>
36698         Tests for module 'copysignl'.
36699         * modules/copysignl-tests: New file.
36700         * tests/test-copysignl.c: New file.
36702         New module 'copysignl'.
36703         * lib/math.in.h (copysignl): New declaration.
36704         * lib/copysignl.c: New file.
36705         * m4/copysignl.m4: New file.
36706         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
36707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
36708         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
36709         HAVE_COPYSIGNL.
36710         * modules/copysignl: New file.
36711         * tests/test-math-c++.cc: Check the declaration of copysignl.
36712         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
36713         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
36714         * doc/posix-functions/copysignl.texi: Mention the new module.
36716 2011-10-09  Bruno Haible  <bruno@clisp.org>
36718         Tests for module 'copysignf'.
36719         * modules/copysignf-tests: New file.
36720         * tests/test-copysignf.c: New file.
36722         New module 'copysignf'.
36723         * lib/math.in.h (copysignf): New declaration.
36724         * lib/copysignf.c: New file.
36725         * m4/copysignf.m4: New file.
36726         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
36727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
36728         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
36729         HAVE_COPYSIGNF.
36730         * modules/copysignf: New file.
36731         * tests/test-math-c++.cc: Check the declaration of copysignf.
36732         * doc/posix-functions/copysignf.texi: Mention the new module.
36734 2011-10-09  Bruno Haible  <bruno@clisp.org>
36736         Ensure that HAVE_* variables are set to 1 before they are set to 0.
36737         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
36738         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
36739         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
36740         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
36741         gl_SIGNAL_H_DEFAULTS.
36743 2011-10-09  Bruno Haible  <bruno@clisp.org>
36745         poll: Make macro safer.
36746         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
36747         ac_cv_header_poll_h is not set.
36749 2011-10-09  Bruno Haible  <bruno@clisp.org>
36751         copysign: Provide replacement.
36752         * lib/math.in.h (copysign): New declaration.
36753         * lib/copysign.c: New file.
36754         * m4/copysign.m4: New file.
36755         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
36756         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
36757         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
36758         HAVE_COPYSIGN.
36759         * modules/copysign (Description): Clarify.
36760         (Files): Add lib/copysign.c, m4/copysign.m4.
36761         (Depends-on): Add math, signbit.
36762         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
36763         gl_MATH_MODULE_INDICATOR.
36764         * tests/test-math-c++.cc: Check the declaration of copysign.
36765         * doc/posix-functions/copysign.texi: Mention the effects of the module
36766         on Minix and MSVC.
36768 2011-10-09  Bruno Haible  <bruno@clisp.org>
36770         isinf: Ensure macro on AIX 5.1.
36771         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
36772         macro.
36773         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
36775 2011-10-09  Bruno Haible  <bruno@clisp.org>
36777         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
36778         * modules/snprintf-posix-tests (configure.ac): Require
36779         gl_LONG_DOUBLE_VS_DOUBLE.
36780         * modules/sprintf-posix-tests (configure.ac): Likewise.
36781         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
36782         * modules/vasprintf-posix-tests (configure.ac): Likewise.
36783         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
36784         * modules/vsprintf-posix-tests (configure.ac): Likewise.
36785         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
36786         tests on platforms where 'long double' is the same as 'double'.
36787         * tests/test-sprintf-posix.h (test_function): Likewise.
36788         * tests/test-vasnprintf-posix.c (test_function): Likewise.
36789         * tests/test-vasprintf-posix.c (test_function): Likewise.
36791         *printf: Fix for platforms where 'long double' == 'double'.
36792         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
36793         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
36794         * modules/dprintf-posix (Files): Add m4/math_h.m4.
36795         * modules/fprintf-posix (Files): Likewise.
36796         * modules/obstack-printf-posix (Files): Likewise.
36797         * modules/snprintf-posix (Files): Likewise.
36798         * modules/sprintf-posix (Files): Likewise.
36799         * modules/vasnprintf (Files): Likewise.
36800         * modules/vasnprintf-posix (Files): Likewise.
36801         * modules/vasprintf-posix (Files): Likewise.
36802         * modules/vdprintf-posix (Files): Likewise.
36803         * modules/vfprintf-posix (Files): Likewise.
36804         * modules/vsnprintf-posix (Files): Likewise.
36805         * modules/vsprintf-posix (Files): Likewise.
36806         * modules/unistdio/u8-vasnprintf (Files): Likewise.
36807         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
36808         * modules/unistdio/u16-vasnprintf (Files): Likewise.
36809         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
36810         * modules/unistdio/u32-vasnprintf (Files): Likewise.
36811         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
36812         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
36814         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
36815         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
36816         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
36817         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
36818         'long double'.
36819         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
36821         isinf: Fix for platforms where 'long double' == 'double'.
36822         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
36823         Don't blindly assume 80-bit 'long double'.
36825         isfinite: Fix for platforms where 'long double' == 'double'.
36826         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
36827         Don't blindly assume 80-bit 'long double'.
36829         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
36830         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
36831         * modules/isfinite-tests (configure.ac): Require
36832         gl_LONG_DOUBLE_VS_DOUBLE.
36833         * modules/isinf-tests (configure.ac): Likewise.
36834         * modules/isnan-tests (configure.ac): Likewise.
36835         * modules/isnanl-tests (configure.ac): Likewise.
36836         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
36837         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
36838         tests on platforms where 'long double' is the same as 'double'.
36839         * tests/test-isinf.c (test_isinfl): Likewise.
36840         * tests/test-isnan.c (test_long_double): Likewise.
36841         * tests/test-isnanl.h (main): Likewise.
36843 2011-10-08  Bruno Haible  <bruno@clisp.org>
36845         Tests for module 'tanhf'.
36846         * modules/tanhf-tests: New file.
36847         * tests/test-tanhf.c: New file.
36849         New module 'tanhf'.
36850         * lib/math.in.h (tanhf): New declaration.
36851         * lib/tanhf.c: New file.
36852         * m4/tanhf.m4: New file.
36853         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
36854         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
36855         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
36856         * modules/tanhf: New file.
36857         * tests/test-math-c++.cc: Check the declaration of tanhf.
36858         * doc/posix-functions/tanhf.texi: Mention the new module.
36860         tanh: Use a .m4 file.
36861         * m4/tanh.m4: New file.
36862         * modules/tanh (Files): Add it.
36863         (configure.ac): Just invoke gl_FUNC_TANH.
36865 2011-10-08  Bruno Haible  <bruno@clisp.org>
36867         Tests for module 'coshf'.
36868         * modules/coshf-tests: New file.
36869         * tests/test-coshf.c: New file.
36871         New module 'coshf'.
36872         * lib/math.in.h (coshf): New declaration.
36873         * lib/coshf.c: New file.
36874         * m4/coshf.m4: New file.
36875         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
36876         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
36877         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
36878         * modules/coshf: New file.
36879         * tests/test-math-c++.cc: Check the declaration of coshf.
36880         * doc/posix-functions/coshf.texi: Mention the new module.
36882         cosh: Use a .m4 file.
36883         * m4/cosh.m4: New file.
36884         * modules/cosh (Files): Add it.
36885         (configure.ac): Just invoke gl_FUNC_COSH.
36887 2011-10-08  Bruno Haible  <bruno@clisp.org>
36889         Tests for module 'sinhf'.
36890         * modules/sinhf-tests: New file.
36891         * tests/test-sinhf.c: New file.
36893         New module 'sinhf'.
36894         * lib/math.in.h (sinhf): New declaration.
36895         * lib/sinhf.c: New file.
36896         * m4/sinhf.m4: New file.
36897         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
36898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
36899         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
36900         * modules/sinhf: New file.
36901         * tests/test-math-c++.cc: Check the declaration of sinhf.
36902         * doc/posix-functions/sinhf.texi: Mention the new module.
36904         sinh: Use a .m4 file.
36905         * m4/sinh.m4: New file.
36906         * modules/sinh (Files): Add it.
36907         (configure.ac): Just invoke gl_FUNC_SINH.
36909 2011-10-08  Bruno Haible  <bruno@clisp.org>
36911         Tests for module 'atan2f'.
36912         * modules/atan2f-tests: New file.
36913         * tests/test-atan2f.c: New file.
36915         New module 'atan2f'.
36916         * lib/math.in.h (atan2f): New declaration.
36917         * lib/atan2f.c: New file.
36918         * m4/atan2f.m4: New file.
36919         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
36920         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
36921         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
36922         * modules/atan2f: New file.
36923         * tests/test-math-c++.cc: Check the declaration of atan2f.
36924         * doc/posix-functions/atan2f.texi: Mention the new module.
36926         atan2: Use a .m4 file.
36927         * m4/atan2.m4: New file.
36928         * modules/atan2 (Files): Add it.
36929         (configure.ac): Just invoke gl_FUNC_ATAN2.
36931 2011-10-08  Bruno Haible  <bruno@clisp.org>
36933         Tests for module 'atanf'.
36934         * modules/atanf-tests: New file.
36935         * tests/test-atanf.c: New file.
36937         New module 'atanf'.
36938         * lib/math.in.h (atanf): New declaration.
36939         * lib/atanf.c: New file.
36940         * m4/atanf.m4: New file.
36941         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
36942         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
36943         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
36944         * modules/atanf: New file.
36945         * tests/test-math-c++.cc: Check the declaration of atanf.
36946         * doc/posix-functions/atanf.texi: Mention the new module.
36948         atan: Use a .m4 file.
36949         * m4/atan.m4: New file.
36950         * modules/atan (Files): Add it.
36951         (configure.ac): Just invoke gl_FUNC_ATAN.
36953 2011-10-08  Bruno Haible  <bruno@clisp.org>
36955         Tests for module 'acosf'.
36956         * modules/acosf-tests: New file.
36957         * tests/test-acosf.c: New file.
36959         New module 'acosf'.
36960         * lib/math.in.h (acosf): New declaration.
36961         * lib/acosf.c: New file.
36962         * m4/acosf.m4: New file.
36963         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
36964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
36965         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
36966         * modules/acosf: New file.
36967         * tests/test-math-c++.cc: Check the declaration of acosf.
36968         * doc/posix-functions/acosf.texi: Mention the new module.
36970         acos: Use a .m4 file.
36971         * m4/acos.m4: New file.
36972         * modules/acos (Files): Add it.
36973         (configure.ac): Just invoke gl_FUNC_ACOS.
36975 2011-10-08  Bruno Haible  <bruno@clisp.org>
36977         Tests for module 'asinf'.
36978         * modules/asinf-tests: New file.
36979         * tests/test-asinf.c: New file.
36981         New module 'asinf'.
36982         * lib/math.in.h (asinf): New declaration.
36983         * lib/asinf.c: New file.
36984         * m4/asinf.m4: New file.
36985         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
36986         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
36987         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
36988         * modules/asinf: New file.
36989         * tests/test-math-c++.cc: Check the declaration of asinf.
36990         * doc/posix-functions/asinf.texi: Mention the new module.
36992         asin: Use a .m4 file.
36993         * m4/asin.m4: New file.
36994         * modules/asin (Files): Add it.
36995         (configure.ac): Just invoke gl_FUNC_ASIN.
36997 2011-10-08  Bruno Haible  <bruno@clisp.org>
36999         Tests for module 'tanf'.
37000         * modules/tanf-tests: New file.
37001         * tests/test-tanf.c: New file.
37003         New module 'tanf'.
37004         * lib/math.in.h (tanf): New declaration.
37005         * lib/tanf.c: New file.
37006         * m4/tanf.m4: New file.
37007         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
37008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
37009         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
37010         * modules/tanf: New file.
37011         * tests/test-math-c++.cc: Check the declaration of tanf.
37012         * doc/posix-functions/tanf.texi: Mention the new module.
37014         tan: Use a .m4 file.
37015         * m4/tan.m4: New file.
37016         * modules/tan (Files): Add it.
37017         (configure.ac): Just invoke gl_FUNC_TAN.
37019 2011-10-08  Bruno Haible  <bruno@clisp.org>
37021         Tests for module 'cosf'.
37022         * modules/cosf-tests: New file.
37023         * tests/test-cosf.c: New file.
37025         New module 'cosf'.
37026         * lib/math.in.h (cosf): New declaration.
37027         * lib/cosf.c: New file.
37028         * m4/cosf.m4: New file.
37029         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
37030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
37031         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
37032         * modules/cosf: New file.
37033         * tests/test-math-c++.cc: Check the declaration of cosf.
37034         * doc/posix-functions/cosf.texi: Mention the new module.
37036         cos: Use a .m4 file.
37037         * m4/cos.m4: New file.
37038         * modules/cos (Files): Add it.
37039         (configure.ac): Just invoke gl_FUNC_COS.
37041 2011-10-08  Bruno Haible  <bruno@clisp.org>
37043         Tests for module 'sinf'.
37044         * modules/sinf-tests: New file.
37045         * tests/test-sinf.c: New file.
37047         New module 'sinf'.
37048         * lib/math.in.h (sinf): New declaration.
37049         * lib/sinf.c: New file.
37050         * m4/sinf.m4: New file.
37051         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
37052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
37053         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
37054         * modules/sinf: New file.
37055         * tests/test-math-c++.cc: Check the declaration of sinf.
37056         * doc/posix-functions/sinf.texi: Mention the new module.
37058         sin: Use a .m4 file.
37059         * m4/sin.m4: New file.
37060         * modules/sin (Files): Add it.
37061         (configure.ac): Just invoke gl_FUNC_SIN.
37063 2011-10-08  Bruno Haible  <bruno@clisp.org>
37065         Tests for module 'powf'.
37066         * modules/powf-tests: New file.
37067         * tests/test-powf.c: New file.
37069         New module 'powf'.
37070         * lib/math.in.h (powf): New declaration.
37071         * lib/powf.c: New file.
37072         * m4/powf.m4: New file.
37073         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
37074         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
37075         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
37076         * modules/powf: New file.
37077         * tests/test-math-c++.cc: Check the declaration of powf.
37078         * doc/posix-functions/powf.texi: Mention the new module.
37080         pow: Use a .m4 file.
37081         * m4/pow.m4: New file.
37082         * modules/pow (Files): Add it.
37083         (configure.ac): Just invoke gl_FUNC_POW.
37085 2011-10-08  Bruno Haible  <bruno@clisp.org>
37087         Tests for module 'log10f'.
37088         * modules/log10f-tests: New file.
37089         * tests/test-log10f.c: New file.
37091         New module 'log10f'.
37092         * lib/math.in.h (log10f): New declaration.
37093         * lib/log10f.c: New file.
37094         * m4/log10f.m4: New file.
37095         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
37096         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
37097         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
37098         * modules/log10f: New file.
37099         * tests/test-math-c++.cc: Check the declaration of log10f.
37100         * doc/posix-functions/log10f.texi: Mention the new module.
37102         log10: Use a .m4 file.
37103         * m4/log10.m4: New file.
37104         * modules/log10 (Files): Add it.
37105         (configure.ac): Just invoke gl_FUNC_LOG10.
37107 2011-10-08  Bruno Haible  <bruno@clisp.org>
37109         Tests for module 'logf'.
37110         * modules/logf-tests: New file.
37111         * tests/test-logf.c: New file.
37113         New module 'logf'.
37114         * lib/math.in.h (logf): New declaration.
37115         * lib/logf.c: New file.
37116         * m4/logf.m4: New file.
37117         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
37118         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
37119         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
37120         * modules/logf: New file.
37121         * tests/test-math-c++.cc: Check the declaration of logf.
37122         * doc/posix-functions/logf.texi: Mention the new module.
37124         log: Use a .m4 file.
37125         * m4/log.m4: New file.
37126         * modules/log (Files): Add it.
37127         (configure.ac): Just invoke gl_FUNC_LOG.
37129 2011-10-08  Bruno Haible  <bruno@clisp.org>
37131         Tests for module 'expf'.
37132         * modules/expf-tests: New file.
37133         * tests/test-expf.c: New file.
37135         New module 'expf'.
37136         * lib/math.in.h (expf): New declaration.
37137         * lib/expf.c: New file.
37138         * m4/expf.m4: New file.
37139         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
37140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
37141         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
37142         * modules/expf: New file.
37143         * tests/test-math-c++.cc: Check the declaration of expf.
37144         * doc/posix-functions/expf.texi: Mention the new module.
37146         exp: Use a .m4 file.
37147         * m4/exp.m4: New file.
37148         * modules/exp (Files): Add it.
37149         (configure.ac): Just invoke gl_FUNC_EXP.
37151 2011-10-08  Bruno Haible  <bruno@clisp.org>
37153         Tests for module 'sqrtf'.
37154         * modules/sqrtf-tests: New file.
37155         * tests/test-sqrtf.c: New file.
37157         New module 'sqrtf'.
37158         * lib/math.in.h (sqrtf): New declaration.
37159         * lib/sqrtf.c: New file.
37160         * m4/sqrtf.m4: New file.
37161         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
37162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
37163         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
37164         * modules/sqrtf: New file.
37165         * tests/test-math-c++.cc: Check the declaration of sqrtf.
37166         * doc/posix-functions/sqrtf.texi: Mention the new module.
37168 2011-10-08  Bruno Haible  <bruno@clisp.org>
37170         Tests: Avoid link failures w.r.t. libintl.
37171         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
37172         $(LIBINTL).
37173         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
37174         $(LIBINTL).
37175         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
37176         against $(LIBINTL).
37177         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
37178         $(LIBINTL).
37179         * modules/openat-tests (Makefile.am): Link test-fchmodat against
37180         $(LIBINTL).
37181         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
37183 2011-10-08  Bruno Haible  <bruno@clisp.org>
37185         pow tests: Defeat compiler optimizations.
37186         * tests/test-pow.c (main): Assign arguments to x and y before use.
37188 2011-10-08  Bruno Haible  <bruno@clisp.org>
37190         gnulib-tool: Improve last commit.
37191         * gnulib-tool (func_modules_transitive_closure): Simplify code.
37192         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
37193         ignore dependencies that are not among the modules list.
37195 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
37197         gnulib-tool: don't follow dependencies to avoided modules
37198         This fixes a bug that is related to the previous one.
37199         * gnulib-tool (func_modules_transitive_closure)
37200         (func_emit_autoconf_snippets):
37201         Check whether a dependency is acceptable before using it.
37202         (--extract-dependencies): Report an error if --avoid is also used,
37203         since this combination of options is not yet supported.
37205         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
37206         Problem reported by Peter Dyballa in
37207         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
37208         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
37209         when echoing "$condition".
37211 2011-10-07  Bruno Haible  <bruno@clisp.org>
37213         Fix documentation about math functions on MacOS X.
37214         * doc/posix-functions/exp2.texi: Don't say the function is missing on
37215         MacOS X 10.5.
37216         * doc/posix-functions/fdim.texi: Likewise.
37217         * doc/posix-functions/feclearexcept.texi: Likewise.
37218         * doc/posix-functions/fegetenv.texi: Likewise.
37219         * doc/posix-functions/fegetround.texi: Likewise.
37220         * doc/posix-functions/feholdexcept.texi: Likewise.
37221         * doc/posix-functions/feraiseexcept.texi: Likewise.
37222         * doc/posix-functions/fesetenv.texi: Likewise.
37223         * doc/posix-functions/fesetround.texi: Likewise.
37224         * doc/posix-functions/fetestexcept.texi: Likewise.
37225         * doc/posix-functions/feupdateenv.texi: Likewise.
37226         * doc/posix-functions/fmax.texi: Likewise.
37227         * doc/posix-functions/fmin.texi: Likewise.
37228         * doc/posix-functions/log2.texi: Likewise.
37229         * doc/posix-functions/modff.texi: Likewise.
37230         * doc/posix-functions/nan.texi: Likewise.
37231         * doc/posix-functions/nanf.texi: Likewise.
37232         * doc/posix-functions/nextafterf.texi: Likewise.
37233         * doc/posix-functions/remquo.texi: Likewise.
37235 2011-10-07  Bruno Haible  <bruno@clisp.org>
37237         modff: Drop assumption about library that defines modff.
37238         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
37239         AC_CHECK_FUNCS.
37240         * modules/modff (Files): Add m4/mathfunc.m4.
37242 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
37244         raise tests: Avoid a GCC warning.
37245         * tests/test-raise.c (handler): Use _Noreturn.
37247 2011-10-07  Bruno Haible  <bruno@clisp.org>
37249         Tests for module 'ldexpf'.
37250         * modules/ldexpf-tests: New file.
37251         * tests/test-ldexpf.c: New file.
37253         New module 'ldexpf'.
37254         * lib/math.in.h (ldexpf): New declaration.
37255         * lib/ldexpf.c: New file.
37256         * m4/ldexpf.m4: New file.
37257         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
37258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
37259         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
37260         * modules/ldexpf: New file.
37261         * tests/test-math-c++.cc: Check the declaration of ldexpf.
37262         * doc/posix-functions/ldexpf.texi: Mention the new module.
37264 2011-10-06  Bruno Haible  <bruno@clisp.org>
37266         frexpf: Work around problems on IRIX and mingw.
37267         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
37268         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
37269         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
37270         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
37271         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
37272         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
37273         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
37275 2011-10-06  Bruno Haible  <bruno@clisp.org>
37277         fabsf: Drop assumption about library that defines fabsf.
37278         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
37279         AC_CHECK_FUNCS.
37280         * modules/fabsf (Files): Add m4/mathfunc.m4.
37282 2011-10-06  Bruno Haible  <bruno@clisp.org>
37284         frexpf: Drop assumption about library that defines frexpf.
37285         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
37286         'int *', 'float *', 'long double *', 'float', 'long double'.
37287         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
37288         AC_CHECK_FUNCS.
37289         * modules/frexpf (Files): Add m4/mathfunc.m4.
37291         Tests for module 'frexpf'.
37292         * modules/frexpf-tests: New file.
37293         * tests/test-frexpf.c: New file.
37295         New module 'frexpf'.
37296         * lib/math.in.h (frexpf): New declaration.
37297         * lib/frexpf.c: New file.
37298         * m4/frexpf.m4: New file.
37299         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
37300         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
37301         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
37302         * modules/frexpf: New file.
37303         * tests/test-math-c++.cc: Check the declaration of frexpf.
37304         * doc/posix-functions/frexpf.texi: Mention the new module.
37306 2011-10-06  Bruno Haible  <bruno@clisp.org>
37308         math: Sort function declarations of math.in.h.
37309         * lib/math.in.h (frexp, logb): Move declarations.
37311 2011-10-05  Bruno Haible  <bruno@clisp.org>
37313         Tests for module 'modff'.
37314         * modules/modff-tests: New file.
37315         * tests/test-modff.c: New file.
37317         New module 'modff'.
37318         * lib/math.in.h (modff): New declaration.
37319         * lib/modff.c: New file.
37320         * m4/modff.m4: New file.
37321         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
37322         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
37323         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
37324         * modules/modff: New file.
37325         * tests/test-math-c++.cc: Check the declaration of modff.
37326         * doc/posix-functions/modff.texi: Mention the new module.
37328         modf tests: Make test sharper.
37329         * tests/test-modf.c (main): Strengthen upper bound.
37331         modf: Use a .m4 file.
37332         * m4/modf.m4: New file.
37333         * modules/modf (Files): Add it.
37334         (configure.ac): Just invoke gl_FUNC_MODF.
37336 2011-10-05  Bruno Haible  <bruno@clisp.org>
37338         Tests for module 'fmodf'.
37339         * modules/fmodf-tests: New file.
37340         * tests/test-fmodf.c: New file.
37342         New module 'fmodf'.
37343         * lib/math.in.h (fmodf): New declaration.
37344         * lib/fmodf.c: New file.
37345         * m4/fmodf.m4: New file.
37346         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
37347         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
37348         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
37349         * modules/fmodf: New file.
37350         * tests/test-math-c++.cc: Check the declaration of fmodf.
37351         * doc/posix-functions/fmodf.texi: Mention the new module.
37353         fmod: Use a .m4 file.
37354         * m4/fmod.m4: New file.
37355         * modules/fmod (Files): Add it.
37356         (configure.ac): Just invoke gl_FUNC_FMOD.
37358 2011-10-05  Bruno Haible  <bruno@clisp.org>
37360         Tests for module 'fabsf'.
37361         * modules/fabsf-tests: New file.
37362         * tests/test-fabsf.c: New file.
37364         New module 'fabsf'.
37365         * lib/math.in.h (fabsf): New declaration.
37366         * lib/fabsf.c: New file.
37367         * m4/fabsf.m4: New file.
37368         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
37369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
37370         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
37371         * modules/fabsf: New file.
37372         * tests/test-math-c++.cc: Check the declaration of fabsf.
37373         * doc/posix-functions/fabsf.texi: Mention the new module.
37375         fabs: Use a .m4 file.
37376         * m4/fabs.m4: New file.
37377         * modules/fabs (Files): Add it.
37378         (configure.ac): Just invoke gl_FUNC_FABS.
37380 2011-10-05  Jim Meyering  <meyering@redhat.com>
37382         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
37383         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
37384         ls -lL regression introduced in coreutils-8.12, it does so at the
37385         cost of an additional stat call in the common case.  Besides, now
37386         that the kernel change that prompted commit 95f7c57f has been reverted
37387         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
37388         we have no use for commit 95f7c57f, "file-has-acl: use
37389         acl_extended_file_nofollow if available".
37391 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
37393         file-has-acl: revert unintended change in behavior of ls -L
37394         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
37395         derived from...
37396         (file_has_acl): ...code here.  Call it.
37397         This problem was introduced with 2011-07-22 commit 95f7c57f,
37398         "file-has-acl: use acl_extended_file_nofollow if available".
37399         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
37401 2011-10-03  Bruno Haible  <bruno@clisp.org>
37403         poll: Avoid link errors on MSVC.
37404         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
37405         * modules/poll (Depends-on): Add sockets.
37406         (Link): New section.
37407         * NEWS: Mention the change.
37408         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
37409         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
37410         $(LIB_POLL) instead of $(LIBSOCKET).
37412 2011-10-03  Bruno Haible  <bruno@clisp.org>
37414         sys_select tests: Fix link error on MSVC 9.
37415         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
37416         with $(LIB_SELECT) instead of $(LIBSOCKET).
37418 2011-10-03  Bruno Haible  <bruno@clisp.org>
37420         sys_select: Fix compilation error on mingw.
37421         * lib/sys_select.in.h: On native Windows, include <io.h>.
37423 2011-10-03  Bruno Haible  <bruno@clisp.org>
37425         wmemset: Support for MSVC.
37426         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
37427         whether wmemset() exists.
37429 2011-10-03  Bruno Haible  <bruno@clisp.org>
37431         wmemmove: Support for MSVC.
37432         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
37433         whether wmemmove() exists.
37435 2011-10-03  Bruno Haible  <bruno@clisp.org>
37437         wmemcpy: Support for MSVC.
37438         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
37439         whether wmemcpy() exists.
37441 2011-10-03  Bruno Haible  <bruno@clisp.org>
37443         wmemcmp: Support for MSVC.
37444         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
37445         whether wmemcmp() exists.
37447 2011-10-03  Bruno Haible  <bruno@clisp.org>
37449         wmemchr: Support for MSVC.
37450         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
37451         whether wmemchr() exists.
37453 2011-10-03  Bruno Haible  <bruno@clisp.org>
37455         glthread/*, strsignal: Support for MSVC.
37456         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
37457         including <winsock.h> on MSVC 9.
37458         * lib/glthread/lock.h: Likewise.
37459         * lib/glthread/thread.h: Likewise.
37460         * lib/glthread/tls.h: Likewise.
37461         * lib/glthread/yield.h: Likewise.
37462         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
37463         if HAVE_UNISTD_H is false.
37464         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
37466 2011-10-03  Bruno Haible  <bruno@clisp.org>
37468         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
37469         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
37470         Set to 100000.
37472 2011-10-03  Bruno Haible  <bruno@clisp.org>
37474         acl: Fix specification.
37475         * lib/file-has-acl.c (file_has_acl): Fix specification.
37477 2011-10-03  Bruno Haible  <bruno@clisp.org>
37479         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
37480         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
37481         (compute_curr_prefix, shared_library_fullname,
37482         find_shared_library_fullname, get_shared_library_fullname, relocate):
37483         Use it together with PIC && INSTALLDIR.
37484         Reported by <jojelino@gmail.com>
37485         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
37487 2011-10-01  Jim Meyering  <meyering@redhat.com>
37489         maint.mk: adjust a release-related rule not to require use of gzip
37490         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
37491         Instead, check each file in $(DIST_ARCHIVES).  This is better for
37492         projects that build only .tar.xz files.  Also fix an erroneous test.
37494         test-linkat: don't leave behind a temporary file
37495         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
37496         Otherwise, coreutils' "make distcheck" would fail with this:
37497           Only in /c/cu/tests/torture/coreutils/test/\
37498             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
37499           make[2]: *** [my-distcheck] Error 1
37501         float, math: add omitted file
37502         * lib/itold.c: Add file, required for yesterday's float change.
37504 2011-10-01  Bruno Haible  <bruno@clisp.org>
37506         isinf: Fix for OpenBSD/x86.
37507         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
37508         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
37509         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
37511 2011-10-01  Bruno Haible  <bruno@clisp.org>
37513         isfinite: Fix syntax error in configure test.
37514         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
37516         isfinite: Fix typo.
37517         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
37518         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
37520 2011-10-01  Bruno Haible  <bruno@clisp.org>
37522         nonblocking tests: Fix test failure on Linux/IA-64.
37523         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
37524         Set to 270000.
37526 2011-10-01  Bruno Haible  <bruno@clisp.org>
37528         mkfifoat tests: Fix a test failure on mingw.
37529         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
37530         with error ENOSYS.
37532 2011-09-30  Bruno Haible  <bruno@clisp.org>
37534         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
37535         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
37536         'long double'. Set REPLACE_ITOLD.
37537         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
37538         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
37539         * lib/itold.c: New file.
37540         * modules/float (Files): Add lib/itold.c.
37541         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
37542         (Makefile.am): Substitute REPLACE_ITOLD.
37543         * modules/math (Depends-on): Add float.
37544         (Makefile.am): Substitute REPLACE_ITOLD.
37545         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
37546         * doc/posix-headers/math.texi: Likewise.
37547         * doc/posix-functions/logl.texi: Likewise.
37549 2011-09-30  Bruno Haible  <bruno@clisp.org>
37551         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
37552         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
37553         Set to 140000.
37555 2011-09-30  Bruno Haible  <bruno@clisp.org>
37557         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
37558         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
37559         invocation, say "right after AC_PROG_CC_STDC", not "right after
37560         AC_PROG_CC".
37561         Reported by Gary V. Vaughan <gary@gnu.org>.
37563 2011-09-30  Bruno Haible  <bruno@clisp.org>
37565         Centralize C99 requirement.
37566         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
37567         * modules/stdarg (configure.ac-early): Invoke it instead of
37568         AC_PROG_CC_STDC.
37569         Reported by Gary V. Vaughan and Paul Eggert.
37571 2011-09-29  Bruno Haible  <bruno@clisp.org>
37573         float: Fix LDBL_MAX value on Linux/PowerPC.
37574         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
37575         on Linux/PowerPC.
37576         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
37577         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
37578         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
37579         platform.
37580         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
37582 2011-09-29  Bruno Haible  <bruno@clisp.org>
37584         doc: Improve doc about gl_EARLY.
37585         * doc/gnulib-tool.texi (Initial import): Mention where to place an
37586         AC_PROG_CC_STDC invocation.
37587         Reported by Gary V. Vaughan <gary@gnu.org>.
37589 2011-09-28  Bruno Haible  <bruno@clisp.org>
37591         fgetc, fputc, fread, fwrite tests: Fix link error.
37592         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
37593         on non-MSVC platforms.
37594         * tests/test-fputc.c (main): Likewise.
37595         * tests/test-fread.c (main): Likewise.
37596         * tests/test-fwrite.c (main): Likewise.
37597         Reported by Jim Meyering.
37599 2011-09-27  Bruno Haible  <bruno@clisp.org>
37601         fputc, fwrite tests: Avoid test failure on MSVC.
37602         * tests/test-fgetc.c: Include msvc-inval.h.
37603         (main): Invoke gl_msvc_inval_ensure_handler.
37604         * tests/test-fputc.c: Include msvc-inval.h.
37605         (main): Invoke gl_msvc_inval_ensure_handler.
37606         * tests/test-fread.c: Include msvc-inval.h.
37607         (main): Invoke gl_msvc_inval_ensure_handler.
37608         * tests/test-fwrite.c: Include msvc-inval.h.
37609         (main): Invoke gl_msvc_inval_ensure_handler.
37610         * modules/fgetc-tests (Depends-on): Add msvc-inval.
37611         * modules/fputc-tests (Depends-on): Likewise.
37612         * modules/fread-tests (Depends-on): Likewise.
37613         * modules/fwrite-tests (Depends-on): Likewise.
37615 2011-09-27  Bruno Haible  <bruno@clisp.org>
37617         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
37618         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
37619         (raise): Remove older, duplicated declaration.
37620         (_gl_raise_SIGPIPE): New declaration.
37621         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
37622         (rpl_raise): Remove function.
37623         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
37624         a gnulib-defined SIGPIPE here.
37625         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
37626         'sigprocmask' has detected missing signal-blocking and the module
37627         'sigpipe' is enabled.
37628         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
37630 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
37632         base64-tests: avoid memory leak
37633         * tests/test-base64.c (main): Plug memory leak.
37635         base32: new module
37636         * modules/base32: New module.
37637         * lib/base32.c: New file.
37638         * lib/base32.h: Likewise.
37639         * m4/base32.m4: Likewise.
37640         * modules/base32-tests: New test.
37641         * tests/test-base32.c: Likewise.
37642         * MODULES.html.sh (Misc): Mention it.
37644 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37646         gnulib: use more-standard license notice wording
37647         * gnulib-tool (func_emit_copyright_notice): When emitting a
37648         license notice into a file, use the standard wording as suggested
37649         by the current information for GNU maintainers, except say "file"
37650         rather than "program".  The new wording gives a license version
37651         number, which addresses an issue raised by Glenn Morris in
37652         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
37653         * m4/onceonly.m4: Use that same wording here, too.
37655         dup2: minor simplification
37656         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
37657         as lib/dup2.c no longer uses 'inline'.
37659 2011-09-25  Bruno Haible  <bruno@clisp.org>
37661         strings: Fix compilation error on MSVC.
37662         * lib/strings.in.h: Include <stddef.h> for size_t.
37664 2011-09-25  Bruno Haible  <bruno@clisp.org>
37666         fflush et al.: Document limitation on MSVC.
37667         * doc/posix-functions/fflush.texi: Document possible crash in handling
37668         mode other than DEFAULT_HANDLING.
37669         * doc/posix-functions/fgetc.texi: Likewise.
37670         * doc/posix-functions/fputc.texi: Likewise.
37671         * doc/posix-functions/fread.texi: Likewise.
37672         * doc/posix-functions/fwrite.texi: Likewise.
37674 2011-09-25  Bruno Haible  <bruno@clisp.org>
37676         msvc-inval: Allow three invalid parameter handling modes.
37677         * lib/msvc-inval.h: Don't include <stdlib.h> here.
37678         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
37679         macros.
37680         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
37681         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
37682         SANE_LIBRARY_HANDLING as a no-op.
37683         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
37684         <stdlib.h>.
37685         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
37687 2011-09-25  Bruno Haible  <bruno@clisp.org>
37689         msvc-inval: Make handler multithread-safe.
37690         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
37691         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
37692         declarations.
37693         (gl_msvc_inval_current): New declaration.
37694         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
37695         Operate on the structure returned by gl_msvc_inval_current().
37696         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
37697         Remove varaiables.
37698         (tls_index, tls_initialized): New variables.
37699         (not_per_thread): New variable.
37700         (gl_msvc_inval_current): New function.
37701         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
37702         returned by gl_msvc_inval_current().
37704 2011-09-25  Bruno Haible  <bruno@clisp.org>
37706         msvc-inval: Install handler globally.
37707         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
37708         !_MSC_VER.
37709         (gl_msvc_invalid_parameter_handler): Remove declaration.
37710         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
37711         declarations.
37712         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
37713         Install the handler globally, don't uninstall it.
37714         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
37715         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
37716         currently valid, call RaiseException instead.
37717         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
37718         for !_MSC_VER.
37720 2011-09-25  Bruno Haible  <bruno@clisp.org>
37722         strerror_r-posix: Fix for MSVC 9.
37723         * lib/strerror_r.c (local_snprintf): New function.
37724         (snprintf): Define to local_snprintf, not to _snprintf.
37726 2011-09-25  Bruno Haible  <bruno@clisp.org>
37728         ftruncate: Support for MSVC 9.
37729         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
37730         (chsize_nothrow): New function.
37731         (chsize): Redefine as a macro.
37732         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
37733         * modules/ftruncate (Depends-on): Add msvc-inval.
37735 2011-09-25  Bruno Haible  <bruno@clisp.org>
37737         New module 'fstat'.
37738         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
37739         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
37740         * lib/fchdir.c (rpl_fstat): Remove function.
37741         * m4/fstat.m4: New file.
37742         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
37743         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
37744         declared.
37745         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
37746         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
37747         * modules/fstat: New file.
37748         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
37749         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
37750         is set.
37751         * doc/posix-functions/fstat.texi: Mention the new module and the
37752         problem on MSVC.
37753         * NEWS: Mention the change.
37754         * modules/acl (Depends-on): Add fstat.
37755         * modules/chdir-safer (Depends-on): Likewise.
37756         * modules/chown (Depends-on): Likewise.
37757         * modules/copy-file (Depends-on): Likewise.
37758         * modules/fchdir (Depends-on): Likewise.
37759         * modules/fdopendir (Depends-on): Likewise.
37760         * modules/fopen (Depends-on): Likewise.
37761         * modules/fts (Depends-on): Likewise.
37762         * modules/getcwd (Depends-on): Likewise.
37763         * modules/isapipe (Depends-on): Likewise.
37764         * modules/linkat (Depends-on): Likewise.
37765         * modules/lseek (Depends-on): Likewise.
37766         * modules/mkdir-p (Depends-on): Likewise.
37767         * modules/open (Depends-on): Likewise.
37768         * modules/openat (Depends-on): Likewise.
37769         * modules/read-file (Depends-on): Likewise.
37770         * modules/renameat (Depends-on): Likewise.
37771         * modules/utimens (Depends-on): Likewise.
37773 2011-09-25  Bruno Haible  <bruno@clisp.org>
37775         linkat: Fix compilation on MSVC 9.
37776         * lib/linkat.c: Don't include <stdint.h>.
37778 2011-09-25  Bruno Haible  <bruno@clisp.org>
37780         fclose: Support for MSVC 9.
37781         * lib/fclose.c: Include msvc-inval.h.
37782         (fclose_nothrow): New function.
37783         (rpl_fclose): Use it.
37784         * modules/fclose (Depends-on): Add msvc-inval.
37785         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
37787 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37789         dup2: minor simplifications
37790         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
37791         that it's a performance win.
37792         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
37793         ! defined __CYGWIN__)" to "ifdef F_GETFL".
37795 2011-09-24  Jim Meyering  <meyering@redhat.com>
37797         test-futimens: avoid a warning from gcc -Wshadow
37798         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
37799         to avoid a shadowing warning.
37801 2011-09-24  Bruno Haible  <bruno@clisp.org>
37803         fdopen: Support for MSVC 9.
37804         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
37805         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
37806         * lib/fdopen.c: Include msvc-inval.h.
37807         (fdopen_nothrow): New function.
37808         (rpl_fdopen): Use it.
37809         * modules/fdopen (Depends-on): Add msvc-inval.
37810         * modules/fclose-tests (Depends-on): Add fdopen.
37811         * modules/fflush-tests (Depends-on): Likewise.
37812         * modules/fgetc-tests (Depends-on): Likewise.
37813         * modules/fputc-tests (Depends-on): Likewise.
37814         * modules/fread-tests (Depends-on): Likewise.
37815         * modules/freopen-tests (Depends-on): Likewise.
37816         * modules/fseeko-tests (Depends-on): Likewise.
37817         * modules/ftello-tests (Depends-on): Likewise.
37818         * modules/fwrite-tests  (Depends-on): Likewise.
37819         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
37821 2011-09-24  Bruno Haible  <bruno@clisp.org>
37823         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
37824         * modules/fgetc-tests (Depends-on): Add unistd.
37825         * modules/fputc-tests (Depends-on): Likewise.
37826         * modules/fread-tests (Depends-on): Likewise.
37827         * modules/fwrite-tests (Depends-on): Likewise.
37829 2011-09-24  Bruno Haible  <bruno@clisp.org>
37831         dup: Simplify autoconf test.
37832         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
37833         on gl_MSVC_INVAL's result.
37835 2011-09-24  Bruno Haible  <bruno@clisp.org>
37837         Tests for function fwrite().
37838         * modules/fwrite-tests: New file.
37839         * tests/test-fwrite.c: New file.
37840         * modules/stdio-tests (Depends-on): Add fwrite-tests.
37842         Tests for function fread().
37843         * modules/fread-tests: New file.
37844         * tests/test-fread.c: New file.
37845         * modules/stdio-tests (Depends-on): Add fread-tests.
37847         Activate fputc tests.
37848         * modules/stdio-tests (Depends-on): Add fputc-tests.
37850         Enhance fgetc, fputc tests.
37851         * tests/test-fgetc.c (main): Also test the stream's error indicator.
37852         * tests/test-fputc.c (main): Likewise.
37854 2011-09-24  Bruno Haible  <bruno@clisp.org>
37856         write: Support for MSVC 9.
37857         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
37858         is not 1.
37859         * lib/write.c (write_nothrow): New function.
37860         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
37861         not 1. Use write_nothrow.
37862         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
37863         invalid parameter handler.
37864         (gl_PREREQ_WRITE): New macro.
37865         * modules/write (Depends-on): Add msvc-inval.
37866         (configure.ac): Invoke gl_PREREQ_WRITE.
37867         * doc/posix-functions/write.texi: Mention the problem on MSVC.
37869 2011-09-24  Bruno Haible  <bruno@clisp.org>
37871         read: Fix last commit.
37872         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
37874 2011-09-24  Bruno Haible  <bruno@clisp.org>
37876         dup2: Fix last commit.
37877         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
37878         (rpl_dup2): Disable fcntl workaround on native Windows.
37880         sigprocmask: Make code safer.
37881         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
37882         section that changes macro definitions for this compilation unit.
37884 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
37886         dup2: clarify by coalescing Windows-specific material
37887         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
37888         "msvc-nothrow.h"' to the Windows-specific section, so that the
37889         Emacs source need not contain these include files.
37890         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
37891         Windows-specific fixes into this function rather than just the
37892         nothrow fix, as this shortens and clarifies the code.  Always
37893         define as a function, as that's a bit cleaner than having it be
37894         sometimes a function and sometimes a macro.
37895         (rpl_dup2): Move the Windows-specific stuff out of here and into
37896         ms_windows_dup2.  Don't protect the Haiku-related fix with
37897         "#if !defined __linux__", as the same code also works around
37898         a Linux kernel bug, and it doesn't add any system calls on any
37899         platform.  Add comment about FreeBSD 6.1.
37901         sigprocmask: move #include directive
37902         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
37903         Windows-specific section, so that the Emacs source need not
37904         contain msvc-inval.h.
37906 2011-09-23  Bruno Haible  <bruno@clisp.org>
37908         read: Support for MSVC 9.
37909         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
37910         is not 1.
37911         * lib/read.c (read_nothrow): New function.
37912         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
37913         read_nothrow.
37914         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
37915         invalid parameter handler.
37916         (gl_PREREQ_READ): New macro.
37917         * modules/read (Depends-on): Add msvc-inval.
37918         (configure.ac): Invoke gl_PREREQ_READ.
37919         * doc/posix-functions/read.texi: Mention the problem on MSVC.
37921 2011-09-23  Bruno Haible  <bruno@clisp.org>
37923         close: Support for MSVC 9.
37924         * lib/close.c: Include <errno.h>, msvc-inval.h.
37925         (close_nothrow): New function.
37926         (rpl_close): Use it.
37927         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
37928         invalid parameter handler.
37929         * modules/close (Depends-on): Add msvc-inval.
37930         * modules/dup2-tests (Depends-on): Add close.
37931         * modules/dup3-tests (Depends-on): Likewise.
37932         * modules/fcntl-tests (Depends-on): Likewise.
37933         * modules/spawn-pipe-tests (Depends-on): Likewise.
37934         * modules/unistd-safer-tests (Depends-on): Likewise.
37935         * doc/posix-functions/close.texi: Mention the problem on MSVC.
37937 2011-09-23  Bruno Haible  <bruno@clisp.org>
37939         New module 'dup'.
37940         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
37941         Allow replacement.
37942         * lib/dup.c: New file.
37943         * lib/fchdir.c (rpl_dup): Remove function.
37944         * m4/dup.m4: New file.
37945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
37946         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
37947         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
37948         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
37949         * modules/dup: New file.
37950         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
37951         'dup' module is in use.
37952         * modules/fdopendir (Depends-on): Add dup.
37953         * modules/fdutimensat-tests (Depends-on): Likewise.
37954         * modules/fts (Depends-on): Likewise.
37955         * modules/futimens-tests (Depends-on): Likewise.
37956         * modules/posix_spawnp-tests (Depends-on): Likewise.
37957         * modules/unistd-safer-tests (Depends-on): Likewise.
37958         * modules/utimens-tests (Depends-on): Likewise.
37959         * doc/posix-functions/dup.texi: Mention the new module and the problem
37960         on MSVC.
37962 2011-09-23  Bruno Haible  <bruno@clisp.org>
37964         getdtablesize: Support for MSVC 9.
37965         * lib/getdtablesize.c: Include msvc-inval.h.
37966         (_setmaxstdio_nothrow): New function.
37967         (_setmaxstdio): Redefine it.
37968         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
37969         * modules/getdtablesize (Depends-on): Add msvc-inval.
37970         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
37972 2011-09-23  Bruno Haible  <bruno@clisp.org>
37974         signal-h: Rename from signal.
37975         * modules/signal-h: Renamed from modules/signal.
37976         * modules/pthread_sigmask (Depends-on): Update.
37977         * modules/raise (Depends-on): Likewise.
37978         * modules/sigaction (Depends-on): Likewise.
37979         * modules/sigpipe (Depends-on): Likewise.
37980         * modules/sigprocmask (Depends-on): Likewise.
37981         * modules/sys_select (Depends-on): Likewise.
37982         * modules/signal-h-tests: Renamed from modules/signal-tests.
37983         (Files, Depends-on, Makefile.am): Update.
37984         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
37985         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
37986         (Files, Makefile.am): Update.
37987         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
37988         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
37989         * modules/signal: New placeholder file.
37990         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
37991         * doc/posix-headers/signal.texi: Update.
37992         * NEWS: Mention the change.
37994 2011-09-23  Bruno Haible  <bruno@clisp.org>
37996         sigprocmask: Avoid crashes through signal() on MSVC 9.
37997         * lib/sigprocmask.c: Include msvc-inval.h.
37998         (signal_nothrow): New function.
37999         (signal): Redefine it.
38000         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
38001         * modules/sigprocmask (Depends-on): Add msvc-inval.
38002         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
38004 2011-09-23  Bruno Haible  <bruno@clisp.org>
38006         Tests for module 'raise'.
38007         * modules/raise-tests: New file.
38008         * tests/test-raise.c: New file.
38010         raise: Support for MSVC.
38011         * lib/signal.in.h (raise): New declaration.
38012         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
38013         for native Windows platforms.
38014         * m4/raise.m4: New file.
38015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
38016         HAVE_RAISE, REPLACE_RAISE.
38017         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
38018         REPLACE_RAISE.
38019         * modules/raise (Status, Notice): Remove fields.
38020         (Files): Add m4/raise.m4.
38021         (Depends-on): Add signal, msvc-inval.
38022         (configure.ac): Use the common idioms.
38023         (Maintainer): Add me.
38024         * tests/test-signal-c++.cc: Check the signature of raise.
38025         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
38027 2011-09-23  Bruno Haible  <bruno@clisp.org>
38029         pipe2: Fix compilation on pre-C99 compilers.
38030         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
38032 2011-09-23  Bruno Haible  <bruno@clisp.org>
38034         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
38035         * lib/msvc-nothrow.h: New file.
38036         * lib/msvc-nothrow.c: New file.
38037         * m4/msvc-nothrow.m4: New file.
38038         * modules/msvc-nothrow: New file.
38039         * lib/dup2.c: Include msvc-nothrow.h.
38040         (rpl_dup2): No need to protect _get_osfhandle call here.
38041         * lib/accept4.c: Include msvc-nothrow.h.
38042         * lib/error.c: Likewise.
38043         * lib/fcntl.c: Likewise.
38044         * lib/lseek.c: Likewise.
38045         * lib/nonblocking.c: Likewise.
38046         * lib/poll.c: Likewise.
38047         * lib/read.c: Likewise.
38048         * lib/select.c: Likewise.
38049         * lib/sockets.h: Likewise.
38050         * lib/sockets.c: Likewise.
38051         * lib/stdio-read.c: Likewise.
38052         * lib/stdio-write.c: Likewise.
38053         * lib/write.c: Likewise.
38054         * lib/w32sock.h: Likewise.
38055         * lib/w32spawn.h: Likewise.
38056         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
38057         * lib/fsync.c: Likewise.
38058         * lib/isapipe.c: Likewise.
38059         * modules/dup2 (Depends-on): Add msvc-nothrow.
38060         * modules/accept4 (Depends-on): Likewise.
38061         * modules/error (Depends-on): Likewise.
38062         * modules/fcntl (Depends-on): Likewise.
38063         * modules/lseek (Depends-on): Likewise.
38064         * modules/nonblocking (Depends-on): Likewise.
38065         * modules/poll (Depends-on): Likewise.
38066         * modules/read (Depends-on): Likewise.
38067         * modules/select (Depends-on): Likewise.
38068         * modules/sockets (Depends-on): Likewise.
38069         * modules/sigpipe (Depends-on): Likewise.
38070         * modules/write (Depends-on): Likewise.
38071         * modules/accept (Depends-on): Likewise.
38072         * modules/bind (Depends-on): Likewise.
38073         * modules/connect (Depends-on): Likewise.
38074         * modules/gethostname (Depends-on): Likewise.
38075         * modules/getpeername (Depends-on): Likewise.
38076         * modules/getsockname (Depends-on): Likewise.
38077         * modules/getsockopt (Depends-on): Likewise.
38078         * modules/ioctl (Depends-on): Likewise.
38079         * modules/listen (Depends-on): Likewise.
38080         * modules/recv (Depends-on): Likewise.
38081         * modules/recvfrom (Depends-on): Likewise.
38082         * modules/send (Depends-on): Likewise.
38083         * modules/sendto (Depends-on): Likewise.
38084         * modules/setsockopt (Depends-on): Likewise.
38085         * modules/shutdown (Depends-on): Likewise.
38086         * modules/socket (Depends-on): Likewise.
38087         * modules/execute (Depends-on): Likewise.
38088         * modules/spawn-pipe (Depends-on): Likewise.
38089         * modules/flock (Depends-on): Likewise.
38090         * modules/fsync (Depends-on): Likewise.
38091         * modules/isapipe (Depends-on): Likewise.
38092         * tests/test-cloexec.c: Include msvc-nothrow.h.
38093         * tests/test-dup-safer.c: Likewise.
38094         * tests/test-dup2.c: Likewise.
38095         * tests/test-dup3.c: Likewise.
38096         * tests/test-fcntl.c: Likewise.
38097         * tests/test-pipe.c: Likewise.
38098         * tests/test-pipe2.c: Likewise.
38099         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
38100         * modules/unistd-safer-tests (Depends-on): Likewise.
38101         * modules/dup2-tests (Depends-on): Likewise.
38102         * modules/dup3-tests (Depends-on): Likewise.
38103         * modules/fcntl-tests (Depends-on): Likewise.
38104         * modules/pipe-posix-tests (Depends-on): Likewise.
38105         * modules/pipe2-tests (Depends-on): Likewise.
38107 2011-09-23  Bruno Haible  <bruno@clisp.org>
38109         dup2: Make code more maintainable.
38110         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
38111         (rpl_dup2): Use it.
38112         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
38113         * modules/dup2 (configure.ac): Invoke it.
38114         Reported by Paul Eggert.
38116 2011-09-23  Bruno Haible  <bruno@clisp.org>
38118         msvc-inval: Fix compilation error.
38119         * lib/msvc-inval.h: Include <excpt.h>.
38121 2011-09-23  Bruno Haible  <bruno@clisp.org>
38123         mkdir: Tweak for MSVC 9.
38124         * lib/sys_stat.in.h: Update comments.
38125         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
38127         Tests for module 'chdir'.
38128         * modules/chdir-tests: New file.
38129         * tests/test-chdir.c: New file.
38131         New module 'chdir'.
38132         * modules/chdir: New file.
38133         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
38134         (chdir): New declaration.
38135         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
38136         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
38137         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
38138         * tests/test-unistd-c++.cc: Check signature of chdir.
38139         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
38140         * modules/chdir-long (Depends-on): Add chdir.
38141         * modules/fchdir (Depends-on): Likewise.
38142         * modules/rename (Depends-on): Likewise.
38143         * modules/savewd (Depends-on): Likewise.
38145         rmdir: Support for mingw, MSVC 9.
38146         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
38147         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
38149         getcwd: Tweak for MSVC 9.
38150         * lib/unistd.in.h: Update comments.
38151         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
38153 2011-09-22  Bruno Haible  <bruno@clisp.org>
38155         strerror_r-posix: Avoid a link error on MSVC.
38156         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
38157         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
38159 2011-09-22  Bruno Haible  <bruno@clisp.org>
38161         select: Avoid link errors on MSVC.
38162         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
38163         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
38164         * modules/pselect (Link): Likewise.
38165         * NEWS: Mention the change.
38166         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
38167         test-select-stdin against $(LIB_SELECT).
38168         * modules/pselect-tests (Makefile.am): Link test-pselect against
38169         $(LIB_SELECT).
38171 2011-09-22  Bruno Haible  <bruno@clisp.org>
38173         select: Avoid compilation error on MSVC.
38174         * lib/select.c: Don't include <stdbool.h>.
38176 2011-09-21  Bruno Haible  <bruno@clisp.org>
38178         Consolidate all uses of PATH_MAX in *.m4 files.
38179         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
38180         macros.
38181         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
38182         and gl_PATHMAX_SNIPPET.
38183         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
38184         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38185         * modules/chdir-long (Files): Add m4/pathmax.m4.
38186         * modules/getcwd (Files): Likewise.
38188 2011-09-21  Bruno Haible  <bruno@clisp.org>
38190         ftruncate: Un-deprecate, concentrate on Win32 support.
38191         * modules/ftruncate (Status, Notice): Remove sections.
38192         (Depends-on): Add largefile.
38193         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
38194         non-mingw platforms.
38195         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
38196         include <io.h>.
38197         * modules/perror-tests (Depends-on): Add ftruncate.
38198         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
38199         'ftruncate' module.
38201 2011-09-21  Bruno Haible  <bruno@clisp.org>
38203         Add dependencies to new dirent related modules.
38204         * modules/opendir (Depends-on): Add closedir.
38205         * modules/getcwd (Depends-on): Add opendir, closedir.
38206         * modules/dirent-safer-tests (Depends-on): Likewise.
38207         * modules/fdopendir-tests (Depends-on): Likewise.
38208         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
38209         * modules/renameat-tests (Depends-on): Likewise.
38211 2011-09-21  Bruno Haible  <bruno@clisp.org>
38213         opendir: Avoid compilation error on mingw.
38214         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
38215         * modules/opendir (Depends-on): Add unistd.
38217 2011-09-21  Bruno Haible  <bruno@clisp.org>
38219         ftruncate tests: Avoid a test failure on mingw.
38220         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
38222 2011-09-21  Bruno Haible  <bruno@clisp.org>
38224         select tests: Avoid test failures on OSF/1 5.1 and mingw.
38225         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
38226         native Windows.
38228 2011-09-21  Bruno Haible  <bruno@clisp.org>
38230         New module 'fdopen'.
38231         * lib/stdio.in.h (fdopen): New declaration.
38232         * lib/fdopen.c: New file.
38233         * m4/fdopen.m4: New file.
38234         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
38235         REPLACE_FDOPEN.
38236         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
38237         REPLACE_FDOPEN.
38238         * modules/fdopen: New file.
38239         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
38240         * tests/test-stdio-c++.cc: Check signature of fdopen.
38241         * doc/posix-functions/fdopen.texi: Mention the new module.
38243 2011-09-21  Bruno Haible  <bruno@clisp.org>
38245         unlockpt tests: Avoid test failure on NetBSD 5.1.
38246         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
38247         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
38249 2011-09-21  Bruno Haible  <bruno@clisp.org>
38251         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
38252         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
38253         * tests/test-getlogin_r.c (main): Likewise.
38255 2011-09-20  Bruno Haible  <bruno@clisp.org>
38257         time tests: Don't require pid_t.
38258         * doc/posix-headers/time.texi: Revert last change.
38259         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
38260         * tests/test-time.c: Comment out the check for pid_t.
38262 2011-09-20  Bruno Haible  <bruno@clisp.org>
38264         fsync tests: Avoid a test failure on mingw.
38265         * tests/test-fsync.c (main): Allow a failure with EIO.
38267 2011-09-20  Bruno Haible  <bruno@clisp.org>
38269         euidaccess: Update comments.
38270         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
38272 2011-09-20  Bruno Haible  <bruno@clisp.org>
38274         Ensure EBADF returns for socket functions on mingw.
38275         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
38276         descriptor is invalid.
38277         * lib/bind.c (rpl_bind): Likewise.
38278         * lib/connect.c (rpl_connect): Likewise.
38279         * lib/getpeername.c (rpl_getpeername): Likewise.
38280         * lib/getsockname.c (rpl_getsockname): Likewise.
38281         * lib/getsockopt.c (rpl_getsockopt): Likewise.
38282         * lib/listen.c (rpl_listen): Likewise.
38283         * lib/recv.c (rpl_recv): Likewise.
38284         * lib/recvfrom.c (rpl_recvfrom): Likewise.
38285         * lib/send.c (rpl_send): Likewise.
38286         * lib/sendto.c (rpl_sendto): Likewise.
38287         * lib/setsockopt.c (rpl_setsockopt): Likewise.
38288         * lib/shutdown.c (rpl_shutdown): Likewise.
38290 2011-09-20  Bruno Haible  <bruno@clisp.org>
38292         select tests: EBADF tests.
38293         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
38294         test_bad_fd): New functions.
38295         (test_function): Invoke also test_bad_fd.
38297 2011-09-20  Bruno Haible  <bruno@clisp.org>
38299         Tests for module 'posix_spawn_file_actions_addopen.
38300         * modules/posix_spawn_file_actions_addopen-tests: New file.
38301         * tests/test-posix_spawn_file_actions_addopen.c: New file.
38303         Tests for module 'posix_spawn_file_actions_adddup2'.
38304         * modules/posix_spawn_file_actions_adddup2-tests: New file.
38305         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
38307         Tests for module 'posix_spawn_file_actions_addclose'.
38308         * modules/posix_spawn_file_actions_addclose-tests: New file.
38309         * tests/test-posix_spawn_file_actions_addclose.c: New file.
38311 2011-09-20  Bruno Haible  <bruno@clisp.org>
38313         Tests for module 'unlockpt'.
38314         * modules/unlockpt-tests: New file.
38315         * tests/test-unlockpt.c: New file.
38316         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
38318         Tests for module 'grantpt'.
38319         * modules/grantpt-tests: New file.
38320         * tests/test-grantpt.c: New file.
38321         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
38323 2011-09-20  Bruno Haible  <bruno@clisp.org>
38325         freopen tests: EBADF tests.
38326         * tests/test-freopen.c: Include errno.h, unistd.h.
38327         (main): Add tests for EBADF, commented out for the moment.
38329         fclose tests: EBADF tests.
38330         * tests/test-fclose.c (main): Add tests for EBADF.
38332         fflush tests: EBADF tests.
38333         * tests/test-fflush.c: Include errno.h, macros.h.
38334         (main): Add tests for EBADF.
38336         ftello tests: EBADF tests.
38337         * tests/test-ftello4.sh: New file.
38338         * tests/test-ftello4.c: New file.
38339         * modules/ftello-tests (Files): Add them.
38340         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
38342         fseeko tests: EBADF tests.
38343         * tests/test-fseeko4.sh: New file.
38344         * tests/test-fseeko4.c: New file.
38345         * modules/fseeko-tests (Files): Add them.
38346         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
38348         Tests for function fputc().
38349         * modules/fputc-tests: New file.
38350         * tests/test-fputc.c: New file.
38351         * modules/stdio-tests (Depends-on): Add fputc-tests.
38353         Tests for function fgetc().
38354         * modules/fgetc-tests: New file.
38355         * tests/test-fgetc.c: New file.
38356         * modules/stdio-tests (Depends-on): Add fgetc-tests.
38358         Tests for function fdopen().
38359         * modules/fdopen-tests: New file.
38360         * tests/test-fdopen.c: New file.
38361         * modules/stdio-tests (Depends-on): Add fdopen-tests.
38363         Tests for module 'vdprintf'.
38364         * modules/vdprintf-tests: New file.
38365         * tests/test-vdprintf.c: New file.
38367         Tests for module 'dprintf'.
38368         * modules/dprintf-tests: New file.
38369         * tests/test-dprintf.c: New file.
38371 2011-09-20  Bruno Haible  <bruno@clisp.org>
38373         Tests for module 'ioctl'.
38374         * modules/ioctl-tests: New file.
38375         * tests/test-ioctl.c: New file.
38377 2011-09-20  Bruno Haible  <bruno@clisp.org>
38379         fcntl tests: EBADF tests.
38380         * tests/test-fcntl.c (main): Add more tests for EBADF.
38382 2011-09-20  Bruno Haible  <bruno@clisp.org>
38384         utimensat tests: EBADF tests.
38385         * tests/test-utimensat.c (main): Add tests for EBADF.
38387         renameat tests: EBADF tests.
38388         * tests/test-renameat.c (main): Add tests for EBADF.
38390         mkfifoat tests: EBADF tests.
38391         * tests/test-mkfifoat.c (main): Add tests for EBADF.
38393         readlinkat tests: EBADF tests.
38394         * tests/test-readlinkat.c (main): Add tests for EBADF.
38396         symlinkat tests: EBADF tests.
38397         * tests/test-symlinkat.c (main): Add tests for EBADF.
38399         linkat tests: EBADF tests.
38400         * tests/test-linkat.c (main): Add tests for EBADF.
38402         Tests for module 'faccessat'.
38403         * modules/faccessat-tests: New file.
38404         * tests/test-faccessat.c: New file.
38406         fdopendir tests: EBADF tests.
38407         * tests/test-fdopendir.c (main): Add more tests for EBADF.
38409         openat tests: EBADF tests.
38410         * tests/test-fchownat.c (main): Add tests for EBADF.
38411         * tests/test-fstatat.c (main): Likewise.
38412         * tests/test-mkdirat.c (main): Likewise.
38413         * tests/test-openat.c (main): Likewise.
38414         * tests/test-unlinkat.c (main): Likewise.
38415         * tests/test-fchmodat.c: New file.
38416         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
38417         (Makefile.am): Also run 'test-fchmodat'.
38419 2011-09-20  Bruno Haible  <bruno@clisp.org>
38421         utimens, futimens, fdutimensat tests: EBADF tests.
38422         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
38424         Tests for function fstat().
38425         * modules/fstat-tests: New file.
38426         * tests/test-fstat.c: New file.
38427         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
38429 2011-09-20  Bruno Haible  <bruno@clisp.org>
38431         test-ttyname_r tests: EBADF tests.
38432         * tests/test-ttyname_r.c (main): Add tests for EBADF.
38434         Tests for module 'isatty'.
38435         * modules/isatty-tests: New file.
38436         * tests/test-isatty.c: New file.
38438         Tests for module 'write'.
38439         * modules/write-tests: New file.
38440         * tests/test-write.c: New file.
38442         Tests for module 'read'.
38443         * modules/read-tests: New file.
38444         * tests/test-read.c: New file.
38446         pwrite tests: EBADF tests.
38447         * tests/test-pwrite.c (main): Add tests for EBADF.
38449         pread tests: EBADF tests.
38450         * tests/test-pread.c (main): Add tests for EBADF.
38452         lseek tests: EBADF tests.
38453         * tests/test-lseek.c (main): Add more tests for EBADF.
38455         Tests for module 'ftruncate'.
38456         * modules/ftruncate-tests: New file.
38457         * tests/test-ftruncate.sh: New file.
38458         * tests/test-ftruncate.c: New file.
38460         fsync tests: EBADF tests.
38461         * tests/test-fsync.c (main): Add more tests for EBADF.
38463         fdatasync tests: EBADF tests.
38464         * tests/test-fdatasync.c (main): Add more tests for EBADF.
38466         Tests for module 'fchown'.
38467         * modules/fchown-tests: New file.
38468         * tests/test-fchown.c: New file.
38470         Tests for module 'fchmod'.
38471         * modules/fchmod-tests: New file.
38472         * tests/test-fchmod.c: New file.
38474         fchdir tests: EBADF tests.
38475         * tests/test-fchdir.c (main): Add more tests for EBADF.
38477         dup2 tests: EBADF tests.
38478         * tests/test-dup2.c (main): Add more tests for EBADF.
38480         Tests for module 'dup'.
38481         * modules/dup-tests: New file.
38482         * tests/test-dup.c: New file.
38484         Tests for module 'close'.
38485         * modules/close-tests: New file.
38486         * tests/test-close.c: New file.
38488 2011-09-20  Bruno Haible  <bruno@clisp.org>
38490         Tests for module 'shutdown'.
38491         * modules/shutdown-tests: New file.
38492         * tests/test-shutdown.c: New file.
38494         Tests for module 'setsockopt'.
38495         * modules/setsockopt-tests: New file.
38496         * tests/test-setsockopt.c: New file.
38498         Tests for module 'sendto'.
38499         * modules/sendto-tests: New file.
38500         * tests/test-sendto.c: New file.
38502         Tests for module 'send'.
38503         * modules/send-tests: New file.
38504         * tests/test-send.c: New file.
38506         Tests for module 'recvfrom'.
38507         * modules/recvfrom-tests: New file.
38508         * tests/test-recvfrom.c: New file.
38510         Tests for module 'recv'.
38511         * modules/recv-tests: New file.
38512         * tests/test-recv.c: New file.
38514         Tests for module 'listen'.
38515         * modules/listen-tests: New file.
38516         * tests/test-listen.c: New file.
38518         Tests for module 'getsockopt'.
38519         * modules/getsockopt-tests: New file.
38520         * tests/test-getsockopt.c: New file.
38522         Tests for module 'getsockname'.
38523         * modules/getsockname-tests: New file.
38524         * tests/test-getsockname.c: New file.
38526         Tests for module 'getpeername'.
38527         * modules/getpeername-tests: New file.
38528         * tests/test-getpeername.c: New file.
38530         Tests for module 'connect'.
38531         * modules/connect-tests: New file.
38532         * tests/test-connect.c: New file.
38534         Tests for module 'bind'.
38535         * modules/bind-tests: New file.
38536         * tests/test-bind.c: New file.
38538         accept4 tests: Fix for native Windows.
38539         * tests/test-accept4.c: Include sockets.h.
38540         (main): Invoke gl_sockets_startup.
38541         * modules/accept4-tests (Depends-on): Add sockets.
38543         accept tests: Fix for native Windows.
38544         * tests/test-accept.c: Include sockets.h.
38545         (main): Invoke gl_sockets_startup.
38546         * modules/accept-tests (Depends-on): Add sockets.
38548 2011-09-19  Bruno Haible  <bruno@clisp.org>
38550         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
38551         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
38552         do...while(0).
38553         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
38554         Suggested by Paul Eggert.
38556 2011-09-19  Bruno Haible  <bruno@clisp.org>
38558         sched: Ensure pid_t is defined.
38559         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
38560         not define pid_t.
38561         * lib/sched.in.h: Include <sys/types.h>.
38562         * doc/posix-headers/sched.texi: Mention the pid_t problem.
38563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38565 2011-09-19  Bruno Haible  <bruno@clisp.org>
38567         msvc-inval: Ensure the entire expansion is a single statement.
38568         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
38569         of braces.
38571 2011-09-19  Jim Meyering  <meyering@redhat.com>
38573         tests: use printf, not echo in init.sh's warn_ function
38574         * tests/init.sh (warn_): Use printf, not echo.  The latter would
38575         misbehave when given strings containing a backslash or starting
38576         with e.g., -n.  James Youngman suggested setting IFS.
38578 2011-09-19  Eric Blake  <eblake@redhat.com>
38580         futimens: enhance test
38581         * tests/test-futimens.h (test_futimens): Also check for EBADF on
38582         closed non-negative fd.
38584         date: accept 'hence' as opposite of 'ago'
38585         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
38586         * tests/test-parse-datetime.c (main): Enhance test.
38587         Suggested by Jesse Wilson.
38589 2011-09-19  Jim Meyering  <meyering@redhat.com>
38591         getcwd: don't fail in a deep directory on a system without openat
38592         Before this change, getcwd would fail when called from a directory
38593         of depth PATH_MAX / 3 or greater.  That was due to the fact that
38594         the non-openat implementation used "..", "../..", "../../..", etc.
38595         to access ancestor directories.  With too many, that string would
38596         be longer than PATH_MAX.
38597         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
38598         using gnulib's openat replacement.
38599         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
38600         we're using the replacement function.
38602 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
38604         maint.mk: avoid warnings from perl about missing files
38605         * top/maint.mk (def_sym_regex): Ignore files listed in
38606         $(gl_other_headers_) that do not exist, say because a project
38607         does not use a corresponding module.
38609 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
38611         stat: use pathmax.h only if needed
38612         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
38613         This is better for Emacs, which does not have a mingw port and
38614         therefore can avoid the pathmax module.
38616         utimens: remove dependency on dup2
38617         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
38618         to work around the Linux kernel bug.
38619         * modules/utimens (Depends-on): Remove dup2.
38621 2011-09-18  Bruno Haible  <bruno@clisp.org>
38623         inet_ntop, inet_pton: Look for it also in libresolv.
38624         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
38625         libnsl, search for it in libresolv.
38626         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38627         Needed on Solaris 7.
38629 2011-09-18  Bruno Haible  <bruno@clisp.org>
38631         accept, accept4 tests: Avoid link error on Solaris.
38632         * modules/accept-tests (Makefile.am): Link test-accept against
38633         $(LIBSOCKET).
38634         * modules/accept4-tests (Makefile.am): Link test-accept4 against
38635         $(LIBSOCKET).
38637         accept4: Avoid link error on Solaris.
38638         * modules/accept4 (Link): New section.
38640         socket functions: Avoid link errors on Solaris.
38641         * modules/accept (Depends-on): Add socketlib.
38642         (Link): New section.
38643         * modules/bind (Depends-on): Add socketlib.
38644         (Link): New section.
38645         * modules/connect (Depends-on): Add socketlib.
38646         (Link): New section.
38647         * modules/getpeername (Depends-on): Add socketlib.
38648         (Link): New section.
38649         * modules/getsockname (Depends-on): Add socketlib.
38650         (Link): New section.
38651         * modules/getsockopt (Depends-on): Add socketlib.
38652         (Link): New section.
38653         * modules/listen (Depends-on): Add socketlib.
38654         (Link): New section.
38655         * modules/recv (Depends-on): Add socketlib.
38656         (Link): New section.
38657         * modules/recvfrom (Depends-on): Add socketlib.
38658         (Link): New section.
38659         * modules/send (Depends-on): Add socketlib.
38660         (Link): New section.
38661         * modules/sendto (Depends-on): Add socketlib.
38662         (Link): New section.
38663         * modules/setsockopt (Depends-on): Add socketlib.
38664         (Link): New section.
38665         * modules/shutdown (Depends-on): Add socketlib.
38666         (Link): New section.
38667         * modules/socket (Depends-on): Add socketlib.
38668         (Link): New section.
38670 2011-09-18  Bruno Haible  <bruno@clisp.org>
38672         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
38673         * tests/test-ptsname.c (main): Terminate the test if it takes longer
38674         than 5 seconds.
38675         * modules/ptsname-tests (configure.ac): Test for alarm.
38677 2011-09-18  Bruno Haible  <bruno@clisp.org>
38679         posix_spawn_file_actions_add*: Fix module dependencies.
38680         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
38681         posix_spawn_file_actions_init.
38682         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
38683         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
38685 2011-09-18  Bruno Haible  <bruno@clisp.org>
38687         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
38688         * tests/test-rename.h (test_rename): Allow error code EEXIST.
38689         * tests/test-renameat.c (main): Likewise.
38691 2011-09-18  Bruno Haible  <bruno@clisp.org>
38693         Tests for module 'accept4'.
38694         * modules/accept4-tests: New file.
38695         * tests/test-accept4.c: New file.
38697 2011-09-18  Bruno Haible  <bruno@clisp.org>
38699         Tests for module 'accept'.
38700         * modules/accept-tests: New file.
38701         * tests/test-accept.c: New file.
38703 2011-09-18  Bruno Haible  <bruno@clisp.org>
38705         dup2: Support for MSVC.
38706         * lib/dup2.c: Include msvc-inval.h.
38707         (rpl_dup2): Handle invalid parameter notifications during dup2 and
38708         _get_osfhandle calls.
38709         * modules/dup2 (Depends-on): Add msvc-inval.
38710         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
38712         New module 'msvc-inval'.
38713         * lib/msvc-inval.h: New file.
38714         * lib/msvc-inval.c: New file.
38715         * m4/msvc-inval.m4: New file.
38716         * modules/msvc-inval: New file.
38718 2011-09-17  Bruno Haible  <bruno@clisp.org>
38720         Tests for module 'pclose'.
38721         * modules/pclose-tests: New file.
38723         New module 'pclose'.
38724         * lib/stdio.in.h (pclose): New declaration.
38725         * lib/pclose.c: New file.
38726         * m4/pclose.m4: New file.
38727         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
38728         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
38729         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
38730         * modules/pclose: New file.
38731         * modules/popen-tests (Depends-on): Add pclose.
38732         * modules/popen-safer-tests (Depends-on): Likewise.
38733         * doc/posix-functions/pclose.texi: Mention the new module.
38735 2011-09-17  Bruno Haible  <bruno@clisp.org>
38737         popen: Support for MSVC.
38738         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
38739         * lib/popen.c (popen): Provide alternate definition for native Windows.
38740         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
38741         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
38742         * modules/popen (Depends-on, configure.ac): Update condition.
38743         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
38744         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
38745         fixed.
38747 2011-09-17  Bruno Haible  <bruno@clisp.org>
38749         isnanl, isnand, isnanf: Work around MSVC bug.
38750         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
38752 2011-09-17  Bruno Haible  <bruno@clisp.org>
38754         sys_socket tests: Fix recent mistake.
38755         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
38757 2011-09-17  Bruno Haible  <bruno@clisp.org>
38759         putenv: Support for MSVC.
38760         * modules/putenv (Depends-on): Add environ.
38761         * lib/putenv.c (environ): Disable declaration.
38762         * lib/unistd.in.h: Update comment.
38764 2011-09-17  Bruno Haible  <bruno@clisp.org>
38766         math: Avoid macro redefinition warnings on MSVC.
38767         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
38768         Undefine before redefining.
38770 2011-09-17  Bruno Haible  <bruno@clisp.org>
38772         doc: Mention functions which are declared as macros.
38773         * doc/posix-functions/*[fl].texi: Mention that some functions are
38774         defined as macros with arguments only.
38776 2011-09-17  Bruno Haible  <bruno@clisp.org>
38778         Add dependencies to new dirent related modules.
38779         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
38780         * modules/fts (Depends-on): Likewise.
38781         * modules/glob (Depends-on): Likewise.
38782         * modules/savedir (Depends-on): Likewise.
38783         * modules/scandir (Depends-on): Likewise.
38784         * modules/dirent-safer (Depends-on): Add opendir, closedir.
38785         * modules/fdopendir (Depends-on): Add opendir.
38787 2011-09-17  Bruno Haible  <bruno@clisp.org>
38789         inet_pton: Support for MSVC on Windows Vista or newer.
38790         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
38791         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
38792         HAVE_DECL_INET_PTON is defined.
38793         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
38794         On platforms with <winsock2.h>, test whether inet_pton is declared in
38795         <ws2tcpip.h>. If so, arrange to replace it.
38796         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
38797         REPLACE_INET_PTON.
38798         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
38799         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
38800         (Depends-on, configure.ac): Update condition.
38801         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
38803 2011-09-17  Bruno Haible  <bruno@clisp.org>
38805         inet_ntop: Support for MSVC on Windows Vista or newer.
38806         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
38807         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
38808         HAVE_DECL_INET_NTOP is defined.
38809         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
38810         On platforms with <winsock2.h>, test whether inet_ntop is declared in
38811         <ws2tcpip.h>. If so, arrange to replace it.
38812         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
38813         REPLACE_INET_NTOP.
38814         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
38815         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
38816         (Depends-on, configure.ac): Update condition.
38817         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
38819 2011-09-16  Eric Blake  <eblake@redhat.com>
38821         test-fsync: yet another enhancement
38822         * tests/test-fsync.c (main): Also test behavior on read-only text
38823         file.
38825 2011-09-16  Bruno Haible  <bruno@clisp.org>
38827         Enhance fsync, fdatasync tests.
38828         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
38829         * tests/test-fdatasync.c (main): Likewise.
38831 2011-09-16  Bruno Haible  <bruno@clisp.org>
38833         Support for MSVC compiler: Ensure mode_t gets defined.
38834         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
38835         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
38836         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38837         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
38838         * tests/test-fcntl-h.c: Check that mode_t is defined.
38839         * tests/test-sys_stat.c: Likewise.
38840         * tests/test-sys_types.c: Likewise.
38841         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
38842         * doc/posix-headers/sys_stat.texi: Likewise.
38843         * doc/posix-headers/sys_types.texi: Likewise.
38845 2011-09-16  Bruno Haible  <bruno@clisp.org>
38847         sys_stat: Support for MSVC.
38848         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
38849         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
38850         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
38851         MSVC.
38853 2011-09-16  Bruno Haible  <bruno@clisp.org>
38855         Support for MSVC compiler: Ensure off_t gets defined.
38856         * lib/unistd.in.h: Include <sys/types.h>.
38857         * tests/test-fcntl-h.c: Check that off_t is defined.
38858         * tests/test-sys_stat.c: Likewise.
38859         * tests/test-sys_types.c: Likewise.
38861 2011-09-16  Eric Blake  <eblake@redhat.com>
38863         fdatasync: port to Solaris
38864         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
38865         * modules/fdatasync (Link): Document it.
38866         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
38868         fdatasync: port to MacOS X 10.7
38869         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
38870         declared.
38871         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
38872         * modules/unistd (Makefile.am): Substitute it.
38873         * lib/unistd.in.h (fdatasync): Declare on MacOS.
38874         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
38876         fdatasync: minor improvements
38877         * modules/fdatasync (Depends-on): Add condition for fsync.
38878         * lib/fdatasync.c (fdatasync): Add comment.
38879         * tests/test-unistd-c++.cc: Test fdatasync.
38881         unistd: update refs to newer POSIX
38882         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
38883         Suggested by Bruno Haible.
38885         fdatasync: new module
38886         * modules/fsync (Description): Document difference to fdatasync.
38887         * modules/fdatasync: New module.
38888         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
38889         * lib/fdatasync.c (fdatasync): Likewise.
38890         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
38891         defaults.
38892         * modules/unistd (Makefile.am): Set witnesses.
38893         * lib/unistd.in.h (fdatasync): Declare.
38894         * MODULES.html.sh: Document it.
38895         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
38896         * modules/fdatasync-tests: New test.
38897         * tests/test-fdatasync.c: Likewise.
38899 2011-09-16  Eric Blake  <eblake@redhat.com>
38901         test-fsync: enhance tests
38902         * modules/fsync-tests (Depends-on): Add errno, for mingw.
38903         * tests/test-fsync.c (main): Enhance test.
38905 2011-09-15  Bruno Haible  <bruno@clisp.org>
38907         Support for MSVC compiler: Ensure ssize_t gets defined.
38908         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
38909         * doc/posix-headers/stdio.texi: Likewise.
38910         * modules/stdio (Depends-on): Add ssize_t.
38911         * modules/sys_socket (Depends-on): Likewise.
38912         * modules/sys_types (Depends-on): Likewise.
38913         * modules/sys_uio (Depends-on): Likewise.
38914         * modules/unistd (Depends-on): Likewise.
38915         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
38916         * tests/test-sys_types.c: Check that ssize_t is defined.
38918 2011-09-14  Bruno Haible  <bruno@clisp.org>
38920         Avoid using #, the m4 comment starter character, near brackets.
38921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
38922         delimiter character in sed expressions.
38923         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
38924         Suggested by Eric Blake.
38926         Properly quote AC_CHECK_DECLS' 4th argument.
38927         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
38928         argument.
38929         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
38930         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
38931         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38932         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
38933         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
38934         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
38935         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
38936         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
38937         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
38938         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
38939         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
38940         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
38941         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
38942         * m4/isinf.m4 (gl_ISINF): Likewise.
38943         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
38944         * m4/readutmp.m4 (gl_READUTMP): Likewise.
38945         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38946         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
38947         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
38948         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
38949         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
38950         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
38951         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
38952         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
38953         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
38954         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
38955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
38956         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
38957         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38958         Reported by Eric Blake.
38960         Properly quote AC_CHECK_DECL's 4th argument.
38961         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
38962         argument.
38963         * m4/argp.m4 (gl_ARGP): Likewise.
38964         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
38965         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
38966         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
38967         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
38968         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
38969         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
38970         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
38971         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
38972         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
38973         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
38974         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
38975         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
38976         Reported by Eric Blake.
38978 2011-09-14  Eric Blake  <eblake@redhat.com>
38980         opendir: avoid compile warning
38981         * lib/opendir.c (includes): Always include errno.h.
38982         Reported by Tatsuro MATSUOKA.
38984 2011-09-14  Jim Meyering  <meyering@redhat.com>
38986         maint.mk: sc_tight_scope: propagate failure from sub-make
38987         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
38988         Reported by Martin von Gagern.
38990 2011-09-13  Bruno Haible  <bruno@clisp.org>
38992         tempname: Support for MSVC.
38993         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
38994         MSVC.
38995         * modules/tempname (Depends-on): Add fcntl-h.
38997 2011-09-13  Bruno Haible  <bruno@clisp.org>
38999         sys_time: Support for MSVC.
39000         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
39001         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
39002         include <winsock2.h>.
39003         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
39004         function declarations that collide with POSIX.
39005         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
39006         (Makefile.am): Substitute HAVE_WINSOCK2_H.
39008 2011-09-13  Bruno Haible  <bruno@clisp.org>
39010         stat: Support for MSVC.
39011         * lib/stat.c: Include pathmax.h.
39012         * modules/stat (Depends-on): Add pathmax.
39014         pathmax: Support for native Windows.
39015         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
39017 2011-09-12  Bruno Haible  <bruno@clisp.org>
39019         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
39020         * lib/dirent.in.h (struct dirent): New type.
39021         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
39022         DT_WHT): New macros.
39023         (DIR): New type.
39024         (opendir, closedir): Declare only if the module 'opendir' is enabled.
39025         (readdir, rewinddir): New declarations.
39026         * lib/dirent-private.h: New file.
39027         * lib/opendir.c: New file.
39028         * lib/readdir.c: New file.
39029         * lib/rewinddir.c: New file.
39030         * lib/closedir.c: New file.
39031         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
39032         * m4/opendir.m4: New file.
39033         * m4/readdir.m4: New file.
39034         * m4/rewinddir.m4: New file.
39035         * m4/closedir.m4: New file.
39036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
39037         REPLACE_CLOSEDIR here.
39038         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
39039         readdir, rewinddir are declared.
39040         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
39041         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
39042         HAVE_REWINDDIR, HAVE_CLOSEDIR.
39043         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
39044         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
39045         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
39046         * modules/opendir: New file.
39047         * modules/readdir: New file.
39048         * modules/rewinddir: New file.
39049         * modules/closedir: New file.
39050         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
39051         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
39052         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
39053         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
39054         * NEWS: Mention the 'fchdir' change.
39056 2011-09-11  Bruno Haible  <bruno@clisp.org>
39058         asm-underscore.m4: Support for MSVC.
39059         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
39060         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
39062 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
39064         Doc about crypt functions.
39065         * doc/posix-functions/crypt.texi: Expand range of glibc versions
39066         needing for _GNU_SOURCE to get crypt.
39067         * doc/posix-functions/encrypt.texi: Likewise.
39068         * doc/posix-functions/setkey.texi: Likewise.
39070 2011-09-11  Bruno Haible  <bruno@clisp.org>
39072         doc: Update regarding MSVC 9.
39073         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
39074         tested".
39075         * doc/posix-functions/*.texi: Update with info about MSVC 9.
39076         * doc/posix-headers/*.texi: Likewise.
39077         * doc/pastposix-functions/*.texi: Likewise.
39078         * doc/glibc-functions/*.texi: Likewise.
39079         * doc/glibc-headers/*.texi: Likewise.
39081 2011-09-11  Bruno Haible  <bruno@clisp.org>
39083         unistd et al.: Don't assume <unistd.h> exists.
39084         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
39085         does not exist.
39086         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
39087         exist. But include <stdlib.h>.
39088         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
39089         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
39090         symlink() does not exist.
39091         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
39092         include <io.h> instead.
39093         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
39094         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
39095         include <direct.h> instead.
39096         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
39097         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
39098         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
39099         <io.h> instead.
39100         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
39101         correctly if the system does not have hard links.
39102         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
39103         <direct.h> instead.
39104         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
39105         it when looking for function declarations.
39106         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
39107         <direct.h> and <io.h> instead.
39108         * doc/posix-headers/unistd.texi: More details about MSVC problem.
39110 2011-09-11  Bruno Haible  <bruno@clisp.org>
39112         strcase: Support for MSVC.
39113         * modules/strcase (Status, Notice): Remove obsoletion mark.
39114         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
39115         * doc/posix-functions/strncasecmp.texi: Likewise.
39117         strings: Don't assume <strings.h> exists.
39118         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
39119         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
39120         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
39121         * doc/posix-headers/strings.texi: Mention the MSVC problem.
39123 2011-09-11  Bruno Haible  <bruno@clisp.org>
39125         dirent: Don't assume <dirent.h> exists.
39126         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
39127         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
39128         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
39129         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
39131 2011-09-11  Bruno Haible  <bruno@clisp.org>
39133         Fix wint_t on MSVC.
39134         * lib/wchar.in.h (wint_t): On MSVC, override it.
39135         * lib/wctype.in.h (wint_t): Likewise.
39136         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
39137         MSVC.
39138         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
39139         * doc/posix-headers/wctype.texi: Likewise.
39141 2011-09-11  Bruno Haible  <bruno@clisp.org>
39143         sys_types: Fix typo.
39144         * lib/sys_types.in.h: Fix typo in comment.
39145         Reported by Paul Eggert.
39147         Support for MSVC compiler: Ensure size_t gets defined.
39148         * modules/strings (Depends-on): Add 'sys_types'.
39149         * modules/sys_uio (Depends-on): Likewise.
39150         * lib/sys_uio.in.h: Update comment.
39152         C++ tests for module 'sys_types'.
39153         * modules/sys_types-c++-tests: New file.
39154         * tests/test-sys_types-c++.cc: New file.
39156         Tests for module 'sys_types'.
39157         * modules/sys_types-tests: New file.
39158         * tests/test-sys_types.c: New file.
39160         New module 'sys_types'.
39161         * lib/sys_types.in.h: New file.
39162         * m4/sys_types_h.m4: New file.
39163         * modules/sys_types: New file.
39164         * doc/posix-headers/sys_types.texi: Mention the new module and the
39165         size_t problem on MSVC 9.
39167 2011-09-11  Bruno Haible  <bruno@clisp.org>
39169         Support for MSVC compiler: Avoid division by a literal 0.
39170         * lib/math.in.h (NAN): Define through a function call also on MSVC.
39171         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
39172         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
39173         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
39174         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
39175         * tests/infinity.h: New file.
39176         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
39177         on MSVC.
39178         * tests/test-ceilf1.c: Include infinity.h.
39179         (main): Use Infinityf.
39180         * tests/test-ceil1.c: Include infinity.h.
39181         (main): Use Infinityd.
39182         * tests/test-ceill.c: Include infinity.h.
39183         (main): Use Infinityl.
39184         * tests/test-dprintf-posix.c: Include infinity.h.
39185         (test_function): Use Infinityd.
39186         * tests/test-floorf1.c: Include infinity.h.
39187         (main): Use Infinityf.
39188         * tests/test-floor1.c: Include infinity.h.
39189         (main): Use Infinityd.
39190         * tests/test-floorl.c: Include infinity.h.
39191         (main): Use Infinityl.
39192         * tests/test-fprintf-posix.c: Include infinity.h.
39193         (test_function): Use Infinityd.
39194         * tests/test-frexp.c: Include infinity.h.
39195         (main): Use Infinityd.
39196         * tests/test-frexpl.c: Include infinity.h.
39197         (main): Use Infinityl.
39198         * tests/test-isfinite.c: Include infinity.h.
39199         (test_isfinitef): Use Infinityf.
39200         (test_isfinited): Use Infinityd.
39201         (test_isfinitel): Use Infinityl.
39202         * tests/test-isinf.c: Include infinity.h.
39203         (test_isinff): Use Infinityf.
39204         (test_isinfd): Use Infinityd.
39205         (test_isinfl): Use Infinityl.
39206         * tests/test-isnan.c: Include infinity.h.
39207         (test_float): Use Infinityf.
39208         (test_double): Use Infinityd.
39209         (test_long_double): Use Infinityl.
39210         * tests/test-isnanf.h: Include infinity.h.
39211         (main): Use Infinityf.
39212         * tests/test-isnand.h: Include infinity.h.
39213         (main): Use Infinityd.
39214         * tests/test-isnanl.h: Include infinity.h.
39215         (main): Use Infinityl.
39216         * tests/test-ldexpl.c: Include infinity.h.
39217         (main): Use Infinityl.
39218         * tests/test-printf-posix.h: Include infinity.h.
39219         (test_function): Use Infinityd.
39220         * tests/test-roundf1.c: Include infinity.h.
39221         (main): Use Infinityf.
39222         * tests/test-round1.c: Include infinity.h.
39223         (main): Use Infinityd.
39224         * tests/test-roundl.c: Include infinity.h.
39225         (main): Use Infinityl.
39226         * tests/test-signbit.c: Include infinity.h.
39227         (test_signbitf): Use Infinityf.
39228         (test_signbitd): Use Infinityd.
39229         (test_signbitl): Use Infinityl.
39230         * tests/test-snprintf-posix.h: Include infinity.h.
39231         (test_function): Use Infinityd, Infinityl.
39232         * tests/test-sprintf-posix.h: Include infinity.h.
39233         (test_function): Use Infinityd, Infinityl.
39234         * tests/test-truncf1.c: Include infinity.h.
39235         (main): Use Infinityf.
39236         * tests/test-trunc1.c: Include infinity.h.
39237         (main): Use Infinityd.
39238         * tests/test-truncl.c: Include infinity.h.
39239         (main): Use Infinityl.
39240         * tests/test-vasnprintf-posix.c: Include infinity.h.
39241         (test_function): Use Infinityd, Infinityl.
39242         * tests/test-vasprintf-posix.c: Include infinity.h.
39243         (test_function): Use Infinityd, Infinityl.
39244         * modules/ceilf-tests (Files): Add tests/infinity.h.
39245         * modules/ceil-tests (Files): Likewise.
39246         * modules/ceill-tests (Files): Likewise.
39247         * modules/dprintf-posix-tests (Files): Likewise.
39248         * modules/floorf-tests (Files): Likewise.
39249         * modules/floor-tests (Files): Likewise.
39250         * modules/floorl-tests (Files): Likewise.
39251         * modules/fprintf-posix-tests (Files): Likewise.
39252         * modules/frexp-tests (Files): Likewise.
39253         * modules/frexp-nolibm-tests (Files): Likewise.
39254         * modules/frexpl-tests (Files): Likewise.
39255         * modules/frexpl-nolibm-tests (Files): Likewise.
39256         * modules/isfinite-tests (Files): Likewise.
39257         * modules/isinf-tests (Files): Likewise.
39258         * modules/isnan-tests (Files): Likewise.
39259         * modules/isnanf-tests (Files): Likewise.
39260         * modules/isnanf-nolibm-tests (Files): Likewise.
39261         * modules/isnand-tests (Files): Likewise.
39262         * modules/isnand-nolibm-tests (Files): Likewise.
39263         * modules/isnanl-tests (Files): Likewise.
39264         * modules/isnanl-nolibm-tests (Files): Likewise.
39265         * modules/ldexpl-tests (Files): Likewise.
39266         * modules/printf-posix-tests (Files): Likewise.
39267         * modules/roundf-tests (Files): Likewise.
39268         * modules/round-tests (Files): Likewise.
39269         * modules/roundl-tests (Files): Likewise.
39270         * modules/signbit-tests (Files): Likewise.
39271         * modules/snprintf-posix-tests (Files): Likewise.
39272         * modules/sprintf-posix-tests (Files): Likewise.
39273         * modules/truncf-tests (Files): Likewise.
39274         * modules/trunc-tests (Files): Likewise.
39275         * modules/truncl-tests (Files): Likewise.
39276         * modules/vasnprintf-posix-tests (Files): Likewise.
39277         * modules/vasprintf-posix-tests (Files): Likewise.
39278         * modules/vdprintf-posix-tests (Files): Likewise.
39279         * modules/vfprintf-posix-tests (Files): Likewise.
39280         * modules/vprintf-posix-tests (Files): Likewise.
39281         * modules/vsnprintf-posix-tests (Files): Likewise.
39282         * modules/vsprintf-posix-tests (Files): Likewise.
39283         * modules/xprintf-posix-tests (Files): Likewise.
39285 2011-09-11  Bruno Haible  <bruno@clisp.org>
39287         Ensure pid_t gets defined.
39288         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
39289         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
39290         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39291         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
39292         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
39293         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
39294         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39295         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39296         * tests/test-fcntl-h.c: Check that pid_t is defined.
39297         * tests/test-sched.c: Likewise.
39298         * tests/test-termios.c: Likewise.
39299         * tests/test-time.c: Likewise.
39300         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
39301         * doc/posix-headers/signal.texi: Likewise.
39302         * doc/posix-headers/sys_types.texi: Likewise.
39303         * doc/posix-headers/time.texi: Likewise.
39305 2011-09-11  Bruno Haible  <bruno@clisp.org>
39307         acl: Fix compilation on Solaris 10 (older version).
39308         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
39309         of ACE_EVERYONE.
39310         * lib/set-mode-acl.c (qset_acl): Likewise.
39311         Reported by Christian Jullien <eligis@orange.fr>.
39313 2011-09-10  Bruno Haible  <bruno@clisp.org>
39315         iconv, unsetenv: Add support for MSVC compiler.
39316         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
39317         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
39319 2011-09-10  Bruno Haible  <bruno@clisp.org>
39321         *printf: Add support for MSVC compiler.
39322         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
39323         handles the exception caused by the %n directive. When cross-compiling,
39324         guess no on native Windows.
39325         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
39326         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
39327         emulate it through vsnprintf.
39328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
39329         * doc/posix-functions/dprintf.texi: Update documentation regarding
39330         MSVC 9.
39331         * doc/posix-functions/fprintf.texi: Likewise.
39332         * doc/posix-functions/printf.texi: Likewise.
39333         * doc/posix-functions/snprintf.texi: Likewise.
39334         * doc/posix-functions/sprintf.texi: Likewise.
39335         * doc/posix-functions/swprintf.texi: Likewise.
39336         * doc/posix-functions/vdprintf.texi: Likewise.
39337         * doc/posix-functions/vfprintf.texi: Likewise.
39338         * doc/posix-functions/vprintf.texi: Likewise.
39339         * doc/posix-functions/vsnprintf.texi: Likewise.
39340         * doc/posix-functions/vsprintf.texi: Likewise.
39341         * doc/glibc-functions/asprintf.texi: Likewise.
39342         * doc/glibc-functions/obstack_printf.texi: Likewise.
39343         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
39344         * doc/glibc-functions/vasprintf.texi: Likewise.
39346 2011-09-10  Bruno Haible  <bruno@clisp.org>
39348         nocrash: Add support for native Windows.
39349         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
39351 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
39352             Bruno Haible  <bruno@clisp.org>
39354         absolute-header, include-next: Add support for MSVC compiler.
39355         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
39356         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
39357         directory separator in #line directives.
39358         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
39359         recognize also backslash as directory separator in #line directives.
39361 2011-09-08  Jim Meyering  <meyering@redhat.com>
39363         maint.mk: mark the post-release commit log with "maint: " prefix
39364         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
39365         one-line commit-log summary.
39367 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
39368             Bruno Haible  <bruno@clisp.org>
39370         Doc about crypt functions.
39371         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
39372         systems.
39373         * doc/posix-functions/encrypt.texi: Likewise.
39374         * doc/posix-functions/setkey.texi: Likewise.
39376 2011-09-08  Simon Josefsson  <simon@josefsson.org>
39378         * lib/gc.h: Fix copyright header.
39380 2011-09-07  Bruno Haible  <bruno@clisp.org>
39382         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
39383         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
39384         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
39386 2011-09-07  Bruno Haible  <bruno@clisp.org>
39388         openat: Work around compilation error with OSF/1 5.1 DTK cc.
39389         * lib/fopen.c: Use different syntax for include of <stdio.h>.
39390         * lib/freopen.c: Likewise.
39391         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
39392         * lib/lstat.c: Likewise.
39393         * lib/stat.c: Likewise.
39394         * lib/open.c: Use different syntax for include of <fcntl.h>.
39395         * lib/openat.c: Include fcntl.h again, explicitly.
39397 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
39399         parse-datetime: document the newly accepted format
39400         * doc/parse-datetime.texi (Combined date and time of day items):
39401         New section.
39403 2011-09-06  Bruno Haible  <bruno@clisp.org>
39405         acl: Fix a test failure on newer Solaris 10 with ZFS.
39406         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
39407         ENOSYS as no ACL.
39408         Reported by Jim Meyering.
39410 2011-09-06  Bruno Haible  <bruno@clisp.org>
39412         acl: Update for AIX >= 5.3 with NFS.
39413         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
39414         ENOSYS as no ACL.
39416         acl: Fix a test failure on AIX >= 5.3 with NFS.
39417         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
39418         as no ACL.
39420 2011-09-06  Bruno Haible  <bruno@clisp.org>
39422         acl: Fix a test failure on IRIX 6.5 with NFS.
39423         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
39424         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
39425         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
39426         * lib/copy-acl.c (qcopy_acl): Likewise.
39428 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
39430         openat: port to AIX 7.1 with large files
39431         AIX 7.1 does a "#define openat open64at" if large files are in use,
39432         so we can't simply #undef openat.  Use the orig_openat trick (similar
39433         to orig_open in lib/open.c) to work around the problem.  Problem
39434         reported by Kevin Brott for GNU tar, in the thread containing
39435         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
39436         * lib/openat.c (__need_system_fcntl_h): Define first.
39437         Include <fcntl.h> and <sys/types.h> before undefining.
39438         (orig_openat) [HAVE_OPENAT]: New inline function.
39439         (openat) [HAVE_OPENAT]: Do not undef.
39440         (rpl_openat): Use orig_openat, not openat.
39442 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
39443             Bruno Haible  <bruno@clisp.org>
39445         acl: Avoid errors on NonStop Kernel.
39446         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
39447         ENOTSUP errors.
39449 2011-09-05  Bruno Haible  <bruno@clisp.org>
39451         acl: Clean up Solaris code.
39452         * lib/acl-internal.h: Remove no-op #if.
39453         * lib/file-has-acl.c: Likewise.
39454         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
39455         * lib/copy-acl.c (qcopy_acl): Likewise.
39457 2011-09-05  Bruno Haible  <bruno@clisp.org>
39459         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
39460         binaries built on the original Solaris 10.
39461         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
39462         trivial.
39464 2011-09-05  Bruno Haible  <bruno@clisp.org>
39466         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
39467         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
39468         10.
39469         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
39470         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
39471         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
39472         instead of acl_get, facl_get, acl_set, facl_set.
39474 2011-09-05  Bruno Haible  <bruno@clisp.org>
39476         copy-file: Try unit tests on more file systems.
39477         * tests/test-copy-file-1.sh: New file.
39478         * tests/test-copy-file-2.sh: New file.
39479         * modules/copy-file-tests (Files): Add them.
39480         (Makefile.am): Add them to TESTS.
39482         acl: Try unit tests on more file systems.
39483         * tests/test-file-has-acl-1.sh: New file.
39484         * tests/test-file-has-acl-2.sh: New file.
39485         * tests/test-set-mode-acl-1.sh: New file.
39486         * tests/test-set-mode-acl-2.sh: New file.
39487         * tests/test-copy-acl-1.sh: New file.
39488         * tests/test-copy-acl-2.sh: New file.
39489         * modules/acl-tests (Files): Add them.
39490         (Makefile.am): Add them to TESTS.
39492 2011-09-04  Bruno Haible  <bruno@clisp.org>
39494         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
39495         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
39496         10.
39497         (OLD_ALLOW, OLD_DENY): New macros.
39498         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
39499         ACE_ACCESS_ALLOWED_ACE_TYPE.
39500         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
39501         ACE_ACCESS_DENIED_ACE_TYPE.
39502         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
39503         (NEW_ACE_EXECUTE): Fix value.
39504         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
39505         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
39506         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
39507         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
39508         NEW_ACE_SYNCHRONIZE): New macros.
39509         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
39510         instead of acl_fromtext, acl_set, facl_set.
39511         Fixes a coreutils/tests/cp/perm failure.
39513 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
39515         openat: test for fstatat (..., 0) bug
39516         Further testing with tar suggests that fstatat (..., 0)
39517         does not work in general, on AIX 7.1; see
39518         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
39519         So, give up entirely on AIX 7.1's fstatat, and fall back on our
39520         replacement fstatat (which is what older AIX releases were using
39521         anyway).
39522         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
39523         use is now changed to orig_fstatat.  This was probably the right
39524         thing to do anyway.
39525         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
39526         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
39527         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
39528         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
39529         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
39530         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
39531         if the bug is found.
39533         openat: test for fstatat (AT_FDCWD, ..., 0) bug
39534         This tests for another fstatat bug on AIX 7.1:
39535         fstatat (AT_FDCWD, ..., 0) does not work.  See
39536         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
39537         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
39538         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
39539         (rpl_fstatat): Adjust so that it works around either (or both)
39540         bugs if present.
39541         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
39543 2011-09-03  Karl Berry  <karl@gnu.org>
39545         * doc/regex.texi (Character Class Operators): Avoid literal ":"
39546         in index entries.
39548 2011-09-02  Bruno Haible  <bruno@clisp.org>
39550         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
39551         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
39552         values of AR, ARFLAGS, RANLIB.
39553         Reported by John W. Eaton <jwe@gnu.org> for Octave.
39555 2011-09-02  Bruno Haible  <bruno@clisp.org>
39557         Find 'ar' program that fits with --host argument.
39558         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
39560 2011-09-02  Bruno Haible  <bruno@clisp.org>
39562         tests: init.sh: Support any non-GNU diff.
39563         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
39564         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
39565         Solaris 8.
39567 2011-09-02  Bruno Haible  <bruno@clisp.org>
39569         tests: init.sh: work also with any non-GNU diff that supports -u
39570         * tests/init.sh: Relax check for diff -u support.
39571         Rather than checking for GNU diff via --version, simply check
39572         for support for -u itself.  Useful at least on OpenBSD 4.9,
39573         AIX 7.1, IRIX 6.5, and Solaris 10.
39575 2011-09-01  Bruno Haible  <bruno@clisp.org>
39577         strtoimax, strtoumax: Document problem on HP-UX 11.
39578         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
39579         * doc/posix-functions/strtoumax.texi: Likewise.
39581 2011-09-01  Bruno Haible  <bruno@clisp.org>
39583         strtoumax: Avoid link error on OSF/1 with DTK cc.
39584         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
39585         defined as a function.
39586         * modules/strtoumax (Depends-on, configure.ac): Test only whether
39587         strtoumax is defined, not whether it is declared.
39589 2011-09-01  Bruno Haible  <bruno@clisp.org>
39591         strtoimax: Avoid link error on OSF/1 with DTK cc.
39592         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
39593         defined as a function.
39594         * modules/strtoimax (Depends-on, configure.ac): Test only whether
39595         strtoimax is defined, not whether it is declared.
39597 2011-09-01  Bruno Haible  <bruno@clisp.org>
39599         imaxdiv: Avoid link error on OSF/1 with DTK cc.
39600         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
39601         as a function.
39602         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
39603         whether it is declared.
39605 2011-09-01  Bruno Haible  <bruno@clisp.org>
39607         imaxabs: Avoid link error on OSF/1 with DTK cc.
39608         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
39609         as a function.
39610         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
39611         whether it is declared.
39613 2011-09-01  Bruno Haible  <bruno@clisp.org>
39615         Tests for module 'strtoumax'.
39616         * modules/strtoumax-tests: New file.
39617         * tests/test-strtoumax.c: New file.
39619         Tests for module 'strtoimax'.
39620         * modules/strtoimax-tests: New file.
39621         * tests/test-strtoimax.c: New file.
39623         Tests for module 'imaxdiv'.
39624         * modules/imaxdiv-tests: New file.
39625         * tests/test-imaxdiv.c: New file.
39627         Tests for module 'imaxabs'.
39628         * modules/imaxabs-tests: New file.
39629         * tests/test-imaxabs.c: New file.
39631 2011-09-01  Bruno Haible  <bruno@clisp.org>
39633         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
39634         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
39635         pthread_create.
39637 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39639         openat: work around AIX 7.1 fstatat issue
39640         This should fix the problem that was not properly fixed
39641         in the previous change, dated 2011-08-30.
39642         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
39643         __need_system_stat_h defined.
39644         (orig_fstatat) [HAVE_FSTATAT]: New function.
39645         (rpl_fstatat): Go back to the old way of doing things,
39646         except call orig_fstatat instead of fstatat.
39647         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
39648         Remove unnecessary check whether fstatat fills in st_size etc.
39650 2011-09-01  Bruno Haible  <bruno@clisp.org>
39652         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
39653         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
39654         just include the system's header.
39656 2011-08-31  Jim Meyering  <meyering@redhat.com>
39658         tests: avoid spurious assertion failure in test-float.c on ppc64
39659         * tests/test-float.c (test_long_double): Comment out an assertion,
39660         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
39661         with gcc-4.4.4.
39663         maint: indent with spaces, not TABs
39664         I need to get in the habit of running gnulib's "make check".
39665         Both of these would have been caught.
39666         * m4/largefile.m4: Indent with spaces, not TABs.
39667         * lib/parse-datetime.y (iso_8601_time): Likewise.
39668         Spotted by Pádraig Brady.
39670         test-parse-datetime.c: accommodate a relatively strict gcc warning
39671         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
39672         to avoid a warning from gcc's -Werror=missing-declarations.
39673         Insert a few spaces-before-funcall-parenthesis.
39675 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
39677         parse-datetime: accept ISO 8601 date and time rep with "T" separator
39678         The parser now accepts ISO 8601 date-time strings with "T" as the
39679         separator.  It has long parsed dates like "2004-02-29 16:21:42"
39680         with a space between the date and time strings.  Now it also parses
39681         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
39682         variants like "2004-02-29T16:21:42.333-07:00"
39683         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
39684         of day representation using the 'T' separator character.
39685         * doc/parse-datetime.texi (General date syntax): replace use of
39686         deprecated --iso-8601 option with --rfc-3339 in example of date
39687         command output formats that can be parsed.
39688         * tests/test-parse-datetime.c (tm_diff): New function, taken from
39689         lib/parse-datetime.y.
39690         (gmt_offset): New function.
39691         (main): Add additional test cases to validate ISO8601 extended
39692         date and time of day parsing.
39694 2011-08-31  Bruno Haible  <bruno@clisp.org>
39696         freopen: Documentation.
39697         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
39698         name.
39699         Reported by Claudio Bley <claudio.bley@gmail.com>.
39701 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
39703         freopen: Don't crash if the filename argument is NULL.
39704         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
39705         NULL.
39707 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
39709         openat: work around AIX 7.1 fstatat bug
39710         Problem reported by Kevin Brott for GNU tar, in the thread containing
39711         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
39712         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
39713         FSTATAT_ST_SIZE_ETC_BROKEN.
39714         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
39715         rpl_fstatat.
39716         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
39717         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
39718         AC_CHECK_FUNCS_ONCE for fstatat.
39719         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
39720         fchmodat, mkdirat, openat and unlinkat.
39722 2011-08-30  Bruno Haible  <bruno@clisp.org>
39724         Avoid endless recursions if config.h includes some header files.
39725         * lib/fopen.c (__need_FILE): Define already before including config.h.
39726         * lib/freopen.c (__need_FILE): Likewise.
39727         * lib/open.c (__need_system_fcntl_h): Likewise.
39728         * lib/stat.c (__need_system_sys_stat_h): Likewise.
39729         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
39730         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
39732 2011-08-25  Karl Berry  <karl@gnu.org>
39734         * config/srclist.txt (ylwrap): new try.
39735         * build-aux/ylwrap: new file.
39737 2011-08-23  Bruno Haible  <bruno@clisp.org>
39739         tmpdir: Use a good default directory on native Windows.
39740         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
39741         (P_tmpdir): Default to _P_tmpdir on native Windows.
39742         (path_search): On native Windows, try the value returned by GetTempPath
39743         before trying P_tmpdir.
39744         * modules/tmpdir (Depends-on): Add pathmax.
39745         Suggested by John Darrington <john@darrington.wattle.id.au>.
39747 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
39749         doc: fix typo in README-release
39750         * top/README-release: Capitalize first word of a sentence.
39752 2011-08-19  Jim Meyering  <meyering@redhat.com>
39754         fts: do not exhaust memory when processing million-entry directories
39755         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
39756         directory would require about 256*N bytes of memory.  Thus, it was
39757         easy to construct a directory too large to be processed by any of
39758         those tools.  With this change, fts' maximum memory utilization is
39759         now limited to around 30MB.
39760         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
39761         (fts_read): When we've processed the final entry (i.e., when
39762         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
39763         using the parent entry to read any remaining entries.  Dispatch
39764         depending on what fts_build returns:
39765         - NULL+stop, aka failure: stop
39766         - NULL otherwise: move up in the dir hierarchy
39767         - non-NULL: handle this new entry
39768         (fts_build): Declare and use new local, continue_readdir.
39769         Prepare to be called from fts_read, when the entries
39770         from a partially-read directory have just been exhausted.
39771         In that case, we'll skip the opendir and instead use the parent's
39772         fts_dirp and derive dir_fd from that.
39773         Finally, in the readdir loop, if we read max_entries entries,
39774         exit the loop ensuring *not* to call closedir.  This is required
39775         so that fts_dirp can be reused on a subsequent call.
39776         Prompted by Ben England's report of memory exhaustion in find
39777         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
39779         maint: fts: move decl of `dp' down into while loop; split a long line
39780         * lib/fts.c (fts_build): No semantic change.
39782         fts: add/use new struct member, fts_dirp
39783         We are about to use this to manage any directory with
39784         too many entries to read all of them into memory at once.
39785         To do that, we'll need to save the DIR* pointer in each
39786         affected FTSENT struct.
39787         * lib/fts_.h: Include <dirent.h>.
39788         (struct FTSENT) [fts_dirp]: New member.
39789         * lib/fts.c (closedir_and_clear): Define.
39790         Use it in place of closedir so that we are sure to
39791         clear the new fts_dirp member when done with it.
39792         (fts_alloc): Initialize the new member.
39793         (fts_lfree): Free, if needed.
39795         maint: fts: give __opendir2 a new parameter and rename
39796         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
39797         than surreptitiously using sole caller's "dir_fd".
39798         (fts_opendir): Rename from __opendir2.
39800         maint: fts.c: remove __opendir2's now-unused parameter, oflag
39801         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
39803         maint: fts.c: correct off-by-one indentation
39804         * lib/fts.c (fts_build): Correct indentation, change style
39805         of a couple of block comments, and bracing style.
39807         maint: fts.c: move __opendir2 #define "up" out of function body
39808         * lib/fts.c (__opendir2): Move "up".  No semantic change.
39810         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
39811         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
39812         out for a long time and besides was useful only on BSD systems.
39814 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
39816         regex: port to Stratus OpenVOS
39817         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
39818         define to empty, rather than attempting nonportable optimizations.
39819         Problem reported by Paul Green in:
39820         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
39821         and fix suggested by Eric Blake in:
39822         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
39824 2011-08-17  Eric Blake  <eblake@redhat.com>
39826         getcwd: fix test failures on mingw
39827         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
39828         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
39829         test if long directory cannot be created, and allow mingw errno.
39831         getcwd-lgpl: fix m4 to match relaxed test for BSD
39832         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
39833         (gl_FUNC_GETCWD_SIGNATURE): New macro.
39834         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
39835         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
39836         signature problem.
39838         getcwd: fix compilation on mingw64
39839         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
39840         getcwd.
39841         Reported by Marc-André Lureau.
39843         pipe2: silence compiler warning
39844         * lib/pipe2.c (pipe2): Hide label if it is not used.
39846 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
39848         relocatable-prog: fix link error
39849         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
39850         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
39851         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
39852         into modules/relocatable-lib without noticing that
39853         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
39854         also needs to build relocatable.c.
39856 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
39858         getaddrinfo: fix sh typo in gai_strerrorA decl checking
39859         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
39860         shell code: it contained a 'break' that was not in a loop.
39861         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
39862         via a shell-language loop; this may have been true in old Autoconf
39863         versions, but it's not true in Autoconf 2.68.  I found this bug
39864         when testing coreutils git on Solaris 8, whose shell complains
39865         about the syntax error.
39867 2011-08-12  Simon Josefsson  <simon@josefsson.org>
39869         * lib/base64.c: Fix comment to reference RFC 4648.
39870         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
39871         <gvtulder@gmail.com>.
39873 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
39875         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
39877         po/Makefile.in.in: fix make -q problem
39878         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
39879         rule, since there's no file named 'check-macro-version' and its
39880         use as a file breaks make -q.
39881         (all): Don't depend on check-macro-version.
39882         (CHECK_MACRO_VERSION): New macro.
39883         (stamp-po): Use it.
39885         configmake: fix make -q problem
39886         * modules/configmake (configmake.h): Update configmake.h's time stamp
39887         even if the file does not change.  Otherwise, 'make -q' fails.
39888         Problem reported by Simon Josefsson in
39889         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
39891 2011-08-11  Jim Meyering  <meyering@redhat.com>
39893         git-version-gen: correct the advice in a comment
39894         * build-aux/git-version-gen: Correct comment.
39895         Don't recommend to list .tarball-version in .gitignore.
39897 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
39899         base64: fix off-by-one buffer size bug
39900         Problem and (trivial) fix reported by Gijs van Tulder in
39901         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
39902         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
39903         * tests/test-base64.c (main): Catch the bug.
39905 2011-08-10  Eric Blake  <eblake@redhat.com>
39907         closein: correct comments
39908         * lib/closein.c (close_stdin): Improve comments.
39910 2011-08-09  Bruno Haible  <bruno@clisp.org>
39912         More tests for 'fseeko'.
39913         * tests/test-fseeko3.c: New file, from Eric Blake.
39914         * tests/test-fseeko3.sh: New file.
39915         * modules/fseeko-tests (Files): Add them.
39916         (TESTS): Add test-fseeko3.sh.
39917         (check_PROGRAMS): Add test-fseeko3.
39919 2011-08-09  Eric Blake  <eblake@redhat.com>
39921         fseeko: remove unneeded hack
39922         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
39924         fseeko: fix bug on glibc
39925         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
39926         Reported by John W. Eaton.
39928 2011-08-08  Bruno Haible  <bruno@clisp.org>
39930         unictype/base: Fix interoperability with preinstalled libunistring.
39931         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
39932         Reported by Simon Josefsson.
39934 2011-08-08  Bruno Haible  <bruno@clisp.org>
39936         iswblank: Detect declaration correctly.
39937         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
39938         AC_CHECK_DECLS invocation.
39940 2011-08-08  Bruno Haible  <bruno@clisp.org>
39942         tcgetsid: Detect declaration correctly.
39943         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
39944         AC_CHECK_DECLS invocation.
39945         Reported by Simon Josefsson.
39947 2011-08-08  Eric Blake  <eblake@redhat.com>
39949         largefile: fix typo that regressed large file support
39950         * modules/largefile (configure.ac-early): Fix section name.
39952 2011-08-06  Karl Berry  <karl@gnu.org>
39954         * MODULES.html.sh (func_all_files): _Noreturn is no longer
39955         a separate module.
39957 2011-08-05  Simon Josefsson  <simon@josefsson.org>
39959         openat: Fix warnings and commens when building unlinkat.c on Hurd.
39960         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
39961         get prototype for free.
39963 2011-08-04  Bruno Haible  <bruno@clisp.org>
39965         Tests for module 'pathmax'.
39966         * modules/pathmax-tests: New file.
39967         * tests/test-pathmax.c: New file.
39969         canonicalize-lgpl: Support larger filenames on the Hurd.
39970         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
39971         Reported by Paul Eggert.
39973         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
39974         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
39975         * lib/chdir-long.h: Include pathmax.h.
39976         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
39977         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
39978         (PATH_MAX): Remove code that is done by pathmax.h.
39979         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
39980         * lib/tmpfile.c: Add a comment.
39981         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
39982         * modules/chdir-long (Depends-on): Add pathmax.
39983         * modules/getcwd (Depends-on): Add pathmax.
39984         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
39985         is not defined.
39986         * doc/posix-headers/limits.texi: Mention the pathmax module.
39987         * NEWS: Mention the change.
39989 2011-08-02  Bruno Haible  <bruno@clisp.org>
39991         pthread_sigmask: Actually use results of gl_THREADLIB.
39992         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
39993         gl_THREADLIB, not gl_[]THREADLIB.
39994         Reported by Eric Blake.
39996 2011-08-02  Jim Meyering  <meyering@redhat.com>
39998         maint.mk: relax the default _gl_TS_function_match regexp
39999         * top/maint.mk (_gl_TS_function_match): Don't require at least one
40000         space between function name and "(" in an "extern" declaration.
40001         That would fail to match a decl with no space there: extern void foo();
40003 2011-07-31  Iain Nicol  <iain@thenicols.net>
40005         git-version-gen: document that EXTRA_DIST must include .version
40006         * build-aux/git-version-gen: In the how-to-use comment, document
40007         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
40008         will fail when run from an unpacked distribution tarball.
40010 2011-08-01  Bruno Haible  <bruno@clisp.org>
40012         wctype-h: Fix last change.
40013         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
40014         REPLACE_TOWLOWER to 0.
40015         Reported by Sam Steingold <sds@gnu.org>.
40017 2011-07-31  Bruno Haible  <bruno@clisp.org>
40019         frexpl: Update autoconf test.
40020         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
40021         according to changes of 2011-06-20.
40023 2011-07-31  Bruno Haible  <bruno@clisp.org>
40025         sys_utsname: Add support for Minix.
40026         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
40027         <sys/utsname.h>.
40028         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
40029         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
40031 2011-07-31  Bruno Haible  <bruno@clisp.org>
40033         strings: Add support for Minix.
40034         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
40035         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
40036         * doc/posix-headers/strings.texi: Document the Minix problem.
40038 2011-07-31  Bruno Haible  <bruno@clisp.org>
40040         wctype-h: Add support for Minix.
40041         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
40042         REPLACE_TOWLOWER.
40043         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
40044         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
40045         REPLACE_ISWCNTRL.
40047 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
40049         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
40050         This is a performance improvement for 64-bit hosts: it causes the
40051         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
40053 2011-07-31  Bruno Haible  <bruno@clisp.org>
40055         stdioext: Add support for Minix.
40056         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
40057         * lib/fpurge.c (fpurge): Likewise.
40058         * lib/freadahead.c (freadahead): Likewise.
40059         * lib/freadable.c (freadable): Likewise.
40060         * lib/freading.c (freading): Likewise.
40061         * lib/freadptr.c (freadptr): Likewise.
40062         * lib/freadseek.c (freadptrinc): Likewise.
40063         * lib/fseeko.c (rpl_fseeko): Likewise.
40064         * lib/fseterr.c (fseterr): Likewise.
40065         * lib/fwritable.c (fwritable): Likewise.
40066         * lib/fwriting.c (fwriting): Likewise.
40067         * lib/fflush.c (clear_ungetc_buffer): Update comment.
40068         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
40070 2011-07-31  Bruno Haible  <bruno@clisp.org>
40072         errno: Port to Minix.
40073         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
40074         ECONNABORTED are defined.
40075         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
40076         GNULIB_defined_ECONNABORTED): New macros.
40077         * lib/strerror-override.h (strerror_override): Test also
40078         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
40079         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
40080         ECONNABORTED.
40081         * doc/posix-headers/errno.texi: Mention the Minix problem.
40083 2011-07-31  Bruno Haible  <bruno@clisp.org>
40085         Work around declaration collisions on Minix.
40086         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
40087         defined, set REPLACE_MBSINIT.
40088         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
40089         defined, set REPLACE_MBRTOWC.
40090         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
40091         set REPLACE_MBRLEN.
40092         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
40093         defined, set REPLACE_MBSRTOWCS.
40094         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
40095         defined, set REPLACE_WCRTOMB.
40096         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
40097         defined, set REPLACE_WCSRTOMBS.
40099 2011-07-31  Bruno Haible  <bruno@clisp.org>
40101         Add support for Minix with ACK compiler.
40102         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
40103         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
40104         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
40106 2011-07-31  Bruno Haible  <bruno@clisp.org>
40108         Documentation about Minix.
40109         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
40110         * doc/glibc-headers/*.texi: Likewise.
40111         * doc/posix-functions/*.texi: Likewise.
40112         * doc/glibc-functions/*.texi: Likewise.
40114 2011-07-31  Bruno Haible  <bruno@clisp.org>
40116         snippet/warn-on-use: Fix indentation.
40117         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
40119 2011-07-25  Jim Meyering  <meyering@redhat.com>
40121         tests: test-update-copyright.sh: remove unnecessary "rm" commands
40122         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
40123         commands.
40125 2011-07-27  Jim Meyering  <meyering@redhat.com>
40127         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
40128         * top/maint.mk (gl_extract_significant_defines_): Now that
40129         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
40130         gnulib/lib/signal.in.h, and now that we recommend to
40131         define-if-undefined those two symbols in application code,
40132         we must filter them out of the "significant" list.
40133         This avoids a "make syntax-check" failure in coreutils.
40135 2011-07-26  Eric Blake  <eblake@redhat.com>
40137         warnings: add comments about previous patch
40138         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
40139         * m4/include_next.m4: Likewise.
40140         * m4/warn-on-use.m4: Likewise.
40141         * m4/warnings.m4: Likewise, and simplify use.
40142         Suggested by Stefano Lattarini.
40144         include-next, warnings: support older autoconf
40145         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
40146         AS_VAR_PUSHDEF in a way that works with older autoconf.
40147         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
40148         Reported by Daniel P. Berrange.
40150 2011-07-25  Bruno Haible  <bruno@clisp.org>
40152         fseek, ftell: Fix doc.
40153         * doc/posix-functions/fseek.texi: Reword statement about
40154         AC_SYS_LARGEFILE.
40155         * doc/posix-functions/ftell.texi: Likewise.
40157 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40158             Bruno Haible  <bruno@clisp.org>
40160         Add dependencies to the 'largefile' module.
40161         * modules/fopen (Depends-on): Add 'largefile'.
40162         * modules/freopen (Depends-on): Likewise.
40163         * modules/fseeko (Depends-on): Likewise.
40164         * modules/ftello (Depends-on): Likewise.
40165         * modules/glob (Depends-on): Likewise.
40166         * modules/lseek (Depends-on): Likewise.
40167         * modules/lstat (Depends-on): Likewise.
40168         * modules/mkostemp (Depends-on): Likewise.
40169         * modules/mkostemps (Depends-on): Likewise.
40170         * modules/mkstemp (Depends-on): Likewise.
40171         * modules/mkstemps (Depends-on): Likewise.
40172         * modules/open (Depends-on): Likewise.
40173         * modules/openat (Depends-on): Likewise.
40174         * modules/pread (Depends-on): Likewise.
40175         * modules/pwrite (Depends-on): Likewise.
40176         * modules/scandir (Depends-on): Likewise.
40177         * modules/stat (Depends-on): Likewise.
40178         * modules/tmpfile (Depends-on): Likewise.
40179         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
40180         since the containing module now depends on the largefile module.
40181         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
40182         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
40183         off_t is fixed by gnulib.
40184         * doc/posix-functions/freopen.texi: Likewise.
40185         * doc/posix-functions/fseeko.texi: Likewise.
40186         * doc/posix-functions/fstatat.texi: Likewise.
40187         * doc/posix-functions/ftello.texi: Likewise.
40188         * doc/posix-functions/glob.texi: Likewise.
40189         * doc/posix-functions/lseek.texi: Likewise.
40190         * doc/posix-functions/lstat.texi: Likewise.
40191         * doc/posix-functions/mkstemp.texi: Likewise.
40192         * doc/posix-functions/open.texi: Likewise.
40193         * doc/posix-functions/openat.texi: Likewise.
40194         * doc/posix-functions/pread.texi: Likewise.
40195         * doc/posix-functions/pwrite.texi: Likewise.
40196         * doc/posix-functions/scandir.texi: Likewise.
40197         * doc/posix-functions/stat.texi: Likewise.
40198         * doc/posix-functions/tmpfile.texi: Likewise.
40199         * doc/glibc-functions/mkostemp.texi: Likewise.
40200         * doc/glibc-functions/mkostemps.texi: Likewise.
40201         * doc/glibc-functions/mkstemps.texi: Likewise.
40203 2011-07-25  Bruno Haible  <bruno@clisp.org>
40205         fcntl: Move AC_LIBOBJ invocation to module description.
40206         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
40207         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
40209         fcntl: Remove call-in from fchdir.m4.
40210         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
40211         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
40213         dup3: Remove potential call-in from fchdir.m4.
40214         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
40215         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
40217         dup2: Move AC_LIBOBJ invocation to module description.
40218         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
40219         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
40220         Don't invoke AC_LIBOBJ.
40221         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
40223         dup2: Remove call-in from fchdir.m4.
40224         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
40225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
40227         fclose: Move AC_LIBOBJ invocation to module description.
40228         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
40229         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
40230         to 1.
40231         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
40233         fclose: Remove call-in from close.m4.
40234         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
40235         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
40237         close: Move AC_LIBOBJ invocation to module description.
40238         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
40239         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
40240         1.
40241         * modules/close (configure.ac): Invoke AC_LIBOBJ.
40243         close: Remove call-in from fchdir.m4.
40244         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
40245         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
40247         open: Move AC_LIBOBJ invocation to module description.
40248         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
40249         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
40250         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
40252         open: Remove call-in from fchdir.m4.
40253         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
40254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
40256         fchdir: Start to remove gl_REPLACE_* idiom.
40257         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
40258         (gl_FUNC_FCHDIR): Invoke it.
40260 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40262         * lib/ftell.c (ftell): Comment out cast.
40264         close: use gl_REPLACE_FCLOSE only if defined
40265         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
40266         is defined.  The close module doesn't depend on the fclose module
40267         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
40268         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
40269         I reproduced the problem with "./gnulib-tool --test close sys_socket".
40271 2011-07-24  Jim Meyering  <meyering@redhat.com>
40273         test-select.h: avoid warning when using gcc's -Wmissing-declarations
40274         * tests/test-select.h (test_function): Declare as "static".
40276 2011-07-24  Bruno Haible  <bruno@clisp.org>
40278         doc: Mention the effects of AC_SYS_LARGEFILE.
40279         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
40280         on this function.
40281         * doc/posix-functions/aio_error.texi: Likewise.
40282         * doc/posix-functions/aio_fsync.texi: Likewise.
40283         * doc/posix-functions/aio_read.texi: Likewise.
40284         * doc/posix-functions/aio_return.texi: Likewise.
40285         * doc/posix-functions/aio_suspend.texi: Likewise.
40286         * doc/posix-functions/aio_write.texi: Likewise.
40287         * doc/posix-functions/fgetpos.texi: Likewise.
40288         * doc/posix-functions/fopen.texi: Likewise.
40289         * doc/posix-functions/freopen.texi: Likewise.
40290         * doc/posix-functions/fsetpos.texi: Likewise.
40291         * doc/posix-functions/fstatvfs.texi: Likewise.
40292         * doc/posix-functions/ftruncate.texi: Likewise.
40293         * doc/posix-functions/ftw.texi: Likewise.
40294         * doc/posix-functions/getrlimit.texi: Likewise.
40295         * doc/posix-functions/glob.texi: Likewise.
40296         * doc/posix-functions/lio_listio.texi: Likewise.
40297         * doc/posix-functions/lockf.texi: Likewise.
40298         * doc/posix-functions/mkstemp.texi: Likewise.
40299         * doc/posix-functions/mmap.texi: Likewise.
40300         * doc/posix-functions/nftw.texi: Likewise.
40301         * doc/posix-functions/openat.texi: Likewise.
40302         * doc/posix-functions/opendir.texi: Likewise.
40303         * doc/posix-functions/posix_fadvise.texi: Likewise.
40304         * doc/posix-functions/posix_fallocate.texi: Likewise.
40305         * doc/posix-functions/pread.texi: Likewise.
40306         * doc/posix-functions/pwrite.texi: Likewise.
40307         * doc/posix-functions/readdir.texi: Likewise.
40308         * doc/posix-functions/readdir_r.texi: Likewise.
40309         * doc/posix-functions/rewinddir.texi: Likewise.
40310         * doc/posix-functions/scandir.texi: Likewise.
40311         * doc/posix-functions/seekdir.texi: Likewise.
40312         * doc/posix-functions/setrlimit.texi: Likewise.
40313         * doc/posix-functions/statvfs.texi: Likewise.
40314         * doc/posix-functions/telldir.texi: Likewise.
40315         * doc/posix-functions/tmpfile.texi: Likewise.
40316         * doc/posix-functions/truncate.texi: Likewise.
40317         * doc/glibc-functions/fallocate.texi: Likewise.
40318         * doc/glibc-functions/fstatfs.texi: Likewise.
40319         * doc/glibc-functions/fts_children.texi: Likewise.
40320         * doc/glibc-functions/fts_read.texi: Likewise.
40321         * doc/glibc-functions/getdirentries.texi: Likewise.
40322         * doc/glibc-functions/mkostemp.texi: Likewise.
40323         * doc/glibc-functions/mkostemps.texi: Likewise.
40324         * doc/glibc-functions/mkstemps.texi: Likewise.
40325         * doc/glibc-functions/preadv.texi: Likewise.
40326         * doc/glibc-functions/pwritev.texi: Likewise.
40327         * doc/glibc-functions/sendfile.texi: Likewise.
40328         * doc/glibc-functions/statfs.texi: Likewise.
40330 2011-07-24  Bruno Haible  <bruno@clisp.org>
40332         doc: Fix typo.
40333         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
40335 2011-07-24  Bruno Haible  <bruno@clisp.org>
40337         doc: Mention fsusage.
40338         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
40340 2011-07-24  Bruno Haible  <bruno@clisp.org>
40342         doc: Mention new glibc headers and functions.
40343         * doc/glibc-headers/gshadow.texi: New file.
40344         * doc/glibc-functions/endsgent.texi: New file.
40345         * doc/glibc-functions/fgetsgent.texi: New file.
40346         * doc/glibc-functions/fgetsgent_r.texi: New file.
40347         * doc/glibc-functions/getsgent.texi: New file.
40348         * doc/glibc-functions/getsgent_r.texi: New file.
40349         * doc/glibc-functions/getsgnam.texi: New file.
40350         * doc/glibc-functions/getsgnam_r.texi: New file.
40351         * doc/glibc-functions/putsgent.texi: New file.
40352         * doc/glibc-functions/setsgent.texi: New file.
40353         * doc/glibc-functions/sgetsgent.texi: New file.
40354         * doc/glibc-functions/sgetsgent_r.texi: New file.
40355         * doc/glibc-functions/malloc_info.texi: New file.
40356         * doc/glibc-functions/preadv.texi: New file.
40357         * doc/glibc-functions/pwritev.texi: New file.
40358         * doc/glibc-functions/register_printf_modifier.texi: New file.
40359         * doc/glibc-functions/register_printf_specifier.texi: New file.
40360         * doc/glibc-functions/register_printf_type.texi: New file.
40361         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
40362         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
40363         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
40364         * doc/glibc-functions/pthread_getname_np.texi: New file.
40365         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
40366         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
40367         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
40368         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
40369         * doc/glibc-functions/pthread_setname_np.texi: New file.
40370         * doc/glibc-functions/pthread_sigqueue.texi: New file.
40371         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
40372         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
40373         * doc/glibc-functions/qsort_r.texi: New file.
40374         * doc/glibc-functions/quick_exit.texi: New file.
40375         * doc/glibc-functions/syncfs.texi: New file.
40376         * doc/gnulib.texi: Include them.
40377         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
40378         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
40379         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
40380         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
40381         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
40382         * doc/glibc-functions/execvpe.texi: Likewise.
40384 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40386         ftell: don't include <unistd.h>
40387         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
40388         guaranteed to define off_t, and the ftell module depends on the
40389         stdio module.
40391         ftell: do not assume wraparound signed arithmetic
40392         * lib/ftell.c: Include <limits.h>.
40393         (ftell): Don't assume wraparound signed arithmetic.
40395 2011-07-24  Bruno Haible  <bruno@clisp.org>
40397         close: No longer depend on module 'fclose'.
40398         * modules/close (Depends-on): Remove fclose.
40399         * NEWS: Mention the change.
40400         Suggested by Sam Steingold <sds@gnu.org>.
40402 2011-07-24  Bruno Haible  <bruno@clisp.org>
40404         fsusage: Enable large volume support on AIX >= 5.2.
40405         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
40406         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
40407         instead of STAT_STATVFS.
40408         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
40410         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
40411         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
40412         f_blocks field only on MacOS X.
40414         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
40415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
40416         * modules/fsusage (Depends-on): Add largefile.
40418 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
40420         * README: Modernize discussion of signed integers.
40421         Assuming overflow wraparound is no longer safe.
40422         Mention ones' complement and signed magnitude.
40424 2011-07-22  Bruno Haible  <bruno@clisp.org>
40426         select tests, pselect tests: Refactor.
40427         * tests/test-select.h: New file, extracted from tests/test-select.c.
40428         (select_fn): New type.
40429         (test, do_select, do_select_nowait, do_select_wait, test_tty,
40430         test_connect_first, test_accept_first, test_pair, test_socket_pair,
40431         test_pipe): Add my_select argument.
40432         (test_function): Renamed from main. Add my_select argument.
40433         * tests/test-select.c: Move most code to tests/test-select.h. Include
40434         test-select.h.
40435         * modules/select-tests (Files): Add tests/test-select.h.
40436         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
40437         (my_select, main): New functions.
40438         * modules/pselect-tests (Files): Add tests/test-select.h,
40439         tests/macros.h, tests/signature.h.
40440         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
40441         (configure.ac): Check for <sys/wait.h>.
40443 2011-07-22  Bruno Haible  <bruno@clisp.org>
40445         sys_select tests: Check the signature of FD_*.
40446         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
40447         signature tests from here...
40448         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
40449         here.
40450         * modules/sys_select-tests (Files): Add tests/signature.h.
40452 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40454         largefile: new module, replacing large-inode
40455         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
40456         * MODULES.html.sh: Add largefile, remove large-inode.
40457         * modules/largefile, m4/largefile.m4: New files.
40458         * modules/large-inode, m4/large-inode.m4: Remove.
40460         fsusage: port to MacOS X 10.7 with 4 TiB file systems
40461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
40462         implementations that use only 32 bits to count blocks.
40463         On typical hosts with 1024-byte blocks, this fails with file
40464         systems as small as 4 TiB.  Problem reported by Herb Wartens
40465         <http://debbugs.gnu.org/9140> and this should also fix a similar
40466         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
40468         large-inode: New module
40469         * MODULES.html.sh: Add it.
40470         * modules/large-inode, m4/large-inode.m4: New files.
40472         extensions: Enable extensions on MacOS X 10.5 and later.
40473         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
40475 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
40477         file-has-acl: use acl_extended_file_nofollow if available
40478         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
40479         (acl_extended_file): New macro.
40480         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
40481         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
40483 2011-07-21  Bruno Haible  <bruno@clisp.org>
40485         Declare system functions in a way that works with C++.
40486         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
40487         declare fdopendir as extern "C".
40488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
40489         declare frexpl as extern "C".
40490         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
40491         declare gai_strerror as extern "C".
40492         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
40493         programs, declare gai_strerror as extern "C".
40494         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
40495         declare getlogin_r as extern "C".
40496         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
40497         as extern "C".
40498         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
40499         declare ldexpl as extern "C".
40500         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
40501         as extern "C".
40502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
40503         program, declare getmntinfo as extern "C".
40504         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
40505         stpncpy as extern "C".
40506         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
40507         program, declare __xpg_strerror_r as extern "C".
40508         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
40509         strndup as extern "C".
40510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
40511         declare memset and bzero as extern "C".
40512         Reported by Sam Steingold <sds@gnu.org>.
40514 2011-07-12  Jim Meyering  <meyering@redhat.com>
40516         maint.mk: prohibit inclusion of "verify.h" without use
40517         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
40519 2011-07-19  Pádraig Brady  <P@draigBrady.com>
40521         timer-time: A new module to check for timer_settime()
40522         * m4/timer_time.m4: Check for the posix function.
40523         * modules/timer-time: Add the new module.
40524         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
40525         Mention it.
40527 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
40528             Bruno Haible  <bruno@clisp.org>
40530         pthread_sigmask: assume POSIX threads if --avoid=threadlib
40531         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
40532         not defined, assume POSIX threads and look for pthread_sigmask in
40533         $LIBS, without changing $CPPFLAGS.
40535 2011-07-19  Bruno Haible  <bruno@clisp.org>
40537         strstr: Update cross-compilation guess.
40538         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
40539         CPUs, guess no, in view of glibc
40540         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
40541         Suggested by Eric Blake. Reported by Reuben Thomas.
40543 2011-07-19  Pádraig Brady  <P@draigBrady.com>
40545         getopt-gnu: suppress core dumps from detection code
40546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
40547         to suppress core dumps that may well occur on glibc systems.
40548         * modules/getopt-gnu: Depend on nocrash.
40550 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
40552         pthread_sigmask: ensure usleep is declared
40553         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
40554         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
40556 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40558         doc: Document NonStop portability issues.
40559         * doc/posix-functions/sigaction.texi (sigaction):
40560         * doc/posix-headers/signal.texi (signal.h):
40561         Document NonStop.  See Joachim Schmitz in
40562         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
40564 2011-07-15  Bruno Haible  <bruno@clisp.org>
40566         ffsl, ffsll: Avoid unportable behaviour.
40567         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
40569 2011-07-15  Bruno Haible  <bruno@clisp.org>
40571         ffs: More tests.
40572         * tests/test-ffs.c (NBITS): New macro.
40573         (main): Add more tests.
40574         * tests/test-ffsl.c (NBITS): New macro.
40575         (main): Add more tests.
40576         * tests/test-ffsll.c (NBITS): New macro.
40577         (main): Add more tests.
40579 2011-07-15  Eric Blake  <eblake@redhat.com>
40581         ffsl, ffsll: new modules
40582         * modules/ffsl: New file.
40583         * modules/ffsll: Likewise.
40584         * m4/ffsl.m4: Likewise.
40585         * m4/ffsll.m4: Likewise.
40586         * lib/ffsl.c: Likewise.
40587         * lib/ffsl.h: Likewise.
40588         * lib/ffsll.c: Likewise.
40589         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
40590         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
40591         * modules/string (Makefile.am): Substitute witnesses.
40592         * lib/strings.in.h (ffsl, ffsll): Declare.
40593         * modules/ffsl-tests: New test file.
40594         * modules/ffsll-tests: Likewise.
40595         * tests/test-ffsl.c: Likewise.
40596         * tests/test-ffsll.c: Likewise.
40597         * MODULES.html.sh (Integer arithmetic functions): Mention it.
40598         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
40599         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
40601         ffs: fix m4 prerequisite
40602         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
40604         ffs: avoid undefined behavior
40605         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
40606         * tests/test-ffs.c (naive, main): Avoid signed shifts.
40607         Reported by Bruno Haible.
40609 2011-07-12  Bruno Haible  <bruno@clisp.org>
40611         pthread_sigmask: Rely on module 'threadlib'.
40612         * modules/pthread_sigmask (Depends-on): Add threadlib.
40613         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
40614         is defined.
40616 2011-07-12  Bruno Haible  <bruno@clisp.org>
40618         regex: Depend on module 'strcase'.
40619         * modules/regex (Depends-on): Add strcase, for strcasecmp().
40621 2011-07-12  Jim Meyering  <meyering@redhat.com>
40623         warn-on-use: fix typo in file name
40624         * modules/snippet/warn-on-use (Files): Correct file name:
40625         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
40627 2011-07-12  Bruno Haible  <bruno@clisp.org>
40629         strings: Document module.
40630         * doc/posix-headers/strings.texi: Mention module 'strings'.
40632 2011-07-12  Bruno Haible  <bruno@clisp.org>
40634         Rename module '_Noreturn' to 'snippet/_Noreturn'.
40635         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
40636         (Files, Makefile.am): Update.
40637         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
40638         * modules/stdlib (Depends-on): Update.
40640 2011-07-12  Bruno Haible  <bruno@clisp.org>
40642         * NEWS: Mention the changes.
40644         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
40645         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
40646         (Files, Makefile.am): Update.
40647         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
40648         * modules/arpa_inet (Depends-on): Update.
40649         * modules/ctype (Depends-on): Update.
40650         * modules/dirent (Depends-on): Update.
40651         * modules/fcntl-h (Depends-on): Update.
40652         * modules/glob (Depends-on): Update.
40653         * modules/iconv-h (Depends-on): Update.
40654         * modules/inttypes-incomplete (Depends-on): Update.
40655         * modules/langinfo (Depends-on): Update.
40656         * modules/locale (Depends-on): Update.
40657         * modules/math (Depends-on): Update.
40658         * modules/netdb (Depends-on): Update.
40659         * modules/poll-h (Depends-on): Update.
40660         * modules/pty (Depends-on): Update.
40661         * modules/search (Depends-on): Update.
40662         * modules/signal (Depends-on): Update.
40663         * modules/spawn (Depends-on): Update.
40664         * modules/stdio (Depends-on): Update.
40665         * modules/stdlib (Depends-on): Update.
40666         * modules/string (Depends-on): Update.
40667         * modules/strings (Depends-on): Update.
40668         * modules/sys_file (Depends-on): Update.
40669         * modules/sys_ioctl (Depends-on): Update.
40670         * modules/sys_select (Depends-on): Update.
40671         * modules/sys_socket (Depends-on): Update.
40672         * modules/sys_stat (Depends-on): Update.
40673         * modules/sys_time (Depends-on): Update.
40674         * modules/sys_times (Depends-on): Update.
40675         * modules/sys_utsname (Depends-on): Update.
40676         * modules/sys_wait (Depends-on): Update.
40677         * modules/termios (Depends-on): Update.
40678         * modules/time (Depends-on): Update.
40679         * modules/unistd (Depends-on): Update.
40680         * modules/wchar (Depends-on): Update.
40681         * modules/wctype-h (Depends-on): Update.
40682         * MODULES.html.sh (Support for building libraries and executables):
40683         Update.
40685         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
40686         * modules/snippet/unused-parameter: Renamed from
40687         modules/unused-parameter.
40688         (Files, Makefile.am): Update.
40689         * build-aux/snippet/unused-parameter.h: Renamed from
40690         build-aux/unused-parameter.h.
40691         * modules/selinux-h (Depends-on): Update.
40692         * modules/unistr/base (Depends-on): Update.
40693         * MODULES.html.sh (Core language properties): Update.
40695         Rename module 'link-warning' to 'snippet/link-warning'.
40696         * modules/snippet/link-warning: Renamed from modules/link-warning.
40697         (Files, Makefile.am): Update.
40698         * build-aux/snippet/link-warning.h: Renamed from
40699         build-aux/link-warning.h.
40700         * MODULES.html.sh (Support for building libraries and executables):
40701         Update.
40703         Rename module 'c++defs' to 'snippet/c++defs'.
40704         * modules/snippet/c++defs: Renamed from modules/c++defs.
40705         (Files, Makefile.am): Update.
40706         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
40707         * modules/arpa_inet (Depends-on): Update.
40708         * modules/ctype (Depends-on): Update.
40709         * modules/dirent (Depends-on): Update.
40710         * modules/fcntl-h (Depends-on): Update.
40711         * modules/glob (Depends-on): Update.
40712         * modules/iconv-h (Depends-on): Update.
40713         * modules/langinfo (Depends-on): Update.
40714         * modules/locale (Depends-on): Update.
40715         * modules/math (Depends-on): Update.
40716         * modules/netdb (Depends-on): Update.
40717         * modules/poll-h (Depends-on): Update.
40718         * modules/pty (Depends-on): Update.
40719         * modules/search (Depends-on): Update.
40720         * modules/signal (Depends-on): Update.
40721         * modules/spawn (Depends-on): Update.
40722         * modules/stdio (Depends-on): Update.
40723         * modules/stdlib (Depends-on): Update.
40724         * modules/string (Depends-on): Update.
40725         * modules/strings (Depends-on): Update.
40726         * modules/sys_ioctl (Depends-on): Update.
40727         * modules/sys_select (Depends-on): Update.
40728         * modules/sys_socket (Depends-on): Update.
40729         * modules/sys_stat (Depends-on): Update.
40730         * modules/sys_time (Depends-on): Update.
40731         * modules/sys_wait (Depends-on): Update.
40732         * modules/termios (Depends-on): Update.
40733         * modules/time (Depends-on): Update.
40734         * modules/unistd (Depends-on): Update.
40735         * modules/wchar (Depends-on): Update.
40736         * modules/wctype-h (Depends-on): Update.
40738         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
40739         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
40740         (Files, Makefile.am): Update.
40741         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
40742         * modules/argv-iter (Depends-on): Update.
40743         * modules/arpa_inet (Depends-on): Update.
40744         * modules/dirent (Depends-on): Update.
40745         * modules/fcntl-h (Depends-on): Update.
40746         * modules/fnmatch (Depends-on): Update.
40747         * modules/getopt-posix (Depends-on): Update.
40748         * modules/glob (Depends-on): Update.
40749         * modules/iconv-h (Depends-on): Update.
40750         * modules/inttypes-incomplete (Depends-on): Update.
40751         * modules/locale (Depends-on): Update.
40752         * modules/math (Depends-on): Update.
40753         * modules/netdb (Depends-on): Update.
40754         * modules/search (Depends-on): Update.
40755         * modules/signal (Depends-on): Update.
40756         * modules/spawn (Depends-on): Update.
40757         * modules/stdio (Depends-on): Update.
40758         * modules/stdlib (Depends-on): Update.
40759         * modules/string (Depends-on): Update.
40760         * modules/strings (Depends-on): Update.
40761         * modules/sys_socket (Depends-on): Update.
40762         * modules/sys_stat (Depends-on): Update.
40763         * modules/sys_time (Depends-on): Update.
40764         * modules/sys_times (Depends-on): Update.
40765         * modules/sys_utsname (Depends-on): Update.
40766         * modules/time (Depends-on): Update.
40767         * modules/unistd (Depends-on): Update.
40768         * modules/wchar (Depends-on): Update.
40769         * MODULES.html.sh (Support for building libraries and executables):
40770         Update.
40772 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
40774         Improvements on _Noreturn and related modules.
40776         modules/_Exit-tests: test _Noreturn too
40777         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
40778         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
40779         (main): Use them.
40781         stdnoreturn, stdnoreturn-tests: remove modules
40782         They're not needed here and a bit premature for use elsewhere.  See
40783         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
40784         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
40785         * tests/test-stdnoreturn.c: Remove files.
40786         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
40787         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
40788         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
40789         and using noreturn.
40790         * modules/openat, modules/sigpipe-die, modules/xalloc:
40791         * modules/xmemdup0, modules/xstrtol:
40792         Remove dependency on stdnoreturn.
40794         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
40795         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
40796         Reparenthesize to avoid GCC warning.
40797         Support Microsoft's syntax.
40798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
40800         _Noreturn-tests: remove module
40801         * modules/_Noreturn-tests: Remove.
40802         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
40803         * tests/test-_Noreturn.c: Remove.
40804         * tests/test-stdnoreturn.c: Merge from the old
40805         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
40807 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
40809         _Noreturn, stdnoreturn, and related modules.
40811         * top/maint.mk: Adjust to new noreturn support.
40812         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
40813         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
40815         xalloc: use stdnoreturn.h
40816         * lib/xalloc.h: Include <stdnoreturn.h>.
40817         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40818         * modules/xalloc (Depends-on): Add stdnoreturn.
40820         xstrtol: use stdnoreturn.h
40821         * lib/xstrtol.h: Include <stdnoreturn.h>.
40822         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40823         * modules/xstrtol (Depends-on): Add stdnoreturn.
40825         xmemdup0: use stdnoreturn.h
40826         * lib/xmemdup0.h: Include <stdnoreturn.h>.
40827         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40828         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
40830         sigpipe-die: use stdnoreturn.h
40831         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
40832         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40833         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
40835         openat: use stdnoreturn.h
40836         * lib/openat.h: Include <stdnoreturn.h>.
40837         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
40838         * modules/openat (Depends-on): Add stdnoreturn.
40840         * lib/openat-die.c (openat_save_fail): Modernize comment.
40842         * lib/xalloc-die.c (xalloc_die): Modernize comment.
40844         * lib/glthread/thread.h: Modernize comment.
40846         obstack: use _Noreturn
40847         * lib/obstack.c (__attribute__): Remove macro.
40848         (print_and_abort): Use _Noreturn.
40850         c-stack: use _Noreturn
40851         * lib/c-stack.c (die, overflow_handler, segv_handler):
40852         Use _Noreturn rather than __attribute__((noreturn)).
40854         argmatch-tests, exclude_tests: use _Noreturn
40855         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
40856         Remove.
40857         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
40859         stdlib: use _Noreturn
40860         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
40861         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
40862         * modules/stdlib (Depends-on): Add _Noreturn.
40863         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
40865         stdnoreturn-tests: new module
40866         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
40868         stdnoreturn: new module
40869         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
40870         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
40872         _Noreturn-tests: new module
40873         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
40875         _Noreturn: new module
40876         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
40877         New section, mentioning it.
40878         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
40880         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
40882 2011-07-11  Eric Blake  <eblake@redhat.com>
40884         ffs: new module
40885         * modules/ffs: New file.
40886         * m4/ffs.m4: Likewise.
40887         * lib/ffs.c: Likewise.
40888         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
40889         * modules/strings (Makefile.am): Substitute witness.
40890         (Depends-on): Add c++defs.
40891         * lib/strings.in.h (ffs): Declare.
40892         * modules/ffs-tests: New test file.
40893         * tests/test-ffs.c: Test new module.
40894         * MODULES.html.sh (Integer arithmetic functions): Mention it.
40895         * doc/posix-functions/ffs.texi (ffs): Likewise.
40897         regex: avoid compiler warning
40898         * lib/regex.c (includes): Include <strings.h>, for use of
40899         strcasecmp in regcomp.c.
40900         Reported by Joachim Schmitz.
40902 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
40904         stdint: respect system's intmax_t if INTMAX_MAX
40905         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
40906         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
40907         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
40908         long but int64_t is long long, and where we will clash with the
40909         system intmax_t if we override it.  See
40910         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
40911         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
40912         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
40913         similarly for UINTMAX_C.
40915 2011-07-08  Bruno Haible  <bruno@clisp.org>
40917         pthread_sigmask tests: Avoid a compiler warning.
40918         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
40919         non-zero.
40921         sigprocmask tests: A better way to avoid a compiler warning.
40922         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
40923         (main): Complain if system() returns non-zero.
40924         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
40926 2011-07-08  Bruno Haible  <bruno@clisp.org>
40928         pthread_sigmask: Work around IRIX bug.
40929         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
40930         bug.
40931         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
40932         there may be unblocked pending signals.
40933         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
40935 2011-07-08  Bruno Haible  <bruno@clisp.org>
40937         pthread_sigmask: Work around Cygwin bug.
40938         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
40939         bug.
40940         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
40941         the system's pthread_sigmask function.
40942         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
40944 2011-07-08  Bruno Haible  <bruno@clisp.org>
40946         pthread_sigmask: Work around bug in single-threaded implementation.
40947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
40948         FreeBSD, HP-UX, Solaris bug.
40949         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
40950         * lib/pthread_sigmask.c: Include <stddef.h>.
40951         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
40952         the system's pthread_sigmask function.
40953         * modules/pthread_sigmask (configure.ac): Invoke
40954         gl_PREREQ_PTHREAD_SIGMASK.
40955         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
40956         HP-UX, Solaris.
40958 2011-07-08  Eric Blake  <eblake@redhat.com>
40960         test-sigprocmask: avoid compiler warning
40961         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
40962         * tests/test-sigprocmask.c (main): Use it to silence warning.
40963         Reported by Jim Meyering.
40965         test-snprintf: avoid compiler warning
40966         * tests/test-snprintf.c (main): Avoid shadowed declaration.
40967         * tests/test-vsnprintf.c (main): Likewise.
40968         Reported by Jim Meyering.
40970 2011-07-08  Bruno Haible  <bruno@clisp.org>
40972         Tests for module 'pthread_sigmask'.
40973         * modules/pthread_sigmask-tests: New file.
40974         * tests/test-pthread_sigmask1.c: New file, based on
40975         tests/test-sigprocmask.c.
40976         * tests/test-pthread_sigmask2.c: New file.
40978 2011-07-08  Jim Meyering  <meyering@redhat.com>
40980         test-getopt.h: avoid warning about an unused variable
40981         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
40983 2011-07-07  Jim Meyering  <meyering@redhat.com>
40985         maint: reduce list of files exempt from sc_prohibit_leading_TABs
40986         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
40987         now that it no longer contains leading TABs.
40988         Remove unused "url=FIXME" statement.
40990 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40992         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
40993         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
40994         When gl_THREADLIB is not in use, assume that the POSIX sematics
40995         are desired.  This is better for Emacs, which uses POSIX semantics
40996         on GNUish and/or POSIXish platforms, and does not use threads at
40997         all otherwise.
40999         pthread_sigmask: fix typo when testing for libraries
41000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
41001         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
41003 2011-07-08  Eric Blake  <eblake@redhat.com>
41005         fts: introduce FTS_NOATIME
41006         * lib/fts_.h (FTS_NOATIME): New bit flag.
41007         (FTS_OPTIONMASK): Adjust.
41008         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
41009         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
41011 2011-07-08  Bruno Haible  <bruno@clisp.org>
41013         Tests for module 'thread'.
41014         * modules/thread-tests: New file.
41015         * tests/test-thread_self.c: New file.
41016         * tests/test-thread_create.cc: New file.
41018 2011-07-08  Bruno Haible  <bruno@clisp.org>
41020         thread: Avoid gcc warnings when using gl_thread_self().
41021         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
41022         'void *'.
41023         (gl_thread_self_pointer): Update.
41025 2011-07-07  Bruno Haible  <bruno@clisp.org>
41027         signal-c++-tests: Check declaration of pthread_sigmask.
41028         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
41029         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
41030         $(LIB_PTHREAD_SIGMASK).
41032 2011-07-07  Bruno Haible  <bruno@clisp.org>
41034         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
41035         * lib/signal.in.h (pthread_sigmask): Override if
41036         REPLACE_PTHREAD_SIGMASK is 1.
41037         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41038         REPLACE_PTHREAD_SIGMASK.
41039         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
41040         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
41041         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
41042         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
41043         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
41045 2011-07-07  Bruno Haible  <bruno@clisp.org>
41047         pthread_sigmask: Ensure declaration in <signal.h>.
41048         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
41049         include <pthread.h>.
41050         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
41051         problem.
41053 2011-07-07  Bruno Haible  <bruno@clisp.org>
41055         pthread_sigmask: Document the module.
41056         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
41058 2011-07-07  Bruno Haible  <bruno@clisp.org>
41060         pthread_sigmask: Follow gnulib conventions.
41061         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
41062         gl_PTHREAD_SIGMASK.
41063         * modules/pthread_sigmask (configure.ac): Update.
41065 2011-07-07  Bruno Haible  <bruno@clisp.org>
41067         pthread_sigmask: Make declaration C++ safe.
41068         * lib/signal.in.h: In two special conditions, just do an #include_next.
41069         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
41070         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
41071         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
41072         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
41073         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
41074         not REPLACE_PTHREAD_MASK.
41075         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
41076         not REPLACE_PTHREAD_MASK.
41077         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
41079 2011-07-07  Bruno Haible  <bruno@clisp.org>
41081         pthread_sigmask: Fix return value.
41082         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
41083         * lib/pthread_sigmask.c: New file.
41084         * modules/pthread_sigmask (Files): Add it.
41085         (configure.ac): Invoke AC_LIBOBJ.
41087 2011-07-07  Eric Blake  <eblake@redhat.com>
41089         getopt: more portable argv creation
41090         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
41091         const, use char arrays rather than strings.
41092         Suggested by Paul Eggert.
41094 2011-07-07  Bruno Haible  <bruno@clisp.org>
41096         Tests for module 'sigprocmask'.
41097         * modules/sigprocmask-tests: New file.
41098         * tests/test-sigprocmask.c: New file.
41100 2011-07-07  Bruno Haible  <bruno@clisp.org>
41102         float tests: Tweak.
41103         * tests/test-float.c (main): Tweak skip message.
41105 2011-07-07  Eric Blake  <eblake@redhat.com>
41107         getopt: avoid compiler warning during configure
41108         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
41109         assigning string literals to non-const pointer.
41111         getopt-gnu: avoid crash in glibc getopt
41112         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
41113         * tests/test-getopt.h (test_getopt): Enhance test.
41114         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41115         * doc/posix-functions/getopt.texi (getopt): Document it.
41116         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
41117         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41118         Likewise.
41120 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
41122         getopt: handle W; without long options in getopt [BZ #12922]
41123         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
41124         but no long options are defined, just return 'W'.
41126 2011-07-07  Bruno Haible  <bruno@clisp.org>
41128         Avoid literal tabs.
41129         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
41130         variable containing a tab instead of a literal tab.
41131         Reported by Jim Meyering.
41133 2011-07-07  Bruno Haible  <bruno@clisp.org>
41135         Comments.
41136         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
41138 2011-07-06  Bruno Haible  <bruno@clisp.org>
41140         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
41141         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
41142         <winsock2.h>.
41143         (rpl_fd_isset, FD_ISSET): New definitions, copied from
41144         lib/sys_socket.in.h.
41145         (close, gethostname): Hide declarations from <winsock2.h>.
41146         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41147         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
41148         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
41149         (select): Don't override if gnulib's <sys/select.h> was already
41150         included.
41151         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
41152         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
41153         setsockopt, shutdown, select): Tweak indentation.
41155 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41157         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
41158         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
41159         in an application that does not use the sys_select module.
41161 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
41163         poll: do not return 0 on timeout=-1
41164         * lib/poll.c: Loop with yield if no events occurred.
41166 2011-07-06  Eric Blake  <eblake@redhat.com>
41168         pthread_sigmask: always replace when not using pthread
41169         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
41170         replacement when using some threading other than pthread.  Fix
41171         logic bug.
41173 2011-07-06  Bruno Haible  <bruno@clisp.org>
41175         Comments.
41176         * m4/printf.m4: Update comments about mingw.
41178 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
41180         sys_select: define sigset_t more portably
41181         * lib/sys_select.in.h: Always include <sys/types.h>, since
41182         we now need sigset_t and mingw defines it there.
41183         Include <signal.h> before split inclusion guard, to avoid
41184         mishaps on Solaris, whose <signal.h> eventually includes us.
41185         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
41186         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
41187         which come from ...
41188         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
41189         gl_CHECK_TYPE_SIGSET_T.
41190         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
41191         does the real work.
41192         * modules/sys_select (Depends-on): Add 'signal'.
41194         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
41195         Suggested by Bruno Haible.
41197         pselect: Use pthread_sigmask, not sigprocmask.
41198         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
41199         multithreaded apps better than sigprocmask does.
41200         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
41201         sigprocmask directly.
41203 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
41205         * lib/pselect.c (pselect): Use plain name, without "rpl_".
41206         Don't #undef,  since we don't need any underlying pselect.
41207         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
41208         (Depends-on): Add select.
41209         (Link): Add $(LIBSOCKET).
41210         These changes suggested by Bruno Haible.
41212         pselect: document better
41213         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
41214         * doc/posix-functions/pselect.texi (pselect): Document new module.
41216         pthread_sigmask: new module
41217         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
41218         * doc/posix-functions/pthread_sigmask.texi: Document new module.
41219         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
41220         This is done only as a macro; I don't know how well that'll
41221         work for C++.  Move <sys/types.h> include before the include_next,
41222         to avoid mishap on Solaris.
41223         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
41224         * modules/signal (Makefile.am): Substitute the check's results.
41225         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
41227         test-pselect: new module
41228         * modules/pselect-tests, tests/test-pselect.c: New files.
41229         * tests/test-select.c, tests/test-sys_select-c++.cc:
41230         If TEST_PSELECT is defined, test pselect instead of testing select.
41232         * tests/test-sys_select.c (sigset_t): Test for it, too.
41233         Suggested by Bruno Haible.
41235 2011-07-05  Eric Blake  <eblake@redhat.com>
41237         snprintf: guarantee %1$d, for libintl
41238         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
41239         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
41240         * doc/posix-functions/snprintf.texi (snprintf): Update.
41241         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
41242         * tests/test-snprintf.c (main): Enhance test.
41243         * tests/test-vsnprintf.c (main): Likewise.
41245 2011-07-05  Jim Meyering  <meyering@redhat.com>
41247         maint: exempt stdio-read.c and stdio-write.c from the cppi check
41248         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
41249         per Bruno's request, to accommodate this idiom (no space after "#")
41250         even when the function is inside an #if block:
41251         char *
41252         gets (char *s)
41253         #undef gets
41254         {
41255           ...
41256         }
41258 2011-07-04  Jim Meyering  <meyering@redhat.com>
41260         maint: indent with spaces, not TABs, and add a rule to check this
41261         * tests/test-userspec.c: Indent with spaces, not TABs.
41262         * tests/test-argp.c: Likewise.
41263         * tests/test-c-stack2.sh: Likewise.
41264         * tests/test-parse-duration.sh: Likewise
41265         * m4/strtod.m4: Likewise.
41266         * m4/alloca.m4: Likewise.
41267         * m4/pselect.m4: Likewise.
41268         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
41270 2011-07-03  Jim Meyering  <meyering@redhat.com>
41272         maint.mk: correct omissions in prohibit_argmatch_without_use check
41273         This rule would mistakenly report that argmatch.h is included without
41274         use even when both the argmatch and invalid_arg macro were used.
41275         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
41276         of argmatch and invalid_arg.
41278 2011-07-03  Bruno Haible  <bruno@clisp.org>
41280         Comments about EINTR.
41281         * lib/safe-read.h: Explain the purpose of this module.
41282         * lib/safe-write.h: Likewise.
41283         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
41284         module.
41285         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
41286         module.
41287         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41289 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
41291         xnanosleep: Rewrite to use new dtotimespec module.
41292         It has the conversion code that used to be in xnanosleep.
41293         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
41294         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
41295         (TIME_T_MAX): Remove.
41296         (xnanosleep): Rewrite in terms of dtotimespec.
41297         * modules/xnanosleep (Depends-on): Add dtotimespec.
41298         Remove intprops, stdbool.
41300         timespec-add, timespec-sub: new modules
41301         * lib/timespec.h (timespec_add, timespec_sub): New decls.
41302         * lib/timespec-add.c, lib/timespec-sub.c:
41303         * modules/timespec-add, modules/timespec-sub: New files.
41305         dtotimespec: new module
41306         * lib/timespec.h (dtotimespec): New decl.
41307         * lib/dtotimespec.c, modules/dtotimespec: New files.
41309         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
41311         pselect: new module
41312         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
41313         (pselect): New decls.
41314         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
41315         since the standard pselect decl uses 'restrict'.
41316         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
41317         HAVE_PSELECT, REPLACE_PSELECT.
41318         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
41319         HAVE_PSELECT, REPLACE_PSELECT.
41320         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
41322         sys_select: don't depend on sys_socket
41323         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
41324         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
41325         This fix works on GNU and GNU-like platforms, but has not been tested
41326         on native Windows.
41327         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
41328         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
41329         gl_HEADER_SYS_SOCKET.
41330         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
41331         gl_PREREQ_SYS_H_WINSOCK2.
41333 2011-06-29  Eric Blake  <eblake@redhat.com>
41335         pipe2: fix C89 compile problem
41336         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
41337         Reported by Bruno Haible.
41339         pipe, pipe2: don't corrupt fd on error
41340         * lib/pipe.c (pipe): Leave fd unchanged on error.
41341         * lib/pipe2.c (pipe2): Likewise.
41342         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
41343         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
41345 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
41347         mmap-anon: do not use regular expressions inadvertently
41348         * m4/mmap-anon.m4: Remove trailing period from strings sought
41349         in the output.
41351 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
41353         nanosleep: fix integer overflow problem
41354         * lib/nanosleep.c (my_usleep): Don't assume signed integer
41355         arithmetic wraps around on overflow.
41357         nanosleep: simplify carrying
41358         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
41359         first call to the underyling nanosleep, not for the last one.
41360         This doesn't fix any bugs, but it simplifies the computation of
41361         the remaining delay.  Found while auditing integer overflow issues.
41363         dup2: remove test for existence of fcntl
41364         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
41365         "#if HAVE_FCNTL", in the configure-time test program.
41366         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
41367         and therefore speeds up "configure" a bit.  Found while
41368         adding the dup2 module to Emacs.
41370 2011-06-24  Eric Blake  <eblake@redhat.com>
41372         maint.mk: enhance useless header checks
41373         * top/maint.mk (_sc_header_without_use): Check both include
41374         styles.
41375         (sc_prohibit_assert_without_use)
41376         (sc_prohibit_close_stream_without_use)
41377         (sc_prohibit_getopt_without_use)
41378         (sc_prohibit_quotearg_without_use)
41379         (sc_prohibit_quote_without_use)
41380         (sc_prohibit_long_options_without_use)
41381         (sc_prohibit_inttostr_without_use)
41382         (sc_prohibit_ignore_value_without_use)
41383         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
41384         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
41385         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
41386         (sc_prohibit_hash_pjw_without_use)
41387         (sc_prohibit_safe_read_without_use)
41388         (sc_prohibit_argmatch_without_use)
41389         (sc_prohibit_canonicalize_without_use)
41390         (sc_prohibit_root_dev_ino_without_use)
41391         (sc_prohibit_openat_without_use)
41392         (sc_prohibit_c_ctype_without_use)
41393         (sc_prohibit_signal_without_use)
41394         (sc_prohibit_stdio--_without_use)
41395         (sc_prohibit_stdio-safer_without_use)
41396         (sc_prohibit_strings_without_use)
41397         (sc_prohibit_intprops_without_use)
41398         (sc_prohibit_stddef_without_use)
41399         (sc_prohibit_xfreopen_without_use): Update clients.
41401 2011-06-24  Jim Meyering  <meyering@redhat.com>
41403         syntax-check: keep one maint.mk rule in sync with its header
41404         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
41405         of the bug Eric has just fixed, with today's commit 25e4c2ec.
41406         I prefer to avoid temporary files here, so use <(...), but that
41407         is not supported by /bin/sh, so...
41408         (SHELL): Define to /bin/bash.
41410 2011-06-24  Eric Blake  <eblake@redhat.com>
41412         maint.mk: update sc_prohibit_intprops_without_use
41413         * top/maint.mk (_intprops_names): Match recent changes.
41415 2011-06-24  Bruno Haible  <bruno@clisp.org>
41417         strerror-override: No-op tweak.
41418         * lib/strerror-override.h (strerror_override): Reorder conditions,
41419         for consistency with lib/strerror-override.c.
41421 2011-06-23  Eric Blake  <eblake@redhat.com>
41423         maint.mk: test further PATH_MAX issues
41424         * top/maint.mk (sc_prohibit_path_max_array): Rename...
41425         (sc_prohibit_path_max_allocation): ...and also test alloca.
41426         Suggested by Jim Meyering.
41428 2011-06-22  Eric Blake  <eblake@redhat.com>
41430         maint.mk: add syntax-check to avoid char[PATH_MAX]
41431         * top/maint.mk (sc_prohibit_path_max_array): New rule.
41433         stat: be robust to PATH_MAX definition
41434         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
41435         * modules/stat (Depends-on): Add verify.
41437         link: work around IRIX bug
41438         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
41439         * lib/link.c (rpl_link): Work around it.
41440         * tests/test-link.h (test_link): Enhance test.
41441         * doc/posix-functions/link.texi (link): Document the bug.
41443         getopt: silence clang warning
41444         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
41445         dereference.
41446         Reported by Gustavo Martin Domato.
41448 2011-06-22  Jim Meyering  <meyering@redhat.com>
41450         bootstrap: do not insert a blank line into each .gitignore file
41451         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
41453 2011-06-21  Eric Blake  <eblake@redhat.com>
41455         perror: test for output mismatch
41456         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
41457         perror on IRIX.
41459         strerror_r: fix OpenBSD behavior on out-of-range
41460         * lib/strerror_r.c (strerror_r): Always use maximal string.
41461         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
41463         strerror_r: fix OpenBSD behavior on 0
41464         * lib/strerror-override.c (strerror_override): Also override 0
41465         when needed.
41466         * lib/strerror-override.h (strerror_override): Likewise.
41467         * lib/strerror.c (strerror): Simplify, now that 0 override is done
41468         earlier.
41469         * lib/strerror_r.c (strerror_r): Likewise.
41470         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
41471         behavior...
41472         (gl_FUNC_STRERROR_0): ...into new macro.
41473         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
41474         is overridden.
41475         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
41476         * modules/strerror-override (Files): Add strerror.m4.
41477         (configure.ac): Also provide override for 0 when needed.
41478         * doc/posix-functions/strerror.texi (strerror): Document this.
41479         * doc/posix-functions/perror.texi (perror): Likewise.
41481         perror: adjust array size
41482         * modules/perror (Depends-on): Add strerror-override.
41483         * lib/perror.c (perror): Use it to avoid magic number.
41485         strerror-override: reduce size
41486         * lib/strerror-override.c (strerror_override): Use fewer lines.
41488 2011-06-20  Bruno Haible  <bruno@clisp.org>
41490         pathmax: Ensure correct value for PATH_MAX on HP-UX.
41491         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
41493 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41495         alloca: port to compilers that can optimize like GCC 4.6.0
41496         * lib/alloca.c (find_stack_direction): New signature, taken from
41497         Autoconf git.  This works with GCC 4.6.0.  This code should never
41498         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
41499         be used with other compilers that optimize as well as GCC 4.6.0 does.
41500         (alloca): Adjust to new signature.
41501         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
41502         New macro, which patches Autoconf in a similar way.
41504         c-stack: stop worrying about stack direction
41505         * lib/c-stack.c (find_stack_direction): Remove.
41506         (segv_handler): Don't worry about stack direction growth, as it's
41507         too much of a pain to configure this correctly, given how compilers
41508         are optimizing-away our stack-growth detection code.  Instead, assume
41509         that any access to just before or just after the stack is OK.
41510         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
41511         Don't require AC_FUNC_ALLOCA; no longer needed.
41513 2011-06-20  Eric Blake  <eblake@redhat.com>
41515         test-stat: don't allocate PATH_MAX bytes
41516         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
41517         PATH_MAX-sized buffer.
41518         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
41519         * modules/stat-tests (Depends-on): Likewise.
41520         * tests/test-fstatat.c (includes): Drop pathmax.h.
41521         * tests/test-stat.c (includes): Likewise.
41522         Reported by Bruno Haible.
41524 2011-06-20  Bruno Haible  <bruno@clisp.org>
41526         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
41527         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
41528         * lib/float.c: New file.
41529         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
41530         REPLACE_FLOAT_LDBL.
41531         * modules/float (Files): Add lib/float.c.
41532         (configure.ac): Invoke AC_LIBOBJ.
41533         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
41535 2011-06-20  Bruno Haible  <bruno@clisp.org>
41537         Tests for module 'float'.
41538         * modules/float-tests: New file.
41539         * tests/test-float.c: New file.
41541 2011-06-19  Bruno Haible  <bruno@clisp.org>
41543         isinf: Coding style.
41544         * lib/isinf.c: Use GNU coding style.
41546 2011-06-19  Bruno Haible  <bruno@clisp.org>
41548         linkat test: Avoid test failure on AIX 7.1.
41549         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
41550         * tests/test-link.h (test_link): Likewise.
41552 2011-06-19  Bruno Haible  <bruno@clisp.org>
41554         pread test: Avoid test failure on OpenBSD 4.9.
41555         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
41557 2011-06-19  Bruno Haible  <bruno@clisp.org>
41559         sprintf-posix: Fix test failure on AIX 7.1.
41560         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
41561         * doc/posix-functions/dprintf.texi: Mention limited precision problem
41562         on AIX.
41563         * doc/posix-functions/fprintf.texi: Likewise.
41564         * doc/posix-functions/printf.texi: Likewise.
41565         * doc/posix-functions/snprintf.texi: Likewise.
41566         * doc/posix-functions/sprintf.texi: Likewise.
41567         * doc/posix-functions/vdprintf.texi: Likewise.
41568         * doc/posix-functions/vfprintf.texi: Likewise.
41569         * doc/posix-functions/vprintf.texi: Likewise.
41570         * doc/posix-functions/vsnprintf.texi: Likewise.
41571         * doc/posix-functions/vsprintf.texi: Likewise.
41573 2011-06-19  Bruno Haible  <bruno@clisp.org>
41575         roundl-ieee: Fix test failure on AIX 7.1.
41576         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
41577         * doc/posix-functions/roundl.texi: Mention problem with negative
41578         arguments.
41580 2011-06-19  Bruno Haible  <bruno@clisp.org>
41582         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
41583         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
41584         * doc/posix-functions/round.texi: Mention problem with negative
41585         arguments.
41586         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
41588 2011-06-19  Bruno Haible  <bruno@clisp.org>
41590         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
41591         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
41592         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
41593         * doc/posix-functions/roundf.texi: Mention problem with negative
41594         arguments.
41595         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
41597 2011-06-19  Bruno Haible  <bruno@clisp.org>
41599         ceilf-ieee: Work around bug on MacOS X 10.5.
41600         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
41602         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
41603         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
41604         IEEE compliant, avoid compiler optimizations.
41605         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
41606         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
41607         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
41608         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
41609         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
41610         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
41611         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
41612         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
41613         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
41614         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
41616 2011-06-19  Bruno Haible  <bruno@clisp.org>
41618         ceilf-ieee: Work around bug on AIX 7.1.
41619         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
41620         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
41622 2011-06-19  Bruno Haible  <bruno@clisp.org>
41624         ceil-ieee: Work around bug on AIX 7.1.
41625         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
41626         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
41628 2011-06-18  Bruno Haible  <bruno@clisp.org>
41630         fsync test: Avoid test failure on MacOS X and AIX.
41631         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
41632         EINVAL.
41634 2011-06-18  Bruno Haible  <bruno@clisp.org>
41636         openat, fdopendir tests: Fix link errors.
41637         * modules/openat-tests (Depends-on): Add progname.
41638         * modules/fdopendir-tests (Depends-on): Likewise.
41639         * tests/test-fchownat.c: Include progname.h.
41640         (main): Call set_program_name.
41641         * tests/test-fstatat.c: Include progname.h.
41642         (main): Call set_program_name.
41643         * tests/test-mkdirat.c: Include progname.h.
41644         (main): Call set_program_name.
41645         * tests/test-openat.c: Include progname.h.
41646         (main): Call set_program_name.
41647         * tests/test-unlinkat.c: Include progname.h.
41648         (main): Call set_program_name.
41649         * tests/test-fdopendir.c: Include progname.h.
41650         (main): Call set_program_name.
41652 2011-06-18  Bruno Haible  <bruno@clisp.org>
41654         Doc update.
41655         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
41656         HP-UX.
41657         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
41659 2011-06-18  Bruno Haible  <bruno@clisp.org>
41661         getcwd tests: Avoid compilation error on HP-UX 11.31.
41662         * modules/getcwd-tests (Depends-on): Add pathmax.
41663         * tests/test-getcwd.c: Include pathmax.h.
41665 2011-06-18  Bruno Haible  <bruno@clisp.org>
41667         isfinite, isinf: Fix link error on AIX 6 and 7.
41668         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
41669         needed, also test the macro with a 'float' argument.
41670         * m4/isinf.m4 (gl_ISINF): Likewise.
41672 2011-06-18  Bruno Haible  <bruno@clisp.org>
41674         getloadavg: Don't clobber LIBS. Regression from previous commit.
41675         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
41676         AC_CHECK_LIB from here...
41677         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
41678         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
41679         gl_func_getloadavg_done.
41680         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41682 2011-06-18  Bruno Haible  <bruno@clisp.org>
41684         clean-temp: Improve documentation.
41685         * lib/clean-temp.h: Explain better how to use this module.
41686         Reported by John Darrington <john@darrington.wattle.id.au>.
41688 2011-06-17  Bruno Haible  <bruno@clisp.org>
41690         pread, pwrite: Avoid cc warning on AIX.
41691         * lib/unistd.in.h (pread): Undefine before defining as a macro.
41692         (pwrite): Likewise.
41694 2011-06-17  Bruno Haible  <bruno@clisp.org>
41696         spawn-pipe tests: Fix link error.
41697         * tests/test-spawn-pipe-child.c: Undefine fprintf.
41698         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41700 2011-06-17  Bruno Haible  <bruno@clisp.org>
41702         Tests: Remove unnecessary dependency.
41703         * modules/canonicalize-tests (Depends-on): Remove progname.
41704         * modules/chown-tests (Depends-on): Likewise.
41705         * modules/dirname-tests (Depends-on): Likewise.
41706         * modules/fdopendir-tests (Depends-on): Likewise.
41707         * modules/fdutimensat-tests (Depends-on): Likewise.
41708         * modules/hash-tests (Depends-on): Likewise.
41709         * modules/lchown-tests (Depends-on): Likewise.
41710         * modules/linkat-tests (Depends-on): Likewise.
41711         * modules/renameat-tests (Depends-on): Likewise.
41712         * modules/spawn-pipe-tests (Depends-on): Likewise.
41713         * modules/utimensat-tests (Depends-on): Likewise.
41715 2011-06-17  Bruno Haible  <bruno@clisp.org>
41717         spawn-pipe tests: Fix link error.
41718         * tests/test-spawn-pipe-child.c: Undefine fflush.
41720 2011-06-17  Bruno Haible  <bruno@clisp.org>
41722         Fix tests link errors.
41723         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
41724         * modules/chown-tests (Makefile.am): Don't link test-chown with
41725         LIBINTL.
41726         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
41727         LIBINTL.
41728         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
41729         LIBINTL.
41730         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
41731         LIBINTL.
41733 2011-06-16  Bruno Haible  <bruno@clisp.org>
41735         crypto/gc-sha1: Fix recent regression.
41736         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
41737         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
41739         crypto/gc-md5: Fix recent regression.
41740         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
41742         crypto/gc-md4: Fix recent regression.
41743         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
41744         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
41746         crypto/gc-arctwo: Fix recent regression.
41747         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
41748         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
41750         crypto/gc-rijndael: Fix recent regression.
41751         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
41752         (configure.ac): Invoke AC_LIBOBJ here.
41753         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
41754         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41756         crypto/gc-hmac-sha1: Fix recent regression.
41757         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
41758         (configure.ac): Invoke AC_LIBOBJ here.
41759         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
41760         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41762         crypto/gc-hmac-md5: Fix recent regression.
41763         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
41764         (configure.ac): Invoke AC_LIBOBJ here.
41765         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
41766         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41768         crypto/gc-des: Fix recent regression.
41769         * modules/crypto/gc-des (Files): Remove m4/des.m4.
41770         (configure.ac): Invoke AC_LIBOBJ here.
41771         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
41772         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41774         crypto/gc-arcfour: Fix recent regression.
41775         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
41776         (configure.ac): Invoke AC_LIBOBJ here.
41777         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
41778         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41780 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
41782         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
41783         After the 2011-05-21 change, this macro requires
41784         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
41785         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
41787 2011-06-16  Bruno Haible  <bruno@clisp.org>
41789         fprintftime: Move AC_LIBOBJ invocations to module description.
41790         * m4/fprintftime.m4: Remove file.
41791         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
41792         (configure.ac): Remove gl_FPRINTFTIME call.
41793         (Makefile.am): Augment lib_SOURCES.
41794         Reported by Jim Meyering.
41796 2011-06-16  Bruno Haible  <bruno@clisp.org>
41798         tmpfile-safer: Finish 2011-05-23 commit.
41799         * m4/stdio-safer.m4: Really remove file.
41800         Reported by Jim Meyering.
41802 2011-06-16  Bruno Haible  <bruno@clisp.org>
41804         syntax-check: Fix typo.
41805         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
41806         printf-posix.m4.
41807         Reported by Jim Meyering.
41809 2011-06-13  Jim Meyering  <meyering@redhat.com>
41811         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
41812         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
41814 2011-05-23  Bruno Haible  <bruno@clisp.org>
41816         yesno: Move AC_LIBOBJ invocations to module description.
41817         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
41818         * modules/yesno (Makefile.am): Augment lib_SOURCES.
41820 2011-05-23  Bruno Haible  <bruno@clisp.org>
41822         xstrtol: Move AC_LIBOBJ invocations to module description.
41823         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
41824         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
41826 2011-05-23  Bruno Haible  <bruno@clisp.org>
41828         xstrtold: Move AC_LIBOBJ invocations to module description.
41829         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
41830         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
41832 2011-05-23  Bruno Haible  <bruno@clisp.org>
41834         xstrtod: Move AC_LIBOBJ invocations to module description.
41835         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
41836         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
41838 2011-05-23  Bruno Haible  <bruno@clisp.org>
41840         xnanosleep: Move AC_LIBOBJ invocations to module description.
41841         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
41842         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
41844 2011-05-23  Bruno Haible  <bruno@clisp.org>
41846         xgetcwd: Move AC_LIBOBJ invocations to module description.
41847         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
41848         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
41850 2011-05-23  Bruno Haible  <bruno@clisp.org>
41852         xalloc: Move AC_LIBOBJ invocations to module description.
41853         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
41854         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
41856 2011-05-23  Bruno Haible  <bruno@clisp.org>
41858         write-any-file: Move AC_LIBOBJ invocations to module description.
41859         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
41860         invocation.
41861         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
41863 2011-05-23  Bruno Haible  <bruno@clisp.org>
41865         utimens: Move AC_LIBOBJ invocations to module description.
41866         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
41867         * modules/utimens (Makefile.am): Augment lib_SOURCES.
41869 2011-05-23  Bruno Haible  <bruno@clisp.org>
41871         utimecmp: Move AC_LIBOBJ invocations to module description.
41872         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
41873         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
41875 2011-05-23  Bruno Haible  <bruno@clisp.org>
41877         userspec: Move AC_LIBOBJ invocations to module description.
41878         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
41879         * modules/userspec (Makefile.am): Augment lib_SOURCES.
41881 2011-05-23  Bruno Haible  <bruno@clisp.org>
41883         unlinkdir: Move AC_LIBOBJ invocations to module description.
41884         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
41885         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
41887 2011-05-23  Bruno Haible  <bruno@clisp.org>
41889         unistd-safer: Move AC_LIBOBJ invocations to module description.
41890         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
41891         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
41893 2011-05-23  Bruno Haible  <bruno@clisp.org>
41895         tempname: Move AC_LIBOBJ invocations to module description.
41896         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
41897         * modules/tempname (Makefile.am): Augment lib_SOURCES.
41899 2011-05-23  Bruno Haible  <bruno@clisp.org>
41901         strftime: Move AC_LIBOBJ invocations to module description.
41902         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
41903         * modules/strftime (Makefile.am): Augment lib_SOURCES.
41905 2011-05-23  Bruno Haible  <bruno@clisp.org>
41907         stdlib-safer: Move AC_LIBOBJ invocations to module description.
41908         * m4/stdlib-safer.m4: Remove file.
41909         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
41910         (configure.ac): Remove gl_STDLIB_SAFER call.
41911         (Makefile.am): Augment lib_SOURCES.
41913 2011-05-23  Bruno Haible  <bruno@clisp.org>
41915         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
41916         * m4/stdio-safer.m4: Remove file.
41917         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
41918         (configure.ac): Remove gl_TMPFILE_SAFER call.
41919         (Makefile.am): Augment lib_SOURCES.
41921 2011-05-23  Bruno Haible  <bruno@clisp.org>
41923         popen-safer: Move AC_LIBOBJ invocations to module description.
41924         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
41925         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
41926         (configure.ac): Remove gl_POPEN_SAFER call.
41927         (Makefile.am): Augment lib_SOURCES.
41929 2011-05-23  Bruno Haible  <bruno@clisp.org>
41931         freopen-safer: Move AC_LIBOBJ invocations to module description.
41932         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
41933         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
41934         (configure.ac): Remove gl_FREOPEN_SAFER call.
41935         (Makefile.am): Augment lib_SOURCES.
41937 2011-05-23  Bruno Haible  <bruno@clisp.org>
41939         fopen-safer: Move AC_LIBOBJ invocations to module description.
41940         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
41941         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
41942         (configure.ac): Remove gl_FOPEN_SAFER call.
41943         (Makefile.am): Augment lib_SOURCES.
41945 2011-05-23  Bruno Haible  <bruno@clisp.org>
41947         crypto/sha512: Move AC_LIBOBJ invocations to module description.
41948         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
41949         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
41951 2011-05-23  Bruno Haible  <bruno@clisp.org>
41953         crypto/sha256: Move AC_LIBOBJ invocations to module description.
41954         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
41955         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
41957 2011-05-23  Bruno Haible  <bruno@clisp.org>
41959         crypto/sha1: Move AC_LIBOBJ invocations to module description.
41960         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
41961         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
41963 2011-05-23  Bruno Haible  <bruno@clisp.org>
41965         settime: Move AC_LIBOBJ invocations to module description.
41966         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
41967         * modules/settime (Makefile.am): Augment lib_SOURCES.
41969 2011-05-23  Bruno Haible  <bruno@clisp.org>
41971         savedir: Move AC_LIBOBJ invocations to module description.
41972         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
41973         * modules/savedir (Makefile.am): Augment lib_SOURCES.
41975 2011-05-23  Bruno Haible  <bruno@clisp.org>
41977         save-cwd: Move AC_LIBOBJ invocations to module description.
41978         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
41979         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
41981 2011-05-23  Bruno Haible  <bruno@clisp.org>
41983         same: Move AC_LIBOBJ invocations to module description.
41984         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
41985         * modules/same (Makefile.am): Augment lib_SOURCES.
41987 2011-05-23  Bruno Haible  <bruno@clisp.org>
41989         safe-write: Move AC_LIBOBJ invocations to module description.
41990         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
41991         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
41992         instead of gl_SAFE_WRITE.
41993         (Makefile.am): Augment lib_SOURCES.
41995 2011-05-23  Bruno Haible  <bruno@clisp.org>
41997         safe-read: Move AC_LIBOBJ invocations to module description.
41998         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
41999         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
42000         of gl_SAFE_READ.
42001         (Makefile.am): Augment lib_SOURCES.
42003 2011-05-23  Bruno Haible  <bruno@clisp.org>
42005         safe-alloc: Move AC_LIBOBJ invocations to module description.
42006         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
42007         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
42009 2011-05-23  Bruno Haible  <bruno@clisp.org>
42011         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
42012         * m4/rijndael.m4: Remove file.
42013         * modules/crypto/rijndael (Files): Remove it.
42014         (configure.ac): Remove gl_RIJNDAEL call.
42015         (Makefile.am): Augment lib_SOURCES.
42017 2011-05-23  Bruno Haible  <bruno@clisp.org>
42019         readtokens: Move AC_LIBOBJ invocations to module description.
42020         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
42021         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
42023 2011-05-23  Bruno Haible  <bruno@clisp.org>
42025         read-file: Move AC_LIBOBJ invocations to module description.
42026         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
42027         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
42028         of gl_FUNC_READ_FILE.
42029         (Makefile.am): Augment lib_SOURCES.
42031 2011-05-23  Bruno Haible  <bruno@clisp.org>
42033         quotearg: Move AC_LIBOBJ invocations to module description.
42034         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
42035         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
42037 2011-05-23  Bruno Haible  <bruno@clisp.org>
42039         quote: Move AC_LIBOBJ invocations to module description.
42040         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
42041         * modules/quote (Makefile.am): Augment lib_SOURCES.
42043 2011-05-23  Bruno Haible  <bruno@clisp.org>
42045         posixver: Move AC_LIBOBJ invocations to module description.
42046         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
42047         * modules/posixver (Makefile.am): Augment lib_SOURCES.
42049 2011-05-23  Bruno Haible  <bruno@clisp.org>
42051         posixtm: Move AC_LIBOBJ invocations to module description.
42052         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
42053         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
42055 2011-05-23  Bruno Haible  <bruno@clisp.org>
42057         physmem: Move AC_LIBOBJ invocations to module description.
42058         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
42059         * modules/physmem (Makefile.am): Augment lib_SOURCES.
42061 2011-05-23  Bruno Haible  <bruno@clisp.org>
42063         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
42064         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
42065         invocation.
42066         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
42068 2011-05-23  Bruno Haible  <bruno@clisp.org>
42070         mpsort: Move AC_LIBOBJ invocations to module description.
42071         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
42072         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
42074 2011-05-23  Bruno Haible  <bruno@clisp.org>
42076         modechange: Move AC_LIBOBJ invocations to module description.
42077         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
42078         * modules/modechange (Makefile.am): Augment lib_SOURCES.
42080 2011-05-23  Bruno Haible  <bruno@clisp.org>
42082         mkdir-p: Move AC_LIBOBJ invocations to module description.
42083         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
42084         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
42086 2011-05-23  Bruno Haible  <bruno@clisp.org>
42088         mkancesdirs: Move AC_LIBOBJ invocations to module description.
42089         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
42090         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
42092 2011-05-23  Bruno Haible  <bruno@clisp.org>
42094         mgetgroups: Move AC_LIBOBJ invocations to module description.
42095         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
42096         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
42098 2011-05-23  Bruno Haible  <bruno@clisp.org>
42100         memxor: Move AC_LIBOBJ invocations to module description.
42101         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
42102         * modules/memxor (Makefile.am): Augment lib_SOURCES.
42104 2011-05-23  Bruno Haible  <bruno@clisp.org>
42106         memcoll: Move AC_LIBOBJ invocations to module description.
42107         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
42108         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
42110 2011-05-23  Bruno Haible  <bruno@clisp.org>
42112         memcasecmp: Move AC_LIBOBJ invocations to module description.
42113         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
42114         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
42116 2011-05-23  Bruno Haible  <bruno@clisp.org>
42118         crypto/md5: Move AC_LIBOBJ invocations to module description.
42119         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
42120         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
42122 2011-05-23  Bruno Haible  <bruno@clisp.org>
42124         crypto/md4: Move AC_LIBOBJ invocations to module description.
42125         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
42126         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
42128 2011-05-23  Bruno Haible  <bruno@clisp.org>
42130         crypto/md2: Move AC_LIBOBJ invocations to module description.
42131         * m4/md2.m4: Remove file.
42132         * modules/crypto/md2 (Files): Remove it.
42133         (configure.ac): Remove gl_MD2 call.
42134         (Makefile.am): Augment lib_SOURCES.
42136 2011-05-23  Bruno Haible  <bruno@clisp.org>
42138         long-options: Move AC_LIBOBJ invocations to module description.
42139         * m4/long-options.m4: Remove file.
42140         * modules/long-options (Files): Remove it.
42141         (configure.ac): Remove gl_LONG_OPTIONS call.
42142         (Makefile.am): Augment lib_SOURCES.
42144 2011-05-23  Bruno Haible  <bruno@clisp.org>
42146         i-ring: Move AC_LIBOBJ invocations to module description.
42147         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
42148         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
42150 2011-05-23  Bruno Haible  <bruno@clisp.org>
42152         idcache: Move AC_LIBOBJ invocations to module description.
42153         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
42154         * modules/idcache (Makefile.am): Augment lib_SOURCES.
42156 2011-05-23  Bruno Haible  <bruno@clisp.org>
42158         human: Move AC_LIBOBJ invocations to module description.
42159         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
42160         * modules/human (Makefile.am): Augment lib_SOURCES.
42162 2011-05-23  Bruno Haible  <bruno@clisp.org>
42164         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
42165         * m4/hmac-sha1.m4: Remove file.
42166         * modules/crypto/hmac-sha1 (Files): Remove it.
42167         (configure.ac): Remove gl_HMAC_SHA1 call.
42168         (Makefile.am): Augment lib_SOURCES.
42170 2011-05-23  Bruno Haible  <bruno@clisp.org>
42172         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
42173         * m4/hmac-md5.m4: Remove file.
42174         * modules/crypto/hmac-md5 (Files): Remove it.
42175         (configure.ac): Remove gl_HMAC_MD5 call.
42176         (Makefile.am): Augment lib_SOURCES.
42178 2011-05-23  Bruno Haible  <bruno@clisp.org>
42180         hash: Move AC_LIBOBJ invocations to module description.
42181         * m4/hash.m4: Remove file.
42182         * modules/hash (Files): Remove it.
42183         (configure.ac): Remove gl_HASH call.
42184         (Makefile.am): Augment lib_SOURCES.
42186 2011-05-23  Bruno Haible  <bruno@clisp.org>
42188         hard-locale: Move AC_LIBOBJ invocations to module description.
42189         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
42190         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
42192 2011-05-23  Bruno Haible  <bruno@clisp.org>
42194         getugroups: Move AC_LIBOBJ invocations to module description.
42195         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
42196         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
42198 2011-05-23  Bruno Haible  <bruno@clisp.org>
42200         gettime: Move AC_LIBOBJ invocations to module description.
42201         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
42202         * modules/gettime (Makefile.am): Augment lib_SOURCES.
42204 2011-05-23  Bruno Haible  <bruno@clisp.org>
42206         getndelim2: Move AC_LIBOBJ invocations to module description.
42207         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
42208         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
42210 2011-05-23  Bruno Haible  <bruno@clisp.org>
42212         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
42213         * m4/gc-pbkdf2-sha1.m4: Remove file.
42214         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
42215         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
42216         (Makefile.am): Augment lib_SOURCES.
42218 2011-05-23  Bruno Haible  <bruno@clisp.org>
42220         fts: Move AC_LIBOBJ invocations to module description.
42221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
42222         * modules/fts (configure.ac): ... to here.
42224 2011-05-23  Bruno Haible  <bruno@clisp.org>
42226         file-type: Move AC_LIBOBJ invocations to module description.
42227         * m4/file-type.m4: Remove file.
42228         * modules/file-type (Files): Remove it.
42229         (configure.ac): Remove gl_FILE_TYPE call.
42230         (Makefile.am): Augment lib_SOURCES.
42232 2011-05-23  Bruno Haible  <bruno@clisp.org>
42234         filenamecat*: Respect rules for use of AC_LIBOBJ.
42235         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
42236         Remove AC_LIBOBJ invocation.
42237         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
42238         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
42240 2011-05-23  Bruno Haible  <bruno@clisp.org>
42242         filemode: Move AC_LIBOBJ invocations to module description.
42243         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
42244         * modules/filemode (Makefile.am): Augment lib_SOURCES.
42246 2011-05-23  Bruno Haible  <bruno@clisp.org>
42248         openat-safer: Move AC_LIBOBJ invocations to module description.
42249         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
42250         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
42252 2011-05-23  Bruno Haible  <bruno@clisp.org>
42254         fcntl-safer: Move AC_LIBOBJ invocations to module description.
42255         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
42256         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
42258 2011-05-23  Bruno Haible  <bruno@clisp.org>
42260         exclude: Move AC_LIBOBJ invocations to module description.
42261         * m4/exclude.m4: Remove file.
42262         * modules/exclude (Files): Remove it.
42263         (configure.ac): Remove gl_EXCLUDE call.
42264         (Makefile.am): Augment lib_SOURCES.
42266 2011-05-23  Bruno Haible  <bruno@clisp.org>
42268         dirname*: Respect rules for use of AC_LIBOBJ.
42269         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
42270         invocations.
42271         * modules/dirname (Makefile.am): Augment lib_SOURCES.
42272         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
42274 2011-05-23  Bruno Haible  <bruno@clisp.org>
42276         dirent-safer: Move AC_LIBOBJ invocations to module description.
42277         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
42278         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
42280 2011-05-23  Bruno Haible  <bruno@clisp.org>
42282         crypto/des: Move AC_LIBOBJ invocations to module description.
42283         * m4/des.m4: Remove file.
42284         * modules/crypto/des (Files): Remove it.
42285         (configure.ac): Remove gl_DES call.
42286         (Makefile.am): Augment lib_SOURCES.
42288 2011-05-23  Bruno Haible  <bruno@clisp.org>
42290         cycle-check: Move AC_LIBOBJ invocations to module description.
42291         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
42292         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
42294 2011-05-23  Bruno Haible  <bruno@clisp.org>
42296         c-strtold: Move AC_LIBOBJ invocations to module description.
42297         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
42298         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
42300 2011-05-23  Bruno Haible  <bruno@clisp.org>
42302         c-strtod: Move AC_LIBOBJ invocations to module description.
42303         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
42304         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
42306 2011-05-23  Bruno Haible  <bruno@clisp.org>
42308         crc: Move AC_LIBOBJ invocations to module description.
42309         * m4/crc.m4: Remove file.
42310         * modules/crc (Files): Remove it.
42311         (configure.ac): Remove gl_CRC call.
42312         (Makefile.am): Augment lib_SOURCES.
42314 2011-05-23  Bruno Haible  <bruno@clisp.org>
42316         close-stream: Move AC_LIBOBJ invocations to module description.
42317         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
42318         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
42320 2011-05-23  Bruno Haible  <bruno@clisp.org>
42322         closeout: Move AC_LIBOBJ invocations to module description.
42323         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
42324         * modules/closeout (Makefile.am): Augment lib_SOURCES.
42326 2011-05-23  Bruno Haible  <bruno@clisp.org>
42328         closein: Move AC_LIBOBJ invocations to module description.
42329         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
42330         * modules/closein (Makefile.am): Augment lib_SOURCES.
42332 2011-05-23  Bruno Haible  <bruno@clisp.org>
42334         cloexec: Move AC_LIBOBJ invocations to module description.
42335         * m4/cloexec.m4: Remove file.
42336         * modules/cloexec (Files): Remove it.
42337         (configure.ac): Remove gl_CLOEXEC call.
42338         (Makefile.am): Augment lib_SOURCES.
42340 2011-05-23  Bruno Haible  <bruno@clisp.org>
42342         check-version: Move AC_LIBOBJ invocations to module description.
42343         * m4/check-version.m4: Remove file.
42344         * modules/check-version (Files): Remove it.
42345         (configure.ac): Remove gl_CHECK_VERSION call.
42346         (Makefile.am): Augment lib_SOURCES.
42348 2011-05-23  Bruno Haible  <bruno@clisp.org>
42350         chdir-safer: Move AC_LIBOBJ invocations to module description.
42351         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
42352         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
42354 2011-05-23  Bruno Haible  <bruno@clisp.org>
42356         canonicalize: Move AC_LIBOBJ invocations to module description.
42357         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
42358         AC_LIBOBJ invocation.
42359         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
42361 2011-05-23  Bruno Haible  <bruno@clisp.org>
42363         canon-host: Move AC_LIBOBJ invocations to module description.
42364         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
42365         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
42366         instead of gl_CANON_HOST.
42367         (Makefile.am): Augment lib_SOURCES.
42369 2011-05-23  Bruno Haible  <bruno@clisp.org>
42371         backupfile: Move AC_LIBOBJ invocations to module description.
42372         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
42373         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
42375 2011-05-23  Bruno Haible  <bruno@clisp.org>
42377         argmatch: Move AC_LIBOBJ invocations to module description.
42378         * m4/argmatch.m4: Remove file.
42379         * modules/argmatch (Files): Remove it.
42380         (configure.ac): Remove gl_ARGMATCH call.
42381         (Makefile.am): Augment lib_SOURCES.
42383 2011-05-23  Bruno Haible  <bruno@clisp.org>
42385         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
42386         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
42387         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
42389 2011-05-23  Bruno Haible  <bruno@clisp.org>
42391         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
42392         * m4/arcfour.m4: Remove file.
42393         * modules/crypto/arcfour (Files): Remove it.
42394         (configure.ac): Remove gl_ARCFOUR call.
42395         (Makefile.am): Augment lib_SOURCES.
42397 2011-05-22  Bruno Haible  <bruno@clisp.org>
42399         write: Move AC_LIBOBJ invocations to module description.
42400         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
42401         * modules/write (configure.ac): ... to here.
42403 2011-05-22  Bruno Haible  <bruno@clisp.org>
42405         wmemset: Move AC_LIBOBJ invocations to module description.
42406         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
42407         here...
42408         * modules/wmemset (configure.ac): ... to here.
42410 2011-05-22  Bruno Haible  <bruno@clisp.org>
42412         wmemmove: Move AC_LIBOBJ invocations to module description.
42413         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
42414         here...
42415         * modules/wmemmove (configure.ac): ... to here.
42417 2011-05-22  Bruno Haible  <bruno@clisp.org>
42419         wmemcpy: Move AC_LIBOBJ invocations to module description.
42420         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
42421         here...
42422         * modules/wmemcpy (configure.ac): ... to here.
42424 2011-05-22  Bruno Haible  <bruno@clisp.org>
42426         wmemcmp: Move AC_LIBOBJ invocations to module description.
42427         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
42428         here...
42429         * modules/wmemcmp (configure.ac): ... to here.
42431 2011-05-22  Bruno Haible  <bruno@clisp.org>
42433         wmemchr: Move AC_LIBOBJ invocations to module description.
42434         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
42435         here...
42436         * modules/wmemchr (configure.ac): ... to here.
42438 2011-05-22  Bruno Haible  <bruno@clisp.org>
42440         wcswidth: Move AC_LIBOBJ invocations to module description.
42441         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
42442         here...
42443         * modules/wcswidth (configure.ac): ... to here.
42445 2011-05-22  Bruno Haible  <bruno@clisp.org>
42447         wcwidth: Respect rules for use of AC_LIBOBJ.
42448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
42449         invocation from here...
42450         * modules/wcwidth (configure.ac): ... to here.
42451         (Depends-on): Update conditions.
42453 2011-05-22  Bruno Haible  <bruno@clisp.org>
42455         wctype: Move AC_LIBOBJ invocations to module description.
42456         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
42457         invocation from here...
42458         * modules/wctype (configure.ac): ... to here.
42459         (Depends-on): Update conditions.
42461 2011-05-22  Bruno Haible  <bruno@clisp.org>
42463         wctrans: Move AC_LIBOBJ invocations to module description.
42464         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
42465         invocation from here...
42466         * modules/wctrans (configure.ac): ... to here.
42468 2011-05-22  Bruno Haible  <bruno@clisp.org>
42470         wctomb: Move AC_LIBOBJ invocations to module description.
42471         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
42472         invocations from here...
42473         * modules/wctomb (configure.ac): ... to here.
42475 2011-05-22  Bruno Haible  <bruno@clisp.org>
42477         wctob: Move AC_LIBOBJ invocations to module description.
42478         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
42479         gl_PREREQ_WCTOB invocations from here...
42480         * modules/wctob (configure.ac): ... to here.
42481         (Depends-on): Update conditions.
42483 2011-05-22  Bruno Haible  <bruno@clisp.org>
42485         wcsxfrm: Move AC_LIBOBJ invocations to module description.
42486         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
42487         here...
42488         * modules/wcsxfrm (configure.ac): ... to here.
42490 2011-05-22  Bruno Haible  <bruno@clisp.org>
42492         wcstok: Move AC_LIBOBJ invocations to module description.
42493         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
42494         * modules/wcstok (configure.ac): ... to here.
42496 2011-05-22  Bruno Haible  <bruno@clisp.org>
42498         wcsstr: Move AC_LIBOBJ invocations to module description.
42499         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
42500         * modules/wcsstr (configure.ac): ... to here.
42502 2011-05-22  Bruno Haible  <bruno@clisp.org>
42504         wcsspn: Move AC_LIBOBJ invocations to module description.
42505         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
42506         * modules/wcsspn (configure.ac): ... to here.
42508 2011-05-22  Bruno Haible  <bruno@clisp.org>
42510         wcsrtombs: Move AC_LIBOBJ invocations to module description.
42511         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
42512         gl_PREREQ_WCSRTOMBS invocations from here...
42513         * modules/wcsrtombs (configure.ac): ... to here.
42515 2011-05-22  Bruno Haible  <bruno@clisp.org>
42517         wcsrchr: Move AC_LIBOBJ invocations to module description.
42518         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
42519         here...
42520         * modules/wcsrchr (configure.ac): ... to here.
42522 2011-05-22  Bruno Haible  <bruno@clisp.org>
42524         wcspbrk: Move AC_LIBOBJ invocations to module description.
42525         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
42526         here...
42527         * modules/wcspbrk (configure.ac): ... to here.
42529 2011-05-22  Bruno Haible  <bruno@clisp.org>
42531         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
42532         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
42533         gl_PREREQ_WCSNRTOMBS invocations from here...
42534         * modules/wcsnrtombs (configure.ac): ... to here.
42536 2011-05-22  Bruno Haible  <bruno@clisp.org>
42538         wcsnlen: Move AC_LIBOBJ invocations to module description.
42539         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
42540         here...
42541         * modules/wcsnlen (configure.ac): ... to here.
42543 2011-05-22  Bruno Haible  <bruno@clisp.org>
42545         wcsncpy: Move AC_LIBOBJ invocations to module description.
42546         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
42547         here...
42548         * modules/wcsncpy (configure.ac): ... to here.
42550 2011-05-22  Bruno Haible  <bruno@clisp.org>
42552         wcsncmp: Move AC_LIBOBJ invocations to module description.
42553         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
42554         here...
42555         * modules/wcsncmp (configure.ac): ... to here.
42557 2011-05-22  Bruno Haible  <bruno@clisp.org>
42559         wcsncat: Move AC_LIBOBJ invocations to module description.
42560         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
42561         here...
42562         * modules/wcsncat (configure.ac): ... to here.
42564 2011-05-22  Bruno Haible  <bruno@clisp.org>
42566         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
42567         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
42568         from here...
42569         * modules/wcsncasecmp (configure.ac): ... to here.
42571 2011-05-22  Bruno Haible  <bruno@clisp.org>
42573         wcslen: Move AC_LIBOBJ invocations to module description.
42574         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
42575         * modules/wcslen (configure.ac): ... to here.
42577 2011-05-22  Bruno Haible  <bruno@clisp.org>
42579         wcsdup: Move AC_LIBOBJ invocations to module description.
42580         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
42581         * modules/wcsdup (configure.ac): ... to here.
42583 2011-05-22  Bruno Haible  <bruno@clisp.org>
42585         wcscspn: Move AC_LIBOBJ invocations to module description.
42586         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
42587         here...
42588         * modules/wcscspn (configure.ac): ... to here.
42590 2011-05-22  Bruno Haible  <bruno@clisp.org>
42592         wcscpy: Move AC_LIBOBJ invocations to module description.
42593         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
42594         * modules/wcscpy (configure.ac): ... to here.
42596 2011-05-22  Bruno Haible  <bruno@clisp.org>
42598         wcscoll: Move AC_LIBOBJ invocations to module description.
42599         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
42600         here...
42601         * modules/wcscoll (configure.ac): ... to here.
42603 2011-05-22  Bruno Haible  <bruno@clisp.org>
42605         wcscmp: Move AC_LIBOBJ invocations to module description.
42606         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
42607         * modules/wcscmp (configure.ac): ... to here.
42609 2011-05-22  Bruno Haible  <bruno@clisp.org>
42611         wcschr: Move AC_LIBOBJ invocations to module description.
42612         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
42613         * modules/wcschr (configure.ac): ... to here.
42615 2011-05-22  Bruno Haible  <bruno@clisp.org>
42617         wcscat: Move AC_LIBOBJ invocations to module description.
42618         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
42619         * modules/wcscat (configure.ac): ... to here.
42621 2011-05-22  Bruno Haible  <bruno@clisp.org>
42623         wcscasecmp: Move AC_LIBOBJ invocations to module description.
42624         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
42625         here...
42626         * modules/wcscasecmp (configure.ac): ... to here.
42628 2011-05-22  Bruno Haible  <bruno@clisp.org>
42630         wcrtomb: Move AC_LIBOBJ invocations to module description.
42631         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
42632         invocations from here...
42633         * modules/wcrtomb (configure.ac): ... to here.
42635 2011-05-22  Bruno Haible  <bruno@clisp.org>
42637         wcpncpy: Move AC_LIBOBJ invocations to module description.
42638         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
42639         here...
42640         * modules/wcpncpy (configure.ac): ... to here.
42642 2011-05-22  Bruno Haible  <bruno@clisp.org>
42644         wcpcpy: Move AC_LIBOBJ invocations to module description.
42645         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
42646         * modules/wcpcpy (configure.ac): ... to here.
42648 2011-05-22  Bruno Haible  <bruno@clisp.org>
42650         waitpid: Move AC_LIBOBJ invocations to module description.
42651         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
42652         invocation from here...
42653         * modules/waitpid (configure.ac): ... to here.
42655 2011-05-22  Bruno Haible  <bruno@clisp.org>
42657         utimensat: Move AC_LIBOBJ invocations to module description.
42658         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
42659         here...
42660         * modules/utimensat (configure.ac): ... to here.
42662 2011-05-22  Bruno Haible  <bruno@clisp.org>
42664         usleep: Move AC_LIBOBJ invocations to module description.
42665         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
42666         here...
42667         * modules/usleep (configure.ac): ... to here.
42669 2011-05-22  Bruno Haible  <bruno@clisp.org>
42671         unlockpt: Move AC_LIBOBJ invocations to module description.
42672         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
42673         gl_PREREQ_UNLOCKPT invocations from here...
42674         * modules/unlockpt (configure.ac): ... to here.
42676 2011-05-22  Bruno Haible  <bruno@clisp.org>
42678         unlink: Respect rules for use of AC_LIBOBJ.
42679         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
42680         * modules/unlink (configure.ac): ... to here.
42682 2011-05-22  Bruno Haible  <bruno@clisp.org>
42684         uname: Move AC_LIBOBJ invocations to module description.
42685         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
42686         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
42687         here...
42688         * modules/uname (configure.ac): ... to here.
42690 2011-05-22  Bruno Haible  <bruno@clisp.org>
42692         ttyname_r: Move AC_LIBOBJ invocations to module description.
42693         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
42694         gl_PREREQ_TTYNAME_R invocations from here...
42695         * modules/ttyname_r (configure.ac): ... to here.
42697 2011-05-22  Bruno Haible  <bruno@clisp.org>
42699         tsearch: Move AC_LIBOBJ invocations to module description.
42700         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
42701         invocations from here...
42702         * modules/tsearch (configure.ac): ... to here.
42704 2011-05-22  Bruno Haible  <bruno@clisp.org>
42706         towctrans: Move AC_LIBOBJ invocations to module description.
42707         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
42708         AC_LIBOBJ invocation from here...
42709         * modules/towctrans (configure.ac): ... to here.
42711 2011-05-22  Bruno Haible  <bruno@clisp.org>
42713         tmpfile: Move AC_LIBOBJ invocations to module description.
42714         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
42715         invocations from here...
42716         * modules/tmpfile (configure.ac): ... to here.
42718 2011-05-22  Bruno Haible  <bruno@clisp.org>
42720         times: Move AC_LIBOBJ invocations to module description.
42721         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
42722         * modules/times (configure.ac): ... to here.
42724 2011-05-22  Bruno Haible  <bruno@clisp.org>
42726         time_r: Move AC_LIBOBJ invocations to module description.
42727         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
42728         invocations from here...
42729         * modules/time_r (configure.ac): ... to here.
42731 2011-05-22  Bruno Haible  <bruno@clisp.org>
42733         timegm: Move AC_LIBOBJ invocations to module description.
42734         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
42735         invocations from here...
42736         * modules/timegm (configure.ac): ... to here.
42738 2011-05-22  Bruno Haible  <bruno@clisp.org>
42740         tcgetsid: Move AC_LIBOBJ invocations to module description.
42741         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
42742         and gl_PREREQ_TCGETSID invocations from here...
42743         * modules/tcgetsid (configure.ac): ... to here.
42744         (Depends-on): Update conditions.
42746 2011-05-22  Bruno Haible  <bruno@clisp.org>
42748         symlinkat: Move AC_LIBOBJ invocations to module description.
42749         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
42750         here...
42751         * modules/symlinkat (configure.ac): ... to here.
42753 2011-05-22  Bruno Haible  <bruno@clisp.org>
42755         symlink: Move AC_LIBOBJ invocations to module description.
42756         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
42757         here...
42758         * modules/symlink (configure.ac): ... to here.
42760 2011-05-22  Bruno Haible  <bruno@clisp.org>
42762         strverscmp: Move AC_LIBOBJ invocations to module description.
42763         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
42764         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
42765         from here...
42766         * modules/strverscmp (configure.ac): ... to here.
42768 2011-05-22  Bruno Haible  <bruno@clisp.org>
42770         strtok_r: Move AC_LIBOBJ invocations to module description.
42771         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
42772         and gl_PREREQ_STRTOK_R invocations from here...
42773         * modules/strtok_r (configure.ac): ... to here.
42774         (Depends-on): Update conditions.
42776 2011-05-22  Bruno Haible  <bruno@clisp.org>
42778         strtoumax: Move AC_LIBOBJ invocations to module description.
42779         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
42780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
42781         from here...
42782         * modules/strtoumax (configure.ac): ... to here.
42784 2011-05-22  Bruno Haible  <bruno@clisp.org>
42786         strtoimax: Move AC_LIBOBJ invocations to module description.
42787         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
42788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
42789         from here...
42790         * modules/strtoimax (configure.ac): ... to here.
42792 2011-05-22  Bruno Haible  <bruno@clisp.org>
42794         strtoull: Move AC_LIBOBJ invocations to module description.
42795         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
42796         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
42797         from here...
42798         * modules/strtoull (configure.ac): ... to here.
42800 2011-05-22  Bruno Haible  <bruno@clisp.org>
42802         strtoll: Move AC_LIBOBJ invocations to module description.
42803         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
42804         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
42805         here...
42806         * modules/strtoll (configure.ac): ... to here.
42808 2011-05-22  Bruno Haible  <bruno@clisp.org>
42810         strtoul: Move AC_LIBOBJ invocations to module description.
42811         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
42812         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
42813         * modules/strtoul (configure.ac): ... to here.
42815 2011-05-22  Bruno Haible  <bruno@clisp.org>
42817         strtol: Move AC_LIBOBJ invocations to module description.
42818         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
42819         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
42820         * modules/strtol (configure.ac): ... to here.
42822 2011-05-22  Bruno Haible  <bruno@clisp.org>
42824         strtod: Move AC_LIBOBJ invocations to module description.
42825         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
42826         invocations from here...
42827         * modules/strtod (configure.ac): ... to here.
42829 2011-05-22  Bruno Haible  <bruno@clisp.org>
42831         strstr*: Move AC_LIBOBJ invocations to module description.
42832         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
42833         invocations from here...
42834         * modules/strstr-simple (configure.ac): ... to here.
42835         * modules/strstr (configure.ac): ... and here.
42837 2011-05-22  Bruno Haible  <bruno@clisp.org>
42839         strsignal: Move AC_LIBOBJ invocations to module description.
42840         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
42841         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
42842         * modules/strsignal (configure.ac): ... to here.
42843         (Depends-on): Update conditions.
42845 2011-05-22  Bruno Haible  <bruno@clisp.org>
42847         strsep: Move AC_LIBOBJ invocations to module description.
42848         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
42849         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
42850         here...
42851         * modules/strsep (configure.ac): ... to here.
42853 2011-05-22  Bruno Haible  <bruno@clisp.org>
42855         strptime: Move AC_LIBOBJ invocations to module description.
42856         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
42857         gl_PREREQ_STRPTIME invocations from here...
42858         * modules/strptime (configure.ac): ... to here.
42860 2011-05-22  Bruno Haible  <bruno@clisp.org>
42862         strpbrk: Move AC_LIBOBJ invocations to module description.
42863         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
42864         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
42865         here...
42866         * modules/strpbrk (configure.ac): ... to here.
42868 2011-05-22  Bruno Haible  <bruno@clisp.org>
42870         strnlen: Move AC_LIBOBJ invocations to module description.
42871         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
42872         invocations from here...
42873         * modules/strnlen (configure.ac): ... to here.
42875 2011-05-22  Bruno Haible  <bruno@clisp.org>
42877         strndup: Move AC_LIBOBJ invocations to module description.
42878         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
42879         invocations from here...
42880         * modules/strndup (configure.ac): ... to here.
42881         (Depends-on): Update conditions.
42883 2011-05-22  Bruno Haible  <bruno@clisp.org>
42885         strncat: Move AC_LIBOBJ invocations to module description.
42886         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
42887         invocations from here...
42888         * modules/strncat (configure.ac): ... to here.
42890 2011-05-22  Bruno Haible  <bruno@clisp.org>
42892         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
42893         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
42894         invocations from here...
42895         * modules/strdup (configure.ac): ... to here.
42896         * modules/strdup-posix (configure.ac): ... and here.
42898 2011-05-22  Bruno Haible  <bruno@clisp.org>
42900         strcspn: Move AC_LIBOBJ invocations to module description.
42901         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
42902         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
42903         here...
42904         * modules/strcspn (configure.ac): ... to here.
42906 2011-05-22  Bruno Haible  <bruno@clisp.org>
42908         strchrnul: Move AC_LIBOBJ invocations to module description.
42909         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
42910         gl_PREREQ_STRCHRNUL invocations from here...
42911         * modules/strchrnul (configure.ac): ... to here.
42913 2011-05-22  Bruno Haible  <bruno@clisp.org>
42915         strcasestr*: Move AC_LIBOBJ invocations to module description.
42916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
42917         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
42918         * modules/strcasestr-simple (configure.ac): ... to here.
42919         * modules/strcasestr (configure.ac): ... and here.
42921 2011-05-22  Bruno Haible  <bruno@clisp.org>
42923         strcase: Move AC_LIBOBJ invocations to module description.
42924         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
42925         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
42926         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
42927         gl_PREREQ_STRNCASECMP invocations from here...
42928         * modules/strcase (configure.ac): ... to here.
42930 2011-05-22  Bruno Haible  <bruno@clisp.org>
42932         stpncpy: Move AC_LIBOBJ invocations to module description.
42933         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
42934         here...
42935         * modules/stpncpy (configure.ac): ... to here.
42937 2011-05-22  Bruno Haible  <bruno@clisp.org>
42939         stpcpy: Move AC_LIBOBJ invocations to module description.
42940         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
42941         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
42942         here...
42943         * modules/stpcpy (configure.ac): ... to here.
42945 2011-05-21  Bruno Haible  <bruno@clisp.org>
42947         stat: Move AC_LIBOBJ invocations to module description.
42948         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
42949         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
42950         here...
42951         * modules/stat (configure.ac): ... to here.
42953 2011-05-21  Bruno Haible  <bruno@clisp.org>
42955         sleep: Move AC_LIBOBJ invocations to module description.
42956         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
42957         * modules/sleep (configure.ac): ... to here.
42959 2011-05-21  Bruno Haible  <bruno@clisp.org>
42961         signbit: Move AC_LIBOBJ invocations to module description.
42962         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
42963         * modules/signbit (configure.ac): ... to here.
42965 2011-05-21  Bruno Haible  <bruno@clisp.org>
42967         sigprocmask: Move AC_LIBOBJ invocations to module description.
42968         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
42969         gl_PREREQ_SIGPROMASK invocations from here...
42970         * modules/sigprocmask (configure.ac): ... to here.
42972 2011-05-21  Bruno Haible  <bruno@clisp.org>
42974         sigaction: Move AC_LIBOBJ invocations to module description.
42975         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
42976         gl_PREREQ_SIGACTION invocations from here...
42977         * modules/sigaction (configure.ac): ... to here.
42979 2011-05-21  Bruno Haible  <bruno@clisp.org>
42981         sig2str: Move AC_LIBOBJ invocations to module description.
42982         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
42983         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
42984         here...
42985         * modules/sig2str (configure.ac): ... to here.
42987 2011-05-21  Bruno Haible  <bruno@clisp.org>
42989         setlocale: Move AC_LIBOBJ invocations to module description.
42990         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
42991         gl_PREREQ_SETLOCALE invocations from here...
42992         * modules/setlocale (configure.ac): ... to here.
42994 2011-05-21  Bruno Haible  <bruno@clisp.org>
42996         unsetenv: Move AC_LIBOBJ invocations to module description.
42997         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
42998         and gl_PREREQ_UNSETENV invocations from here...
42999         * modules/unsetenv (configure.ac): ... to here.
43000         (Depends-on): Update.
43002 2011-05-21  Bruno Haible  <bruno@clisp.org>
43004         setenv: Move AC_LIBOBJ invocations to module description.
43005         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
43006         here...
43007         * modules/setenv (configure.ac): ... to here.
43009 2011-05-21  Bruno Haible  <bruno@clisp.org>
43011         selinux-h: Move AC_LIBOBJ invocations to module description.
43012         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
43013         AC_LIBOBJ invocation from here...
43014         * modules/selinux-h (configure.ac): ... to here.
43016 2011-05-21  Bruno Haible  <bruno@clisp.org>
43018         select: Respect rules for use of AC_LIBOBJ.
43019         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
43020         here...
43021         * modules/select (configure.ac): ... to here.
43023 2011-05-21  Bruno Haible  <bruno@clisp.org>
43025         scandir: Move AC_LIBOBJ invocations to module description.
43026         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
43027         invocations from here...
43028         * modules/scandir (configure.ac): ... to here.
43030 2011-05-21  Bruno Haible  <bruno@clisp.org>
43032         rpmatch: Move AC_LIBOBJ invocations to module description.
43033         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
43034         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
43035         here...
43036         * modules/rpmatch (configure.ac): ... to here.
43038 2011-05-21  Bruno Haible  <bruno@clisp.org>
43040         rmdir: Respect rules for use of AC_LIBOBJ.
43041         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
43042         * modules/rmdir (configure.ac): ... to here.
43044 2011-05-21  Bruno Haible  <bruno@clisp.org>
43046         renameat: Move AC_LIBOBJ invocations to module description.
43047         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
43048         here...
43049         * modules/renameat (configure.ac): ... to here.
43051 2011-05-21  Bruno Haible  <bruno@clisp.org>
43053         rename: Respect rules for use of AC_LIBOBJ.
43054         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
43055         here...
43056         * modules/rename (configure.ac): ... to here.
43058 2011-05-21  Bruno Haible  <bruno@clisp.org>
43060         remove: Move AC_LIBOBJ invocations to module description.
43061         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
43062         here...
43063         * modules/remove (configure.ac): ... to here.
43065 2011-05-21  Bruno Haible  <bruno@clisp.org>
43067         relocatable-lib: Move AC_LIBOBJ invocations to module description.
43068         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
43069         macro.
43070         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
43071         * modules/relocatable-lib (configure.ac): ... to here.
43072         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43073         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
43075 2011-05-21  Bruno Haible  <bruno@clisp.org>
43077         relocatable-prog: Move AC_LIBOBJ invocations to module description.
43078         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
43079         here...
43080         * modules/relocatable-prog (configure.ac): ... to here.
43082 2011-05-21  Bruno Haible  <bruno@clisp.org>
43084         regex: Move AC_LIBOBJ invocations to module description.
43085         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
43086         invocations from here...
43087         * modules/regex (configure.ac): ... to here.
43089 2011-05-21  Bruno Haible  <bruno@clisp.org>
43091         realloc-*: Move AC_LIBOBJ invocations to module description.
43092         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
43093         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
43094         AC_LIBOBJ invocations from here...
43095         * modules/realloc-gnu (configure.ac): ... to here.
43096         * modules/realloc-posix (configure.ac): ... and here.
43098 2011-05-21  Bruno Haible  <bruno@clisp.org>
43100         readutmp: Move AC_LIBOBJ invocations to module description.
43101         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
43102         * modules/readutmp (configure.ac): ... to here.
43104 2011-05-21  Bruno Haible  <bruno@clisp.org>
43106         readlinkat: Move AC_LIBOBJ invocations to module description.
43107         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
43108         here...
43109         * modules/readlinkat (configure.ac): ... to here.
43111 2011-05-21  Bruno Haible  <bruno@clisp.org>
43113         readlink: Move AC_LIBOBJ invocations to module description.
43114         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
43115         gl_PREREQ_READLINK invocations from here...
43116         * modules/readlink (configure.ac): ... to here.
43118 2011-05-21  Bruno Haible  <bruno@clisp.org>
43120         readline: Move AC_LIBOBJ invocations to module description.
43121         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
43122         gl_PREREQ_READLINE invocations from here...
43123         * modules/readline (configure.ac): ... to here.
43125 2011-05-21  Bruno Haible  <bruno@clisp.org>
43127         read: Move AC_LIBOBJ invocations to module description.
43128         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
43129         * modules/read (configure.ac): ... to here.
43131 2011-05-21  Bruno Haible  <bruno@clisp.org>
43133         rawmemchr: Move AC_LIBOBJ invocations to module description.
43134         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
43135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
43136         from here...
43137         * modules/rawmemchr (configure.ac): ... to here.
43139 2011-05-21  Bruno Haible  <bruno@clisp.org>
43141         random_r: Move AC_LIBOBJ invocations to module description.
43142         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
43143         gl_PREREQ_RANDOM_R invocations from here...
43144         * modules/random_r (configure.ac): ... to here.
43146 2011-05-21  Bruno Haible  <bruno@clisp.org>
43148         pwrite: Move AC_LIBOBJ invocations to module description.
43149         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
43150         * modules/pwrite (configure.ac): ... to here.
43152 2011-05-21  Bruno Haible  <bruno@clisp.org>
43154         putenv: Move AC_LIBOBJ invocations to module description.
43155         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
43156         * modules/putenv (configure.ac): ... to here.
43158 2011-05-21  Bruno Haible  <bruno@clisp.org>
43160         login_tty: Move AC_LIBOBJ invocations to module description.
43161         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
43162         * modules/login_tty (configure.ac): ... to here.
43164 2011-05-21  Bruno Haible  <bruno@clisp.org>
43166         openpty: Move AC_LIBOBJ invocations to module description.
43167         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
43168         * modules/openpty (configure.ac): ... to here.
43170 2011-05-21  Bruno Haible  <bruno@clisp.org>
43172         forkpty: Move AC_LIBOBJ invocations to module description.
43173         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
43174         * modules/forkpty (configure.ac): ... to here.
43176 2011-05-21  Bruno Haible  <bruno@clisp.org>
43178         ptsname: Move AC_LIBOBJ invocations to module description.
43179         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
43180         invocations from here...
43181         * modules/ptsname (configure.ac): ... to here.
43183 2011-05-21  Bruno Haible  <bruno@clisp.org>
43185         pread: Move AC_LIBOBJ invocations to module description.
43186         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
43187         * modules/pread (configure.ac): ... to here.
43189 2011-05-21  Bruno Haible  <bruno@clisp.org>
43191         posix_spawn*: Move AC_LIBOBJ invocations to module description.
43192         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
43193         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
43194         * modules/posix_spawn (configure.ac): ... to here.
43195         * modules/posix_spawnp (configure.ac): ... and here.
43197 2011-05-21  Bruno Haible  <bruno@clisp.org>
43199         popen: Move AC_LIBOBJ invocations to module description.
43200         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
43201         invocations from here...
43202         * modules/popen (configure.ac): ... to here.
43204 2011-05-21  Bruno Haible  <bruno@clisp.org>
43206         poll: Move AC_LIBOBJ invocations to module description.
43207         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
43208         invocations from here...
43209         * modules/poll (configure.ac): ... to here.
43211 2011-05-21  Bruno Haible  <bruno@clisp.org>
43213         pipe-posix: Move AC_LIBOBJ invocations to module description.
43214         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
43215         * modules/pipe-posix (configure.ac): ... to here.
43217 2011-05-21  Bruno Haible  <bruno@clisp.org>
43219         openat: Respect rules for use of AC_LIBOBJ.
43220         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
43221         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
43222         * modules/openat (configure.ac): ... to here.
43224 2011-05-21  Bruno Haible  <bruno@clisp.org>
43226         obstack-printf*: Move AC_LIBOBJ invocations to module description.
43227         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
43228         invocation from here...
43229         * modules/obstack-printf (configure.ac): ... to here.
43230         * modules/obstack-printf-posix (configure.ac): ... and here.
43232 2011-05-21  Bruno Haible  <bruno@clisp.org>
43234         nl_langinfo: Move AC_LIBOBJ invocations to module description.
43235         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
43236         from here...
43237         * modules/nl_langinfo (configure.ac): ... to here.
43239 2011-05-21  Bruno Haible  <bruno@clisp.org>
43241         nanosleep: Move AC_LIBOBJ invocations to module description.
43242         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
43243         gl_PREREQ_NANOSLEEP invocations from here...
43244         * modules/nanosleep (configure.ac): ... to here.
43246 2011-05-21  Bruno Haible  <bruno@clisp.org>
43248         mountlist: Move AC_LIBOBJ invocations to module description.
43249         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
43250         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
43251         * modules/mountlist (configure.ac): ... to here.
43253 2011-05-21  Bruno Haible  <bruno@clisp.org>
43255         mktime: Respect rules for use of AC_LIBOBJ.
43256         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
43257         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
43258         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
43259         (gl_FUNC_MKTIME_INTERNAL): ... and here...
43260         * modules/mktime (configure.ac): ... to here.
43261         * modules/mktime-internal (configure.ac): ... and here.
43262         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
43264 2011-05-21  Bruno Haible  <bruno@clisp.org>
43266         mkstemps: Move AC_LIBOBJ invocations to module description.
43267         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
43268         here...
43269         * modules/mkstemps (configure.ac): ... to here.
43271 2011-05-21  Bruno Haible  <bruno@clisp.org>
43273         mkstemp: Move AC_LIBOBJ invocations to module description.
43274         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
43275         gl_PREREQ_MKSTEMP invocations from here...
43276         * modules/mkstemp (configure.ac): ... to here.
43278 2011-05-21  Bruno Haible  <bruno@clisp.org>
43280         mkostemps: Move AC_LIBOBJ invocations to module description.
43281         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
43282         here...
43283         * modules/mkostemps (configure.ac): ... to here.
43285 2011-05-21  Bruno Haible  <bruno@clisp.org>
43287         mkostemp: Move AC_LIBOBJ invocations to module description.
43288         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
43289         gl_PREREQ_MKOSTEMP invocations from here...
43290         * modules/mkostemp (configure.ac): ... to here.
43292 2011-05-21  Bruno Haible  <bruno@clisp.org>
43294         mknod: Move AC_LIBOBJ invocations to module description.
43295         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
43296         * modules/mknod (configure.ac): ... to here.
43298 2011-05-21  Bruno Haible  <bruno@clisp.org>
43300         mkfifoat: Move AC_LIBOBJ invocations to module description.
43301         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
43302         here...
43303         * modules/mkfifoat (configure.ac): ... to here.
43305 2011-05-21  Bruno Haible  <bruno@clisp.org>
43307         mkfifo: Respect rules for use of AC_LIBOBJ.
43308         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
43309         here...
43310         * modules/mkfifo (configure.ac): ... to here.
43312 2011-05-21  Bruno Haible  <bruno@clisp.org>
43314         mkdtemp: Move AC_LIBOBJ invocations to module description.
43315         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
43316         invocations from here...
43317         * modules/mkdtemp (configure.ac): ... to here.
43319 2011-05-21  Bruno Haible  <bruno@clisp.org>
43321         mkdir: Move AC_LIBOBJ invocations to module description.
43322         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
43323         * modules/mkdir (configure.ac): ... to here.
43325 2011-05-21  Bruno Haible  <bruno@clisp.org>
43327         memset: Move AC_LIBOBJ invocations to module description.
43328         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
43329         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
43330         here...
43331         * modules/memset (configure.ac): ... to here.
43333 2011-05-21  Bruno Haible  <bruno@clisp.org>
43335         memrchr: Move AC_LIBOBJ invocations to module description.
43336         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
43337         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
43338         here...
43339         * modules/memrchr (configure.ac): ... to here.
43341 2011-05-21  Bruno Haible  <bruno@clisp.org>
43343         mempcpy: Move AC_LIBOBJ invocations to module description.
43344         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
43345         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
43346         here...
43347         * modules/mempcpy (configure.ac): ... to here.
43349 2011-05-21  Bruno Haible  <bruno@clisp.org>
43351         memmove: Move AC_LIBOBJ invocations to module description.
43352         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
43353         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
43354         here...
43355         * modules/memmove (configure.ac): ... to here.
43357 2011-05-21  Bruno Haible  <bruno@clisp.org>
43359         memmem*: Move AC_LIBOBJ invocations to module description.
43360         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
43361         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
43362         here...
43363         (gl_FUNC_MEMMEM): ... and here...
43364         * modules/memmem-simple (configure.ac): ... to here.
43365         * modules/memmem (configure.ac): ... and here.
43367 2011-05-21  Bruno Haible  <bruno@clisp.org>
43369         memcpy: Move AC_LIBOBJ invocations to module description.
43370         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
43371         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
43372         here...
43373         * modules/memcpy (configure.ac): ... to here.
43375 2011-05-21  Bruno Haible  <bruno@clisp.org>
43377         memcmp: Simplify autoconf macro.
43378         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
43379         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
43380         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
43382 2011-05-21  Bruno Haible  <bruno@clisp.org>
43384         memcmp: Move AC_LIBOBJ invocations to module description.
43385         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
43386         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
43387         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
43388         * modules/memcmp (configure.ac): ... to here.
43389         (Depends-on): Update conditions.
43391 2011-05-21  Bruno Haible  <bruno@clisp.org>
43393         memchr: Respect rules for use of AC_LIBOBJ.
43394         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
43395         invocations from here...
43396         * modules/memchr (configure.ac): ... to here.
43398 2011-05-21  Bruno Haible  <bruno@clisp.org>
43400         mbtowc: Move AC_LIBOBJ invocations to module description.
43401         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
43402         invocations from here...
43403         * modules/mbtowc (configure.ac): ... to here.
43405 2011-05-21  Bruno Haible  <bruno@clisp.org>
43407         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
43408         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
43409         gl_PREREQ_MBSRTOWCS invocations from here...
43410         * modules/mbsrtowcs (configure.ac): ... to here.
43412 2011-05-21  Bruno Haible  <bruno@clisp.org>
43414         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
43415         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
43416         gl_PREREQ_MBSNRTOWCS invocations from here...
43417         * modules/mbsnrtowcs (configure.ac): ... to here.
43419 2011-05-21  Bruno Haible  <bruno@clisp.org>
43421         mbsinit: Move AC_LIBOBJ invocations to module description.
43422         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
43423         invocations from here...
43424         * modules/mbsinit (configure.ac): ... to here.
43426 2011-05-21  Bruno Haible  <bruno@clisp.org>
43428         mbrlen: Move AC_LIBOBJ invocations to module description.
43429         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
43430         invocations from here...
43431         * modules/mbrlen (configure.ac): ... to here.
43433 2011-05-21  Bruno Haible  <bruno@clisp.org>
43435         mbrtowc: Respect rules for use of AC_LIBOBJ.
43436         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
43437         invocations from here...
43438         * modules/mbrtowc (configure.ac): ... to here.
43440 2011-05-21  Bruno Haible  <bruno@clisp.org>
43442         malloc-*: Move AC_LIBOBJ invocations to module description.
43443         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
43444         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
43445         AC_LIBOBJ invocations from here...
43446         * modules/malloc-gnu (configure.ac): ... to here.
43447         * modules/malloc-posix (configure.ac): ... and here.
43449 2011-05-21  Bruno Haible  <bruno@clisp.org>
43451         lstat, openat: Respect rules for use of AC_LIBOBJ.
43452         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
43453         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
43454         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
43455         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
43456         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
43457         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
43458         here.
43459         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
43461 2011-05-21  Bruno Haible  <bruno@clisp.org>
43463         lseek: Move AC_LIBOBJ invocations to module description.
43464         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
43465         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
43466         * modules/lseek (configure.ac): ... to here.
43468 2011-05-21  Bruno Haible  <bruno@clisp.org>
43470         linkat: Move AC_LIBOBJ invocations to module description.
43471         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
43472         here...
43473         * modules/linkat (configure.ac): ... to here.
43475 2011-05-21  Bruno Haible  <bruno@clisp.org>
43477         link: Respect rules for use of AC_LIBOBJ.
43478         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
43479         * modules/link (configure.ac): ... to here.
43481 2011-05-21  Bruno Haible  <bruno@clisp.org>
43483         lchown: Move AC_LIBOBJ invocations to module description.
43484         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
43485         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
43486         * modules/lchown (configure.ac): ... to here.
43488 2011-05-21  Bruno Haible  <bruno@clisp.org>
43490         iswctype: Move AC_LIBOBJ invocations to module description.
43491         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
43492         here...
43493         * modules/iswctype (configure.ac): ... to here.
43495 2011-05-21  Bruno Haible  <bruno@clisp.org>
43497         iswblank: Move AC_LIBOBJ invocations to module description.
43498         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
43499         here...
43500         * modules/iswblank (configure.ac): ... to here.
43502 2011-05-21  Bruno Haible  <bruno@clisp.org>
43504         atanl: Move AC_LIBOBJ invocations to module description.
43505         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
43506         * modules/atanl (configure.ac): ... to here.
43508 2011-05-21  Bruno Haible  <bruno@clisp.org>
43510         acosl: Move AC_LIBOBJ invocations to module description.
43511         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
43512         * modules/acosl (configure.ac): ... to here.
43514 2011-05-21  Bruno Haible  <bruno@clisp.org>
43516         asinl: Respect rules for use of AC_LIBOBJ.
43517         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
43518         * modules/asinl (configure.ac): ... to here.
43520 2011-05-21  Bruno Haible  <bruno@clisp.org>
43522         tanl: Move AC_LIBOBJ invocations to module description.
43523         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
43524         * modules/tanl (configure.ac): ... to here.
43526 2011-05-21  Bruno Haible  <bruno@clisp.org>
43528         cosl: Move AC_LIBOBJ invocations to module description.
43529         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
43530         * modules/cosl (configure.ac): ... to here.
43532 2011-05-21  Bruno Haible  <bruno@clisp.org>
43534         sinl: Move AC_LIBOBJ invocations to module description.
43535         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
43536         * modules/sinl (configure.ac): ... to here.
43538 2011-05-21  Bruno Haible  <bruno@clisp.org>
43540         logl: Move AC_LIBOBJ invocations to module description.
43541         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
43542         * modules/logl (configure.ac): ... to here.
43544 2011-05-21  Bruno Haible  <bruno@clisp.org>
43546         expl: Move AC_LIBOBJ invocations to module description.
43547         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
43548         * modules/expl (configure.ac): ... to here.
43550 2011-05-21  Bruno Haible  <bruno@clisp.org>
43552         roundl: Move AC_LIBOBJ invocations to module description.
43553         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
43554         * modules/roundl (configure.ac): ... to here.
43556 2011-05-21  Bruno Haible  <bruno@clisp.org>
43558         round: Move AC_LIBOBJ invocations to module description.
43559         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
43560         * modules/round (configure.ac): ... to here.
43562 2011-05-21  Bruno Haible  <bruno@clisp.org>
43564         roundf: Move AC_LIBOBJ invocations to module description.
43565         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
43566         * modules/roundf (configure.ac): ... to here.
43568 2011-05-21  Bruno Haible  <bruno@clisp.org>
43570         truncl: Move AC_LIBOBJ invocations to module description.
43571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
43572         * modules/truncl (configure.ac): ... to here.
43574 2011-05-21  Bruno Haible  <bruno@clisp.org>
43576         trunc: Move AC_LIBOBJ invocations to module description.
43577         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
43578         * modules/trunc (configure.ac): ... to here.
43580 2011-05-21  Bruno Haible  <bruno@clisp.org>
43582         truncf: Move AC_LIBOBJ invocations to module description.
43583         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
43584         * modules/truncf (configure.ac): ... to here.
43586 2011-05-21  Bruno Haible  <bruno@clisp.org>
43588         ceill: Move AC_LIBOBJ invocations to module description.
43589         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
43590         * modules/ceill (configure.ac): ... to here.
43592 2011-05-21  Bruno Haible  <bruno@clisp.org>
43594         ceil: Move AC_LIBOBJ invocations to module description.
43595         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
43596         * modules/ceil (configure.ac): ... to here.
43598 2011-05-21  Bruno Haible  <bruno@clisp.org>
43600         ceilf: Move AC_LIBOBJ invocations to module description.
43601         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
43602         * modules/ceilf (configure.ac): ... to here.
43604 2011-05-21  Bruno Haible  <bruno@clisp.org>
43606         floorl: Respect rules for use of AC_LIBOBJ.
43607         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
43608         * modules/floorl (configure.ac): ... to here.
43610 2011-05-21  Bruno Haible  <bruno@clisp.org>
43612         floor: Respect rules for use of AC_LIBOBJ.
43613         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
43614         * modules/floor (configure.ac): ... to here.
43616 2011-05-21  Bruno Haible  <bruno@clisp.org>
43618         floorf: Move AC_LIBOBJ invocations to module description.
43619         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
43620         * modules/floorf (configure.ac): ... to here.
43622 2011-05-20  Bruno Haible  <bruno@clisp.org>
43624         sqrtl: Respect rules for use of AC_LIBOBJ.
43625         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
43626         * modules/sqrtl (configure.ac): ... to here.
43628 2011-05-20  Bruno Haible  <bruno@clisp.org>
43630         ldexpl: Respect rules for use of AC_LIBOBJ.
43631         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
43632         * modules/ldexpl (configure.ac): ... to here.
43634 2011-05-20  Bruno Haible  <bruno@clisp.org>
43636         frexpl*: Respect rules for use of AC_LIBOBJ.
43637         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
43638         invocation from here...
43639         * modules/frexpl (configure.ac): ... to here.
43640         * modules/frexpl-nolibm (configure.ac): ... and here.
43642 2011-05-20  Bruno Haible  <bruno@clisp.org>
43644         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
43645         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
43646         invocation from here...
43647         * modules/frexp (configure.ac): ... to here.
43648         * modules/frexp-nolibm (configure.ac): ... and here.
43650 2011-05-20  Bruno Haible  <bruno@clisp.org>
43652         isnan: Respect rules for use of AC_LIBOBJ.
43653         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
43654         invocations here.
43655         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
43656         REPLACE_ISNAN.
43657         * modules/isnand (configure.ac): Likewise.
43658         * modules/isnanl (configure.ac): Likewise.
43660 2011-05-20  Bruno Haible  <bruno@clisp.org>
43662         isnanl*: Respect rules for use of AC_LIBOBJ.
43663         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
43664         invocation from here...
43665         * modules/isnanl (configure.ac): ... to here.
43666         * modules/isnanl-nolibm (configure.ac): ... and here.
43668 2011-05-20  Bruno Haible  <bruno@clisp.org>
43670         isnand*: Move AC_LIBOBJ invocations to module description.
43671         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
43672         invocation from here...
43673         * modules/isnand (configure.ac): ... to here.
43674         * modules/isnand-nolibm (configure.ac): ... and here.
43676 2011-05-20  Bruno Haible  <bruno@clisp.org>
43678         isnanf*: Move AC_LIBOBJ invocations to module description.
43679         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
43680         invocation from here...
43681         * modules/isnanf (configure.ac): ... to here.
43682         * modules/isnanf-nolibm (configure.ac): ... and here.
43684 2011-05-20  Bruno Haible  <bruno@clisp.org>
43686         isnan*: Separate the AC_LIBOBJ invocations.
43687         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
43688         AC_LIBOBJ invocation.
43689         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
43690         here.
43691         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
43692         AC_LIBOBJ invocation.
43693         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
43694         here.
43695         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
43696         AC_LIBOBJ invocation.
43697         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
43698         here.
43699         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
43701 2011-05-08  Bruno Haible  <bruno@clisp.org>
43703         isinf: Move AC_LIBOBJ invocations to module description.
43704         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
43705         * modules/isinf (configure.ac): ... to here.
43707 2011-05-08  Bruno Haible  <bruno@clisp.org>
43709         isfinite: Move AC_LIBOBJ invocations to module description.
43710         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
43711         * modules/isfinite (configure.ac): ... to here.
43713 2011-05-08  Bruno Haible  <bruno@clisp.org>
43715         isblank: Move AC_LIBOBJ invocations to module description.
43716         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
43717         here...
43718         * modules/isblank (configure.ac): ... to here.
43720 2011-05-08  Bruno Haible  <bruno@clisp.org>
43722         isapipe: Move AC_LIBOBJ invocations to module description.
43723         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
43724         gl_PREREQ_ISAPIPE invocations from here...
43725         * modules/isapipe (configure.ac): ... to here.
43726         (Depends-on): Update condition.
43728 2011-05-08  Bruno Haible  <bruno@clisp.org>
43730         ioctl: Move AC_LIBOBJ invocations to module description.
43731         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
43732         invocations from here...
43733         * modules/ioctl (configure.ac): ... to here.
43734         (Depends-on): Update condition.
43736 2011-05-08  Bruno Haible  <bruno@clisp.org>
43738         imaxdiv: Move AC_LIBOBJ invocations to module description.
43739         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
43740         invocations from here...
43741         * modules/imaxdiv (configure.ac): ... to here.
43743 2011-05-08  Bruno Haible  <bruno@clisp.org>
43745         imaxabs: Move AC_LIBOBJ invocations to module description.
43746         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
43747         invocations from here...
43748         * modules/imaxabs (configure.ac): ... to here.
43750 2011-05-08  Bruno Haible  <bruno@clisp.org>
43752         getaddrinfo: Move AC_LIBOBJ invocations to module description.
43753         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
43754         AC_LIBOBJ invocations from here...
43755         * modules/getaddrinfo (configure.ac): ... to here.
43756         (Depends-on): Add conditions.
43758 2011-05-08  Bruno Haible  <bruno@clisp.org>
43760         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
43761         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
43762         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
43763         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
43764         (gl_PREREQ_INET_PTON): ... from here.
43765         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
43766         gl_PREREQ_INET_PTON here.
43767         (Depends-on): Update condition.
43769 2011-05-08  Bruno Haible  <bruno@clisp.org>
43771         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
43772         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
43773         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
43774         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
43775         (gl_PREREQ_INET_NTOP): ... from here.
43776         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
43777         gl_PREREQ_INET_NTOP here.
43778         (Depends-on): Update condition.
43780 2011-05-08  Bruno Haible  <bruno@clisp.org>
43782         iconv_open: Move AC_LIBOBJ invocations to module description.
43783         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
43784         AC_LIBOBJ invocations from here...
43785         * modules/iconv_open (configure.ac): ... to here.
43787 2011-05-08  Bruno Haible  <bruno@clisp.org>
43789         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
43790         If module 'iconv_open' is among the main modules and module
43791         'iconv_open-utf' is among the tests dependencies, then
43792         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
43793         return the special iconv_t values. Therefore iconv() and iconv_close()
43794         must support these special iconv_t values, already in lib, not only in
43795         tests.
43796         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
43797         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
43798         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
43799         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
43800         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
43801         (Depends-on): Add the dependencies of iconv_open-utf.
43802         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
43803         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
43804         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
43806 2011-05-08  Bruno Haible  <bruno@clisp.org>
43808         group-member: Move AC_LIBOBJ invocations to module description.
43809         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
43810         gl_PREREQ_GROUP_MEMBER invocations from here...
43811         * modules/group-member (configure.ac): ... to here.
43813 2011-05-08  Bruno Haible  <bruno@clisp.org>
43815         grantpt: Move AC_LIBOBJ invocations to module description.
43816         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
43817         invocations from here...
43818         * modules/grantpt (configure.ac): ... to here.
43820 2011-05-08  Bruno Haible  <bruno@clisp.org>
43822         glob: Move AC_LIBOBJ invocations to module description.
43823         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
43824         from here...
43825         * modules/glob (configure.ac): ... to here.
43827 2011-05-08  Bruno Haible  <bruno@clisp.org>
43829         getusershell: Move AC_LIBOBJ invocations to module description.
43830         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
43831         Move AC_LIBOBJ invocation from here...
43832         * modules/getusershell (configure.ac): ... to here.
43833         (Depends-on): Update condition.
43835 2011-05-08  Bruno Haible  <bruno@clisp.org>
43837         gettimeofday: Move AC_LIBOBJ invocations to module description.
43838         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
43839         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
43840         gl_PREREQ_GETTIMEOFDAY invocations from here...
43841         * modules/gettimeofday (configure.ac): ... to here.
43843 2011-05-08  Bruno Haible  <bruno@clisp.org>
43845         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
43846         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
43847         just gl_FUNC_TZSET.
43848         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
43849         (gl_FUNC_TZSET_CLOBBER): Remove actions.
43850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
43851         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
43853 2011-05-08  Bruno Haible  <bruno@clisp.org>
43855         getsubopt: Move AC_LIBOBJ invocations to module description.
43856         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
43857         gl_PREREQ_GETSUBOPT invocations from here...
43858         * modules/getsubopt (configure.ac): ... to here.
43860 2011-05-08  Bruno Haible  <bruno@clisp.org>
43862         getpass-gnu: Move AC_LIBOBJ invocations to module description.
43863         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
43864         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
43865         * modules/getpass-gnu (configure.ac): ... to here.
43867 2011-05-08  Bruno Haible  <bruno@clisp.org>
43869         getpass: Move AC_LIBOBJ invocations to module description.
43870         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
43871         gl_PREREQ_GETPASS invocations from here...
43872         * modules/getpass (configure.ac): ... to here.
43874 2011-05-08  Bruno Haible  <bruno@clisp.org>
43876         getpagesize: Move AC_LIBOBJ invocations to module description.
43877         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
43878         from here...
43879         * modules/getpagesize (configure.ac): ... to here.
43881 2011-05-08  Bruno Haible  <bruno@clisp.org>
43883         getopt: Move AC_LIBOBJ invocations to module description.
43884         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
43885         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
43886         invocations from here...
43887         * modules/getopt-gnu (configure.ac): ... to here.
43888         * modules/getopt-posix (configure.ac): ... and here.
43889         (Depends-on): Update condition.
43891 2011-05-08  Bruno Haible  <bruno@clisp.org>
43893         getopt, argp: Respect rules for use of AC_LIBOBJ.
43894         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
43895         (gl_REPLACE_GETOPT_ALWAYS): New macro.
43896         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
43897         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
43899 2011-05-08  Bruno Haible  <bruno@clisp.org>
43901         getlogin_r: Move AC_LIBOBJ invocations to module description.
43902         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
43903         gl_PREREQ_GETLOGIN_R invocations from here...
43904         * modules/getlogin_r (configure.ac): ... to here.
43906 2011-05-08  Bruno Haible  <bruno@clisp.org>
43908         getlogin: Move AC_LIBOBJ invocations to module description.
43909         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
43910         here...
43911         * modules/getlogin (configure.ac): ... to here.
43913 2011-05-08  Bruno Haible  <bruno@clisp.org>
43915         getloadavg: Move AC_LIBOBJ invocations to module description.
43916         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
43917         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
43918         * modules/getloadavg (configure.ac): ... to here.
43920 2011-05-08  Bruno Haible  <bruno@clisp.org>
43922         gethrxtime: Move AC_LIBOBJ invocations to module description.
43923         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
43924         LIB_GETHRXTIME from here...
43925         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
43926         invocations from here...
43927         * modules/gethrxtime (configure.ac): ... to here.
43929 2011-05-08  Bruno Haible  <bruno@clisp.org>
43931         gethostname: Move AC_LIBOBJ invocations to module description.
43932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
43933         gl_PREREQ_GETHOSTNAME invocations from here...
43934         * modules/gethostname (configure.ac): ... to here.
43936 2011-05-08  Bruno Haible  <bruno@clisp.org>
43938         getgroups: Move AC_LIBOBJ invocations to module description.
43939         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
43940         here...
43941         * modules/getgroups (configure.ac): ... to here.
43943 2011-05-08  Bruno Haible  <bruno@clisp.org>
43945         getdtablesize: Move AC_LIBOBJ invocations to module description.
43946         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
43947         invocation from here...
43948         * modules/getdtablesize (configure.ac): ... to here.
43950 2011-05-08  Bruno Haible  <bruno@clisp.org>
43952         getdomainname: Move AC_LIBOBJ invocations to module description.
43953         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
43954         gl_PREREQ_GETDOMAINNAME invocations from here...
43955         * modules/getdomainname (configure.ac): ... to here.
43957 2011-05-08  Bruno Haible  <bruno@clisp.org>
43959         getline: Move AC_LIBOBJ invocations to module description.
43960         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
43961         invocations from here...
43962         * modules/getline (configure.ac): ... to here.
43964 2011-05-08  Bruno Haible  <bruno@clisp.org>
43966         getline: Simplify.
43967         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
43968         It's already handled through the module dependency.
43970 2011-05-08  Bruno Haible  <bruno@clisp.org>
43972         getdelim: Move AC_LIBOBJ invocations to module description.
43973         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
43974         and gl_PREREQ_GETDELIM invocations from here...
43975         * modules/getdelim (configure.ac): ... to here.
43976         (Depends-on): Fix condition.
43978 2011-05-08  Bruno Haible  <bruno@clisp.org>
43980         getcwd: Move AC_LIBOBJ invocations to module description.
43981         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
43982         invocations from here...
43983         * modules/getcwd (configure.ac): ... to here.
43985 2011-05-08  Bruno Haible  <bruno@clisp.org>
43987         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
43988         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
43989         here...
43990         * modules/getcwd-lgpl (configure.ac): ... to here.
43992 2011-05-07  Bruno Haible  <bruno@clisp.org>
43994         crypto/gc: Move AC_LIBOBJ invocations to module description.
43995         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
43996         * modules/crypto/gc (configure.ac): ... to here.
43998 2011-05-07  Bruno Haible  <bruno@clisp.org>
44000         fwriting: Move AC_LIBOBJ invocations to module description.
44001         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
44002         here...
44003         * modules/fwriting (configure.ac): ... to here.
44005 2011-05-07  Bruno Haible  <bruno@clisp.org>
44007         fwritable: Move AC_LIBOBJ invocations to module description.
44008         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
44009         here...
44010         * modules/fwritable (configure.ac): ... to here.
44012 2011-05-07  Bruno Haible  <bruno@clisp.org>
44014         futimens: Move AC_LIBOBJ invocations to module description.
44015         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
44016         here...
44017         * modules/futimens (configure.ac): ... to here.
44019 2011-05-07  Bruno Haible  <bruno@clisp.org>
44021         ftruncate: Move AC_LIBOBJ invocations to module description.
44022         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
44023         gl_PREREQ_FTRUNCATE invocations from here...
44024         * modules/ftruncate (configure.ac): ... to here.
44026 2011-05-07  Bruno Haible  <bruno@clisp.org>
44028         fsync: Move AC_LIBOBJ invocations to module description.
44029         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
44030         invocations from here...
44031         * modules/fsync (configure.ac): ... to here.
44033 2011-05-07  Bruno Haible  <bruno@clisp.org>
44035         fsusage: Move AC_LIBOBJ invocations to module description.
44036         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
44037         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
44038         * modules/fsusage (configure.ac): ... to here.
44040 2011-05-07  Bruno Haible  <bruno@clisp.org>
44042         freopen: Move AC_LIBOBJ invocations to module description.
44043         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
44044         invocations from here...
44045         * modules/freopen (configure.ac): ... to here.
44047 2011-05-07  Bruno Haible  <bruno@clisp.org>
44049         free: Move AC_LIBOBJ invocations to module description.
44050         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
44051         invocations from here...
44052         * modules/free (configure.ac): ... to here.
44054 2011-05-07  Bruno Haible  <bruno@clisp.org>
44056         freadable: Move AC_LIBOBJ invocations to module description.
44057         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
44058         here...
44059         * modules/freadable (configure.ac): ... to here.
44061 2011-05-07  Bruno Haible  <bruno@clisp.org>
44063         fpurge: Move AC_LIBOBJ invocations to module description.
44064         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
44065         invocations from here...
44066         * modules/fpurge (configure.ac): ... to here.
44068 2011-05-07  Bruno Haible  <bruno@clisp.org>
44070         fpending: Move AC_LIBOBJ invocations to module description.
44071         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
44072         gl_FUNC_FPENDING.
44073         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
44074         invocations from here...
44075         * modules/fpending (configure.ac): ... to here.
44077 2011-05-07  Bruno Haible  <bruno@clisp.org>
44079         fopen: Move AC_LIBOBJ invocations to module description.
44080         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
44081         invocations from here...
44082         * modules/fopen (configure.ac): ... to here.
44084 2011-05-07  Bruno Haible  <bruno@clisp.org>
44086         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
44087         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
44088         gl_FUNC_FNMATCH_POSIX.
44089         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
44090         invocations from here...
44091         * modules/fnmatch (configure.ac): ... to here.
44092         * modules/fnmatch-gnu (configure.ac): ... and here.
44094 2011-05-07  Bruno Haible  <bruno@clisp.org>
44096         flock: Move AC_LIBOBJ invocations to module description.
44097         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
44098         invocations from here...
44099         * modules/flock (configure.ac): ... to here.
44101 2011-05-07  Bruno Haible  <bruno@clisp.org>
44103         fileblocks: Move AC_LIBOBJ invocations to module description.
44104         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
44105         gl_PREREQ_FILEBLOCKS invocations from here...
44106         * modules/fileblocks (configure.ac): ... to here.
44108 2011-05-06  Bruno Haible  <bruno@clisp.org>
44110         fflush: Move AC_LIBOBJ invocations to module description.
44111         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
44112         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
44113         invocations from here...
44114         * modules/fflush (configure.ac): ... to here.
44116 2011-05-06  Bruno Haible  <bruno@clisp.org>
44118         fdopendir: Move AC_LIBOBJ invocations to module description.
44119         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
44120         here...
44121         * modules/fdopendir (configure.ac): ... to here.
44122         (Depends-on): Improve conditions.
44124 2011-05-06  Bruno Haible  <bruno@clisp.org>
44126         _Exit: Move AC_LIBOBJ invocations to module description.
44127         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
44128         invocations from here...
44129         * modules/_Exit (configure.ac): ... to here.
44131 2011-05-21  Bruno Haible  <bruno@clisp.org>
44133         euidaccess: Respect rules for use of AC_LIBOBJ.
44134         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
44135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
44136         from here...
44137         * modules/euidaccess (configure.ac): ... to here.
44139 2011-05-06  Bruno Haible  <bruno@clisp.org>
44141         error: Move AC_LIBOBJ invocations to module description.
44142         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
44143         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
44144         invocations from here...
44145         * modules/error (configure.ac): ... to here.
44147 2011-05-06  Bruno Haible  <bruno@clisp.org>
44149         duplocale: Move AC_LIBOBJ invocations to module description.
44150         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
44151         gl_PREREQ_DUPLOCALE invocations from here...
44152         * modules/duplocale (configure.ac): ... to here.
44154 2011-05-05  Bruno Haible  <bruno@clisp.org>
44156         dirfd: Move AC_LIBOBJ invocations to module description.
44157         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
44158         gl_FUNC_DIRFD.
44159         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
44160         here...
44161         * modules/dirfd (configure.ac): ... to here.
44162         (Depends-on): Fix condition.
44164 2011-05-05  Bruno Haible  <bruno@clisp.org>
44166         chown: Respect rules for use of AC_LIBOBJ.
44167         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
44168         * modules/chown (configure.ac): ... to here.
44170 2011-05-05  Bruno Haible  <bruno@clisp.org>
44172         chdir-long: Move AC_LIBOBJ invocations to module description.
44173         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
44174         gl_PREREQ_CHDIR_LONG invocations from here...
44175         * modules/chdir-long (configure.ac): ... to here.
44177 2011-05-05  Bruno Haible  <bruno@clisp.org>
44179         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
44180         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
44181         from here...
44182         * modules/canonicalize-lgpl (configure.ac): ... to here.
44184 2011-05-05  Bruno Haible  <bruno@clisp.org>
44186         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
44187         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
44188         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
44189         REPLACE_CALLOC.
44190         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
44191         * modules/calloc-gnu (configure.ac): Likewise.
44193 2011-05-05  Bruno Haible  <bruno@clisp.org>
44195         btowc: Move AC_LIBOBJ invocations to module description.
44196         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
44197         invocations from here...
44198         * modules/btowc (configure.ac): ... to here.
44200 2011-05-21  Bruno Haible  <bruno@clisp.org>
44202         atexit: Move AC_LIBOBJ invocations to module description.
44203         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
44204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
44205         here...
44206         * modules/atexit (configure.ac): ... to here.
44208 2011-05-05  Bruno Haible  <bruno@clisp.org>
44210         atoll: Move AC_LIBOBJ invocations to module description.
44211         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
44212         invocations from here...
44213         * modules/atoll (configure.ac): ... to here.
44215 2011-05-05  Bruno Haible  <bruno@clisp.org>
44217         argz: Move AC_LIBOBJ invocations to module description.
44218         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
44219         * modules/argz (configure.ac): ... to here.
44221 2011-05-05  Bruno Haible  <bruno@clisp.org>
44223         alphasort: Move AC_LIBOBJ invocations to module description.
44224         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
44225         gl_PREREQ_ALPHASORT invocations from here...
44226         * modules/alphasort (configure.ac): ... to here.
44228 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
44230         verify: new macro verify_expr; verify_true deprecated
44231         * NEWS: Mention this.
44232         * doc/verify.texi (Compile-time Assertions): Document this.
44233         * lib/verify.h (verify_true): Deprecate.
44234         (verify_expr): New macro.
44235         * tests/test-verify.c (function): Test verify_expr.
44237 2011-06-14  Jim Meyering  <meyering@redhat.com>
44239         init.sh: give more portable redirection-related advice in a comment
44240         * tests/init.sh (stderr_fileno_): Update the advice in comments.
44241         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
44242         for lots of discussion.  Stefano Lattarini suggested the solution
44243         of putting "9>&2" after the command.  Reported by Bruno Haible.
44245 2011-06-13  Bruno Haible  <bruno@clisp.org>
44247         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
44248         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
44249         'none'.
44251 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
44253         ftoastr: use strtof only if HAVE_STRTOF
44254         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
44255         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
44256         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
44257         * modules/ftoastr (configure.ac): Check for strtof.
44259 2011-06-13  Bruno Haible  <bruno@clisp.org>
44261         gnulib-tool: Addendum to 2011-06-08 commit.
44262         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
44263         and --witness-c-macro have been given, augment AM_CPPFLAGS.
44265 2011-06-13  Bruno Haible  <bruno@clisp.org>
44267         fseeko: Provide a non-inline replacement of fseek().
44268         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
44269         * modules/fseeko (Depends-on): Add fseek.
44270         * modules/fseek (License): Change to LGPLv2+.
44272 2011-06-13  Bruno Haible  <bruno@clisp.org>
44274         ftello: Provide a non-inline replacement of ftell().
44275         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
44276         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
44277         not have ftello() (such as on mingw).
44278         * modules/ftello (Depends-on): Add ftell.
44279         * modules/ftell (License): Change to LGPLv2+.
44281 2011-05-07  Bruno Haible  <bruno@clisp.org>
44283         ftell: Move AC_LIBOBJ invocations to module description.
44284         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
44285         * modules/ftell (configure.ac): ... to here.
44287 2011-05-07  Bruno Haible  <bruno@clisp.org>
44289         ftello: Respect rules for use of AC_LIBOBJ.
44290         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
44291         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
44292         here...
44293         * modules/ftello (configure.ac): ... to here.
44295 2011-05-07  Bruno Haible  <bruno@clisp.org>
44297         fseeko: Simplify.
44298         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
44299         (gl_FUNC_FSEEKO): Inline it here.
44301 2011-05-07  Bruno Haible  <bruno@clisp.org>
44303         fseek: Move AC_LIBOBJ invocations to module description.
44304         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
44305         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
44306         * modules/fseek (configure.ac): ... to here.
44308 2011-05-07  Bruno Haible  <bruno@clisp.org>
44310         fseek: Respect rules for use of AC_LIBOBJ.
44311         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
44312         here...
44313         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
44315 2011-05-07  Bruno Haible  <bruno@clisp.org>
44317         fseeko: Respect rules for use of AC_LIBOBJ.
44318         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
44319         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
44320         here...
44321         * modules/fseeko (configure.ac): ... to here.
44323 2011-06-13  Bruno Haible  <bruno@clisp.org>
44325         gnulib-tool: Allow comments in the 'Depends-on' section.
44326         * doc/gnulib.texi (Module description): Mention comment syntax in the
44327         Depends-on section.
44328         * gnulib-tool (func_get_dependencies): Filter out comment lines.
44330 2011-06-13  Bruno Haible  <bruno@clisp.org>
44332         file-set.h: guard __attibute__ use, now that it's not always defined
44333         * lib/file-set.h (record_file): Use __attribute__ only with compiler
44334         versions that support it.  This fixes a coreutils build failure with
44335         the vendor cc on HP-UX 11.31.
44337 2011-06-12  Bruno Haible  <bruno@clisp.org>
44339         acl: Add support for HP-UX >= 11.11 JFS ACLs.
44340         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
44341         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
44342         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
44343         (acl, aclsort): New declarations.
44344         (aclv_nontrivial): New declaration.
44345         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
44346         (file_has_acl): Read also the second kind of HP-UX ACLs.
44347         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
44348         kind of HP-UX ACLs if the first kind fails.
44349         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
44350         second kind of HP-UX ACLs.
44351         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
44352         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
44353         agree.
44354         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
44355         hpuxjfs.
44356         Handle hpuxjfs.
44357         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
44358         hpuxjfs.
44359         Handle hpuxjfs.
44360         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
44361         (func_test_same_acls): Use both lsacl and getacl.
44362         Handle hpuxjfs.
44363         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
44364         (func_test_same_acls): Use both lsacl and getacl.
44365         Handle hpuxjfs.
44367 2011-06-12  Bruno Haible  <bruno@clisp.org>
44369         acl: Complete the 2010-08-10 fix.
44370         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
44371         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
44372         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
44373         explicitly.
44374         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
44375         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
44377 2011-06-12  Bruno Haible  <bruno@clisp.org>
44379         spawn-pipe tests: Comments.
44380         * tests/test-spawn-pipe-child.c (main): Update comment.
44381         Reported by James Youngman <jay@gnu.org>.
44383 2011-06-11  James Youngman  <jay@gnu.org>
44385         New module 'stat-size'.
44386         * modules/stat-size: New module.  Provides macros for accessing
44387         file size information in instances of struct stat.  Depends on the
44388         fileblocks module because it calls st_blocks.
44389         * lib/stat-size.h: New file, adapted from coreutils' system.h.
44390         * doc/gnulib.texi: Include stat-size.texi.
44391         * doc/stat-size.texi: Documentation for this module.
44392         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
44393         * m4/fileblocks.m4: Mention that stat-size depends on the call to
44394         AC_STRUCT_ST_BLOCKS.
44396 2011-06-09  Bruno Haible  <bruno@clisp.org>
44398         thread: Support pthreads-win32.
44399         * lib/glthread/thread.h (gl_thread_self): Define differently on
44400         pthreads-win32.
44401         (gl_null_thread): New declaration.
44402         (gl_thread_self_pointer): New macro.
44403         * lib/glthread/thread.c (gl_null_thread): New constant.
44404         * tests/test-lock.c: Use gl_thread_self_pointer instead of
44405         gl_thread_self.
44406         * tests/test-tls.c: Likewise.
44407         Suggested by Paul Eggert. Reported by Eric Blake.
44409 2011-06-09  Bruno Haible  <bruno@clisp.org>
44411         thread: Fix confusion between NULL and 0.
44412         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
44413         Reported by Paul Eggert.
44415 2011-06-09  Bruno Haible  <bruno@clisp.org>
44417         spawn-pipe tests: Avoid test failure on HP-UX 11.
44418         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
44419         is closed.
44421 2011-06-09  Bruno Haible  <bruno@clisp.org>
44423         acl tests: Fix compilation error on HP-UX 11.
44424         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
44426 2011-06-09  Bruno Haible  <bruno@clisp.org>
44428         rmdir: Avoid test failure on HP-UX 10.20.
44429         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
44430         EEXIST.
44432 2011-06-08  Eric Blake  <eblake@redhat.com>
44434         perror: fix test on mingw
44435         * modules/perror-tests (Depends-on): Add dup2.
44437         strerror_r-posix: fix on MacOS
44438         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
44439         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
44440         logic bug.
44441         * lib/strerror_r.c (strerror_r): Fix the bug.
44442         * lib/strerror.c (strerror): Likewise.
44443         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
44444         problem.
44445         * doc/posix-functions/strerror.texi (strerror): Likewise.
44446         * doc/posix-functions/perror.texi (perror): Likewise.
44447         * tests/test-strerror.c (main): Enhance test.
44448         * tests/test-strerror_r.c (main): Likewise.
44450 2011-06-08  Bruno Haible  <bruno@clisp.org>
44452         gnulib-tool: Better isolation between different gnulib-tool invocations.
44453         * gnulib-tool: New option --witness-c-macro.
44454         (witness_c_macro): New variable.
44455         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
44456         AM_CPPFLAGS define it as a C macro.
44457         (func_emit_tests_Makefile_am): Likewise.
44458         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
44459         read it from there.
44460         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
44461         m4_define, not AC_DEFUN.
44462         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
44463         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
44464         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
44465         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
44466         s|...|...|, to substitute the values of the GNULIB_* module indicator
44467         variables.
44468         * modules/dirent (Makefile.am): Likewise.
44469         * modules/fcntl-h (Makefile.am): Likewise.
44470         * modules/iconv-h (Makefile.am): Likewise.
44471         * modules/langinfo (Makefile.am): Likewise.
44472         * modules/locale (Makefile.am): Likewise.
44473         * modules/math (Makefile.am): Likewise.
44474         * modules/netdb (Makefile.am): Likewise.
44475         * modules/poll-h (Makefile.am): Likewise.
44476         * modules/pty (Makefile.am): Likewise.
44477         * modules/search (Makefile.am): Likewise.
44478         * modules/signal (Makefile.am): Likewise.
44479         * modules/spawn (Makefile.am): Likewise.
44480         * modules/stdio (Makefile.am): Likewise.
44481         * modules/stdlib (Makefile.am): Likewise.
44482         * modules/string (Makefile.am): Likewise.
44483         * modules/sys_ioctl (Makefile.am): Likewise.
44484         * modules/sys_select (Makefile.am): Likewise.
44485         * modules/sys_socket (Makefile.am): Likewise.
44486         * modules/sys_stat (Makefile.am): Likewise.
44487         * modules/sys_times (Makefile.am): Likewise.
44488         * modules/sys_utsname (Makefile.am): Likewise.
44489         * modules/sys_wait (Makefile.am): Likewise.
44490         * modules/termios (Makefile.am): Likewise.
44491         * modules/time (Makefile.am): Likewise.
44492         * modules/unistd (Makefile.am): Likewise.
44493         * modules/wchar (Makefile.am): Likewise.
44495 2011-06-08  Eric Blake  <eblake@redhat.com>
44497         strerror: simplify replacement
44498         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
44499         * modules/strerror (configure.ac): No prereqs needed here...
44500         * modules/strerror-override (configure.ac): ...but this needs it.
44501         (Files): Add file for needed prereq macro.
44503 2011-06-08  Bruno Haible  <bruno@clisp.org>
44505         strerror_r-posix: Tweaks.
44506         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
44507         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
44508         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
44509         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
44510         (gl_FUNC_STRERROR_R): ... to here.
44511         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
44513 2011-06-07  Eric Blake  <eblake@redhat.com>
44515         perror: document fixed bugs
44516         * doc/posix-functions/perror.texi (perror): Document recent
44517         patches.
44519 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
44521         stat-time: get_stat_birthtime failure is better-defined
44522         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
44523         return a timestamp whose tv_sec and tv_nsec values are both -1.
44524         Previously, the spec said only that the tv_nsec value was negative.
44525         This upward-compatible change simplifies GNU tar a bit.
44527 2011-06-07  Eric Blake  <eblake@redhat.com>
44529         strerror_r-posix: work around cygwin 1.7.9
44530         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
44531         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
44532         bug without replacing strerror_r.
44533         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
44534         strerror_r is buggy, but without requiring strerror_r compilation.
44535         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
44537         test-perror: relax test to ignore cygwin bug
44538         * tests/test-perror2.c (main): Relax test on requiring detection
44539         of stream errors, and use unbuffered stream.
44540         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
44541         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
44542         * doc/posix-functions/fputc.texi (fputc): Likewise.
44543         * doc/posix-functions/fputs.texi (fputs): Likewise.
44544         * doc/posix-functions/fputws.texi (fputws): Likewise.
44545         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
44546         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
44547         * doc/posix-functions/getopt.texi (getopt): Likewise.
44548         * doc/posix-functions/perror.texi (perror): Likewise.
44549         * doc/posix-functions/printf.texi (printf): Likewise.
44550         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
44551         * doc/posix-functions/psignal.texi (psignal): Likewise.
44552         * doc/posix-functions/putc.texi (putc): Likewise.
44553         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
44554         Likewise.
44555         * doc/posix-functions/putchar.texi (putchar): Likewise.
44556         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
44557         Likewise.
44558         * doc/posix-functions/puts.texi (puts): Likewise.
44559         * doc/posix-functions/putwc.texi (putwc): Likewise.
44560         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44561         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44562         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44563         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
44564         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44565         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44566         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44567         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
44569 2011-05-22  Bruno Haible  <bruno@clisp.org>
44571         strerror: Move AC_LIBOBJ invocations to module description.
44572         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
44573         gl_PREREQ_STRERROR invocations from here...
44574         * modules/strerror (configure.ac): ... to here.
44576 2011-05-21  Bruno Haible  <bruno@clisp.org>
44578         perror: Use common idiom.
44579         * modules/perror (configure.ac): Reorder statements.
44581 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
44583         tests: fix usage message in 'mktempd_'
44584         * tests/init.sh (mktempd_): In the usage message, use literal
44585         'mktempd_', not '$ME' (which is even undefined), as the name of
44586         the subroutine.
44588 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
44590         tests init: new function 'fatal_', for hard errors
44591         Before this patch, the only way offered by tests/init.sh to
44592         properly signal a hard error was the `framework_failure_'
44593         function.  But the error message issued by that function,
44594         as its name would suggest, refers to a set-up failure in the
44595         testsuite, while hard errors can obviously also be due to
44596         other reasons.  The best way to fix this inconsistency is to
44597         introduce a new function with a more general error message.
44598         * tests/init.sh (fatal_): New function.
44600 2011-06-06  Eric Blake  <eblake@redhat.com>
44602         canonicalize-lgpl: use common idiom
44603         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
44604         over newer POSIX -Rf.
44605         Reported by Bruno Haible.
44607         canonicalize-lgpl: work around AIX realpath bug
44608         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
44609         * doc/posix-functions/realpath.texi (realpath): Document it.
44610         Reported by Bruno Haible.
44612         strerror: work around FreeBSD bug
44613         * lib/strerror.c (strerror): Special case 0.
44614         Reported by Bruno Haible.
44616         strerror-override: avoid bloating errno module
44617         * modules/errno (Files, configure.ac): Move replacement strings...
44618         * modules/strerror-override: ...to new module.
44619         * modules/strerror (Depends-on): Add strerror-override.
44620         * modules/strerror_r-posix (Depends-on): Likewise.
44621         * MODULES.html.sh: Document new module.
44622         Reported by Bruno Haible.
44624 2011-06-06  Bruno Haible  <bruno@clisp.org>
44626         spawn-pipe tests: Rename program.
44627         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
44628         * tests/test-spawn-pipe-child.c: Update comment.
44629         * tests/test-spawn-pipe.sh: Update.
44630         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
44632         spawn-pipe tests: Link the child program only against libc.
44633         * tests/test-spawn-pipe-child.c: New file, extracted from
44634         tests/test-spawn-pipe.c.
44635         (main): Expect only one argument.
44636         (is_open): New function, copied from tests/test-pipe.c.
44637         * tests/test-spawn-pipe.c: Don't include <errno.h>.
44638         (child_main): Remove function.
44639         (test_pipe): Pass only one argument to the child program.
44640         (main): Remove child process code. Expect the child program's name as
44641         first argument.
44642         * tests/test-spawn-pipe.sh: Pass the child program's name as first
44643         argument.
44644         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
44645         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
44646         test-spawn-pipe-child against no libraries.
44648 2011-06-06  Bruno Haible  <bruno@clisp.org>
44650         careadlinkat: Avoid mismatch between ssize_t and int.
44651         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
44652         * lib/careadlinkat.c (careadlinkatcwd): Define always.
44654 2011-06-06  Jim Meyering  <meyering@redhat.com>
44656         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
44657         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
44658         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
44660 2011-06-05  Bruno Haible  <bruno@clisp.org>
44662         ansi-c++-opt: Interoperability with libtool.
44663         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
44664         set the variable to "no", not to ":".
44665         * NEWS: Mention the change.
44667 2011-06-05  Bruno Haible  <bruno@clisp.org>
44669         acl: Fix test failure on AIX 7.
44670         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
44671         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
44673 2011-06-05  Bruno Haible  <bruno@clisp.org>
44675         pipe-filter-ii: Fix test failure on AIX and IRIX.
44676         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
44677         with EAGAIN, retry with a smaller buffer size.
44679 2011-06-05  Bruno Haible  <bruno@clisp.org>
44681         localename: Fix link dependencies.
44682         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
44683         * modules/localename-tests (Makefile.am): Link test-localename with
44684         $(LIBTHREAD).
44686 2011-06-05  Bruno Haible  <bruno@clisp.org>
44688         error: Avoid gcc warning.
44689         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
44691 2011-06-05  Bruno Haible  <bruno@clisp.org>
44693         unsetenv: Avoid gcc warning.
44694         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
44696 2011-06-05  Bruno Haible  <bruno@clisp.org>
44698         setenv: Avoid gcc warning.
44699         * lib/setenv.c (setenv): Provide declaration if system lacks it.
44701 2011-06-05  Bruno Haible  <bruno@clisp.org>
44703         sys_select: Ensure memset is declared also on AIX 7.
44704         * lib/sys_select.in.h: Include <string.h> also on AIX.
44705         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
44706         self-contained also on AIX 7.1.
44708 2011-06-04  Jim Meyering  <meyering@redhat.com>
44710         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
44711         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
44712         function name, "error".
44713         (_gl_translatable_diag_func_re): New configurable variable.
44715 2011-06-04  Bruno Haible  <bruno@clisp.org>
44717         getopt: Avoid gcc warning.
44718         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
44720 2011-06-04  Bruno Haible  <bruno@clisp.org>
44722         strerror_r: Fix comments.
44723         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
44724         commit.
44726 2011-06-04  Bruno Haible  <bruno@clisp.org>
44728         perror: Fix compilation error.
44729         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
44730         Undefine fprintf, not sprintf.
44731         * modules/perror (Depends-on): Remove intprops, verify.
44733 2011-06-04  Bruno Haible  <bruno@clisp.org>
44735         setlocale: Enable replacement on Cygwin 1.5.
44736         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
44737         Cygwin 1.5.x.
44738         * doc/posix-functions/setlocale.texi: Mention that the problem with the
44739         LC_CTYPE category also exists on Cygwin 1.5.x.
44741 2011-06-04  Bruno Haible  <bruno@clisp.org>
44743         strerror-override: Don't disable symbol renamings.
44744         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
44745         * lib/strerror-override.c: Include config.h.
44746         (strerror_override): Don't undefine.
44748 2011-06-03  Bruno Haible  <bruno@clisp.org>
44750         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
44751         * lib/localename.h: Update copyright header.
44752         * lib/localename.c: Likewise.
44753         * lib/relocatable.h: Likewise.
44754         * lib/relocatable.c: Likewise.
44756 2011-06-02  Bruno Haible  <bruno@clisp.org>
44758         doc: Fix a module name.
44759         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
44761 2011-06-02  Bruno Haible  <bruno@clisp.org>
44763         pipe2: Remove dependency on 'nonblocking' module.
44764         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
44765         O_NONBLOCK is defined by gnulib.
44766         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
44767         is zero.
44768         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
44769         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
44770         defined by gnulib.
44771         (get_nonblocking_flag): New function.
44772         (main): Test O_NONBLOCK flag only if it is nonzero.
44773         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
44775 2011-06-03  Jim Meyering  <meyering@redhat.com>
44777         maint: three new prohibit-header-without-use rules
44778         Prohibit use of cloexec.h, posixver.h, same.h without use.
44779         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
44780         (sc_prohibit_posixver_without_use): Likewise.
44781         (sc_prohibit_same_without_use): Likewise.
44783 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
44785         allocator: 'die' routine is now given requested size
44786         * lib/allocator.h (struct allocator.die): New size arg.
44787         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
44788         If the actual problem is an ssize_t limitation, not a size_t or
44789         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
44791 2011-06-01  Eric Blake  <eblake@redhat.com>
44793         strerror: drop strerror_r dependency
44794         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
44795         * lib/strerror-override.c (strerror_override): ...to new file.
44796         * lib/strerror-override.h: Add prototype.
44797         * lib/strerror-impl.h: Delete.
44798         * lib/strerror.c (strerror): New implementation.
44799         * modules/errno (Files): Add new files.
44800         (configure.ac): Compile new file as appropriate.
44801         * modules/strerror (Files): Drop unused file.
44802         (Depends-on): Drop strerror_r-posix.
44803         * MODULES.html.sh: Document strerror_r-posix.
44804         Requested by Sam Steingold.
44806         perror: call strerror_r directly
44807         * modules/perror (Files): Drop strerror-impl.h.
44808         * lib/perror.c (perror): Use our own stack buffer, rather than
44809         calling a wrapper that uses static storage.
44810         * doc/posix-functions/perror.texi (perror): Document a limitation
44811         of our replacement.
44813         strerror_r: fix includes for FreeBSD
44814         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
44815         since we use abort on some platforms.
44816         Reported by Matthias Bolte.
44818 2011-05-31  Bruno Haible  <bruno@clisp.org>
44820         Fix link errors in tests: openat-die uses gettext-h.
44821         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
44822         against $(LIBINTL).
44823         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
44824         against $(LIBINTL).
44825         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
44826         $(LIBINTL).
44827         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
44828         against $(LIBINTL).
44829         * modules/linkat-tests (Makefile.am): Link test-linkat against
44830         $(LIBINTL).
44831         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
44832         $(LIBINTL).
44833         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
44834         against $(LIBINTL).
44835         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
44836         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
44837         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
44838         $(LIBINTL).
44839         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
44840         $(LIBINTL).
44841         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
44842         $(LIBINTL).
44843         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44845 2011-05-31  Bruno Haible  <bruno@clisp.org>
44847         Fix link errors in tests: wait-process uses gettext-h.
44848         * modules/nonblocking-pipe-tests (Makefile.am): Set
44849         test_nonblocking_pipe_main_LDADD.
44850         * modules/nonblocking-socket-tests (Makefile.am): Link
44851         test-nonblocking-socket-main against $(LIBINTL).
44852         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44854 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
44856         assert-h: work around 'verify' incompatibility
44857         * lib/verify.h: Use @...@ directives, not ifdef.
44858         * modules/assert-h (assert.h): Implement the directives.
44859         (assert.h): Substitute the symbol-prefix more consistently.
44861 2011-05-29  Jim Meyering  <meyering@redhat.com>
44863         trim: remove three superfluous assignments
44864         * lib/trim.c (trim2): Remove three superfluous assignments
44865         and correct brace positioning.
44867 2011-05-29  Bruno Haible  <bruno@clisp.org>
44869         wctype-h: Avoid namespace pollution on Solaris 2.6.
44870         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
44871         identifiers.
44872         * doc/posix-headers/wctype.texi: Mention the problem.
44873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44875 2011-05-28  Jim Meyering  <meyering@redhat.com>
44877         parse-datetime.y: accommodate -Wstrict-overflow
44878         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
44879         placate -Wstrict-overflow.
44881         trim: avoid a warning from -O2 -Wstrict-overflow
44882         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
44884 2011-05-29  Bruno Haible  <bruno@clisp.org>
44886         gnulib-tool: Fix bug in yesterday's commit.
44887         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
44888         twice.
44890 2011-05-29  Bruno Haible  <bruno@clisp.org>
44892         Allow multiple gnulib generated include files to be combined.
44893         * gnulib-tool (func_compute_include_guard_prefix): New function.
44894         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
44895         ${gl_include_guard_prefix} references.
44896         (func_import, func_create_testdir): Invoke
44897         func_compute_include_guard_prefix.
44898         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
44899         * lib/ctype.in.h: Likewise.
44900         * lib/dirent.in.h: Likewise.
44901         * lib/errno.in.h: Likewise.
44902         * lib/fcntl.in.h: Likewise.
44903         * lib/float.in.h: Likewise.
44904         * lib/getopt.in.h: Likewise.
44905         * lib/iconv.in.h: Likewise.
44906         * lib/langinfo.in.h: Likewise.
44907         * lib/locale.in.h: Likewise.
44908         * lib/math.in.h: Likewise.
44909         * lib/netdb.in.h: Likewise.
44910         * lib/netinet_in.in.h: Likewise.
44911         * lib/poll.in.h: Likewise.
44912         * lib/pthread.in.h: Likewise.
44913         * lib/pty.in.h: Likewise.
44914         * lib/sched.in.h: Likewise.
44915         * lib/se-selinux.in.h: Likewise.
44916         * lib/search.in.h: Likewise.
44917         * lib/signal.in.h: Likewise.
44918         * lib/spawn.in.h: Likewise.
44919         * lib/stdarg.in.h: Likewise.
44920         * lib/stddef.in.h: Likewise.
44921         * lib/stdint.in.h: Likewise.
44922         * lib/stdio.in.h: Likewise.
44923         * lib/stdlib.in.h: Likewise.
44924         * lib/string.in.h: Likewise.
44925         * lib/strings.in.h: Likewise.
44926         * lib/sys_file.in.h: Likewise.
44927         * lib/sys_ioctl.in.h: Likewise.
44928         * lib/sys_select.in.h: Likewise.
44929         * lib/sys_socket.in.h: Likewise.
44930         * lib/sys_stat.in.h: Likewise.
44931         * lib/sys_time.in.h: Likewise.
44932         * lib/sys_times.in.h: Likewise.
44933         * lib/sys_uio.in.h: Likewise.
44934         * lib/sys_utsname.in.h: Likewise.
44935         * lib/sys_wait.in.h: Likewise.
44936         * lib/sysexits.in.h: Likewise.
44937         * lib/termios.in.h: Likewise.
44938         * lib/time.in.h: Likewise.
44939         * lib/unistd.in.h: Likewise.
44940         * lib/wchar.in.h: Likewise.
44941         * lib/wctype.in.h: Likewise.
44942         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
44943         * modules/ctype (Makefile.am): Likewise.
44944         * modules/dirent (Makefile.am): Likewise.
44945         * modules/errno (Makefile.am): Likewise.
44946         * modules/fcntl-h (Makefile.am): Likewise.
44947         * modules/float (Makefile.am): Likewise.
44948         * modules/getopt-posix (Makefile.am): Likewise.
44949         * modules/iconv-h (Makefile.am): Likewise.
44950         * modules/langinfo (Makefile.am): Likewise.
44951         * modules/locale (Makefile.am): Likewise.
44952         * modules/math (Makefile.am): Likewise.
44953         * modules/netdb (Makefile.am): Likewise.
44954         * modules/netinet_in (Makefile.am): Likewise.
44955         * modules/poll-h (Makefile.am): Likewise.
44956         * modules/pthread (Makefile.am): Likewise.
44957         * modules/pty (Makefile.am): Likewise.
44958         * modules/sched (Makefile.am): Likewise.
44959         * modules/search (Makefile.am): Likewise.
44960         * modules/selinux-h (Makefile.am): Likewise.
44961         * modules/signal (Makefile.am): Likewise.
44962         * modules/spawn (Makefile.am): Likewise.
44963         * modules/stdarg (Makefile.am): Likewise.
44964         * modules/stddef (Makefile.am): Likewise.
44965         * modules/stdint (Makefile.am): Likewise.
44966         * modules/stdio (Makefile.am): Likewise.
44967         * modules/stdlib (Makefile.am): Likewise.
44968         * modules/string (Makefile.am): Likewise.
44969         * modules/strings (Makefile.am): Likewise.
44970         * modules/sys_file (Makefile.am): Likewise.
44971         * modules/sys_ioctl (Makefile.am): Likewise.
44972         * modules/sys_select (Makefile.am): Likewise.
44973         * modules/sys_socket (Makefile.am): Likewise.
44974         * modules/sys_stat (Makefile.am): Likewise.
44975         * modules/sys_time (Makefile.am): Likewise.
44976         * modules/sys_times (Makefile.am): Likewise.
44977         * modules/sys_uio (Makefile.am): Likewise.
44978         * modules/sys_utsname (Makefile.am): Likewise.
44979         * modules/sys_wait (Makefile.am): Likewise.
44980         * modules/sysexits (Makefile.am): Likewise.
44981         * modules/termios (Makefile.am): Likewise.
44982         * modules/time (Makefile.am): Likewise.
44983         * modules/unistd (Makefile.am): Likewise.
44984         * modules/wchar (Makefile.am): Likewise.
44985         * modules/wctype-h (Makefile.am): Likewise.
44986         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
44988 2011-05-29  Bruno Haible  <bruno@clisp.org>
44990         assert-h: Allow multiple gnulib generated replacements to coexist.
44991         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
44993 2011-05-29  Bruno Haible  <bruno@clisp.org>
44995         argp: Allow coexistence with strerror_r-posix module.
44996         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
44997         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
44998         by gnulib's <string.h> replacement), assume it has the POSIX signature,
44999         not the glibc signature.
45001 2011-05-28  Bruno Haible  <bruno@clisp.org>
45003         gnulib-tool: Alternative structure of testdirs, similar to --import.
45004         * gnulib-tool: New option --single-configure.
45005         (func_usage): Document it.
45006         (single_configure): New variable.
45007         (func_modules_transitive_closure_separately,
45008         func_modules_transitive_closure_separately,
45009         func_determine_use_libtests, func_modules_add_dummy_separately,
45010         func_modules_to_filelist_separately): New functions, extracted from
45011         func_import.
45012         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
45013         (func_import): Use the new functions.
45014         (func_create_testdir): Set final_modules. Handle $single_configure =
45015         true case.
45017 2011-05-28  Bruno Haible  <bruno@clisp.org>
45019         getloadavg: Remove an unreliable safety check.
45020         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
45021         getloadavg.c is in place.
45022         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
45023         Reported by Sam Steingold <sds@gnu.org>.
45025 2011-05-28  Bruno Haible  <bruno@clisp.org>
45027         doc: Cleanup yet another file produced by texinfo.tex.
45028         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
45030 2011-05-28  Bruno Haible  <bruno@clisp.org>
45032         Finish the conditional dependencies mechanism.
45033         * gnulib-tool: New option --no-conditional-dependencies.
45034         (func_usage): Document it. Don't mark --conditional-dependencies as
45035         experimental.
45036         (cond_dependencies): The possible values can now be true, false, empty.
45037         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
45038         (func_import): Store setting in gnulib-cache.m4 and read it from there.
45039         * doc/gnulib-tool.texi (Conditional dependencies): New section.
45041 2011-05-28  Bruno Haible  <bruno@clisp.org>
45043         doc: Use a recent texinfo.tex.
45044         * doc/Makefile (tex_opts): New variable.
45045         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
45047 2011-05-28  Jim Meyering  <meyering@redhat.com>
45049         intprops.h: adjust comment to match code change
45050         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
45051         only once, it *may* have side effects.  Also fix an unrelated typo.
45052         (_GL_INT_SIGNED): Likewise.
45054 2011-05-26  Simon Josefsson  <simon@josefsson.org>
45056         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
45058 2011-05-26  Bruno Haible  <bruno@clisp.org>
45060         mbsrchr: Avoid collision with system function on Interix.
45061         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
45062         Reported by Markus Duft <mduft@gentoo.org>.
45064 2011-05-15  James Youngman  <jay@gnu.org>
45066         getopt: for ambiguous options, enumerate the possibilities.
45067         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
45068         the ambiguous options when an ambiguous prefix is given. This was
45069         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
45070         glibc change was
45071         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
45073 2011-05-25  Eric Blake  <eblake@redhat.com>
45075         getcwd: work around mingw bug
45076         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
45077         * doc/posix-functions/getcwd.texi (getcwd): Document it.
45078         Reported by Matthias Bolte.
45080 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
45082         test-intprops: disable -Wtype-limits diagnostics
45083         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
45084         diagnostics.  Otherwise, the integer overflow macros generate many
45085         diagnostics.  Reported by Jim Meyering in
45086         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
45088         intprops: shorten, to pacify gcc -Woverlength-strings
45089         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
45090         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
45091         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
45092         likely to run afoul of C compiler limits for string constant lengths.
45093         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
45095 2011-05-24  Eric Blake  <eblake@redhat.com>
45097         docs: document recently fixed glibc printf bug
45098         * doc/posix-functions/fprintf.texi (fprintf): Document it.
45099         * doc/posix-functions/printf.texi (printf): Likewise.
45100         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
45101         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
45103         closein-tests: convert to init.sh
45104         * modules/closein-tests (Files): Add init.sh
45105         * tests/test-closein.sh Use it.
45107         yesno-tests: convert to init.sh
45108         * modules/yesno-tests (Files): Add init.sh.
45109         * tests/test-yesno.sh: Use it.
45111         atexit-tests: ensure reliable exit status
45112         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
45113         Reported by Bruno Haible.
45115 2011-05-24  Bruno Haible  <bruno@clisp.org>
45117         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
45118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
45119         gl_PREREQ_STRERROR_R invocations from here...
45120         * modules/strerror_r-posix (configure.ac): ... to here.
45122 2011-05-24  Eric Blake  <eblake@redhat.com>
45124         strerror_r: fix missing header
45125         * lib/strerror_r.c: Avoid compiler warning about snprintf.
45127         strerror_r: fix AIX test failures
45128         * lib/strerror_r.c (strerror_r): Convert silent truncation to
45129         ERANGE failure.
45131         strerror_r: fix Solaris test failures
45132         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
45133         failures.
45134         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
45136         strerror_r: enforce POSIX recommendations
45137         * lib/strerror_r.c (safe_copy): New helper method.
45138         (strerror_r): Guarantee a non-empty string.
45139         * tests/test-strerror_r.c (main): Enhance tests to incorporate
45140         recent POSIX rulings and to match our strerror guarantees.
45141         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
45143 2011-05-24  Jim Meyering  <meyering@redhat.com>
45145         test-perror2.c: avoid warning about unused variable
45146         * tests/test-perror2.c (main): Remove declaration of unused "fp".
45148 2011-05-24  Eric Blake  <eblake@redhat.com>
45150         perror: avoid spurious test failure on HP-UX
45151         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
45153         tests: fix logic bug in init.sh
45154         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
45155         shell.
45157 2011-05-24  Jim Meyering  <meyering@redhat.com>
45159         utimensat: do not reference an out-of-scope buffer
45160         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
45161         declared in an inner scope, yet "times" would be dereferenced outside
45162         the scope in which "ts" was valid.
45163         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
45164         of ts[2] "out/up", so that the use of aliased "times" (via
45165         "times = ts;") does not end up referencing an out-of-scope "ts"
45167         opendir-safer.c: don't clobber errno; don't close negative FD
45168         * lib/opendir-safer.c (opendir_safer):
45169         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
45170         file descriptor, and more importantly, don't clobber the
45171         offending errno value with EINVAL.  Before, upon failure
45172         of dup_safer, we would pass the negative file descriptor to
45173         fdopendir, which would clobber errno.
45175 2011-05-23  Bruno Haible  <bruno@clisp.org>
45177         idcache: Fix module description.
45178         * modules/idcache (Include): Set to "idcache.h".
45180 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
45182         gnulib-tool: fix portability problem with MacOS sed
45183         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
45184         before the "}".  Problem reported by Leo in
45185         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
45186         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
45187         sed_extract_condition1, sed_extract_condition2.
45189 2011-05-23  Bruno Haible  <bruno@clisp.org>
45191         hash: Simplify autoconf macro.
45192         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
45194 2011-05-23  Bruno Haible  <bruno@clisp.org>
45196         getugroups: Fix module description.
45197         * modules/getugroups (Include): Set to "getugroups.h".
45199 2011-05-23  Bruno Haible  <bruno@clisp.org>
45201         linkat: Simplify autoconf macro.
45202         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
45204 2011-05-23  Bruno Haible  <bruno@clisp.org>
45205             Eric Blake  <eblake@redhat.com>
45207         linkat, renameat: Update dependencies.
45208         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
45209         * modules/linkat (Depends-on): Likewise. Remove also readlink,
45210         symlinkat.
45212 2011-05-23  Jim Meyering  <meyering@redhat.com>
45214         maint.mk: more tight_scope improvements
45215         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
45216         (_gl_TS_headers): Define only in if-0'd block.
45217         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
45218         sometimes we must *not* use it.  Adjust uses accordingly.
45219         (sc_tight_scope): Use much simpler grep-based test to determine
45220         whether we skip this rule.
45222         maint.mk: generalize/improve the tight-scope rule
45223         * top/maint.mk: Emit a warning when the test is skipped.
45224         (_gl_TS_dir): Add $(srcdir)/ prefix.
45225         (_gl_TS_function_match): Simplify, rather than trying
45226         to enumerate common types.  Otherwise, it would fail to match an
45227         "extern unsigned char const *" declaration in idutils.
45228         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
45229         a way to support use of that type of macro.
45230         (_gl_TS_var_match): Simplify regexp.
45231         (_gl_TS_obj_files): New configurable variable.
45232         (_gl_TS_headers): Likewise.
45234 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
45236         verify: fix bug when gnulib <assert.h> is also included
45237         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
45238         is defined, not if _GL_STATIC_ASSERT_H is not defined.
45239         Perhaps there's a better way, but this fixes the immediate problem.
45240         Problem reported by Bruno Haible in
45241         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
45243 2011-05-22  Bruno Haible  <bruno@clisp.org>
45245         xgetcwd: Simplify autoconf macro.
45246         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
45248 2011-05-22  Bruno Haible  <bruno@clisp.org>
45250         New module 'mktime-internal'.
45251         * modules/mktime-internal: New file.
45252         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
45253         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
45254         mktime_internal as a C macro if libc has __mktime_internal.
45255         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
45256         conditions.
45257         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
45259 2011-05-22  Bruno Haible  <bruno@clisp.org>
45261         timegm: Correct mktime replacement statements.
45262         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
45263         defining mktime as a C macro. This completes a 2009-07-28 commit.
45265 2011-05-22  Bruno Haible  <bruno@clisp.org>
45267         timegm: Simplify autoconf macro.
45268         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
45270 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
45272         clock-time: change to LGPLv2+.
45273         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
45274         BSD-like but we have no mark for that; this is good enough for now.
45276 2011-05-21  Bruno Haible  <bruno@clisp.org>
45278         strerror_r: Fix comments.
45279         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
45281 2011-05-21  Bruno Haible  <bruno@clisp.org>
45283         relocatable-prog-wrapper: Fix possible link error.
45284         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
45285         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
45286         (gl_FUNC_SETENV): ... to here.
45287         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
45288         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
45290 2011-05-21  Bruno Haible  <bruno@clisp.org>
45292         relocatable-prog-wrapper: Assume strerror() exists.
45293         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
45294         m4/strerror.m4.
45295         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
45296         * lib/relocwrapper.c: Remove mention of strerror module.
45297         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
45298         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
45299         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
45300         C macro.
45302 2011-05-21  Bruno Haible  <bruno@clisp.org>
45304         select: Simplify replacement idiom.
45305         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
45306         Win32 platforms.
45307         * lib/sys_select.in.h (select): Simplify accordingly.
45308         * modules/select (Depends-on): Likewise.
45310 2011-05-21  Bruno Haible  <bruno@clisp.org>
45312         mkdir-p: Simplify autoconf macro.
45313         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
45314         gl_FUNC_LCHOWN.
45316 2011-05-21  Eric Blake  <eblake@redhat.com>
45318         strerror_r: avoid clobbering strerror on cygwin
45319         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
45320         fall back instead to sys_errlist.
45321         * modules/strerror (configure.ac): Add witness.
45322         * tests/test-strerror_r.c (main): Enhance test.
45323         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45324         * tests/test-perror2.c (main): Free memory before exit.
45326 2011-05-21  Bruno Haible  <bruno@clisp.org>
45328         mkdtemp: Use gnulib naming conventions.
45329         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
45330         * modules/mkdtemp (configure.ac): Update.
45332 2011-05-20  Eric Blake  <eblake@redhat.com>
45334         strerror_r: avoid corrupting errno on Solaris
45335         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
45336         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
45338         strerror_r: avoid compiler warning
45339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
45341         strerror_r: simplify AIX code
45342         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
45344         test-perror: avoid spurious failure on FreeBSD
45345         * modules/perror-tests (Depends-on): Add strerror, now that
45346         strerror_r no longer pulls it in.
45348 2011-05-20  Bruno Haible  <bruno@clisp.org>
45350         strerror_r-posix: Remove unused dependencies.
45351         * modules/strerror_r-posix (Depends-on): Remove strerror.
45352         Reported by Eric Blake.
45354 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
45356         intprops: remove assumption about A|B representation
45357         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
45358         is a valid integer if both A and B are.  Although this is true for
45359         all known practical hosts, the C standard doesn't guarantee it,
45360         and the code need not assume it.  Also, this change may work around
45361         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
45362         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
45364 2011-05-20  Eric Blake  <eblake@redhat.com>
45366         perror: work around FreeBSD bug
45367         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
45368         is broken.  Move AC_LIBOBJ...
45369         * modules/perror (configure.ac): Here.
45370         * doc/posix-functions/perror.texi (perror): Document this.
45371         * tests/test-perror2.c (main): Enhance test.
45373         test-perror: check for strerror interactions
45374         * tests/macros.h (STREQ): Add macro.
45375         * modules/perror-tests (Files): Add second test.
45376         * tests/test-perror2.c (main): New file.
45377         * doc/posix-functions/perror.texi (perror): Document glibc bug.
45379         test-perror: rewrite to use init script
45380         * modules/perror-tests (Files): Add init.sh.
45381         * tests/test-perror.sh: Use temporary directory.
45383 2011-05-20  Jim Meyering  <meyering@redhat.com>
45385         maint: replace misused "a" with "an"
45386         * doc/intprops.texi: "a integer"
45387         * doc/regex.texi: "a explanation"
45388         * lib/alignof.h: "a object"
45389         * lib/argmatch.h: "a explanation"
45390         * lib/argp-help.c: "a option" and "a OPTION_DOC"
45391         * lib/stdint.in.h: "a integer"
45392         * lib/userspec.c: "a owner"
45393         * doc/gnulib.texi: Fix "a idea", and reword.
45395 2011-05-19  Jim Meyering  <meyering@redhat.com>
45397         maint: correct misuse of "a" and "an"
45398         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
45399         * lib/argp-help.c: "an docum...": s/an/a/
45400         * lib/argp-parse.c: "An vector": s/An/A/
45401         * lib/execute.c: "an native": s/an/a/
45402         * lib/spawn-pipe.c: Likewise.
45403         * lib/gc.h: "an Gc_rc": s/an/a/
45404         * lib/unigbrk.in.h: "an grapheme": s/an/a/
45405         * lib/fts.c: "an stat.st_dev": s/an/a/
45407 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45409         intprops-tests: work around HP-UX 11.23 cc bug with constants
45410         * tests/test-intprops.c (VERIFY): New macro.
45411         (main): Use it, instead of verify, to work around the compiler bug; see
45412         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45414         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
45415         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
45416         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
45417         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
45418         (_GL_REMAINDER_OVERFLOW): Use it.
45420         intprops-tests: revert unsigned part of previous change
45421         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
45422         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
45423         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
45424         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
45426 2011-05-19  Bruno Haible  <bruno@clisp.org>
45428         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
45429         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
45430         strerror_r() returned without filling the buffer.
45431         Reported by Eric Blake.
45433 2011-05-19  Eric Blake  <eblake@redhat.com>
45435         strerror_r: guarantee unchanged errno
45436         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
45437         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
45438         failure.
45439         * tests/test-strerror_r.c (main): Enhance test.
45441 2011-05-19  Bruno Haible  <bruno@clisp.org>
45443         strerror_r: Reorder #if blocks.
45444         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
45445         for consistency with the previous commit.
45447 2011-05-19  Bruno Haible  <bruno@clisp.org>
45449         perror: Avoid clobbering the strerror buffer when possible.
45450         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
45451         * lib/strerror.c: Include it.
45452         * modules/strerror (Files): Add lib/strerror-impl.h.
45453         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
45454         (my_strerror): New function, defined through lib/strerror-impl.h.
45455         (perror): Use it instead of strerror.
45456         * modules/perror (Files): Add lib/strerror-impl.h.
45457         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
45459 2011-05-19  Eric Blake  <eblake@redhat.com>
45461         strerror_r: fix on newer cygwin
45462         * lib/strerror_r.c (strerror_r): Cygwin now has
45463         __xpg_strerror_r, use it.
45465 2011-05-19  Bruno Haible  <bruno@clisp.org>
45467         strerror_r: Avoid clobbering the strerror buffer when possible.
45468         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
45469         (sys_nerr, sys_errlist): New declarations.
45470         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
45471         HP-UX, native Win32, IRIX, and 32-bit Solaris.
45472         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
45474 2011-05-19  Bruno Haible  <bruno@clisp.org>
45476         strerror_r: Fix test failure on mingw.
45477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
45478         EXTEND_STRERROR_R.
45479         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
45480         macros from errno.in.h instead.
45482 2011-05-19  Eric Blake  <eblake@redhat.com>
45484         strerror: relax test for Solaris
45485         * tests/test-strerror.c (main): Permit Solaris behavior.
45486         * tests/test-strerror_r.c (main): Likewise.
45488         strerror: enforce POSIX ruling on strerror(0)
45489         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
45490         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
45491         * lib/strerror_r.c (rpl_strerror_r): Work around it.
45492         * doc/posix-functions/strerror.texi (strerror): Document it.
45493         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
45494         * tests/test-strerror.c (main): Strengthen test.
45495         * tests/test-strerror_r.c (main): Likewise.
45497 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
45499         intprop-tests: port to older and more-pedantic compilers
45500         * modules/intprops-tests (Files): Add tests/macros.h.
45501         * tests/test-intprops.c: Include macros.h.
45502         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
45503         it's no longer documented to expand to an integer constant expression.
45504         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
45505         argument is floating point, as it's no longer documented to expand
45506         to an integer constant expression in that case.
45507         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
45508         compiler bugs reported by Bruno Haible.  See
45509         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45510         (U0, U1): New constants, to work around the same bugs.  Also,
45511         in tests, use e.g., "(unsigned int) 39" rather than "39u".
45513         intprops: work around C compiler bugs
45514         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
45515         bug in Sun C 5.11 2010/08/13 and other compilers; see
45516         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
45518         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
45519         * doc/intprops.texi (Integer Type Determination): Fix
45520         documentation for TYPE_IS_INTEGER: it returns an constant
45521         expression, not an integer constant expression.  Fix doc for
45522         TYPE_SIGNED: it returns an integer constant expression only if its
45523         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
45524         hardly worth documented that way....)
45526 2011-05-18  Bruno Haible  <bruno@clisp.org>
45528         strerror_r: Avoid clobbering the strerror buffer when possible.
45529         * lib/strerror_r.c (strerror_r): Merge the three implementations.
45530         Handle gnulib defined errno values here. When strerror() returns NULL
45531         or an empty string, return EINVAL.
45532         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
45533         gnulib defined errno values here.
45534         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
45536 2011-05-18  Eric Blake  <eblake@redhat.com>
45538         fnmatch: avoid compiler warning
45539         * lib/fnmatch_loop.c (FCT): Use correct type.
45540         Reported by Matthias Bolte.
45542 2011-05-13  Jim Meyering  <meyering@redhat.com>
45544         maint.mk: three new prohibit_<HDR>_without_use rules
45545         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
45546         (sc_prohibit_stdio-safer_without_use): Likewise.
45547         (sc_prohibit_xfreopen_without_use): Likewise.
45549 2011-05-17  Jim Meyering  <meyering@redhat.com>
45551         announce-gen: fail if the NEWS delta is empty
45552         If there's nothing noteworthy in NEWS, then either you forgot
45553         or you shouldn't be releasing.
45554         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
45556 2011-05-17  Pádraig Brady  <P@draigBrady.com>
45558         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
45559         reserved symbols starting with double underscore from the check.
45561 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
45563         intprops: add doc
45564         * doc/intprops.texi: New file, documenting intprops.
45565         * doc/gnulib.texi (Particular Modules): Include it.
45567         verify: add doc to gnulib manual and fix example
45568         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
45569         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
45570         (Compile-time Assertions): Fix example so it can't overflow.
45572 2011-05-17  Jim Meyering  <meyering@redhat.com>
45574         warnings.m4: don't usurp save_CPPFLAGS variable name
45575         * m4/warnings.m4: Prefix local temporary variable name with gl_.
45577         doc: fix typo
45578         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
45580 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45581             Bruno Haible  <bruno@clisp.org>
45583         doc: Tweak recent change.
45584         * README (Portability guidelines): Tweak new text.
45585         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
45586         Interix 6.1.
45588 2011-05-16  Eric Blake  <eblake@redhat.com>
45590         inttypes: avoid autoconf warning
45591         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
45592         * m4/stdint.m4 (gl_STDINT_H): Likewise.
45594 2011-05-16  Sam Steingold  <sds@gnu.org>
45595         and Eric Blake  <eblake@redhat.com>
45597         vc-list-files: accept multiple directory operands
45598         * build-aux/vc-list-files: Iterate over all remaining operands.
45600 2011-05-16  Bruno Haible  <bruno@clisp.org>
45602         Fix confusion regarding deprecated modules.
45603         * modules/calloc (Status, Notice): Mark module as deprecated, not
45604         obsolete.
45605         * modules/fnmatch-posix (Status, Notice): Likewise.
45606         * modules/getdate (Status, Notice): Likewise.
45607         * modules/getopt (Status, Notice): Likewise.
45608         * modules/malloc (Status, Notice): Likewise.
45609         * modules/pipe (Status, Notice): Likewise.
45610         * modules/realloc (Status, Notice): Likewise.
45611         * modules/rename-dest-slash (Status, Notice): Likewise.
45612         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
45613         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
45614         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
45615         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
45616         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
45618 2011-05-16  Bruno Haible  <bruno@clisp.org>
45620         doc: List the target platforms.
45621         * doc/gnulib-intro.texi (Target Platforms): New section.
45622         * doc/gnulib.texi (Introduction): Update menu.
45623         * README (Portability guidelines): Refer to the new section. Update
45624         statement about oldest supported environment. Remove rationale why
45625         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
45626         unportable C89 function.
45627         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
45628         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
45630 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
45632         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
45634 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
45636         intprops-tests: new module
45637         * modules/intprops-tests, tests/test-intprops.c: New files.
45639         intprops: add safe, portable integer overflow checking
45640         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
45641         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
45642         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
45643         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
45644         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
45645         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
45646         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
45647         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
45648         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
45649         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
45650         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
45652 2011-05-12  James Youngman  <jay@gnu.org>
45654         Add a test for glibc's Bugzilla bug #12378.
45655         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
45656         doesn't allow the literal matching of a lone "[" (which is
45657         required by POSIX).
45658         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
45660 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
45662         Sync glibc change fixing Bugzilla bug #12378.
45663         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
45664         beginning and fall back to matching as normal character if the
45665         string ends before the matching ']' is found.  This is what POSIX
45666         requires.
45668 2011-05-13  Eric Blake  <eblake@redhat.com>
45670         getcwd-lgpl: relax test for FreeBSD
45671         * doc/posix-functions/getcwd.texi (getcwd): Document portability
45672         issue.
45673         * tests/test-getcwd-lgpl.c (main): Relax test.
45674         Reported by Matthias Bolte.
45676 2011-05-11  Eric Blake  <eblake@redhat.com>
45678         test-fflush: silence compiler warning
45679         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
45681 2011-05-11  Bruno Haible  <bruno@clisp.org>
45683         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
45684         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
45685         * modules/canonicalize (Depends-on): Add 'nocrash'.
45686         * modules/canonicalize-lgpl (Depends-on): Likewise.
45687         * doc/posix-functions/realpath.texi: Update platforms list.
45688         Reported by Ryan Schmidt <ryandesign@macports.org>.
45690 2011-05-11  Bruno Haible  <bruno@clisp.org>
45692         group-member: Declare function in <unistd.h>.
45693         * lib/unistd.in.h (group_member): New declaration.
45694         * lib/group-member.h: Remove file.
45695         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
45696         * tests/test-unistd-c++.cc: Check signature of group_member.
45697         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
45698         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
45699         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
45700         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
45701         HAVE_GROUP_MEMBER.
45702         * modules/group-member (Files): Remove lib/group-member.h.
45703         (Depends-on): Add unistd. Specify conditions.
45704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45705         (Include): Change to <unistd.h>.
45706         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
45707         HAVE_GROUP_MEMBER.
45708         * NEWS: Mention the change.
45709         * lib/euidaccess.c: Don't include group-member.h.
45711 2011-05-11  Bruno Haible  <bruno@clisp.org>
45713         group-member: Document module.
45714         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
45715         module.
45717 2011-05-11  Bruno Haible  <bruno@clisp.org>
45719         fclose: Fix mistake earlier today.
45720         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
45722 2011-05-11  Eric Blake  <eblake@redhat.com>
45724         fclose: preserve fflush errors
45725         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
45726         Reported by Jim Meyering.
45728         bootstrap: support a prereq of 'rpcgen -' on RHEL5
45729         * build-aux/bootstrap (check_versions): When no specific version
45730         is required, merely check that the app produces an exit status
45731         that indicates its existence.
45733         maint.mk: drop redundant check
45734         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
45735         the same but better.
45737 2011-05-11  Bruno Haible  <bruno@clisp.org>
45739         fclose: Fix possible link error.
45740         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
45741         unregister_shadow_fd. Improve comments.
45742         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
45743         Eric Blake.
45745 2011-05-11  Jim Meyering  <meyering@redhat.com>
45747         maint.mk: improve "can not" detection and generalize rule name
45748         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
45749         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
45750         Use the same technique as in sc_prohibit_doubled_word, so that
45751         we recognize "can not" also when the words are separated by a newline.
45752         Suggested by Eric Blake.
45753         (perl_filename_lineno_text_): Define.  Factored out of...
45754         (prohibit_doubled_word_): ...here.  Use the new definition.
45755         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
45756         (prohibit_undesirable_word_seq_RE_): New overridable variable.
45757         (ignore_undesirable_word_sequence_RE_): New overridable variable.
45759 2011-05-10  Eric Blake  <eblake@redhat.com>
45761         fclose: avoid double close race when possible
45762         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
45763         all but WINDOWS_SOCKETS.
45765 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
45767         openat: correct new comment
45768         * lib/openat-proc.c (openat_proc_name): Correct the comment.
45770 2011-05-10  Jim Meyering  <meyering@redhat.com>
45772         openat: add comments
45773         * lib/openat-proc.c (openat_proc_name): Add comments,
45774         mostly from Eric Blake.
45776 2011-05-09  Eric Blake  <eblake@redhat.com>
45778         openat: reduce syscalls in first probe of /proc
45779         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
45780         be a directory.  Simplify the probe for .. bugs.
45781         * modules/openat (Depends-on): Drop same-inode.
45782         Reported by Bastien ROUCARIES.
45784 2011-05-09  Jim Meyering  <meyering@redhat.com>
45786         maint.mk: change semantics/name of tight_scope variables
45787         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
45788         Rename variables to align with semantics that make them more useful.
45790         maint.mk: tweak new rule's name not to impinge
45791         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
45792         (sc_tight_scope): Use new rule name rather than $@-0.
45794         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
45795         * top/maint.mk (sc_tight_scope): New rule.
45796         (sc_tight_scope-0): New rule, ifdef'd out.
45797         (_gl_TS_dir): Default.
45798         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
45799         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
45801 2011-05-09  Simon Josefsson  <simon@josefsson.org>
45803         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
45804         Haible <bruno@clisp.org>.
45806 2011-05-08  Bruno Haible  <bruno@clisp.org>
45808         Comments.
45809         * m4/isnanf.m4: Add comment.
45810         * m4/isnanl.m4: Likewise.
45812 2011-05-08  Bruno Haible  <bruno@clisp.org>
45814         glob: Remove obsolete macro.
45815         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
45817 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
45819         intprops: Sun C 5.11 supports __typeof__
45820         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
45821         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
45822         which is new.
45823         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
45825         intprops: switch to usual gnulib indenting and naming
45826         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
45827         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
45829         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
45831 2011-05-08  Jim Meyering  <meyering@redhat.com>
45833         maint.mk: suppress "Entering/Leaving directory" diag in announcement
45834         * top/maint.mk (release-prep): Use make's --no-print-directory
45835         option when generating the announcement.  This eliminates the
45836         pesky "make[2]: Entering/Leaving directory" diagnostics in the
45837         generated announcement template.
45839 2011-05-08  Bruno Haible  <bruno@clisp.org>
45841         tzset: Fix gettimeofday wrapper on Solaris 2.6.
45842         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
45843         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
45845 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
45847         ignore-value, verify: Omit include files from lib_SOURCES.
45848         * modules/ignore-value, modules/verify (Makefile.am):
45849         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
45850         that leads Automake to duplicate use of am__objects_... variables
45851         in Makefile.in.  See
45852         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
45854 2011-05-07  Bruno Haible  <bruno@clisp.org>
45856         fclose: Simplify autoconf macro.
45857         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
45858         defined.
45860 2011-05-07  Bruno Haible  <bruno@clisp.org>
45862         canonicalize-lgpl: Fix autoconf macro ordering bug.
45863         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
45864         gl_STDLIB_H_DEFAULTS.
45866 2011-05-06  Eric Blake  <eblake@redhat.com>
45868         maintainer-makefile: make sc_po_check easier to tune
45869         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
45870         to probe for strings, such as an alternate location for gnulib.
45872         fclose: guarantee behavior on seekable stdin
45873         * modules/fclose (Depends-on): Add fflush.
45874         * doc/posix-functions/fclose.texi (fclose): Document this.
45875         * tests/test-fclose.c (main): Make test for this unconditional.
45877 2011-05-06  Bruno Haible  <bruno@clisp.org>
45879         fflush, fpurge: Relicense under LGPLv2+.
45880         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
45881         * modules/fpurge (License): Likewise.
45882         With permission from Eric Blake and Jim Meyering.
45883         Suggested by Eric Blake.
45885 2011-05-06  Karl Berry  <karl@gnu.org>
45887         * MODULES.html.sh (func_all_modules): remove exit.
45889 2011-05-06  Jim Meyering  <meyering@redhat.com>
45891         maint.mk: use info-gnu@ as the default only for a stable release
45892         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
45893         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
45894         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
45895         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
45897 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
45899         assert-h: new module, which supports C1X-style static_assert
45900         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
45901         * lib/verify.h: Revamp so that this can be copied into assert.h,
45902         while retaining the ability to use it standalone as before.
45903         Rename private identifiers so as not to encroach on the
45904         standard C namespace, since this is now used by assert.h.
45905         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
45906         the old verify_true.
45907         (_GL_VERIFY_TRUE): New macro, with much of the contents of
45908         the old verify_true.  Use _GL_VERIFY_TYPE.
45909         (_GL_VERIFY): New macro, with much of the contents of the old verify.
45910         (static_assert): New macro, if _GL_STATIC_ASSERT_H
45911         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
45912         defined when this file is copied into the replacement assert.h.
45913         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
45914         and _Static_assert is not built in.
45915         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
45916         defined, and use the new macros mentioned above.
45917         * doc/posix-headers/assert.texi: Document this.
45919 2011-05-05  Bruno Haible  <bruno@clisp.org>
45921         fclose, fflush: Respect rules for use of AC_LIBOBJ.
45922         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
45923         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
45924         gl_REPLACE_FCLOSE here.
45925         * modules/fflush (Depends-on): Remove fclose.
45926         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
45927         combination with module 'fclose'.
45929 2011-05-05  Bruno Haible  <bruno@clisp.org>
45931         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
45932         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
45933         gl_FUNC_FFLUSH.
45934         (gl_FUNC_FFLUSH): Use it.
45935         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
45936         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
45937         gl_REPLACE_FSEEKO here.
45939 2011-05-05  Bruno Haible  <bruno@clisp.org>
45941         tzset: Relicense under LGPL.
45942         * modules/tzset (License): Change to LGPL.
45943         No agreement needed; it's a no-op.
45945         strtoimax, strtoumax: Relicense under LGPL.
45946         * modules/strtoimax (License): Change to LGPL.
45947         * modules/strtoumax (License): Likewise.
45948         With permission from Jim Meyering, Paul Eggert:
45949         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
45950         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
45952         getgroups: Relicense under LGPL.
45953         * modules/getgroups (License): Change to LGPL.
45954         With permission from Jim Meyering, Paul Eggert, Eric Blake:
45955         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
45956         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
45957         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45959         nanosleep: Relicense under LGPL.
45960         * modules/nanosleep (License): Change to LGPL.
45961         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
45962         Haible:
45963         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
45964         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
45965         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45966         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
45968         futimens: Relicense under LGPL.
45969         * modules/futimens (License): Change to LGPL.
45970         With permission from Eric Blake:
45971         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45973         fflush: Relicense under LGPL.
45974         * modules/fflush (License): Change to LGPL.
45975         With permission from Eric Blake, Bruno Haible, Jim Meyering:
45976         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
45977         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
45978         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
45980         tmpfile: Relicense under LGPL.
45981         * modules/tmpfile (License): Change to LGPL.
45982         With permission from Ben Pfaff:
45983         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
45985         isfinite: Relicense under LGPL.
45986         * modules/isfinite (License): Change to LGPL.
45987         With permission from Ben Pfaff, Bruno Haible:
45988         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
45989         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
45991         acosl..tanl: Relicense under LGPL.
45992         * modules/acosl (License): Change to LGPL.
45993         * modules/asinl (License): Likewise.
45994         * modules/atanl (License): Likewise.
45995         * modules/cosl (License): Likewise.
45996         * modules/expl (License): Likewise.
45997         * modules/logl (License): Likewise.
45998         * modules/sinl (License): Likewise.
45999         * modules/sqrtl (License): Likewise.
46000         * modules/tanl (License): Likewise.
46001         Source code originally from glibc and Paolo Bonzini. Agreements:
46002         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
46003         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
46005 2011-05-05  Bruno Haible  <bruno@clisp.org>
46007         signal: Define sighandler_t.
46008         * lib/signal.in.h (sighandler_t): New type.
46009         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
46010         whether sighandler_t is defined.
46011         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
46012         * modules/signal (Depends-on): Add extensions.
46013         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
46014         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
46015         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
46017 2011-05-05  Eric Blake  <eblake@redhat.com>
46019         maint: remove useless REPLACE_*_H macros
46020         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
46021         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
46022         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
46023         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
46024         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
46025         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
46026         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
46027         * m4/btowc.m4: Update callers.
46028         * m4/dirfd.m4: Likewise.
46029         * m4/duplocale.m4: Likewise.
46030         * m4/fchdir.m4: Likewise.
46031         * m4/fdopendir.m4: Likewise.
46032         * m4/inet_ntop.m4: Likewise.
46033         * m4/inet_pton.m4: Likewise.
46034         * m4/ioctl.m4: Likewise.
46035         * m4/mbrlen.m4: Likewise.
46036         * m4/mbrtowc.m4: Likewise.
46037         * m4/mbsinit.m4: Likewise.
46038         * m4/mbsnrtowcs.m4: Likewise.
46039         * m4/mbsrtowcs.m4: Likewise.
46040         * m4/poll.m4: Likewise.
46041         * m4/setlocale.m4: Likewise.
46042         * m4/wcrtomb.m4: Likewise.
46043         * m4/wcsnrtombs.m4: Likewise.
46044         * m4/wcsrtombs.m4: Likewise.
46045         * m4/wctob.m4: Likewise.
46046         * m4/wcwidth.m4: Likewise.
46047         * modules/posix_spawn: Likewise.
46048         * modules/posix_spawn_file_actions_addclose: Likewise.
46049         * modules/posix_spawn_file_actions_adddup2: Likewise.
46050         * modules/posix_spawn_file_actions_addopen: Likewise.
46051         * modules/posix_spawn_file_actions_destroy: Likewise.
46052         * modules/posix_spawn_file_actions_init: Likewise.
46053         * modules/posix_spawnattr_destroy: Likewise.
46054         * modules/posix_spawnattr_getflags: Likewise.
46055         * modules/posix_spawnattr_getpgroup: Likewise.
46056         * modules/posix_spawnattr_getschedparam: Likewise.
46057         * modules/posix_spawnattr_getschedpolicy: Likewise.
46058         * modules/posix_spawnattr_getsigdefault: Likewise.
46059         * modules/posix_spawnattr_getsigmask: Likewise.
46060         * modules/posix_spawnattr_init: Likewise.
46061         * modules/posix_spawnattr_setflags: Likewise.
46062         * modules/posix_spawnattr_setpgroup: Likewise.
46063         * modules/posix_spawnattr_setschedparam: Likewise.
46064         * modules/posix_spawnattr_setschedpolicy: Likewise.
46065         * modules/posix_spawnattr_setsigdefault: Likewise.
46066         * modules/posix_spawnattr_setsigmask: Likewise.
46067         * modules/posix_spawnp: Likewise.
46069 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
46071         Add option to do-release-commit-and-tag to specify branch.
46072         * build-aux/do-release-commit-and-tag: Add --branch.
46074 2011-05-03  Bruno Haible  <bruno@clisp.org>
46076         Avoid unnecessary compilation units, through conditional dependencies.
46077         * modules/accept (Depends-on): Add conditions to the dependencies.
46078         * modules/acosl (Depends-on): Likewise.
46079         * modules/argz (Depends-on): Likewise.
46080         * modules/asinl (Depends-on): Likewise.
46081         * modules/atanl (Depends-on): Likewise.
46082         * modules/atoll (Depends-on): Likewise.
46083         * modules/bind (Depends-on): Likewise.
46084         * modules/btowc (Depends-on): Likewise.
46085         * modules/canonicalize-lgpl (Depends-on): Likewise.
46086         * modules/ceil (Depends-on): Likewise.
46087         * modules/ceilf (Depends-on): Likewise.
46088         * modules/ceill (Depends-on): Likewise.
46089         * modules/chdir-long (Depends-on): Likewise.
46090         * modules/chown (Depends-on): Likewise.
46091         * modules/close (Depends-on): Likewise.
46092         * modules/connect (Depends-on): Likewise.
46093         * modules/cosl (Depends-on): Likewise.
46094         * modules/dirfd (Depends-on): Likewise.
46095         * modules/dprintf (Depends-on): Likewise.
46096         * modules/dprintf-posix (Depends-on): Likewise.
46097         * modules/error (Depends-on): Likewise.
46098         * modules/euidaccess (Depends-on): Likewise.
46099         * modules/expl (Depends-on): Likewise.
46100         * modules/faccessat (Depends-on): Likewise.
46101         * modules/fchdir (Depends-on): Likewise.
46102         * modules/fclose (Depends-on): Likewise.
46103         * modules/fcntl (Depends-on): Likewise.
46104         * modules/fdopendir (Depends-on): Likewise.
46105         * modules/fflush (Depends-on): Likewise.
46106         * modules/floor (Depends-on): Likewise.
46107         * modules/floorf (Depends-on): Likewise.
46108         * modules/floorl (Depends-on): Likewise.
46109         * modules/fnmatch (Depends-on): Likewise.
46110         * modules/fopen (Depends-on): Likewise.
46111         * modules/fprintf-posix (Depends-on): Likewise.
46112         * modules/frexp (Depends-on): Likewise.
46113         * modules/frexp-nolibm (Depends-on): Likewise.
46114         * modules/frexpl (Depends-on): Likewise.
46115         * modules/frexpl-nolibm (Depends-on): Likewise.
46116         * modules/fseek (Depends-on): Likewise.
46117         * modules/fsusage (Depends-on): Likewise.
46118         * modules/ftell (Depends-on): Likewise.
46119         * modules/ftello (Depends-on): Likewise.
46120         * modules/futimens (Depends-on): Likewise.
46121         * modules/getcwd (Depends-on): Likewise.
46122         * modules/getcwd-lgpl (Depends-on): Likewise.
46123         * modules/getdelim (Depends-on): Likewise.
46124         * modules/getdomainname (Depends-on): Likewise.
46125         * modules/getgroups (Depends-on): Likewise.
46126         * modules/gethostname (Depends-on): Likewise.
46127         * modules/getline (Depends-on): Likewise.
46128         * modules/getlogin_r (Depends-on): Likewise.
46129         * modules/getopt-posix (Depends-on): Likewise.
46130         * modules/getpeername (Depends-on): Likewise.
46131         * modules/getsockname (Depends-on): Likewise.
46132         * modules/getsockopt (Depends-on): Likewise.
46133         * modules/getsubopt (Depends-on): Likewise.
46134         * modules/getusershell (Depends-on): Likewise.
46135         * modules/glob (Depends-on): Likewise.
46136         * modules/grantpt (Depends-on): Likewise.
46137         * modules/iconv_open (Depends-on): Likewise.
46138         * modules/iconv_open-utf (Depends-on): Likewise.
46139         * modules/inet_ntop (Depends-on): Likewise.
46140         * modules/inet_pton (Depends-on): Likewise.
46141         * modules/ioctl (Depends-on): Likewise.
46142         * modules/isapipe (Depends-on): Likewise.
46143         * modules/isfinite (Depends-on): Likewise.
46144         * modules/isinf (Depends-on): Likewise.
46145         * modules/lchown (Depends-on): Likewise.
46146         * modules/ldexpl (Depends-on): Likewise.
46147         * modules/link (Depends-on): Likewise.
46148         * modules/linkat (Depends-on): Likewise.
46149         * modules/listen (Depends-on): Likewise.
46150         * modules/logl (Depends-on): Likewise.
46151         * modules/lstat (Depends-on): Likewise.
46152         * modules/mbrlen (Depends-on): Likewise.
46153         * modules/mbrtowc (Depends-on): Likewise.
46154         * modules/mbsinit (Depends-on): Likewise.
46155         * modules/mbsnrtowcs (Depends-on): Likewise.
46156         * modules/mbsrtowcs (Depends-on): Likewise.
46157         * modules/mbtowc (Depends-on): Likewise.
46158         * modules/memcmp (Depends-on): Likewise.
46159         * modules/mkdir (Depends-on): Likewise.
46160         * modules/mkdtemp (Depends-on): Likewise.
46161         * modules/mkfifo (Depends-on): Likewise.
46162         * modules/mkfifoat (Depends-on): Likewise.
46163         * modules/mknod (Depends-on): Likewise.
46164         * modules/mkostemp (Depends-on): Likewise.
46165         * modules/mkostemps (Depends-on): Likewise.
46166         * modules/mkstemp (Depends-on): Likewise.
46167         * modules/mkstemps (Depends-on): Likewise.
46168         * modules/mktime (Depends-on): Likewise.
46169         * modules/nanosleep (Depends-on): Likewise.
46170         * modules/open (Depends-on): Likewise.
46171         * modules/openat (Depends-on): Likewise.
46172         * modules/perror (Depends-on): Likewise.
46173         * modules/poll (Depends-on): Likewise.
46174         * modules/popen (Depends-on): Likewise.
46175         * modules/posix_spawn (Depends-on): Likewise.
46176         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
46177         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
46178         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
46179         * modules/posix_spawnp (Depends-on): Likewise.
46180         * modules/pread (Depends-on): Likewise.
46181         * modules/printf-posix (Depends-on): Likewise.
46182         * modules/ptsname (Depends-on): Likewise.
46183         * modules/putenv (Depends-on): Likewise.
46184         * modules/pwrite (Depends-on): Likewise.
46185         * modules/readline (Depends-on): Likewise.
46186         * modules/readlink (Depends-on): Likewise.
46187         * modules/readlinkat (Depends-on): Likewise.
46188         * modules/recv (Depends-on): Likewise.
46189         * modules/recvfrom (Depends-on): Likewise.
46190         * modules/regex (Depends-on): Likewise.
46191         * modules/remove (Depends-on): Likewise.
46192         * modules/rename (Depends-on): Likewise.
46193         * modules/renameat (Depends-on): Likewise.
46194         * modules/rmdir (Depends-on): Likewise.
46195         * modules/round (Depends-on): Likewise.
46196         * modules/roundf (Depends-on): Likewise.
46197         * modules/roundl (Depends-on): Likewise.
46198         * modules/rpmatch (Depends-on): Likewise.
46199         * modules/select (Depends-on): Likewise.
46200         * modules/send (Depends-on): Likewise.
46201         * modules/sendto (Depends-on): Likewise.
46202         * modules/setenv (Depends-on): Likewise.
46203         * modules/setlocale (Depends-on): Likewise.
46204         * modules/setsockopt (Depends-on): Likewise.
46205         * modules/shutdown (Depends-on): Likewise.
46206         * modules/sigaction (Depends-on): Likewise.
46207         * modules/signbit (Depends-on): Likewise.
46208         * modules/sigprocmask (Depends-on): Likewise.
46209         * modules/sinl (Depends-on): Likewise.
46210         * modules/sleep (Depends-on): Likewise.
46211         * modules/snprintf (Depends-on): Likewise.
46212         * modules/snprintf-posix (Depends-on): Likewise.
46213         * modules/socket (Depends-on): Likewise.
46214         * modules/sprintf-posix (Depends-on): Likewise.
46215         * modules/sqrtl (Depends-on): Likewise.
46216         * modules/stat (Depends-on): Likewise.
46217         * modules/strchrnul (Depends-on): Likewise.
46218         * modules/strdup-posix (Depends-on): Likewise.
46219         * modules/strerror (Depends-on): Likewise.
46220         * modules/strerror_r-posix (Depends-on): Likewise.
46221         * modules/strndup (Depends-on): Likewise.
46222         * modules/strnlen (Depends-on): Likewise.
46223         * modules/strptime (Depends-on): Likewise.
46224         * modules/strsep (Depends-on): Likewise.
46225         * modules/strsignal (Depends-on): Likewise.
46226         * modules/strstr-simple (Depends-on): Likewise.
46227         * modules/strtod (Depends-on): Likewise.
46228         * modules/strtoimax (Depends-on): Likewise.
46229         * modules/strtok_r (Depends-on): Likewise.
46230         * modules/strtoumax (Depends-on): Likewise.
46231         * modules/symlink (Depends-on): Likewise.
46232         * modules/symlinkat (Depends-on): Likewise.
46233         * modules/tanl (Depends-on): Likewise.
46234         * modules/tcgetsid (Depends-on): Likewise.
46235         * modules/tmpfile (Depends-on): Likewise.
46236         * modules/trunc (Depends-on): Likewise.
46237         * modules/truncf (Depends-on): Likewise.
46238         * modules/truncl (Depends-on): Likewise.
46239         * modules/uname (Depends-on): Likewise.
46240         * modules/unlink (Depends-on): Likewise.
46241         * modules/unlockpt (Depends-on): Likewise.
46242         * modules/unsetenv (Depends-on): Likewise.
46243         * modules/usleep (Depends-on): Likewise.
46244         * modules/utimensat (Depends-on): Likewise.
46245         * modules/vasprintf (Depends-on): Likewise.
46246         * modules/vdprintf (Depends-on): Likewise.
46247         * modules/vdprintf-posix (Depends-on): Likewise.
46248         * modules/vfprintf-posix (Depends-on): Likewise.
46249         * modules/vprintf-posix (Depends-on): Likewise.
46250         * modules/vsnprintf (Depends-on): Likewise.
46251         * modules/vsnprintf-posix (Depends-on): Likewise.
46252         * modules/vsprintf-posix (Depends-on): Likewise.
46253         * modules/wcrtomb (Depends-on): Likewise.
46254         * modules/wcscasecmp (Depends-on): Likewise.
46255         * modules/wcscspn (Depends-on): Likewise.
46256         * modules/wcsdup (Depends-on): Likewise.
46257         * modules/wcsncasecmp (Depends-on): Likewise.
46258         * modules/wcsnrtombs (Depends-on): Likewise.
46259         * modules/wcspbrk (Depends-on): Likewise.
46260         * modules/wcsrtombs (Depends-on): Likewise.
46261         * modules/wcsspn (Depends-on): Likewise.
46262         * modules/wcsstr (Depends-on): Likewise.
46263         * modules/wcstok (Depends-on): Likewise.
46264         * modules/wcswidth (Depends-on): Likewise.
46265         * modules/wctob (Depends-on): Likewise.
46266         * modules/wctomb (Depends-on): Likewise.
46267         * modules/wctype (Depends-on): Likewise.
46268         * modules/wcwidth (Depends-on): Likewise.
46269         * modules/write (Depends-on): Likewise.
46271 2011-05-03  Bruno Haible  <bruno@clisp.org>
46273         Support for conditional dependencies.
46274         * doc/gnulib.texi (Module description): Document the syntax of
46275         conditional dependencies.
46276         * gnulib-tool: New option --conditional-dependencies.
46277         (func_usage): Document it.
46278         (cond_dependencies): New variable.
46279         (func_get_automake_snippet_conditional,
46280         func_get_automake_snippet_unconditional): New functions, extracted from
46281         func_get_automake_snippet.
46282         (func_get_automake_snippet): Use them.
46283         (sed_first_32_chars): New variable.
46284         (func_module_shellfunc_name): New function.
46285         (func_module_shellvar_name): New function.
46286         (func_module_conditional_name): New function.
46287         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
46288         func_cond_module_condition): New functions.
46289         (func_modules_transitive_closure): Add support for conditional
46290         dependencies.
46291         (func_emit_lib_Makefile_am): For a conditional module, enclose the
46292         conditional automake snippet in an automake conditional.
46293         (func_emit_autoconf_snippets): Emit shell functions that contain the
46294         code for conditional modules.
46295         (func_import, func_create_testdir): Update specification.
46297 2011-05-03  Eric Blake  <eblake@redhat.com>
46299         test-getaddrinfo: report error information
46300         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
46302 2011-05-03  Jim Meyering  <meyering@redhat.com>
46304         bootstrap: avoid build failure when $GZIP is set
46305         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
46306         program name.  If defined at all, it is supposed to list gzip options.
46307         Reported by Alan Curry in http://debbugs.gnu.org/8609
46309 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
46311         readme-release: new module with release instructions
46312         * modules/readme-release: New module.
46313         * top/README-release: New file, from coreutils, grep, diffutils.
46314         * MODULES.html.sh (Support for maintaining and releasing): Add it.
46316 2011-05-02  Eric Blake  <eblake@redhat.com>
46318         fflush: also replace fclose when fixing fflush
46319         * modules/fflush (Depends-on): Add fclose.
46320         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
46321         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
46322         memstreams with no backing fd.
46323         * doc/posix-functions/fclose.texi (fclose): Document the use of
46324         fflush module to fix the bug.
46325         * tests/test-fclose.c (main): Relax test when fclose is used in
46326         isolation.
46328         fclose: add some tests
46329         * modules/fclose-tests: New test module.
46330         * tests/test-fclose.c: New file.
46331         * doc/posix-functions/fclose.texi (fclose): Document the bug.
46333         fclose: reduced dependencies
46334         * modules/fclose (Depends-on): Switch from fflush/fseeko to
46335         simpler lseek.
46336         * lib/fclose.c (rpl_fclose): Likewise.
46337         Reported by Simon Josefsson.
46339         exit: drop remaining clients
46340         * modules/argmatch (Depends-on): Replace exit with stdlib.
46341         * modules/copy-file (Depends-on): Likewise.
46342         * modules/execute (Depends-on): Likewise.
46343         * modules/exitfail (Depends-on): Likewise.
46344         * modules/obstack (Depends-on): Likewise.
46345         * modules/pagealign_alloc (Depends-on): Likewise.
46346         * modules/pipe-filter-gi (Depends-on): Likewise.
46347         * modules/pipe-filter-ii (Depends-on): Likewise.
46348         * modules/savewd (Depends-on): Likewise.
46349         * modules/spawn-pipe (Depends-on): Likewise.
46350         * modules/wait-process (Depends-on): Likewise.
46351         * modules/xsetenv (Depends-on): Likewise.
46352         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
46353         * modules/git-merge-changelog (Depends-on): Likewise.
46354         * modules/long-options (Depends-on): Likewise.
46355         * modules/pt_chown (Depends-on): Likewise.
46356         * modules/sysexits (Depends-on): Likewise.
46358         freading: relax license from LGPLv3+ to LGPLv2+
46359         * modules/freading (License): Relax LGPL version.
46361 2011-05-02  Bruno Haible  <bruno@clisp.org>
46363         fchdir: Remove unused dependencies.
46364         * modules/fchdir (Depends-on): Remove include_next.
46366 2011-05-02  Bruno Haible  <bruno@clisp.org>
46368         gnulib-tool: Refactor.
46369         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
46370         from func_emit_autoconf_snippets.
46371         (func_emit_autoconf_snippets): Use it.
46373 2011-05-02  Simon Josefsson  <simon@josefsson.org>
46375         * NEWS: Document removal of 'exit'.
46376         * modules/exit: Remove file.
46378 2011-05-01  Bruno Haible  <bruno@clisp.org>
46380         Update DEPENDENCIES.
46381         * DEPENDENCIES (gettext): Recommend the newest release.
46382         Reported by Simon Josefsson.
46384 2011-05-01  Bruno Haible  <bruno@clisp.org>
46386         gnulib-tool: Reduce code duplication.
46387         * gnulib-tool (func_emit_autoconf_snippets): New function.
46388         (func_import, func_create_testdir): Use it.
46390 2011-04-30  Eric Blake  <eblake@redhat.com>
46392         fclose: don't fail on non-seekable input stream
46393         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
46394         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
46395         since fflush is allowed to fail in that case.
46397 2011-04-30  Bruno Haible  <bruno@clisp.org>
46399         dup3: cleanup
46400         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
46402 2011-04-30  Bruno Haible  <bruno@clisp.org>
46404         netdb: Make it work in C++ mode.
46405         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
46406         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
46407         module.
46408         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
46409         gl_MODULE_INDICATOR_FOR_TESTS.
46410         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
46411         * modules/netdb-c++-tests: New file.
46412         * tests/test-netdb-c++.cc: New file.
46414 2011-04-30  Bruno Haible  <bruno@clisp.org>
46416         New modules 'vfscanf', 'vscanf'.
46417         * modules/vfscanf: New file.
46418         * modules/vscanf: New file.
46419         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
46420         here.
46421         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
46422         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
46424 2011-04-30  Bruno Haible  <bruno@clisp.org>
46426         passfd: Add comments.
46427         * lib/passfd.c: Add comments about platforms.
46429 2011-04-30  Bruno Haible  <bruno@clisp.org>
46431         sys_uio: Make <sys/uio.h> self-contained.
46432         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
46433         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
46435 2011-04-30  Bruno Haible  <bruno@clisp.org>
46437         sys_socket: Ensure 'struct iovec' definition.
46438         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
46439         <sys/socket.h>.
46440         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
46442 2011-04-30  Bruno Haible  <bruno@clisp.org>
46444         sys_uio: Protect definition of 'struct iovec'.
46445         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
46446         it as a C struct.
46448 2011-04-30  Bruno Haible  <bruno@clisp.org>
46450         manywarnings: fix indentation
46451         * m4/manywarnings.m4: Indent by 2 spaces consistently.
46453 2011-04-30  Pádraig Brady  <P@draigBrady.com>
46455         manywarnings: add -Wno-missing-field-initializers if needed.
46456         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
46457         option if it's needed to allow initialization with { 0, }
46459 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
46461         announce-gen: cosmetic improvement
46462         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
46464 2011-04-29  Jim Meyering  <meyering@redhat.com>
46466         vc-list-files: indent with spaces, not TABs
46467         * build-aux/vc-list-files: Convert leading TABs to spaces,
46468         to match the style of most other files in gnulib.
46470         announce-gen: indent with spaces, not TABs
46471         * build-aux/announce-gen: Convert all TABs to spaces, to match
46472         the style of most other files in gnulib.
46474 2011-04-29  Eric Blake  <eblake@redhat.com>
46476         quotearg: avoid uninitialized variable use
46477         * lib/quotearg.c (quoting_options_from_style): Initialize
46478         remaining fields, and ensure that custom styles are only used via
46479         quoting_options rather than quoting_style.
46481 2011-04-29  Jim Meyering  <meyering@redhat.com>
46483         maint.mk: remove unused VC-tag variable
46484         * top/maint.mk (VC-tag): Remove unused variable.
46486 2011-04-29  Bruno Haible  <bruno@clisp.org>
46488         netdb: fix gai_strerror replacements
46489         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
46490         * modules/netdb: Substitute it.
46492 2011-04-29  Jim Meyering  <meyering@redhat.com>
46494         test-getcwd.c: avoid new set-but-not-used warning
46495         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
46496         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
46497         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
46498         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
46500         test-hash.c: avoid a new shadowing warning
46501         * tests/test-hash.c (main): Don't shadow "dup".
46503 2011-04-28  Eric Blake  <eblake@redhat.com>
46505         getaddrinfo: fix gai_strerror signature
46506         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
46507         and work around mingw with UNICODE defined.
46508         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
46509         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
46510         * modules/netdb (Makefile.am): Substitute it.
46511         * lib/netdb.in.h (gai_strerror): Declare replacement.
46512         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
46513         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
46514         the fix.
46516         getsockopt: avoid compiler warning
46517         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
46518         Reported by Matthias Bolte.
46520         tests: drop unused link dependency
46521         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
46522         * modules/dirent-safer-tests (Makefile.am): Likewise.
46523         * modules/fdopendir-tests (Makefile.am): Likewise.
46524         * modules/mkfifoat-tests (Makefile.am): Likewise.
46525         * modules/openat-safer-tests (Makefile.am): Likewise.
46526         * modules/openat-tests (Makefile.am): Likewise.
46527         * modules/readlinkat-tests (Makefile.am): Likewise.
46528         * modules/symlinkat-tests (Makefile.am): Likewise.
46529         * modules/linkat-tests (Makefile.am): Likewise.
46530         (Depends-on): Switch to filenamecat-lgpl.
46531         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
46532         LIBINTL.
46533         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
46534         * tests/test-linkat.c (main): Don't require xalloc.
46536         hash, mgetgroups: drop xalloc dependency
46537         * lib/hash.c (includes): Adjust includes.
46538         * lib/mgetgroups.c (includes): Likewise.
46539         (xgetgroups): Move...
46540         * lib/xgetgroups.c: ...to new file.
46541         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
46542         * modules/xgetgroups: New file, split from...
46543         * modules/mgetgroups: ...here.
46544         (Depends-on): Add xalloc-oversized.
46545         * modules/hash (Depends-on): Likewise.
46546         * modules/hash-tests (Depends-on): Drop xalloc.
46547         (test_hash_LDADD): Drop unused library.
46548         * tests/test-hash.c (main): Break xalloc dependency.
46549         (includes): Drop unused include.
46551         xalloc-oversized: new module
46552         * modules/xalloc-oversized: New module.
46553         * modules/xalloc (Depends-on): Add it.
46554         * lib/xalloc.h (xalloc_oversized): Move...
46555         * lib/xalloc-oversized.h: ...into new file.
46557         utimecmp: drop dependency on xmalloc
46558         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
46559         due to memory pressure.
46560         * modules/utimecmp (Depends-on): Drop xalloc.
46562 2011-04-27  Eric Blake  <eblake@redhat.com>
46564         getcwd: fix mingw bugs
46565         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
46566         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
46567         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
46569 2011-04-27  Bruno Haible  <bruno@clisp.org>
46571         mkstemps: Ensure declaration on MacOS X 10.5.
46572         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
46573         * doc/glibc-functions/mkstemps.texi: Document header file problem on
46574         MacOS X.
46576 2011-04-27  Bruno Haible  <bruno@clisp.org>
46578         mkstemp: More documentation.
46579         * doc/posix-functions/mkstemp.texi: Document header file problem on
46580         MacOS X.
46582 2011-04-27  Bruno Haible  <bruno@clisp.org>
46584         mkstemp: Tweak configure message when cross-compiling.
46585         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
46586         result as a guess.
46588 2011-04-27  Bruno Haible  <bruno@clisp.org>
46590         clean-temp: Clarify what it does.
46591         * lib/clean-temp.h: Add more comments.
46592         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
46593         module.
46594         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
46595         * doc/glibc-functions/mkstemps.texi: Likewise.
46596         * doc/glibc-functions/mkostemps.texi: Likewise.
46598 2011-04-27  Eric Blake  <eblake@redhat.com>
46600         fchdir: avoid extra chdir and fix test
46601         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
46602         getcwd-lgpl.
46603         * lib/fchdir.c (get_name): Any absolute name will do; it does not
46604         have to be canonical.
46605         (canonicalize_file_name): Drop unused macro.
46606         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
46608         filenamecat-lgpl: fix licence
46609         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
46610         when it was first created.
46612         linkat, renameat: add missing dependency
46613         * modules/linkat (Depends-on): Require getcwd-lgpl.
46614         * modules/renameat (Depends-on): Likewise.
46616         tests: reduce dependencies
46617         * tests/test-linkat.c (main): Use lighter-weight getcwd.
46618         * tests/test-renameat.c (main): Likewise.
46619         * modules/linkat-tests (Depends-on): Relax dependency.
46620         * modules/renameat-tests (Depends-on): Likewise.
46621         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
46622         dependency explicit.
46624         save-cwd: reduce default dependency
46625         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
46626         * lib/save-cwd.c: Update comments.
46627         * NEWS: Document the semantic change.
46629         getcwd: enhance tests
46630         * tests/test-getcwd-lgpl.c: New file, taken from...
46631         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
46632         repeat long path stress tests from m4 probe.
46633         * modules/getcwd-lgpl-tests: New module.
46634         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
46635         * m4/getcwd-abort-bug.m4: Update comment.
46636         * m4/getcwd-path-max.m4: Likewise.
46638         getcwd-lgpl: new module
46639         * modules/getcwd-lgpl: New module.
46640         * lib/getcwd-lgpl.c: New file.
46641         * doc/posix-functions/getcwd.texi (getcwd): Document it.
46642         * MODULES.html.sh (lacking POSIX:2008): Likewise.
46643         * modules/getcwd (configure.ac): Set C witness.
46644         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
46646         getcwd: tweak comments
46647         * m4/getcwd-abort-bug.m4: Fix comments.
46648         * m4/getcwd-path-max.m4: Likewise.
46649         * m4/getcwd.m4: Likewise.
46651 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
46652         and Eric Blake  <eblake@redhat.com>
46654         mkstemp: replace if system version uses wrong permissions
46655         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
46656         read/write mode bits set in file created by mkstemp.
46657         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
46659 2011-04-27  Eric Blake  <eblake@redhat.com>
46661         passfd: avoid compiler warning
46662         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
46663         Reported by Laine Stump.
46665 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
46667         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
46668         required by the NetBSD (and perhaps other 4.4BSD derived) join.
46670 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
46671         and Eric Blake  <eblake@redhat.com>
46673         mkstemp: mention clean-temp module
46674         * lib/mkstemp.c: Add comment.
46675         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
46677 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
46679         inttypes: also provide default values for 32-bit tests
46680         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
46681         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
46683 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
46685         strtoumax: remove dependency on strtoimax
46686         This is like the strtoull change of yesterday.
46687         * modules/strtoumax (Files): Add lib/strtoimax.c.
46688         (Depends-on): Remove strtoimax and add verify.
46690         inttypes-incomplete: new module
46691         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
46692         all but the PRI* and SCN* parts of gl_INTTYPES_H.
46693         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
46694         of gl_INTTYPES_H.
46695         (gl_INTTYPES_H): Rewrite in terms of these new macros.
46696         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
46697         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
46698         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
46699         * modules/strtoumax, modules/xstrtol (Depends-on):
46700         Depend on inttypes-incomplete, not inttypes.
46701         * modules/inttypes-incomplete: New module, containing the contents
46702         of the old modules/inttypes module, except that the Files: section
46703         omits m4/inttypes-pri.m4, and the configure.ac section invokes
46704         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
46705         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
46706         (Depends-on): Depend only on inttypes-incomplete.
46707         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
46709         inttypes: omit now-redundant strtoimax and strtoumax work
46710         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
46711         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
46713         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
46714         This supports apps that need pointers to strtoimax and strtoumax,
46715         and ports to HP-UX 11.00 64.bit, which has macros that expand to
46716         nonexistent functions.  See
46717         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
46718         et seq.
46719         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
46720         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
46721         a macro.
46722         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
46724 2011-04-25  Simon Josefsson  <simon@josefsson.org>
46726         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
46728 2011-04-25  Bruno Haible  <bruno@clisp.org>
46730         strtol, strtoul: Mark modules as obsolete.
46731         * modules/strtol (Status, Notice): New sections.
46732         * modules/strtoul (Status, Notice): New sections.
46734 2011-04-25  Bruno Haible  <bruno@clisp.org>
46736         strtod: Remove check for strtod, unless supporting old platforms.
46737         * modules/strtod-obsolete: New file.
46738         * m4/strtod-obsolete.m4: New file.
46739         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
46740         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
46741         * modules/strtod (Depends-on): Add strtod-obsolete.
46742         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
46744 2011-04-25  Bruno Haible  <bruno@clisp.org>
46746         strcase: Make module obsolete.
46747         * modules/strcase (Status, Notice): New sections.
46749 2011-04-25  Bruno Haible  <bruno@clisp.org>
46751         dup2: Remove check for dup2, unless supporting old obsolete platforms.
46752         * modules/dup2-obsolete: New file.
46753         * m4/dup2-obsolete.m4: New file.
46754         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
46755         gl_FUNC_DUP2_OBSOLETE is not also defined.
46756         * modules/dup2 (Depends-on): Add dup2-obsolete.
46757         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
46759 2011-04-25  Bruno Haible  <bruno@clisp.org>
46761         strnlen: Avoid memchr related link error on old obsolete platforms.
46762         * modules/memchr-obsolete: New file.
46763         * m4/memchr-obsolete.m4: New file.
46764         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
46765         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
46766         * modules/memchr (Depends-on): Add memchr-obsolete.
46767         * modules/strnlen (Depends-on): Likewise.
46768         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
46770 2011-04-25  Jim Meyering  <meyering@redhat.com>
46772         maint.mk: makefile_at_at_check extend and clean up
46773         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
46774         in addition to */Makefile.am.
46775         Exempt legitimate uses of @VAR@ notation, e.g.,
46776         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
46777         Remove obsolete coreutils-specific comment.
46778         Prompted by discussion here:
46779         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
46781 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
46783         strtoul: remove dependency on strtol
46784         This is so that 'configure' need not check for strtol merely because
46785         the application needs strtoul.
46786         * modules/strtoul (Files): Add lib/strtol.c.
46787         (Depends-on): Remove strtol.
46789         strtoull: remove dependency on strtoul
46790         This is like the strtoll change.
46791         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
46792         (Depends-on): Remove strtoul.
46794         strtoll: remove dependency on strtol
46795         This is so that 'configure' need not check for strtol merely because
46796         the application needs strtoll.
46797         * modules/strtoll (Files): Add lib/strtol.c.
46798         (Depends-on): Remove strtol.
46800 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46802         inttypes: Move some configure check to module 'imaxdiv'.
46803         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
46804         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
46805         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
46807 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46809         inttypes: Move some configure check to module 'imaxabs'.
46810         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
46811         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
46812         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
46814 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46816         inttypes: Remove configure tests that are not needed since 2009-12-31.
46817         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
46818         gl_cv_header_working_inttypes_h.
46820 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
46822         * modules/strnlen (Depends-on): Remove memchr.
46823         The strnlen implementation doesn't need the memchr module's fixes; see
46824         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
46826         strtol: remove dependency on wchar
46827         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
46828         * modules/strtol (Depends-on): Remove wchar.
46830 2011-04-21  Eric Blake  <eblake@redhat.com>
46832         passfd: fix test regression on Linux
46833         * modules/passfd-tests (configure.ac): Correct socketpair check.
46835         passfd: speed up configure and drop unused code
46836         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
46837         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
46838         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
46839         Instead of probing at configure for unix_scm_rights_bsd44_way,
46840         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
46841         check to a struct member probe.
46842         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
46843         (sendfd, recvfd): Update preprocessor checks.
46844         * modules/passfd (Files): Reflect rename, and drop unused file.
46845         (Depends-on): Drop unused dependency.
46847         passfd: allow compilation on mingw
46848         * modules/sys_socket (Depends-on): Add sys_uio.
46849         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
46850         iovec and a minimal struct msghdr.
46851         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
46852         * tests/test-sys_socket.c (main): Enhance test.
46853         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
46854         guaranteed to provide what we need.
46855         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
46856         * modules/passfd-tests (Depends-on): Add sys_wait.
46857         * tests/test-passfd.c (main): Skip test on mingw, for now.
46858         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
46859         partial 'struct msghdr' implementation.
46861         sys_uio: new module
46862         * modules/sys_uio: New module.
46863         * modules/sys_uio-tests: Likewise.
46864         * lib/sys_uio.in.h: New file.
46865         * m4/sys_uio_h.m4: Likewise.
46866         * tests/test-sys_uio.c: Likewise.
46867         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
46868         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
46870 2011-04-20  Jim Meyering  <meyering@redhat.com>
46872         useless-if-before-free: avoid false-positive
46873         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
46874         disjunct so that it too requires a terminating ";".  Without that,
46875         this script would identify as useless one statement from gcc that
46876         was not:
46877           if (aligned_ptr)
46878             free (((void **) aligned_ptr) [-1]);
46880 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
46882         doc: update users.txt.
46883         * users.txt: Add barcode.
46885 2011-04-19  Bruno Haible  <bruno@clisp.org>
46887         ioctl: Remove link dependency on native Windows.
46888         * lib/fd-hook.h: Renamed from lib/close-hook.h.
46889         (gl_close_fn, gl_ioctl_fn): New types.
46890         (struct fd_hook): Renamed from struct close_hook. Change type of
46891         private_close_fn field. Add private_ioctl_fn field.
46892         (close_hook_fn): Add parameter for primary close method.
46893         (execute_close_hooks, execute_all_close_hooks): Likewise.
46894         (ioctl_hook_fn): New type.
46895         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
46896         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
46897         argument.
46898         (unregister_fd_hook): Renamed from unregister_close_hook.
46899         * lib/fd-hook.c: Renamed from lib/close-hook.c.
46900         Don't include <unistd.h>.
46901         (close): Remove undef.
46902         (anchor): Update.
46903         (execute_close_hooks): Add argument for primary close method.
46904         (execute_all_close_hooks): Likewise.
46905         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
46906         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
46907         argument. Allow each argument to be NULL.
46908         (unregister_fd_hook): Renamed from unregister_close_hook.
46909         * lib/close.c (rpl_close): Pass 'close' function pointer to
46910         execute_all_close_hooks.
46911         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
46912         (primary_ioctl): New function.
46913         (ioctl): Don't call ioctlsocket here. Instead, call
46914         execute_all_ioctl_hooks.
46915         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
46916         close method.
46917         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
46918         (fd_sockets_hook): Renamed from close_sockets_hook.
46919         (gl_sockets_startup, gl_sockets_cleanup): Update.
46920         * modules/fd-hook: Renamed from modules/close-hook. Update.
46921         * modules/close (Depends-on): Add fd-hook, remove close-hook.
46922         * modules/sockets (Depends-on): Likewise.
46923         * modules/ioctl (Depends-on): Add fd-hook.
46924         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
46925         GNULIB_SOCKET.
46927 2011-04-19  Bruno Haible  <bruno@clisp.org>
46929         Move the support of O_NONBLOCK in open() to the 'open' module.
46930         * modules/nonblocking (Depends-on): Remove 'open'.
46931         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
46932         gl_cv_have_open_O_NONBLOCK.
46933         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
46934         O_NONBLOCK support.
46935         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
46937 2011-04-17  Bruno Haible  <bruno@clisp.org>
46939         pipe2: Simplify code.
46940         * lib/pipe2.c (pipe2): Reduce code duplication.
46942 2011-04-17  Bruno Haible  <bruno@clisp.org>
46944         nonblocking: Add comment.
46945         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
46947 2011-04-17  Bruno Haible  <bruno@clisp.org>
46949         nonblocking: Add tests for sockets.
46950         * tests/test-nonblocking-socket.sh: New file.
46951         * tests/test-nonblocking-socket-main.c: New file.
46952         * tests/test-nonblocking-socket-child.c: New file.
46953         * tests/test-nonblocking-socket.h: New file.
46954         * tests/socket-server.h: New file.
46955         * tests/socket-client.h: New file.
46956         * modules/nonblocking-socket-tests: New file.
46957         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
46959 2011-04-17  Bruno Haible  <bruno@clisp.org>
46961         nonblocking: Add tests for pipes.
46962         * tests/test-nonblocking-pipe.sh: New file.
46963         * tests/test-nonblocking-pipe-main.c: New file.
46964         * tests/test-nonblocking-pipe-child.c: New file.
46965         * tests/test-nonblocking-pipe.h: New file.
46966         * tests/test-nonblocking-writer.h: New file.
46967         * tests/test-nonblocking-reader.h: New file.
46968         * tests/test-nonblocking-misc.h: New file.
46969         * modules/nonblocking-pipe-tests: New file.
46970         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
46972 2011-04-16  Bruno Haible  <bruno@clisp.org>
46974         gettext: Clarify the needed programmer actions.
46975         * modules/gettext (Notice): New field.
46976         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
46978 2011-04-16  Bruno Haible  <bruno@clisp.org>
46980         strchrnul: Tweak last commit.
46981         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
46982         bug.
46983         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
46984         as in _GL_FUNCDECL_SYS.
46985         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
46986         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
46988 2011-04-15  Eric Blake  <eblake@redhat.com>
46990         strchrnul: work around cygwin bug
46991         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
46992         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
46993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
46994         * modules/string (Makefile.am): Substitute it.
46995         * lib/string.in.h (strchrnul): Use it.
46997 2011-04-15  Bruno Haible  <bruno@clisp.org>
46999         Don't require lib/stdio-write.c when only module 'stdio' is used.
47000         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
47001         invocation.
47002         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
47004 2011-04-14  Bruno Haible  <bruno@clisp.org>
47006         Support non-blocking pipe I/O in read() on native Windows.
47007         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
47008         (read): New declaration.
47009         * lib/read.c: New file.
47010         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
47011         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
47012         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
47013         vscanf): New declarations.
47014         * lib/stdio-read.c: New file.
47015         * m4/read.m4: New file.
47016         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
47017         REPLACE_READ.
47018         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
47019         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
47020         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
47021         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
47022         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
47023         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
47024         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
47025         * modules/read: New file.
47026         * modules/nonblocking (Files): Add lib/stdio-read.c.
47027         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
47028         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
47029         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
47030         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
47031         * modules/pread (Depends-on): Add read.
47032         * modules/safe-read (Depends-on): Likewise.
47033         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
47034         gets, scanf, vfscanf, vscanf): Verify signatures.
47035         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
47036         problem with non-blocking pipes.
47037         * doc/posix-functions/fgetc.texi: Likewise.
47038         * doc/posix-functions/fgets.texi: Likewise.
47039         * doc/posix-functions/fread.texi: Likewise.
47040         * doc/posix-functions/fscanf.texi: Likewise.
47041         * doc/posix-functions/getc.texi: Likewise.
47042         * doc/posix-functions/getchar.texi: Likewise.
47043         * doc/posix-functions/gets.texi: Likewise.
47044         * doc/posix-functions/scanf.texi: Likewise.
47045         * doc/posix-functions/vfscanf.texi: Likewise.
47046         * doc/posix-functions/vscanf.texi: Likewise.
47048 2011-04-14  Bruno Haible  <bruno@clisp.org>
47050         Support non-blocking pipe I/O in write() on native Windows.
47051         * lib/write.c (rpl_write): Split a write request that failed merely
47052         because the byte count was larger than the pipe buffer's size.
47053         * doc/posix-functions/write.texi: Mention the problem with large byte
47054         counts.
47056 2011-04-14  Bruno Haible  <bruno@clisp.org>
47058         wchar: Ensure that wchar_t gets defined on uClibc.
47059         * lib/wchar.in.h: On uClibc, include <stddef.h>.
47060         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
47062 2011-04-13  Bruno Haible  <bruno@clisp.org>
47064         safe-write, full-read: Avoid unnecessary compilation units.
47065         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
47066         (Depends-on): Remove safe-read. Add ssize_t.
47067         * modules/full-read (Files): Add lib/full-write.c.
47068         (Depends-on): Add full-write.
47070 2011-04-13  Bruno Haible  <bruno@clisp.org>
47072         Support non-blocking pipe I/O and SIGPIPE in pwrite().
47073         * modules/pwrite (Depends-on): Add 'write'.
47075 2011-04-13  Bruno Haible  <bruno@clisp.org>
47077         Support non-blocking pipe I/O in write() on native Windows.
47078         * lib/unistd.in.h (write): Enable replacement also if
47079         GNULIB_UNISTD_H_NONBLOCKING is 1.
47080         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
47081         (rpl_write): When failing to write on a non-blocking pipe, change
47082         errno from ENOSPC to EAGAIN.
47083         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
47084         putchar, puts, vfprintf, vprintf): Enable replacement also if
47085         GNULIB_STDIO_H_NONBLOCKING is 1.
47086         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
47087         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
47088         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
47089         CALL_WITH_SIGPIPE_EMULATION.
47090         (CALL_WITH_SIGPIPE_EMULATION): Use them.
47091         * m4/nonblocking.m4: New file.
47092         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
47093         for non-blocking I/O support.
47094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47095         GNULIB_UNISTD_H_NONBLOCKING.
47096         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
47097         required for non-blocking I/O support.
47098         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
47099         * modules/nonblocking (Files): Add m4/nonblocking.m4,
47100         lib/stdio-write.c, m4/asm-underscore.m4.
47101         (Depends-on): Add stdio, unistd.
47102         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
47103         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
47104         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
47105         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
47106         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
47107         problem with non-blocking pipes.
47108         * doc/posix-functions/fputc.texi: Likewise.
47109         * doc/posix-functions/fputs.texi: Likewise.
47110         * doc/posix-functions/fwrite.texi: Likewise.
47111         * doc/posix-functions/printf.texi: Likewise.
47112         * doc/posix-functions/putc.texi: Likewise.
47113         * doc/posix-functions/putchar.texi: Likewise.
47114         * doc/posix-functions/puts.texi: Likewise.
47115         * doc/posix-functions/vfprintf.texi: Likewise.
47116         * doc/posix-functions/vprintf.texi: Likewise.
47117         * doc/posix-functions/write.texi: Likewise.
47119 2011-04-10  Jim Meyering  <meyering@redhat.com>
47121         maint.mk: prohibit doubled words
47122         Detect them also when they're separated by a newline.
47123         There are 3 ways to customize it:
47124           - disable the test on a per file basis, as usual with rules using
47125             $(VC_LIST_EXCEPT)
47126           - replace the default doubled-word-selecting regexp (affects all files)
47127           - ignore a particular file-vs-doubled-word match
47128         I nearly used that last one to ignore the "is is" match in
47129         coreutils' NEWS file, since the text was "ls -is is ..."
47130         To do that, I would have added this line to cfg.mk:
47131           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
47132         but it would have ignored any "is is" match in NEWS.
47133         Low probability, but still...
47134         Instead, I changed the text, slightly:
47135           -  ls -is is now consistent with ls -lis in ignoring values returned
47136           +  "ls -is" is now consistent with ls -lis in ignoring values returned
47137         * top/maint.mk (prohibit_double_word_RE_): Provide default.
47138         (prohibit_doubled_word_): Define.
47139         (sc_prohibit_doubled_word): New rule.
47140         (sc_prohibit_the_the): Remove.  Subsumed by the above.
47142 2011-04-10  Jim Meyering  <meyering@redhat.com>
47144         maint: fix doubled-word typo in comment
47145         * m4/gethostname.m4: s/is is/it is/
47146         * m4/getdomainname.m4: Likewise.
47148 2011-04-10  Jim Meyering  <meyering@redhat.com>
47150         maint: remove doubled word: s/it it/it/
47151         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
47153 2011-04-10  Jim Meyering  <meyering@redhat.com>
47155         maint.mk: remove useless semicolon and backslash
47156         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
47157         semicolon and backslash.
47159 2011-04-10  Bruno Haible  <bruno@clisp.org>
47161         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
47162         * modules/stdint-tests (Depends-on): Add wchar.
47164 2011-04-10  Jim Meyering  <meyering@redhat.com>
47166         maint: remove doubled words in comments, e.g., s/a a/a/
47167         * lib/strptime.c (day_of_the_week): s/the the/the/
47168         * tests/test-chown.h (test_chown): s/a a/a/
47170         test-chown.h: correct a cast
47171         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
47172         when the destination is a stat.st_gid.
47174 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
47176         getaddrinfo: Fix test for sa_len member.
47177         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
47178         include <sys/types.h> before <sys/socket.h>.
47180 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
47182         maint: change "can not" to "cannot"
47183         * doc/posix-functions/iconv.texi (iconv): This one crossed line
47184         boundaries.
47186 2011-04-09  Jim Meyering  <meyering@redhat.com>
47188         maint: change "a a" to "a"
47189         * tests/test-lchown.h (test_lchown): s/a a/a/
47191         maint.mk: prohibit \<the the\>
47192         * top/maint.mk (sc_prohibit_the_the): New rule.
47194         maint: fix "the the" in comment
47195         * lib/count-one-bits.h: s/the the/the/
47197         maint: change "can not" to "cannot"
47198         But do not change the occurrences in maintain.texi or in
47199         build-aux/po/Makefile.in.in, which I presume comes from gettext.
47200         * doc/gnulib-tool.texi: s/can not/cannot/
47201         * doc/posix-functions/accept.texi (accept): Likewise.
47202         * doc/posix-functions/socket.texi (socket): Likewise.
47203         * lib/mbrtowc.c: Likewise.
47205         maint.mk: prohibit use of "can not"
47206         * top/maint.mk (sc_prohibit_can_not): New rule.
47207         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
47209 2011-04-09  Bruno Haible  <bruno@clisp.org>
47211         careadlinkat: Guard against misuse of careadlinkatcwd.
47212         * lib/careadlinkat.c: Include <stdlib.h>.
47213         (careadlinkatcwd): Check that the fd argument is as expected.
47215 2011-04-09  Bruno Haible  <bruno@clisp.org>
47217         careadlinkat: Use common coding style.
47218         * lib/careadlinkat.c: Move gnulib includes after system includes.
47220 2011-04-09  Bruno Haible  <bruno@clisp.org>
47222         careadlinkat: Clarify specification.
47223         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
47224         (careadlinkatcwd): Add comment.
47225         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
47227 2011-04-09  Bruno Haible  <bruno@clisp.org>
47229         areadlinkat: Avoid link error on many platforms.
47230         * modules/areadlinkat (Depends-on): Add areadlink.
47232 2011-04-09  Bruno Haible  <bruno@clisp.org>
47234         allocator, careadlinkat: Fix double-inclusion guard.
47235         * lib/allocator.h: Fix double-inclusion guard.
47236         * lib/careadlinkat.h: Likewise.
47238 2011-04-09  Bruno Haible  <bruno@clisp.org>
47240         relocatable-prog-wrapper: Update after module 'areadlink' changed.
47241         * lib/relocwrapper.c: Update dependencies hierarchy.
47242         * build-aux/install-reloc: Update list of files to be compiled.
47243         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
47244         lib/allocator.[hc].
47246 2011-04-08  Eric Blake  <eblake@redhat.com>
47248         strftime: silence gnulib-tool warning
47249         * modules/strftime-tests (Depends-on): Drop automatic dependency.
47251 2011-04-08  Bruno Haible  <bruno@clisp.org>
47253         verify: Fix syntax error with GCC 4.6 in C++ mode.
47254         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
47255         (HAVE_STATIC_ASSERT): New macro.
47256         (verify_true, verify): Use 'static_assert' if it is supported and
47257         '_Static_assert' is not supported.
47259 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
47261         allocator: New module.
47262         * modules/allocator, lib/allocator.c: New files.
47263         * lib/allocator.h (stdlib_allocator): New decl.
47264         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
47265         Remove.  Do not include <stdlib.h>.
47266         (careadlinkat): Use stdlib_allocator instead of rolling our own.
47267         * modules/careadlinkat (Files): Remove lib/allocator.h.
47268         (Depends-on): Add allocator.
47270         stdlib: let modules use system malloc, realloc
47271         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
47272         if !_GL_USE_STDLIB_ALLOC.
47273         (malloc, realloc): Limit this change to a smaller scope.
47275         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
47276         (malloc, realloc): Don't #undef; no longer needed.
47277         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47278         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47279         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
47280         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47281         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47282         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47283         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
47284         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
47286         careadlinkat: rename members to avoid problem
47287         * lib/allocator.h (struct allocator): Rename members from
47288         malloc/realloc to allocate/reallocate, to avoid problems if malloc
47289         and realloc are #define'd.  Reported by Eric Blake in
47290         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
47291         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
47293 2011-04-08  Eric Blake  <eblake@redhat.com>
47295         nonblocking: reduce dependency
47296         * tests/test-nonblocking.c: Only test sockets when in use.
47297         * modules/nonblocking-tests (Depends-on): Drop socket.
47298         (Makefile.am): Link even if sockets are not present.
47299         * modules/pipe2-tests (Makefile.am): Likewise.
47300         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
47302         pipe2: fix O_NONBLOCK support on mingw
47303         * modules/pipe2 (Depends-on): Add nonblocking.
47304         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
47305         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
47306         * tests/test-nonblocking.c (main): Likewise.
47307         * modules/pipe2-tests (Makefile.am): Avoid link failure.
47309         fcntl-h: fix O_ACCMODE on cygwin
47310         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
47311         * lib/fcntl.in.h (O_ACCMODE): Fix it.
47313         pipe-filter: drop O_NONBLOCK workarounds
47314         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
47315         * modules/pipe-filter-ii (Depends-on): Likewise.
47316         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
47318         nonblocking: provide O_NONBLOCK for mingw
47319         * modules/nonblocking (Depends-on): Add open.
47320         (configure.ac): Set new witness macro.
47321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
47322         * modules/fcntl-h (Makefile.am): Substitute it.
47323         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
47324         nonblocking module is in use.
47325         * lib/nonblocking.c: Adjust portability test.
47326         * lib/open.c (open): Don't let native open see gnulib flag.
47327         * tests/test-fcntl-h.c (main): Enhance test.
47328         * tests/test-open.h (test_open): Likewise.
47329         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
47331         careadlinkat: fix compilation error on mingw
47332         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
47333         within struct allocator.
47335 2011-04-06  Eric Blake  <eblake@redhat.com>
47337         binary-io: relicense under LGPLv2+
47338         * modules/binary-io (License): Relax to LGPLv2+.
47339         Requested for libvirt, and required by pipe2.
47341 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
47343         verify: use _Static_assert if available
47344         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
47345         (verify_true, verify): Use it if available.  This generates better
47346         diagnostics with GCC 4.6.0 and later.
47348 2011-04-05  Bruno Haible  <bruno@clisp.org>
47350         Remove leftover generated .h files after config.status changed.
47352         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
47353         GL_GENERATE_ALLOCA_H.
47354         * modules/alloca-opt (Makefile.am): Remove alloca.h if
47355         GL_GENERATE_ALLOCA_H evaluates to false.
47357         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
47358         GL_GENERATE_ARGZ_H.
47359         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
47360         evaluates to false.
47362         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
47363         GL_GENERATE_BYTESWAP_H.
47364         * modules/byteswap (Makefile.am): Remove byteswap.h if
47365         GL_GENERATE_BYTESWAP_H evaluates to false.
47367         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
47368         GL_GENERATE_ERRNO_H.
47369         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
47370         evaluates to false.
47372         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
47373         GL_GENERATE_FLOAT_H.
47374         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
47375         evaluates to false.
47377         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
47378         GL_GENERATE_FNMATCH_H.
47379         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
47380         GL_GENERATE_FNMATCH_H evaluates to false.
47382         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
47383         GL_GENERATE_GLOB_H.
47384         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
47385         evaluates to false.
47387         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
47388         automake conditional GL_GENERATE_ICONV_H.
47389         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
47390         evaluates to false.
47392         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
47393         GL_GENERATE_NETINET_IN_H.
47394         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
47395         GL_GENERATE_NETINET_IN_H evaluates to false.
47397         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
47398         conditional GL_GENERATE_PTHREAD_H.
47399         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
47400         * modules/pthread (Makefile.am): Remove pthread.h if
47401         GL_GENERATE_PTHREAD_H evaluates to false.
47403         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
47404         GL_GENERATE_SCHED_H.
47405         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
47406         evaluates to false.
47408         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
47409         conditional GL_GENERATE_SELINUX_CONTEXT_H.
47410         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
47411         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
47413         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
47414         GL_GENERATE_STDARG_H.
47415         * modules/stdarg (Makefile.am): Remove stdarg.h if
47416         GL_GENERATE_STDARG_H evaluates to false.
47418         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
47419         GL_GENERATE_STDBOOL_H.
47420         * modules/stdbool (Makefile.am): Remove stdbool.h if
47421         GL_GENERATE_STDBOOL_H evaluates to false.
47423         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
47424         conditional GL_GENERATE_STDDEF_H.
47425         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
47426         * modules/stddef (Makefile.am): Remove stddef.h if
47427         GL_GENERATE_STDDEF_H evaluates to false.
47429         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
47430         GL_GENERATE_STDINT_H.
47431         * modules/stdint (Makefile.am): Remove stdint.h if
47432         GL_GENERATE_STDINT_H evaluates to false.
47434         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
47435         GL_GENERATE_SYSEXITS_H.
47436         * modules/sysexits (Makefile.am): Remove sysexits.h if
47437         GL_GENERATE_SYSEXITS_H evaluates to false.
47439         Reported by Karl Berry and Ralf Wildenhues.
47441 2011-04-05  Bruno Haible  <bruno@clisp.org>
47443         Ensure to rebuild generated .h files when config.status has changed.
47444         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
47445         config.status.
47446         * modules/ctype (Makefile.am): Likewise.
47447         * modules/dirent (Makefile.am): Likewise.
47448         * modules/errno (Makefile.am): Likewise.
47449         * modules/fcntl-h (Makefile.am): Likewise.
47450         * modules/float (Makefile.am): Likewise.
47451         * modules/getopt-posix (Makefile.am): Likewise.
47452         * modules/glob (Makefile.am): Likewise.
47453         * modules/iconv-h (Makefile.am): Likewise.
47454         * modules/inttypes (Makefile.am): Likewise.
47455         * modules/langinfo (Makefile.am): Likewise.
47456         * modules/locale (Makefile.am): Likewise.
47457         * modules/math (Makefile.am): Likewise.
47458         * modules/netdb (Makefile.am): Likewise.
47459         * modules/netinet_in (Makefile.am): Likewise.
47460         * modules/poll-h (Makefile.am): Likewise.
47461         * modules/pthread (Makefile.am): Likewise.
47462         * modules/pty (Makefile.am): Likewise.
47463         * modules/sched (Makefile.am): Likewise.
47464         * modules/search (Makefile.am): Likewise.
47465         * modules/selinux-h (Makefile.am): Likewise.
47466         * modules/signal (Makefile.am): Likewise.
47467         * modules/spawn (Makefile.am): Likewise.
47468         * modules/stdarg (Makefile.am): Likewise.
47469         * modules/stdbool (Makefile.am): Likewise.
47470         * modules/stddef (Makefile.am): Likewise.
47471         * modules/stdint (Makefile.am): Likewise.
47472         * modules/stdio (Makefile.am): Likewise.
47473         * modules/stdlib (Makefile.am): Likewise.
47474         * modules/string (Makefile.am): Likewise.
47475         * modules/strings (Makefile.am): Likewise.
47476         * modules/sys_file (Makefile.am): Likewise.
47477         * modules/sys_ioctl (Makefile.am): Likewise.
47478         * modules/sys_select (Makefile.am): Likewise.
47479         * modules/sys_socket (Makefile.am): Likewise.
47480         * modules/sys_stat (Makefile.am): Likewise.
47481         * modules/sys_time (Makefile.am): Likewise.
47482         * modules/sys_times (Makefile.am): Likewise.
47483         * modules/sys_utsname (Makefile.am): Likewise.
47484         * modules/sys_wait (Makefile.am): Likewise.
47485         * modules/sysexits (Makefile.am): Likewise.
47486         * modules/termios (Makefile.am): Likewise.
47487         * modules/time (Makefile.am): Likewise.
47488         * modules/unistd (Makefile.am): Likewise.
47489         * modules/wchar (Makefile.am): Likewise.
47490         * modules/wctype-h (Makefile.am): Likewise.
47491         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
47493 2011-04-05  Bruno Haible  <bruno@clisp.org>
47495         pipe2: Relicense under LGPLv2+.
47496         * modules/pipe2 (License): Change to LGPLv2+.
47497         Requested by Eric Blake, for libvirt.
47499 2011-04-05  Bruce Korb  <bkorb@gnu.org>
47501         bootstrap: compute gnulib_extra_files after updating build_aux
47502         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
47503         change build_aux or also supply gnulib_extra_files.  Handle correctly.
47505 2011-04-05  Eric Blake  <eblake@redhat.com>
47507         bootstrap: preserve git whitelist item sorting
47508         * build-aux/bootstrap (sort_patterns): New function.
47509         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
47511 2011-04-05  Simon Josefsson  <simon@josefsson.org>
47513         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
47514         sc_space_tab check.
47516 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
47518         areadlink, areadlinkat: rewrite in terms of careadlinkat
47519         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
47520         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
47521         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
47522         (malloc, realloc): Remove #undefs.
47523         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
47524         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
47525         readlink, ssize_t, stdint, unistd.
47526         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
47527         areadlink, stdint.
47529         careadlinkat: new module
47530         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
47531         * modules/careadlinkat: New files, written by me with
47532         a review and feedback from Ben Pfaff in
47533         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
47535 2011-04-01  Bruno Haible  <bruno@clisp.org>
47537         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
47538         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
47539         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
47540         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
47541         Reported by Bruce Korb <bruce.korb@gmail.com>.
47543 2011-04-01  Bruno Haible  <bruno@clisp.org>
47545         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
47546         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
47547         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
47548         * modules/wcpcpy (Depends-on): Add extensions.
47549         * modules/wcpncpy (Depends-on): Likewise.
47550         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
47551         systems.
47552         * doc/posix-functions/wcpncpy.texi: Likewise.
47553         * doc/posix-functions/wcwidth.texi: Likewise.
47555 2011-03-31  Eric Blake  <eblake@redhat.com>
47557         nonblocking: fix mingw test failures
47558         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
47559         non-blocking flag on regular file.
47560         (get_nonblocking_flag): Set errno on invalid fd.
47561         * tests/test-nonblocking.c (main): Avoid test failure on
47562         directories if fchdir is not active.
47563         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
47565 2011-03-31  Bruno Haible  <bruno@clisp.org>
47567         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
47568         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
47569         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
47570         Reported by Simon Josefsson <simon@josefsson.org>.
47572 2011-03-31  Bruno Haible  <bruno@clisp.org>
47573         and Eric Blake  <eblake@redhat.com>
47575         nonblocking: new module
47576         * modules/nonblocking: New module.
47577         * modules/nonblocking-tests: Likewise.
47578         * lib/nonblocking.h: New file.
47579         * lib/nonblocking.c: Likewise.
47580         * tests/test-nonblocking.c: New test.
47581         * lib/ioctl.c (ioctl) [mingw]: Update comment.
47583 2011-03-30  Bruno Haible  <bruno@clisp.org>
47585         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
47586         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
47587         instead of 'printf' format for GCC >= 4.4.
47588         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
47589         (fprintf, printf, vfprintf, vprintf): Declare with
47590         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
47591         the system's vfprintf() function.
47592         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
47594 2011-03-30  Eric Blake  <eblake@redhat.com>
47596         passfd: fix scoping bug
47597         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
47598         before sendmsg/recvmsg.
47600         passfd: standardize coding conventions
47601         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
47602         can be learned at compile time.
47603         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
47604         ifdefs.
47605         (sendfd, recvfd): Follow gnulib code conventions.
47607         passfd: fix incorrect sendmsg arguments
47608         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
47609         incorrect msg_controllen value.
47610         * modules/passfd-tests (Depends-on): Check for alarm.
47611         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
47612         Reported by Bastien ROUCARIES.
47614 2011-03-30  Bruno Haible  <bruno@clisp.org>
47616         c-strcasestr: Relicense under LGPLv2+.
47617         * modules/c-strcasestr (License): Change to LGPLv2+.
47618         Requested by Eric Blake, for libvirt.
47620 2011-03-30  Simon Josefsson  <simon@josefsson.org>
47622         * users.txt: Add libidn2.  Fix libtasn1 link.
47624 2011-03-30  Jim Meyering  <meyering@redhat.com>
47626         tests: readlink* ("",... fails with EINVAL on newer kernels
47627         readlink and readlinkat have typically failed with ENOENT for
47628         the invalid, empty file name,  "".  However, with the advent
47629         of linux-2.6.39, they fail with EINVAL.
47630         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
47631         when operating on the empty file name.
47632         * tests/test-readlink.h (test_readlink): Likewise.
47634 2011-03-29  Bruno Haible  <bruno@clisp.org>
47636         Relicense some modules under LGPLv2+, for libidn2.
47637         * modules/array-mergesort (License): Change to LGPLv2+.
47638         * modules/c-strcaseeq (License): Likewise.
47639         * modules/striconveh (License): Likewise.
47640         * modules/striconveha (License): Likewise.
47641         * modules/uniconv/base (License): Likewise.
47642         * modules/uniconv/u8-conv-from-enc (License): Likewise.
47643         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
47644         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
47645         * modules/unictype/base (License): Likewise.
47646         * modules/unictype/bidiclass-of (License): Likewise.
47647         * modules/unictype/category-M (License): Likewise.
47648         * modules/unictype/category-none (License): Likewise.
47649         * modules/unictype/category-of (License): Likewise.
47650         * modules/unictype/category-test (License): Likewise.
47651         * modules/unictype/category-test-withtable (License): Likewise.
47652         * modules/unictype/combining-class (License): Likewise.
47653         * modules/unictype/joiningtype-of (License): Likewise.
47654         * modules/unictype/scripts (License): Likewise.
47655         * modules/uninorm/base (License): Likewise.
47656         * modules/uninorm/canonical-decomposition (License): Likewise.
47657         * modules/uninorm/composition (License): Likewise.
47658         * modules/uninorm/decompose-internal (License): Likewise.
47659         * modules/uninorm/decomposition-table (License): Likewise.
47660         * modules/uninorm/nfc (License): Likewise.
47661         * modules/uninorm/nfd (License): Likewise.
47662         * modules/uninorm/u32-normalize (License): Likewise.
47663         * modules/unistr/base (License): Likewise.
47664         * modules/unistr/u32-cpy (License): Likewise.
47665         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
47666         * modules/unistr/u32-to-u8 (License): Likewise.
47667         * modules/unistr/u32-uctomb (License): Likewise.
47668         * modules/unistr/u8-check (License): Likewise.
47669         * modules/unistr/u8-mblen (License): Likewise.
47670         * modules/unistr/u8-mbtouc (License): Likewise.
47671         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
47672         * modules/unistr/u8-mbtoucr (License): Likewise.
47673         * modules/unistr/u8-prev (License): Likewise.
47674         * modules/unistr/u8-strlen (License): Likewise.
47675         * modules/unistr/u8-to-u32 (License): Likewise.
47676         * modules/unistr/u8-uctomb (License): Likewise.
47677         * modules/unitypes (License): Likewise.
47678         Requested by Simon Josefsson.
47680 2011-03-29  Simon Josefsson  <simon@josefsson.org>
47682         lib-symbol-visibility: Add a notice.
47683         * modules/lib-symbol-visibility (Notice): New field.
47685 2011-03-29  Bruno Haible  <bruno@clisp.org>
47687         getaddrinfo: Doc fix.
47688         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
47689         section "fixed in Gnulib".
47691 2011-03-28  Simon Josefsson  <simon@josefsson.org>
47693         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
47694         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
47696 2011-03-26  Bruno Haible  <bruno@clisp.org>
47698         unictype/property-byname: Reduce the number of load-time relocations.
47699         * lib/unictype/pr_byname.c: Include <stdlib.h>.
47700         (UC_PROPERTY_INDEX_*): New enumeration values.
47701         (uc_property_byname): Convert an index from the lookup table to an
47702         uc_property_t.
47703         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
47704         values.
47706 2011-03-26  Bruno Haible  <bruno@clisp.org>
47708         unictype/property-byname: Allow omitted word separators and aliases.
47709         * lib/unictype/pr_byname.gperf: Add property names without word
47710         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
47711         for 'space'.
47713 2011-03-26  Bruno Haible  <bruno@clisp.org>
47715         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
47716         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
47717         also hyphens to space.
47718         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
47719         without spaces.
47720         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
47722 2011-03-26  Bruno Haible  <bruno@clisp.org>
47724         unictype/joiningtype-byname: Recognize long names as well.
47725         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
47726         a long name.
47727         * lib/unictype/joiningtype_byname.c: Include <string.h>,
47728         unictype/joiningtype_byname.h.
47729         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
47730         * lib/unictype/joiningtype_byname.gperf: New file.
47731         * modules/unictype/joiningtype-byname (Files): Add
47732         lib/unictype/joiningtype_byname.gperf.
47733         (Depends-on): Add gperf.
47734         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
47735         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
47736         long names.
47738         Tests for module 'unictype/joiningtype-longname'.
47739         * modules/unictype/joiningtype-longname-tests: New file.
47740         * tests/unictype/test-joiningtype_longname.c: New file.
47742         New module 'unictype/joiningtype-longname'.
47743         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
47744         * lib/unictype/joiningtype_longname.c: New file.
47745         * modules/unictype/joiningtype-longname: New file.
47746         * modules/unictype/joiningtype-all (Depends-on): Add
47747         unictype/joiningtype-longname.
47749 2011-03-26  Bruno Haible  <bruno@clisp.org>
47751         unictype/bidiclass-byname: Recognize long names as well.
47752         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
47753         name.
47754         * lib/unictype/bidi_byname.c: Include <string.h>,
47755         unictype/bidi_byname.h.
47756         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
47757         * lib/unictype/bidi_byname.gperf: New file.
47758         * modules/unictype/bidiclass-byname (Files): Add
47759         lib/unictype/bidi_byname.gperf.
47760         (Depends-on): Add gperf.
47761         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
47762         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
47763         long names.
47765         Tests for module 'unictype/bidiclass-longname'.
47766         * modules/unictype/bidiclass-longname-tests: New file.
47767         * tests/unictype/test-bidi_longname.c: New file.
47769         New module 'unictype/bidiclass-longname'.
47770         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
47771         * lib/unictype/bidi_longname.c: New file.
47772         * modules/unictype/bidiclass-longname: New file.
47773         * modules/unictype/bidiclass-all (Depends-on): Add
47774         unictype/bidiclass-longname.
47776 2011-03-26  Bruno Haible  <bruno@clisp.org>
47778         unictype/bidi*: Rename modules.
47779         * modules/unictype/bidiclass-all: Renamed from
47780         modules/unictype/bidicategory-all.
47781         * modules/unictype/bidiclass-name: Renamed from
47782         modules/unictype/bidiclass-name.
47783         (Description): Update.
47784         * modules/unictype/bidiclass-name-tests: Renamed from
47785         modules/unictype/bidicategory-name-tests.
47786         * modules/unictype/bidiclass-byname: Renamed from
47787         modules/unictype/bidicategory-byname.
47788         (Description): Update.
47789         * modules/unictype/bidiclass-byname-tests: Renamed from
47790         modules/unictype/bidicategory-byname-tests.
47791         * modules/unictype/bidiclass-of: Renamed from
47792         modules/unictype/bidicategory-of.
47793         (Description): Update.
47794         * modules/unictype/bidiclass-of-tests: Renamed from
47795         modules/unictype/bidicategory-of-tests.
47796         * modules/unictype/bidiclass-test: Renamed from
47797         modules/unictype/bidicategory-test.
47798         (Description): Update.
47799         * modules/unictype/bidiclass-test-tests: Renamed from
47800         modules/unictype/bidicategory-test-tests.
47801         * modules/unictype/bidicategory-all: New file, a simple redirection.
47802         * modules/unictype/bidicategory-name: Likewise.
47803         * modules/unictype/bidicategory-byname: Likewise.
47804         * modules/unictype/bidicategory-of: Likewise.
47805         * modules/unictype/bidicategory-test: Likewise.
47806         * modules/unictype/property-bidi-* (Dependencies): Update.
47807         * lib/unictype/bidi_*.c: Update comment.
47809 2011-03-26  Bruno Haible  <bruno@clisp.org>
47811         unictype/bidi*: Rename functions, part 2.
47812         * modules/unictype/bidicategory-name (configure.ac): Update required
47813         libunistring version.
47814         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
47816 2011-03-25  Bruno Haible  <bruno@clisp.org>
47818         New module 'unictype/combining-class-all'.
47819         * modules/unictype/combining-class-all: New file.
47821         Tests for module 'unictype/combining-class-byname'.
47822         * modules/unictype/combining-class-byname-tests: New file.
47823         * tests/unictype/test-combiningclass_byname.c: New file.
47825         New module 'unictype/combining-class-byname'.
47826         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
47827         * lib/unictype/combiningclass_byname.c: New file.
47828         * lib/unictype/combiningclass_byname.gperf: New file.
47829         * modules/unictype/combining-class-byname: New file.
47831         Tests for module 'unictype/combining-class-longname'.
47832         * modules/unictype/combining-class-longname-tests: New file.
47833         * tests/unictype/test-combiningclass_longname.c: New file.
47835         New module 'unictype/combining-class-longname'.
47836         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
47837         * lib/unictype/combiningclass_longname.c: New file.
47838         * modules/unictype/combining-class-longname: New file.
47840         Tests for module 'unictype/combining-class-name'.
47841         * modules/unictype/combining-class-name-tests: New file.
47842         * tests/unictype/test-combiningclass_name.c: New file.
47844         New module 'unictype/combining-class-name'.
47845         * lib/unictype.in.h (uc_combining_class_name): New declaration.
47846         * lib/unictype/combiningclass_name.c: New file.
47847         * modules/unictype/combining-class-name: New file.
47849 2011-03-25  Bruno Haible  <bruno@clisp.org>
47851         unictype/combining-class: Rename source files.
47852         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
47853         of unictype/combining.h.
47854         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
47855         Update.
47856         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
47857         * modules/unictype/combining-class (Description): Fix.
47858         (Files, Makefile.am): Update.
47859         * tests/unictype/test-combiningclass.c: Renamed from
47860         tests/unictype/test-combining.c.
47861         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
47863 2011-03-25  Bruno Haible  <bruno@clisp.org>
47865         unictype: Update list of canonical combining classes.
47866         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
47868 2011-03-25  Bruno Haible  <bruno@clisp.org>
47870         unictype/category-byname: Recognize long names as well.
47871         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
47872         a long name.
47873         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
47874         unictype/categ_byname.h.
47875         (UC_CATEGORY_INDEX_*): New enumeration values.
47876         (uc_general_category_byname): Use uc_general_category_lookup and
47877         convert from index to value.
47878         * lib/unictype/categ_byname.gperf: New file.
47879         * modules/unictype/category-byname (Files): Add
47880         lib/unictype/categ_byname.gperf.
47881         (Depends-on): Add gperf.
47882         (Makefile.am): Add rule for generating unictype/categ_byname.h.
47883         * tests/unictype/test-categ_byname.c (main): Test the recognition of
47884         long names.
47886         Tests for module 'unictype/category-longname'.
47887         * modules/unictype/category-longname-tests: New file.
47888         * tests/unictype/test-categ_longname.c: New file.
47890         New module 'unictype/category-longname'.
47891         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
47892         * lib/unictype/categ_longname.c: New file.
47893         * modules/unictype/category-longname: New file.
47894         * modules/unictype/category-all (Depends-on): Add it.
47896 2011-03-25  Bruno Haible  <bruno@clisp.org>
47898         Tests for module 'unictype/category-LC'.
47899         * modules/unictype/category-LC-tests: New file.
47900         * tests/unictype/test-categ_LC.c: New file, automatically generated.
47902         New module 'unictype/category-LC'.
47903         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
47904         (UC_CATEGORY_LC): New declaration.
47905         (UC_CASED_LETTER): New macro.
47906         * lib/gen-uni-tables.c (is_category_LC): New function.
47907         (output_categories): Also handle category LC.
47908         (UC_CATEGORY_MASK_LC): New enumeration value.
47909         (general_category_byname): Also handle category LC.
47910         * lib/unictype/categ_LC.c: New file.
47911         * lib/unictype/categ_LC.h: New file, automatically generated.
47912         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
47913         category LC.
47914         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
47915         * modules/unictype/category-LC: New file.
47916         * modules/unictype/category-byname (Depends-on): Add
47917         unictype/category-LC.
47918         * modules/unictype/category-all (Depends-on): Likewise.
47920 2011-03-25  Eric Blake  <eblake@redhat.com>
47922         xmalloc: revert yesterday's regression
47923         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
47924         realloc's underlying behavior (allowing allocation of zero-size
47925         objects, especially if malloc-gnu is also in use).
47927 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
47929         maint.mk: add missing version to VC-tag
47930         * top/maint.mk: git tag was missing actual tag name; add it.
47932         valgrind: do leak checking, and exit with code 1 on error (not 0)
47933         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
47934         to VALGRIND.
47936 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
47938         posix-modules: say what it does.
47939         * posix-modules: Add a line to the --help output saying what it does.
47941 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
47943         xmalloc: Do not leak if underlying realloc is C99 compatible.
47944         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
47945         This avoids a leak on C99-based systems.  See
47946         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
47948 2011-03-24  Eric Blake  <eblake@redhat.com>
47950         realloc: document portability problem
47951         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
47952         passing 0 size to realloc.
47954 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
47956         doc: update users.txt
47957         * users.txt: Add cvsps, tmpwatch
47959 2011-03-23  Matt Rice  <ratmice@gmail.com>
47961         doc: update users.txt
47962         * users.txt: Add gdb.
47964 2011-03-23  Jim Meyering  <meyering@redhat.com>
47966         doc: update users.txt
47967         Looking through matches up to the following URL (there are still
47968         several more pages), I found several projects that use gnulib:
47969         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
47970         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
47971         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
47973 2011-03-22  Bruno Haible  <bruno@clisp.org>
47975         unictype/bidi*: Rename functions.
47976         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
47977         uc_bidi_class, uc_is_bidi_class): New declarations.
47978         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
47979         uc_bidi_category_byname.
47980         (uc_bidi_category_byname): New function.
47981         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
47982         u_bidi_category_name.
47983         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
47984         (uc_bidi_category_name): New function.
47985         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
47986         uc_bidi_category.
47987         (uc_bidi_category): New function.
47988         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
47989         uc_is_bidi_category. Invoke uc_bidi_class.
47990         (uc_is_bidi_category): New function.
47991         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
47992         instead of uc_bidi_category_byname.
47993         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
47994         instead of uc_bidi_category_name.
47995         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
47996         uc_bidi_category.
47997         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
47998         instead of uc_is_bidi_category.
48000 2011-03-21  Bruno Haible  <bruno@clisp.org>
48002         New module 'unictype/joininggroup-all'.
48003         * modules/unictype/joininggroup-all: New file.
48005         Tests for module 'unictype/joininggroup-of'.
48006         * modules/unictype/joininggroup-of-tests: New file.
48007         * tests/unictype/test-joininggroup_of.c: New file.
48008         * tests/unictype/test-joininggroup_of.h: New file, automatically
48009         generated by gen-uni-tables.
48011         New module 'unictype/joininggroup-of'.
48012         * modules/unictype/joininggroup-of: New file.
48013         * lib/unictype/joininggroup_of.c: New file.
48014         * lib/unictype/joininggroup_of.h: New file, automatically generated by
48015         gen-uni-tables.
48017         Tests for module 'unictype/joininggroup-byname'.
48018         * modules/unictype/joininggroup-byname-tests: New file.
48019         * tests/unictype/test-joininggroup_byname.c: New file.
48021         New module 'unictype/joininggroup-byname'.
48022         * modules/unictype/joininggroup-byname: New file.
48023         * lib/unictype/joininggroup_byname.c: New file.
48024         * lib/unictype/joininggroup_byname.gperf: New file.
48026         Tests for module 'unictype/joininggroup-name'.
48027         * modules/unictype/joininggroup-name-tests: New file.
48028         * tests/unictype/test-joininggroup_name.c: New file.
48030         New module 'unictype/joininggroup-name'.
48031         * modules/unictype/joininggroup-name: New file.
48032         * lib/unictype/joininggroup_name.c: New file.
48033         * lib/unictype/joininggroup_name.h: New file.
48035         New module 'unictype/joiningtype-all'.
48036         * modules/unictype/joiningtype-all: New file.
48038         Tests for module 'unictype/joiningtype-of'.
48039         * modules/unictype/joiningtype-of-tests: New file.
48040         * tests/unictype/test-joiningtype_of.c: New file.
48041         * tests/unictype/test-joiningtype_of.h: New file, automatically
48042         generated by gen-uni-tables.
48044         New module 'unictype/joiningtype-of'.
48045         * modules/unictype/joiningtype-of: New file.
48046         * lib/unictype/joiningtype_of.c: New file.
48047         * lib/unictype/joiningtype_of.h: New file, automatically generated by
48048         gen-uni-tables.
48050         Tests for module 'unictype/joiningtype-byname'.
48051         * modules/unictype/joiningtype-byname-tests: New file.
48052         * tests/unictype/test-joiningtype_byname.c: New file.
48054         New module 'unictype/joiningtype-byname'.
48055         * modules/unictype/joiningtype-byname: New file.
48056         * lib/unictype/joiningtype_byname.c: New file.
48058         Tests for module 'unictype/joiningtype-name'.
48059         * modules/unictype/joiningtype-name-tests: New file.
48060         * tests/unictype/test-joiningtype_name.c: New file.
48062         New module 'unictype/joiningtype-name'.
48063         * modules/unictype/joiningtype-name: New file.
48064         * lib/unictype/joiningtype_name.c: New file.
48066         unictype: Add support for Arabic shaping properties.
48067         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
48068         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
48069         declarations.
48070         (UC_JOINING_GROUP_*): New enumeration values.
48071         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
48072         declarations.
48073         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
48074         (unicode_joining_type): New variable.
48075         (UC_JOINING_GROUP_*): New enumeration values.
48076         (unicode_joining_group): New variable.
48077         (fill_arabicshaping, joining_type_as_c_identifier,
48078         output_joining_type_test, output_joining_type,
48079         joining_group_as_c_identifier, output_joining_group_test,
48080         output_joining_group): New functions.
48081         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
48082         fill_arabicshaping and output_joining_type_test, output_joining_type,
48083         output_joining_group_test, output_joining_group.
48084         Reported by Simon Josefsson.
48086 2011-03-21  Jim Meyering  <meyering@redhat.com>
48088         strftime: fix a bug in yesterday's change
48089         * lib/strftime.c (add): Accommodate width's initial value of -1.
48090         Otherwise, nstrftime would copy uninitialized data into
48091         the result buffer.
48093 2011-03-21  Jim Meyering  <meyering@redhat.com>
48095         tests: add strftime-tests module
48096         * tests/test-strftime.c: New file.
48097         * modules/strftime-tests: New module.
48099 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
48101         strftime: don't assume a byte count fits in 'int'
48102         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
48103         found this problem by static analysis, using gcc -Wstrict-overflow
48104         (GCC 4.5.2, x86-64).  This reported an optimization that depended
48105         on an integer overflow having undefined behavior, but it turns out
48106         that the argument is a size, which might not fit in 'int' anyway,
48108 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
48110         stdio: don't require ignore_value around fwrite
48112         This patch works around libc bug 11959
48113         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
48114         Without this patch, applications must often write
48115         ignore_value (fwrite (...)) even though the ignore_value is
48116         not helpful here.  It's common to write many objects, using
48117         fwrite/printf/etc., and then use ferror to detect output error.
48119         I considered making this patch optional, but decided against it,
48120         because libc is obviously being inconsistent here: there is no
48121         reason libc should insist that user code must inspect fwrite
48122         return's value without also insisting that it inspect printf's,
48123         putchar's, etc.  If user code wants to have a strict style where
48124         all these functions' values are checked (so that ferror need not
48125         be checked), we could add support for that style in a new gnulib
48126         module, but in the meantime it's better to be consistent and to
48127         support common usage.
48129         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
48130         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
48131         that we are compiling in checking mode, and if not C++, and
48132         if not already wrapping fwrite for some other reason.
48133         (fwrite): #define to rpl_fwrite if the latter is defined.
48135 2011-03-20  Bruno Haible  <bruno@clisp.org>
48137         verror: Fix compilation error introduced on 2011-02-13.
48138         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
48139         instead of __attribute__.
48140         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48142 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
48143             Bruno Haible  <bruno@clisp.org>
48145         socklen: do not depend on sys_socket
48146         While trying to modify Emacs to use gnulib's socklen module,
48147         I discovered a circular dependency: socklen depends on sys_socket
48148         and vice versa.  Emacs can use socklen, but it does not need
48149         sys_socket because it has its own substitute for sys/socket.h.
48150         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
48151         gl_TYPE_SOCKLEN_T.
48152         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
48153         gl_PREREQ_SYS_H_SOCKET.
48154         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
48155         gl_PREREQ_SYS_H_SOCKET.
48156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
48157         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
48158         * modules/socklen (Depends-on): Do not depend on sys_socket.
48159         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
48161 2011-03-20  Jim Meyering  <meyering@redhat.com>
48163         maint.mk: sort file names *after* new transformation
48164         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
48165         prefix would have led to an unwarranted failure in GNU parted.
48166         Sort after that transformation.
48168 2011-03-19  Jim Meyering  <meyering@redhat.com>
48170         maint.mk: fix po-file syntax-check rule
48171         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
48172         Patch by Bruno Haible.
48174 2011-03-19  Bruno Haible  <bruno@clisp.org>
48176         socklen: Update comment.
48177         * m4/socklen.m4: Update comment about platforms.
48179 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48180             Bruno Haible  <bruno@clisp.org>
48182         inet_ntop, inet_pton: Simplify.
48183         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
48184         documented to provide socklen_t and we already depend on sys_socket.
48185         * modules/inet_pton (Depends-on): Likewise.
48186         * lib/arpa_inet.in.h: Adjust comment.
48188 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
48189             Bruno Haible  <bruno@clisp.org>
48191         netdb: Simplify.
48192         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
48193         documented to provide socklen_t and we already depend on sys_socket.
48194         * lib/netdb.in.h: Adjust comment.
48196 2011-03-19  Bruno Haible  <bruno@clisp.org>
48198         sys_socket, netdb: Document problem with socklen_t.
48199         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
48200         platforms.
48201         * doc/posix-headers/netdb.texi: Likewise.
48203 2011-03-18  Eric Blake  <eblake@redhat.com>
48205         maint.mk: let po check work in VPATH build
48206         * top/maint.mk (po_file): Allow cfg.mk override.
48207         (sc_po_check): Allow VPATH use.
48208         Reported by Jiri Denemark.
48210 2011-03-16  Jim Meyering  <meyering@redhat.com>
48212         maint.mk: allow fine-grained syntax-check exclusion via Make variables
48213         Before, you would have had to create one .x-sc_ file per rule in order
48214         to exempt offending files.  Now, you may instead use a Make variable --
48215         usually defined in cfg.mk -- whose name identifies the affected rule.
48216         * top/maint.mk (_sc_excl): Define.
48217         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
48218         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
48220 2011-03-13  Bruno Haible  <bruno@clisp.org>
48222         ignore-value tests: Avoid warnings.
48223         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
48224         empty for gcc < 3.4.
48226 2011-03-13  Bruno Haible  <bruno@clisp.org>
48228         passfd: Fix link error on Solaris.
48229         * modules/passfd (Description): Correct.
48230         (Depends-on): Add socketlib.
48231         (Link): New section.
48232         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
48234 2011-03-13  Bruno Haible  <bruno@clisp.org>
48236         passfd: Fix link error on AIX 5.2.
48237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
48239 2011-03-13  Bruno Haible  <bruno@clisp.org>
48241         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
48242         * lib/sys_socket.in.h: Include <stddef.h>.
48243         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
48244         CMSG_FIRSTHDR. Remove unused variable.
48246 2011-03-13  Bruno Haible  <bruno@clisp.org>
48248         passfd: Fix compilation error on OpenBSD.
48249         * lib/passfd.c: Include <sys/uio.h>.
48251 2011-03-13  Bruno Haible  <bruno@clisp.org>
48253         passfd test: Fix warnings.
48254         * tests/test-passfd.c: Include <sys/wait.h>.
48255         (main): Fix typo.
48257 2011-03-13  Bruno Haible  <bruno@clisp.org>
48259         passfd module, part 4, tweaks.
48260         * tests/test-passfd.c: Reorder includes.
48261         (main): Fix perror and printf calls.
48263 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
48265         passfd module, part 4.
48266         * modules/passfd-tests: New file.
48267         * tests/test-passfd.c: New file.
48269 2011-03-13  Jim Meyering  <meyering@redhat.com>
48271         Makefile: rely on GNU make; derive syntax-check rule names
48272         Rather than requiring that each sc_ rule be listed as a dependent
48273         of "check", use features of GNU make to derive the list.
48274         * Makefile (syntax-check-rules): Define.
48275         (check): Depend on the new variable, not the hard-coded list.
48277 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
48278             Bruno Haible  <bruno@clisp.org>
48280         passfd module, part 3.
48281         * lib/passfd.h (recvfd): Add a flags argument.
48282         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
48283         (recvfd): Add a flags argument.
48284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
48285         exists.
48286         * modules/passfd (Depends-on): Add cloexec.
48287         Suggested by Eric Blake.
48289 2011-03-13  Bruno Haible  <bruno@clisp.org>
48291         passfd module, part 2, tweaks.
48292         * modules/passfd (Files): Reorder.
48293         (Depends-on): Remove errno.
48294         (Include): Remove <sys/socket.h>, <sys/un.h>.
48295         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
48296         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
48297         specification header. Include <sys/socket.h> always. Don't include
48298         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
48299         (sendfd): Clarify that it sets errno when it fails.
48300         (recvfd): Fix specification.
48302 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
48304         passfd module, part 2.
48305         * modules/passfd: New file.
48306         * lib/passfd.h: New file.
48307         * lib/passfd.c: New file.
48309 2011-03-12  Bruno Haible  <bruno@clisp.org>
48311         wcswidth, mbswidth: Avoid integer overflow.
48312         * lib/wcswidth.c: Include <limits.h>.
48313         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
48314         * lib/mbswidth.c: Include <limits.h>.
48315         (mbsnwidth): Avoid 'int' overflow.
48316         Reported by Jim Meyering.
48318 2011-03-12  Bruno Haible  <bruno@clisp.org>
48320         futimens, utimensat: Avoid endless recursion on Solaris 10.
48321         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
48322         Solaris.
48323         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
48324         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
48326 2011-03-11  Jim Meyering  <meyering@redhat.com>
48328         maint.mk: relax a regexp to accommodate other formatting styles
48329         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
48330         between "ngettext" and the following "(".
48332 2011-03-11  Pádraig Brady  <P@draigBrady.com>
48334         maint.mk: suppress a false positive warning
48335         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
48336         diagnostics are marked with ngettext.
48338 2011-03-10  Eric Blake  <eblake@redhat.com>
48340         wchar: add explicit dependencies, for Tru64
48341         * modules/mbmemcasecoll (Depends-on): Add wchar.
48342         * modules/mbtowc (Depends-on): Likewise.
48343         * modules/vasnprintf (Depends-on): Likewise.
48344         * modules/unistdio/u-printf-args (Depends-on): Likewise.
48345         * modules/wctomb (Depends-on): Likewise.
48346         Reported by Peter O'Gorman.
48348 2011-03-08  Bruno Haible  <bruno@clisp.org>
48350         passfd module, part 1, tweaks.
48351         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
48352         Improve indentation. Improve AC_MSG_CHECKING messages.
48353         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
48354         gl_SOCKET_FAMILIES.
48356 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
48358         passfd module, part 1.
48359         * m4/afunix.m4: New file.
48360         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
48361         sockets.
48363 2011-03-08  Bruno Haible  <bruno@clisp.org>
48365         regex-quote: New API.
48366         * lib/regex-quote.h: Include <stdbool.h>.
48367         (struct regex_quote_spec): New type.
48368         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
48369         New declarations.
48370         (regex_quote_length, regex_quote_copy, regex_quote): Take a
48371         'const struct regex_quote_spec *' argument.
48372         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
48373         (pcre_special): New constant.
48374         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
48375         New functions.
48376         (regex_quote_length, regex_quote_copy, regex_quote): Take a
48377         'const struct regex_quote_spec *' argument.
48378         * modules/regex-quote (Depends-on): Add stdbool.
48379         * tests/test-regex-quote.c (check): Update for new API. Add test for
48380         anchored results.
48381         * NEWS: Mention the API change.
48382         Reported by Reuben Thomas and Eric Blake.
48384 2011-03-06  Bruno Haible  <bruno@clisp.org>
48386         regex-quote: Fix creation of POSIX extended regular expressions.
48387         * lib/regex-quote.c (ere_special): Add grouping and alternation
48388         operators.
48390 2011-03-05  Bruno Haible  <bruno@clisp.org>
48392         doc: Improve doc regarding autopoint vs. gnulib.
48393         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
48394         disable autopoint while running autoreconf.
48395         Suggested by Ralf Wildenhues.
48397 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48399         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
48400         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
48402 2011-03-03  Bruce Korb  <bkorb@gnu.org>
48404         parse-duration: remove xalloc.h dependency
48405         * lib/parse-duration.c (parse_period): handle NULL return from
48406         strdup instead of calling xstrdup().
48407         * modules/parse-duration: remove "xalloc" dependency
48409 2011-03-03  Matthew Booth  <mbooth@redhat.com>
48411         bootstrap: honor m4_base when running aclocal
48412         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
48414 2011-03-02  Jim Meyering  <meyering@redhat.com>
48416         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
48417         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
48418         on request from Matt Booth.
48420 2011-03-01  Eric Blake  <eblake@redhat.com>
48422         test-link: work on Hurd
48423         * tests/test-link.h (test_link): Hurd rejects linking directories
48424         with EISDIR instead of the POSIX-mandated EPERM.
48426 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
48428         stdio: simplify by moving files to printf-posix, sigpipe
48429         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
48430         since this symbol is needed only if printf is replaced.
48431         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
48432         Require gl_ASM_SYMBOL_PREFIX.
48433         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
48434         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
48435         (Depends-on): Add 'raise'.
48436         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
48437         * modules/stdio (Files): Remove lib/stdio-write.c,
48438         m4/asm-underscore.m4.
48439         (Depends-on): Remove 'raise'.
48441         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
48442         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
48443         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
48444         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
48446 2011-02-28  Bruno Haible  <bruno@clisp.org>
48448         localcharset: Assume ANSI C behaviour of free().
48449         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
48450         calling free().
48451         Suggested by Simon Josefsson <simon@josefsson.org>.
48453 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
48454             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
48455             Bruno Haible  <bruno@clisp.org>  (tiny change)
48457         On Cygwin, use /proc file system instead of win32 API.
48458         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
48459         Win32 file names.
48460         (DllMain): Simplify by removing Cygwin specific code.
48461         (find_shared_library_fullname): Use Linux specific implementation also
48462         for Cygwin.
48463         (get_shared_library_fullname): Update accordingly.
48464         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
48465         Win32 file names.
48466         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
48467         Cygwin specific code.
48469 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
48470             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
48472         Fix OpenMP flag detection for various Fortran compilers.
48473         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
48474         OpenMP-conditional compilation construct, to force compile
48475         failure with missing OpenMP flag.
48476         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
48478 2011-02-25  Eric Blake  <eblake@redhat.com>
48480         strstr: expand test coverage
48481         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
48482         compilation.
48483         * tests/test-memmem.c (main): Duplicate tests.
48484         * tests/test-strcasestr.c (main): Likewise.
48485         * tests/test-c-strcasestr.c (main): Likewise.
48487 2011-02-25  Jim Meyering  <meyering@redhat.com>
48489         maint.mk: detect missing-NL-at-EOF, too
48490         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
48491         it also detects when a file lacks a newline at EOF.
48492         (require_exactly_one_NL_at_EOF_): Renamed from
48493         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
48494         since people may well have .x-sc_... file names tied to the
48495         existing name.  Suggested by Eric Blake.
48497 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
48499         dirname: move m4/dos.m4 functionality into lib/dosname.h
48501         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
48502         extracts symbols from it, puts them into config.h; but it's much
48503         easier to use the symbols directly.  filename.h already does this,
48504         but it disagrees with dos.m4 in some respects.  This patch
48505         introduces a different include file dosname.h that packages up
48506         dos.m4, and then later we can work on merging filename.h and
48507         dosname.h.  Applications that need only the easy-to-configure
48508         symbols should consider including dosname.h rather than dirname.h.
48509         * NEWS: Mention incompatible changes.
48510         * m4/dos.m4: Remove.
48511         * lib/dosname.h, modules/dosname: New files.
48512         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
48513         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
48514         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
48515         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
48516         Include dosname.h, not dirname.h.
48517         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
48518         Include dosname.h, for definitions of symbols like ISSLASH
48519         that used to be in config.h.
48520         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
48521         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
48522         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
48523         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
48524         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
48525         * modules/rmdir (Files): Likewise.
48526         * modules/stat (Files): Likewise.
48527         * modules/unlink (Files): Likewise.
48528         * modules/dirname-lgpl (Depends-on): Add dosname.
48529         * modules/lstat (Depends-on): Likewise.
48530         * modules/openat (Depends-on): Likewise.
48531         * modules/rmdir (Depends-on): Likewise.
48532         * modules/savewd (Depends-on): Likewise.
48533         * modules/stat (Depends-on): Likewise.
48534         * modules/unlink (Depends-on): Likewise.
48535         * modules/openat (Depends-on): Remove dirname-lgpl.
48536         * modules/savewd (Depends-on): Likewise.
48537         * tests/test-dirname.c: Do not use removed symbols like
48538         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
48539         the remaining symbols, e.g., ISSLASH ('\\').
48541 2011-02-25  Eric Blake  <eblake@redhat.com>
48543         strstr: revert patches that introduced bug and pessimization
48544         * lib/str-two-way.h: Add another reference.
48545         (two_way_short_needle, two_way_long_needle): Revert changes from
48546         2011-02-24; they pessimize search speed.
48547         (critical_factorization): Partially revert changes from
48548         2010-06-22; they violate the requirement that the left half of the
48549         needle be smaller than the period of the needle.
48551 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
48553         filenamecat: remove unnecessary dependency on dirname-lgpl
48554         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
48555         is no direct dependency, just an indirect one via filenamecat-lgpl.
48557         remove: remove unnecessary use of m4/dos.m4
48558         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
48559         * modules/remove (FILES): Remove m4/dos.m4.
48561         * lib/openat-proc.c: Don't include dirname.h; not needed.
48563         backupfile: remove unnecessary use of m4/dos.m4
48564         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
48565         of its symbols are used by the backupfile code.  backupfile.c does
48566         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
48567         for the rare case of programs that want all their backup file
48568         names to live within 8+3 limits, and dos.m4 doesn't address that.
48569         * modules/backupfile (Files): Remove m4/dos.m4.
48571 2011-02-24  Jim Meyering  <meyering@redhat.com>
48573         strstr: fix a bug whereby strstr would mistakenly return NULL
48574         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
48575         in period calculation.
48576         (two_way_long_needle): Likewise.
48577         The original problem was reported by Mike Stump in
48578         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
48579         Ralf Wildenhues provided the short needle and haystack.
48580         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
48581         Add a more involved test to trigger the bug in two_way_long_needle.
48583 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
48585         gnulib-tool: remove use of bold display in help screen
48586         * gnulib-tool (func_usage): Do not use bold display anymore in the
48587         help screen.  That was just meant to be a temporary emphasis for a
48588         backward-incompatible change.
48590 2011-02-23  Bruno Haible  <bruno@clisp.org>
48592         Fix misindentation of preprocessor directives.
48593         * lib/argp-namefrob.h: Reindent preprocessor directives.
48594         * lib/getopt_int.h (struct _getopt_data): Likewise.
48595         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
48596         * lib/vasnprintf.c (decode_long_double): Likewise.
48597         * tests/test-argmatch.c: Insert blank lines, for clarity.
48598         * tests/test-exclude.c: Likewise.
48600 2011-02-22  Bruno Haible  <bruno@clisp.org>
48602         ioctl: Fix for MacOS X in 64-bit mode.
48603         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
48604         value.
48605         Suggested by Eric Blake.
48606         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
48608 2011-02-22  Jim Meyering  <meyering@redhat.com>
48610         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
48611         * Makefile (sc_cpp_indent_check): Don't limit the check to files
48612         in lib/.
48614 2011-02-22  Eric Blake  <eblake@redhat.com>
48616         maint: avoid any CDPATH issue
48617         * Makefile (sc_cpp_indent_check): Anchor cd argument.
48619         maint: adjust cpp indentation for my modules, as well
48620         * Makefile (sc_cpp_indent_check): Add my name.
48621         * lib/fbufmode.c: Filter through cppi.
48622         * lib/fpurge.c: Likewise.
48623         * lib/freadable.c: Likewise.
48624         * lib/freading.c: Likewise.
48625         * lib/fwritable.c: Likewise.
48626         * lib/fwriting.c: Likewise.
48627         * lib/sigaction.c: Likewise.
48629 2011-02-22  Jim Meyering  <meyering@redhat.com>
48631         maint: adjust cpp indentation to reflect nesting depth
48632         I.e., in a block of code that begins with an unnested "#if",
48633         put one space between the "#" in column 1 and following token.
48634         For example,
48635         -#include <sys/vfs.h>
48636         +# include <sys/vfs.h>
48637         Do this only in .c files that are part of a module I maintain.
48638         * lib/linkat.c: Filter through cppi.
48639         * lib/nanosleep.c: Likewise.
48640         * lib/openat.c: Likewise.
48641         * lib/openat-die.c: Likewise.
48642         * lib/dup3.c: Likewise.
48643         * lib/fchownat.c: Likewise.
48644         * lib/flock.c: Likewise.
48645         * lib/fsync.c: Likewise.
48646         * lib/fts.c: Likewise.
48647         * lib/getpass.c: Likewise.
48648         * lib/gettimeofday.c: Likewise.
48649         * lib/userspec.c: Likewise.
48650         * Makefile (sc_cpp_indent_check): New rule, to check this.
48652 2011-02-22  Bruno Haible  <bruno@clisp.org>
48654         New module 'wctomb'.
48655         * lib/stdlib.in.h (wctomb): New declaration.
48656         * lib/wctomb.c: New file.
48657         * lib/wctomb-impl.h: New file.
48658         * m4/wctomb.m4: New file.
48659         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
48660         REPLACE_WCTOMB.
48661         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
48662         REPLACE_WCTOMB.
48663         * modules/wctomb: New file.
48664         * tests/test-stdlib-c++.cc: Test signature of wctomb.
48665         * doc/posix-functions/wctomb.texi: Mention the new module.
48666         * modules/wctob (Depends-on): Add wctomb.
48668 2011-02-22  Bruno Haible  <bruno@clisp.org>
48670         New module 'mbtowc'.
48671         * lib/stdlib.in.h (mbtowc): New declaration.
48672         * lib/mbtowc.c: New file.
48673         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
48674         * m4/mbtowc.m4: New file.
48675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
48676         REPLACE_MBTOWC.
48677         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
48678         REPLACE_MBTOWC.
48679         * modules/mbtowc: New file.
48680         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
48681         * doc/posix-functions/mbtowc.texi: Mention the new module.
48682         * modules/btowc (Depends-on): Add mbtowc.
48684 2011-02-22  Bruno Haible  <bruno@clisp.org>
48686         wcrtomb: Add more tests for native Windows platforms.
48687         * tests/test-wcrtomb-w32-1.sh: New file.
48688         * tests/test-wcrtomb-w32-2.sh: New file.
48689         * tests/test-wcrtomb-w32-3.sh: New file.
48690         * tests/test-wcrtomb-w32-4.sh: New file.
48691         * tests/test-wcrtomb-w32-5.sh: New file.
48692         * tests/test-wcrtomb-w32.c: New file.
48693         * modules/wcrtomb-tests (Files): Add them.
48694         (Makefile.am): Arrange to run these tests.
48695         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
48696         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
48698 2011-02-20  Bruno Haible  <bruno@clisp.org>
48700         wcrtomb: Enhance test.
48701         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
48703 2011-02-20  Bruno Haible  <bruno@clisp.org>
48705         mbrtowc: Tiny optimization.
48706         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
48708 2011-02-20  Jim Meyering  <meyering@redhat.com>
48710         test-exclude.c: remove unmatched #endif
48711         * tests/test-exclude.c: Remove stray #endif, left over from
48712         the change of a week ago.
48714 2011-02-19  Jim Meyering  <meyering@redhat.com>
48716         git-version-gen: skip "-dirty" check when appropriate
48717         * build-aux/git-version-gen: Don't run any git commands when the
48718         version string comes from .tarball-version.  Prior to this, we
48719         would run git update-index --refresh even from a just-unpacked
48720         tarball directory, and that could affect a .git/ directory in a
48721         parent of the build directory.  Reported by Mike Frysinger.
48723 2011-02-19  Bruno Haible  <bruno@clisp.org>
48725         unictype/property-byname: Reduce the size of the 'data' segment.
48726         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
48728 2011-02-19  Bruno Haible  <bruno@clisp.org>
48730         unictype/scripts: Reduce the size of the 'data' segment.
48731         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
48732         '%pic'.
48733         * lib/unictype/scripts_byname.gperf: Regenerated.
48735 2011-02-19  Bruno Haible  <bruno@clisp.org>
48737         stdint: Update documentation.
48738         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
48740 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
48742         stdint: omit redundant check for wchar.h
48743         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
48744         always tests whether wchar.h exists, so remove the now-redundant test.
48746 2011-02-18  Bruno Haible  <bruno@clisp.org>
48748         stdint: Cut dependency to module 'wchar'.
48749         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
48750         include the necessary prerequisites.
48751         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
48752         * modules/stdint (Depends-on): Remove wchar.
48753         (Makefile.am): Substitute HAVE_WCHAR_H.
48754         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
48756 2011-02-18  Eric Blake  <eblake@redhat.com>
48758         longlong: skip, rather than fail, on cross-compilation
48759         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
48760         when cross-compiling; regression from 2011-02-16.
48762 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
48764         * NEWS: Mention 2011-02-08 change to stdlib.
48766 2011-02-17  Bruno Haible  <bruno@clisp.org>
48768         getloadavg: Add comments about platforms.
48769         * m4/getloadavg.m4: Add comment.
48770         * lib/getloadavg.c: Likewise.
48772 2011-02-17  Bruno Haible  <bruno@clisp.org>
48774         getloadavg: Fix link error on Solaris 2.6.
48775         * modules/getloadavg (Link): New section.
48776         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
48777         linking test-getloadavg.
48778         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
48779         getloadavg.
48781 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
48783         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
48784         It was 'int', but this doesn't match the IRIX 6.5 manual.
48785         Suggested by Bruno Haible in
48786         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
48788 2011-02-17  Bruno Haible  <bruno@clisp.org>
48790         havelib: Fix comments.
48791         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
48792         change.
48794 2011-02-17  Bruno Haible  <bruno@clisp.org>
48796         havelib: Update config.rpath.
48797         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
48799 2011-02-17  Bruno Haible  <bruno@clisp.org>
48801         getloadavg test: Add some plausibility checks.
48802         * tests/test-getloadavg.c (check_avg): Print a warning when the value
48803         is improbable.
48805 2011-02-16  Eric Blake  <eblake@redhat.com>
48807         maintainer-makefile: make syntax-check a no-op from tarballs
48808         * top/maint.mk (no-vc-detected): New rule.
48809         (local-checks-available): Use it to avoid hanging if someone tries
48810         'make syntax-check' from a tarball.  Also append to any non-syntax
48811         checks already defined in cfg.mk.
48813 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
48815         longlong: tune, particularly for common case of c99
48817         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
48818         or running anything if c99, or if unsigned long long int does not
48819         work.  In either case, we know the answer without further tests.
48820         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
48821         it at most once, and use its results for both long long int and
48822         unsigned long long int.  This is more likely to be efficient in
48823         the common case where the program wants to check for both long
48824         long int and unsigned long long int.
48825         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
48826         since the answer is already known.
48828 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
48830         getloadavg: set errno
48831         * lib/getloadavg.c: Set errno when returning -1.  If no other
48832         error number looks appropriate, set it to ENOSYS if the getloadavg
48833         looks like it can't possibly ever work, ENOTSUP otherwise.
48834         Suggested by Bruno Haible in
48835         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
48837         getloadavg: trim unused parts and speed up 'configure'
48838         * NEWS: Document this.
48839         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
48840         always compiled if getloadavg is absent.
48841         Move test code to ...
48842         * tests/test-getloadavg.c: New file, containing previous
48843         contents of test from lib/getloadavg.c.  It also contains
48844         suggestions by Bruno Haible in
48845         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
48846         * modules/getloadavg-tests: New file.
48847         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
48848         Do tests in the same order as they're needed for getloadavg.c.
48849         Omit setgid-related tests that generate symbols KMEM_GROUP,
48850         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
48851         Do only the tests that are needed to see whether the system has
48852         getloadavg, moving the other tests into ...
48853         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
48854         NLIST_NAME_UNION; nobody should be using it.  Do not define
48855         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
48856         relevant, as the user of this module shouldn't care how getloadavg
48857         is implemented.
48859         getloadavg: omit unused var
48860         * lib/getloadavg.c (getloadavg): Omit unused local variable.
48862 2011-02-15  Jim Meyering  <meyering@redhat.com>
48864         doc: update users.txt
48865         * users.txt: Update iwhd's URL.
48867 2011-02-13  Bruno Haible  <bruno@clisp.org>
48869         Consistent macro naming for macros that use GCC __attribute__.
48870         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
48871         _ATTRIBUTE_NONNULL_.
48872         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
48873         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
48874         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
48875         ATTRIBUTE_DEPRECATED.
48876         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
48877         ATTRIBUTE_NORETURN.
48878         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48879         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48880         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48881         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
48882         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
48883         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
48884         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
48885         ATTRIBUTE_SENTINEL.
48886         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
48887         ATTRIBUTE_RETURN_CHECK.
48888         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
48889         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
48890         ATTRIBUTE_NORETURN.
48891         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
48892         Reported by Paul Eggert.
48894 2011-02-13  Bruno Haible  <bruno@clisp.org>
48896         Don't interfere with a program's definition of __attribute__.
48897         * lib/argp.h (__attribute__): Remove definition.
48898         (_GL_ATTRIBUTE_FORMAT): New macro.
48899         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
48900         * lib/argp-fmtstream.h (__attribute__): Remove definition.
48901         (_GL_ATTRIBUTE_FORMAT): New macro.
48902         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
48903         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
48904         GCC 3 or newer.
48905         * lib/error.h (__attribute__): Remove definition.
48906         (_GL_ATTRIBUTE_FORMAT): New macro.
48907         (error, error_at_line): Use it.
48908         * lib/hash.h (__attribute__): Remove definition.
48909         (ATTRIBUTE_WUR): Update definition. Define always.
48910         * lib/openat.h (__attribute__): Remove definition.
48911         (ATTRIBUTE_NORETURN): Update definition. Define always.
48912         * lib/sigpipe-die.h (__attribute__): Remove definition.
48913         (ATTRIBUTE_NORETURN): Update definition. Define always.
48914         * lib/vasnprintf.h (__attribute__): Remove definition.
48915         (_GL_ATTRIBUTE_FORMAT): New macro.
48916         (asnprintf, vasnprintf): Use it.
48917         * lib/xalloc.h (__attribute__): Remove definition.
48918         (ATTRIBUTE_NORETURN): Update definition. Define always.
48919         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
48920         * lib/xmemdup0.h (__attribute__): Remove definition.
48921         (ATTRIBUTE_NORETURN): Update definition. Define always.
48922         * lib/xprintf.h (__attribute__): Remove definition.
48923         (_GL_ATTRIBUTE_FORMAT): New macro.
48924         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
48925         * lib/xstrtol.h (__attribute__): Remove definition.
48926         (ATTRIBUTE_NORETURN): Update definition. Define always.
48927         * lib/xvasprintf.h (__attribute__): Remove definition.
48928         (_GL_ATTRIBUTE_FORMAT): New macro.
48929         (xasprintf, xvasprintf): Use it.
48930         * tests/test-argmatch.c (__attribute__): Remove definition.
48931         (ATTRIBUTE_NORETURN): Update definition. Define always.
48932         * tests/test-exclude.c (__attribute__): Remove definition.
48933         (ATTRIBUTE_NORETURN): Update definition. Define always.
48934         Reported by Paul Eggert.
48936 2011-02-13  Bruno Haible  <bruno@clisp.org>
48938         mbrtowc: Add more tests for native Windows platforms.
48939         * tests/test-mbrtowc-w32-1.sh: New file.
48940         * tests/test-mbrtowc-w32-2.sh: New file.
48941         * tests/test-mbrtowc-w32-3.sh: New file.
48942         * tests/test-mbrtowc-w32-4.sh: New file.
48943         * tests/test-mbrtowc-w32-5.sh: New file.
48944         * tests/test-mbrtowc-w32.c: New file.
48945         * modules/mbrtowc-tests (Files): Add them.
48946         (Makefile.am): Arrange to run these tests.
48947         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
48948         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
48950 2011-02-13  Bruno Haible  <bruno@clisp.org>
48952         mbrtowc: Work around native Windows bug.
48953         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
48954         guess when no suitable locale for testing was found.
48955         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
48957 2011-02-13  Bruno Haible  <bruno@clisp.org>
48959         mbsinit: Work around mingw bug.
48960         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
48961         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
48962         Windows.
48963         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
48965 2011-02-13  Bruno Haible  <bruno@clisp.org>
48967         mbsinit: Don't crash for a NULL argument.
48968         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
48969         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
48971 2011-02-13  Bruno Haible  <bruno@clisp.org>
48973         Don't interfere with a program's definition of __attribute__.
48974         * lib/stdio.in.h (__attribute__): Remove definition.
48975         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
48976         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
48977         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
48978         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
48979         * lib/string.in.h (__attribute__): Remove definition.
48980         Reported by Paul Eggert.
48982 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
48984         stdlib: don't get in the way of non-GCC __attribute__
48985         See thread starting at
48986         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
48987         Revert previous stdlib change, installing the following instead:
48988         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
48989         to get in the way of a non-GCC compiler that supports __attribute__.
48990         (_GL_ATTRIBUTE_RETURN): New macro.
48991         (_Exit): Use it instead of __attribute__.
48993 2011-02-12  Bruno Haible  <bruno@clisp.org>
48995         quotearg test: Avoid test failure on mingw.
48996         * tests/test-quotearg.sh: Convert the locale identifier from native
48997         Windows syntax to Unix syntax.
48999 2011-02-12  Bruno Haible  <bruno@clisp.org>
49001         setlocale: Prefer gnulib's override over libintl's override.
49002         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
49003         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
49004         GNULIB_defined_setlocale is set.
49006 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
49008         stdlib: support non-GCC __attribute__
49010         Fix a serious and tricky problem encountered when attempting to
49011         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
49012         5.5, but it crashed due to memory corruption on Solaris 10 with
49013         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
49014         bits that are otherwise zero.  This tagging is optional inside
49015         Emacs but is preferred and is used when __attribute__ ((__aligned
49016         (8))) works, as it does with both recent-enough GCC and with Sun C
49017         5.11.  However, Sun C 5.11 is not GCC and does not #define
49018         __GNUC__ and __GNUC_MINOR__.
49020         When I added the getloadavg module to Emacs, it brought in
49021         stdlib.in.h, which contained this fragment:
49023            #ifndef __attribute__
49024            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
49025            #  define __attribute__(Spec)   /* empty */
49026            # endif
49027            #endif
49029         When files that include <stdlib.h> were compiled with Sun C 5.11,
49030         the above code disabled __attribute__ ((__aligned (8))), which
49031         caused variables to not be properly aligned, which eventually led
49032         to the pointer corruption mentioned above.  (This was a bit hard
49033         to diagnose, unfortunately.)
49035         Several "#define __attribute__(X) /* empty */" code snippets need
49036         to be eradicated from Gnulib to work with non-GCC compilers that
49037         support __attribute__.  The Autoconf way to do this is to test for
49038         each kind of attribute that we want support for, and selectively
49039         enable that in source code.
49041         Fix this problem just for stdlib.h, by adding a test for the
49042         __noreturn__ attribute, and change stdlib.in.h to use that test
49043         when needed.  This technique can be easily generalized to the
49044         other *.in.h files and attributes, and a similar technique can be
49045         used for *.h and *.c files.  This patch is enough to solve the
49046         problem for Emacs + getloadavg, and I thought I'd publish it for
49047         feedback before undertaking further, similar fixes in other
49048         modules.
49050         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
49051         because it's not needed for stdlib.h.  It merely substitutes the
49052         value directly into stdlib.h.  We may well need to #define it, or
49053         similar symbols, for other modules, but it's nice to also have an
49054         option to not #define it for applications like Emacs that do not
49055         need it.
49057         * lib/stdlib.in.h (__attribute__): Do not #define.
49058         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
49059         be defined only if the _Exit module is also used.
49060         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
49061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
49062         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
49063         platforms.
49064         * modules/_Exit (Files): Add m4/attribute.m4.
49065         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
49066         * m4/attribute.m4: New file.
49068 2011-02-12  Bruno Haible  <bruno@clisp.org>
49070         wcsrtombs: Work around bug on native Windows.
49071         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
49072         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
49073         instead of len.
49074         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
49076 2011-02-12  Bruno Haible  <bruno@clisp.org>
49078         mbsrtowcs: Work around bug on native Windows.
49079         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
49080         against mingw bug.
49081         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
49083 2011-02-12  Bruno Haible  <bruno@clisp.org>
49085         Avoid setlocale bugs in tests.
49086         * modules/btowc (Dependencies): Add setlocale.
49087         * modules/c-strcase (Dependencies): Likewise.
49088         * modules/mbmemcasecmp (Dependencies): Likewise.
49089         * modules/mbmemcasecoll (Dependencies): Likewise.
49090         * modules/mbrtowc (Dependencies): Likewise.
49091         * modules/mbscasecmp (Dependencies): Likewise.
49092         * modules/mbscasestr (Dependencies): Likewise.
49093         * modules/mbschr (Dependencies): Likewise.
49094         * modules/mbscspn (Dependencies): Likewise.
49095         * modules/mbsinit (Dependencies): Likewise.
49096         * modules/mbsncasecmp (Dependencies): Likewise.
49097         * modules/mbsnrtowcs (Dependencies): Likewise.
49098         * modules/mbspbrk (Dependencies): Likewise.
49099         * modules/mbspcasecmp (Dependencies): Likewise.
49100         * modules/mbsrchr (Dependencies): Likewise.
49101         * modules/mbsrtowcs (Dependencies): Likewise.
49102         * modules/mbsspn (Dependencies): Likewise.
49103         * modules/mbsstr (Dependencies): Likewise.
49104         * modules/nl_langinfo (Dependencies): Likewise.
49105         * modules/quotearg (Dependencies): Likewise.
49106         * modules/unicase/locale-language (Dependencies): Likewise.
49107         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
49108         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
49109         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
49110         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
49111         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
49112         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
49113         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
49114         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
49115         * modules/vasnprintf-posix (Dependencies): Likewise.
49116         * modules/wcrtomb (Dependencies): Likewise.
49117         * modules/wcsnrtombs (Dependencies): Likewise.
49118         * modules/wcsrtombs (Dependencies): Likewise.
49120 2011-02-12  Bruno Haible  <bruno@clisp.org>
49122         setlocale: Workaround native Windows bug.
49123         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
49124         succeeds but sets LC_CTYPE to "C", report a failure.
49125         * tests/test-setlocale2.sh: New file.
49126         * tests/test-setlocale2.c: New file.
49127         * modules/setlocale-tests (Files): Add the new files.
49128         (Makefile.am): Enable test-setlocale2.sh test.
49129         * doc/posix-functions/setlocale.texi: Mention workaround.
49131 2011-02-11  Bruno Haible  <bruno@clisp.org>
49133         Tests for module 'setlocale'.
49134         * modules/setlocale-tests: New file.
49135         * tests/test-setlocale1.sh: New file.
49136         * tests/test-setlocale1.c: New file.
49138         New module 'setlocale'.
49139         * lib/locale.in.h (setlocale): New declaration.
49140         * lib/setlocale.c: New file, based on
49141         gettext/gettext-runtime/intl/setlocale.c.
49142         * m4/setlocale.m4: New file.
49143         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
49144         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
49145         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
49146         REPLACE_SETLOCALE.
49147         * modules/setlocale: New file.
49148         * tests/test-locale-c++.cc: Test the declaration of setlocale.
49149         * doc/posix-functions/setlocale.texi: Mention the new module.
49151 2011-02-11  Bruno Haible  <bruno@clisp.org>
49153         Prepare for locale dependent tests on mingw.
49154         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
49155         because it has the wrong locale encoding.
49156         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
49157         French_France.1252 instead of "fr".
49158         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
49159         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
49160         because it has the wrong locale encoding.
49161         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
49162         native Windows, try Turkish_Turkey.65001.
49163         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
49164         Chinese_China.54936.
49166         Prepare for locale dependent tests on mingw.
49167         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
49168         differently.
49169         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
49170         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
49171         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49172         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49174 2011-02-11  Eric Blake  <eblake@redhat.com>
49176         strptime: avoid compiler warnings
49177         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
49178         compiler warnings about dead code.
49179         Reported by Daniel P. Berrange.
49181 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
49183         doc: update users.txt
49184         * users.txt: Add rcs.
49186 2011-02-10  John W. Eaton  <jwe@gnu.org>
49188         doc: update users.txt
49189         * users.txt: Add octave.
49191 2011-02-10  Jim Meyering  <meyering@redhat.com>
49193         doc: update users.txt
49194         * users.txt: Add iwhd.
49196 2011-02-09  Bruno Haible  <bruno@clisp.org>
49198         gnulib-tool: Make copyright notice adjustment more robust.
49199         * gnulib-tool (func_import): In sed_transform_main_lib_file,
49200         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
49201         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
49202         License".
49203         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
49205 2011-02-06  Bruno Haible  <bruno@clisp.org>
49207         New module 'towctrans'.
49208         * modules/towctrans: New file.
49209         * lib/wctype.in.h (towctrans): New declaration.
49210         * lib/towctrans.c: New file.
49211         * lib/towctrans-impl.h: New file.
49212         * m4/towctrans.m4: New file.
49213         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
49214         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
49215         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
49216         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
49217         * doc/posix-functions/towctrans.texi: Mention the new module.
49219 2011-02-06  Bruno Haible  <bruno@clisp.org>
49221         New module 'wctrans'.
49222         * modules/wctrans: New file.
49223         * lib/wctype.in.h (wctrans): New declaration.
49224         * lib/wctrans.c: New file.
49225         * lib/wctrans-impl.h: New file.
49226         * m4/wctrans.m4: New file.
49227         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
49228         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
49229         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
49230         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
49231         * doc/posix-functions/wctrans.texi: Mention the new module.
49233 2011-02-06  Bruno Haible  <bruno@clisp.org>
49235         New module 'iswctype'.
49236         * modules/iswctype: New file.
49237         * lib/wctype.in.h (iswctype): New declaration.
49238         * lib/iswctype.c: New file.
49239         * lib/iswctype-impl.h: New file.
49240         * m4/iswctype.m4: New file.
49241         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
49242         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
49243         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
49244         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
49245         * doc/posix-functions/iswctype.texi: Mention the new module and the
49246         HP-UX 11.00 problem.
49248 2011-02-06  Bruno Haible  <bruno@clisp.org>
49250         New module 'wctype'.
49251         * modules/wctype: Change to represent the wctype() substitute.
49252         * lib/wctype.in.h (wctype): New declaration.
49253         * lib/wctype.c: New file.
49254         * lib/wctype-impl.h: New file.
49255         * m4/wctype.m4: New file.
49256         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
49257         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
49258         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
49259         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
49260         * doc/posix-functions/wctype.texi: Mention the new module and the
49261         HP-UX 11.00 problem.
49263 2011-02-06  Bruno Haible  <bruno@clisp.org>
49265         wctype-h: Ensure wctype_t and wctrans_t are defined.
49266         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
49267         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
49268         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
49269         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
49270         HAVE_WCTRANS_T.
49271         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
49273 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
49275         flock: fix license typo
49277         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
49278         omitted.
49280 2011-02-08  Bruno Haible  <bruno@clisp.org>
49282         Split large sed scripts, for HP-UX sed.
49283         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
49284         to avoid HP-UX limit of 99 commands, in the near future.
49285         * modules/stdlib (Makefile.am): Likewise.
49286         * modules/unistd (Makefile.am): Likewise.
49287         * modules/wchar (Makefile.am): Likewise.
49288         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49289         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
49290         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
49292 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
49293             Bruno Haible  <bruno@clisp.org>
49295         stdlib: improve random_r modularization
49296         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
49297         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
49298         you also need the random_r module to get this material right.
49299         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
49300         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
49301         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
49303 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
49305         stdlib: don't depend on stdint
49306         * lib/stdlib.in.h: Don't include <stdint.h> merely because
49307         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
49308         be independent of whether stdint.h is needed.
49309         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
49310         here, instead of ...
49311         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
49312         struct random_data should be using the random_r module, not just
49313         the stdlib module (which wouldn't make sense: what package needs
49314         just struct random_data without also needing random_r?).
49315         * modules/stdlib (Depends-on): Remove stdint.
49317         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
49318         See the thread rooted at
49319         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
49320         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
49321         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
49322         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
49323         __VMS)); previously it was always included (via fcntl--.h).
49324         (getloadavg): Do not use c_strtod.  Instead, approximate it by
49325         hand; this is good enough for load averages.  Also, do not use
49326         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
49327         flags directly if available and don't bother otherwise.  (Packages
49328         that need the extra reliability should use the modules that define
49329         these flags on older platforms that lack them.)
49330         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
49331         fcntl-safer.
49333 2011-02-08  Jim Meyering  <meyering@redhat.com>
49335         di-set.h, ino-map.h: add multiple-inclusion guard
49336         Technically, the guard is required only for ino-map.h, due to its
49337         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
49338         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
49339         * lib/ino-map.h: Likewise.
49341 2011-02-06  Bruno Haible  <bruno@clisp.org>
49343         iswblank: Ensure declaration on glibc systems.
49344         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
49345         * modules/iswblank (Dependencies): Add 'extensions'.
49346         * doc/posix-functions/iswblank.texi: Document the glibc problem.
49348 2011-02-06  Bruno Haible  <bruno@clisp.org>
49350         New module 'iswblank'.
49351         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
49352         * modules/iswblank: New file.
49353         * modules/wctype-h (Files): Remove lib/iswblank.c.
49354         (Makefile.am): Substitute GNULIB_ISWBLANK.
49355         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
49356         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
49357         (gl_WCTYPE_H_DEFAULTS): New macro.
49358         (gl_WCTYPE_H): Require it. Remove iswblank related code.
49359         * modules/iswblank-tests: New file.
49360         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
49361         * tests/test-wctype-h.c (main): Remove iswblank tests.
49362         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
49363         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
49364         of 'wctype-h'.
49365         * NEWS: Mention the change.
49366         * modules/mbchar (Depends-on): Add iswblank.
49368 2011-02-08  Bruno Haible  <bruno@clisp.org>
49370         di-set tests: Refactor.
49371         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
49372         unnecessary includes.
49373         (ASSERT): Remove macro.
49374         (main): Make C90 compliant by avoiding variable declaration after
49375         statement.
49376         * modules/di-set-tests (Files): Add tests/macros.h.
49378 2011-02-08  Bruno Haible  <bruno@clisp.org>
49380         ino-map tests: Refactor.
49381         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
49382         unnecessary includes.
49383         (ASSERT): Remove macro.
49384         (main): Make C90 compliant by avoiding variable declaration after
49385         statement.
49386         * modules/ino-map-tests (Files): Add tests/macros.h.
49388 2011-02-08  Jim Meyering  <meyering@redhat.com>
49390         di-set: add "const" to a cast
49391         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
49392         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
49394 2011-02-06  Bruno Haible  <bruno@clisp.org>
49396         Rename module 'wctype' to 'wctype-h'.
49397         * modules/wctype-h: Renamed from modules/wctype.
49398         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
49399         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
49400         (Files, Depends-on, Makefile.am): Update.
49401         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
49402         (Files, Makefile.am): Update.
49403         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
49404         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
49405         * doc/posix-headers/wctype.texi: Update.
49406         * doc/posix-functions/iswalnum.texi: Update.
49407         * doc/posix-functions/iswalpha.texi: Update.
49408         * doc/posix-functions/iswblank.texi: Update.
49409         * doc/posix-functions/iswcntrl.texi: Update.
49410         * doc/posix-functions/iswdigit.texi: Update.
49411         * doc/posix-functions/iswgraph.texi: Update.
49412         * doc/posix-functions/iswlower.texi: Update.
49413         * doc/posix-functions/iswprint.texi: Update.
49414         * doc/posix-functions/iswpunct.texi: Update.
49415         * doc/posix-functions/iswspace.texi: Update.
49416         * doc/posix-functions/iswupper.texi: Update.
49417         * doc/posix-functions/iswxdigit.texi: Update.
49418         * doc/posix-functions/towlower.texi: Update.
49419         * doc/posix-functions/towupper.texi: Update.
49420         * NEWS: Mention the change.
49421         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
49422         * modules/mbchar (Dependencies): Likewise.
49423         * modules/mbswidth (Dependencies): Likewise.
49424         * modules/quotearg (Dependencies): Likewise.
49425         * modules/regex (Dependencies): Likewise.
49426         * modules/wcscasecmp (Dependencies): Likewise.
49427         * modules/wcsncasecmp (Dependencies): Likewise.
49428         * modules/wcwidth (Dependencies): Likewise.
49430 2011-02-06  Bruno Haible  <bruno@clisp.org>
49432         New module 'wcswidth'.
49433         * modules/wcswidth: New file.
49434         * lib/wchar.in.h (wcswidth): New declaration.
49435         * lib/wcswidth.c: New file.
49436         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
49437         * m4/wcswidth.m4: New file.
49438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
49439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
49440         REPLACE_WCSWIDTH.
49441         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
49442         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
49443         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
49444         * doc/posix-functions/wcswidth.texi: Mention the new module.
49446 2011-02-06  Bruno Haible  <bruno@clisp.org>
49448         New module 'wcstok'.
49449         * modules/wcstok: New file.
49450         * lib/wchar.in.h (wcstok): New declaration.
49451         * lib/wcstok.c: New file.
49452         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
49453         * m4/wcstok.m4: New file.
49454         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
49455         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
49456         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
49457         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
49458         * doc/posix-functions/wcstok.texi: Mention the new module.
49460 2011-02-06  Bruno Haible  <bruno@clisp.org>
49462         New module 'wcsstr'.
49463         * modules/wcsstr: New file.
49464         * lib/wchar.in.h (wcsstr): New declaration.
49465         * lib/wcsstr.c: New file.
49466         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
49467         * m4/wcsstr.m4: New file.
49468         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
49469         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
49470         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
49471         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
49472         * doc/posix-functions/wcsstr.texi: Mention the new module.
49474 2011-02-06  Bruno Haible  <bruno@clisp.org>
49476         New module 'wcspbrk'.
49477         * modules/wcspbrk: New file.
49478         * lib/wchar.in.h (wcspbrk): New declaration.
49479         * lib/wcspbrk.c: New file.
49480         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
49481         * m4/wcspbrk.m4: New file.
49482         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
49483         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
49484         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
49485         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
49486         * doc/posix-functions/wcspbrk.texi: Mention the new module.
49488 2011-02-06  Bruno Haible  <bruno@clisp.org>
49490         New module 'wcsspn'.
49491         * modules/wcsspn: New file.
49492         * lib/wchar.in.h (wcsspn): New declaration.
49493         * lib/wcsspn.c: New file.
49494         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
49495         * m4/wcsspn.m4: New file.
49496         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
49497         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
49498         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
49499         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
49500         * doc/posix-functions/wcsspn.texi: Mention the new module.
49502 2011-02-06  Bruno Haible  <bruno@clisp.org>
49504         New module 'wcscspn'.
49505         * modules/wcscspn: New file.
49506         * lib/wchar.in.h (wcscspn): New declaration.
49507         * lib/wcscspn.c: New file.
49508         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
49509         * m4/wcscspn.m4: New file.
49510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
49511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
49512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
49513         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
49514         * doc/posix-functions/wcscspn.texi: Mention the new module.
49516 2011-02-06  Bruno Haible  <bruno@clisp.org>
49518         New module 'wcsrchr'.
49519         * modules/wcsrchr: New file.
49520         * lib/wchar.in.h (wcsrchr): New declaration.
49521         * lib/wcsrchr.c: New file.
49522         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
49523         * m4/wcsrchr.m4: New file.
49524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
49525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
49526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
49527         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
49528         * doc/posix-functions/wcsrchr.texi: Mention the new module.
49530 2011-02-06  Bruno Haible  <bruno@clisp.org>
49532         New module 'wcschr'.
49533         * modules/wcschr: New file.
49534         * lib/wchar.in.h (wcschr): New declaration.
49535         * lib/wcschr.c: New file.
49536         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
49537         * m4/wcschr.m4: New file.
49538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
49539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
49540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
49541         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
49542         * doc/posix-functions/wcschr.texi: Mention the new module.
49544 2011-02-06  Bruno Haible  <bruno@clisp.org>
49546         New module 'wcsdup'.
49547         * modules/wcsdup: New file.
49548         * lib/wchar.in.h (wcsdup): New declaration.
49549         * lib/wcsdup.c: New file.
49550         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
49551         * m4/wcsdup.m4: New file.
49552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
49553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
49554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
49555         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
49556         * doc/posix-functions/wcsdup.texi: Mention the new module.
49558 2011-02-06  Bruno Haible  <bruno@clisp.org>
49560         New module 'wcsxfrm'.
49561         * modules/wcsxfrm: New file.
49562         * lib/wchar.in.h (wcsxfrm): New declaration.
49563         * lib/wcsxfrm.c: New file.
49564         * lib/wcsxfrm-impl.h: New file.
49565         * m4/wcsxfrm.m4: New file.
49566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
49567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
49568         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
49569         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
49570         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
49572 2011-02-06  Bruno Haible  <bruno@clisp.org>
49574         New module 'wcscoll'.
49575         * modules/wcscoll: New file.
49576         * lib/wchar.in.h (wcscoll): New declaration.
49577         * lib/wcscoll.c: New file.
49578         * lib/wcscoll-impl.h: New file.
49579         * m4/wcscoll.m4: New file.
49580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
49581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
49582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
49583         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
49584         * doc/posix-functions/wcscoll.texi: Mention the new module.
49586 2011-02-06  Bruno Haible  <bruno@clisp.org>
49588         New module 'wcsncasecmp'.
49589         * modules/wcsncasecmp: New file.
49590         * lib/wchar.in.h (wcsncasecmp): New declaration.
49591         * lib/wcsncasecmp.c: New file.
49592         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
49593         * m4/wcsncasecmp.m4: New file.
49594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
49595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
49596         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
49597         HAVE_WCSNCASECMP.
49598         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
49599         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
49601 2011-02-06  Bruno Haible  <bruno@clisp.org>
49603         New module 'wcscasecmp'.
49604         * modules/wcscasecmp: New file.
49605         * lib/wchar.in.h (wcscasecmp): New declaration.
49606         * lib/wcscasecmp.c: New file.
49607         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
49608         * m4/wcscasecmp.m4: New file.
49609         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
49610         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
49611         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
49612         HAVE_WCSCASECMP.
49613         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
49614         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
49616 2011-02-05  Bruno Haible  <bruno@clisp.org>
49618         New module 'wcsncmp'.
49619         * modules/wcsncmp: New file.
49620         * lib/wchar.in.h (wcsncmp): New declaration.
49621         * lib/wcsncmp.c: New file.
49622         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
49623         * m4/wcsncmp.m4: New file.
49624         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
49625         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
49626         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
49627         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
49628         * doc/posix-functions/wcsncmp.texi: Mention the new module.
49630 2011-02-05  Bruno Haible  <bruno@clisp.org>
49632         New module 'wcscmp'.
49633         * modules/wcscmp: New file.
49634         * lib/wchar.in.h (wcscmp): New declaration.
49635         * lib/wcscmp.c: New file.
49636         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
49637         * m4/wcscmp.m4: New file.
49638         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
49639         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
49640         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
49641         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
49642         * doc/posix-functions/wcscmp.texi: Mention the new module.
49644 2011-02-05  Bruno Haible  <bruno@clisp.org>
49646         New module 'wcsncat'.
49647         * modules/wcsncat: New file.
49648         * lib/wchar.in.h (wcsncat): New declaration.
49649         * lib/wcsncat.c: New file.
49650         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
49651         * m4/wcsncat.m4: New file.
49652         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
49653         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
49654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
49655         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
49656         * doc/posix-functions/wcsncat.texi: Mention the new module.
49658 2011-02-05  Bruno Haible  <bruno@clisp.org>
49660         New module 'wcscat'.
49661         * modules/wcscat: New file.
49662         * lib/wchar.in.h (wcscat): New declaration.
49663         * lib/wcscat.c: New file.
49664         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
49665         * m4/wcscat.m4: New file.
49666         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
49667         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
49668         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
49669         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
49670         * doc/posix-functions/wcscat.texi: Mention the new module.
49672 2011-02-05  Bruno Haible  <bruno@clisp.org>
49674         New module 'wcpncpy'.
49675         * modules/wcpncpy: New file.
49676         * lib/wchar.in.h (wcpncpy): New declaration.
49677         * lib/wcpncpy.c: New file.
49678         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
49679         * m4/wcpncpy.m4: New file.
49680         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
49681         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
49682         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
49683         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
49684         * doc/posix-functions/wcpncpy.texi: Mention the new module.
49686 2011-02-05  Bruno Haible  <bruno@clisp.org>
49688         New module 'wcsncpy'.
49689         * modules/wcsncpy: New file.
49690         * lib/wchar.in.h (wcsncpy): New declaration.
49691         * lib/wcsncpy.c: New file.
49692         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
49693         * m4/wcsncpy.m4: New file.
49694         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
49695         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
49696         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
49697         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
49698         * doc/posix-functions/wcsncpy.texi: Mention the new module.
49700 2011-02-05  Bruno Haible  <bruno@clisp.org>
49702         New module 'wcpcpy'.
49703         * modules/wcpcpy: New file.
49704         * lib/wchar.in.h (wcpcpy): New declaration.
49705         * lib/wcpcpy.c: New file.
49706         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
49707         * m4/wcpcpy.m4: New file.
49708         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
49709         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
49710         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
49711         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
49712         * doc/posix-functions/wcpcpy.texi: Mention the new module.
49714 2011-02-05  Bruno Haible  <bruno@clisp.org>
49716         New module 'wcscpy'.
49717         * modules/wcscpy: New file.
49718         * lib/wchar.in.h (wcscpy): New declaration.
49719         * lib/wcscpy.c: New file.
49720         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
49721         * m4/wcscpy.m4: New file.
49722         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
49723         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
49724         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
49725         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
49726         * doc/posix-functions/wcscpy.texi: Mention the new module.
49728 2011-02-05  Bruno Haible  <bruno@clisp.org>
49730         New module 'wcsnlen'.
49731         * modules/wcsnlen: New file.
49732         * lib/wchar.in.h (wcsnlen): New declaration.
49733         * lib/wcsnlen.c: New file.
49734         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
49735         * m4/wcsnlen.m4: New file.
49736         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
49737         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
49738         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
49739         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
49740         * doc/posix-functions/wcsnlen.texi: Mention the new module.
49742 2011-02-05  Bruno Haible  <bruno@clisp.org>
49744         New module 'wcslen'.
49745         * modules/wcslen: New file.
49746         * lib/wchar.in.h (wcslen): New declaration.
49747         * lib/wcslen.c: New file.
49748         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
49749         * m4/wcslen.m4: New file.
49750         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
49751         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
49752         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
49753         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
49754         * doc/posix-functions/wcslen.texi: Mention the new module.
49756 2011-02-05  Bruno Haible  <bruno@clisp.org>
49758         New module 'wmemset'.
49759         * modules/wmemset: New file.
49760         * lib/wchar.in.h (wmemset): New declaration.
49761         * lib/wmemset.c: New file.
49762         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
49763         * m4/wmemset.m4: New file.
49764         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
49765         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
49766         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
49767         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
49768         * doc/posix-functions/wmemset.texi: Mention the new module.
49770 2011-02-05  Bruno Haible  <bruno@clisp.org>
49772         New module 'wmemmove'.
49773         * modules/wmemmove: New file.
49774         * lib/wchar.in.h (wmemmove): New declaration.
49775         * lib/wmemmove.c: New file.
49776         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
49777         * m4/wmemmove.m4: New file.
49778         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
49779         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
49780         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
49781         HAVE_WMEMMOVE.
49782         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
49783         * doc/posix-functions/wmemmove.texi: Mention the new module.
49785 2011-02-05  Bruno Haible  <bruno@clisp.org>
49787         New module 'wmemcpy'.
49788         * modules/wmemcpy: New file.
49789         * lib/wchar.in.h (wmemcpy): New declaration.
49790         * lib/wmemcpy.c: New file.
49791         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
49792         * m4/wmemcpy.m4: New file.
49793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
49794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
49795         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
49796         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
49797         * doc/posix-functions/wmemcpy.texi: Mention the new module.
49799 2011-02-05  Bruno Haible  <bruno@clisp.org>
49801         New module 'wmemcmp'.
49802         * modules/wmemcmp: New file.
49803         * lib/wchar.in.h (wmemcmp): New declaration.
49804         * lib/wmemcmp.c: New file.
49805         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
49806         * m4/wmemcmp.m4: New file.
49807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
49808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
49809         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
49810         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
49811         * doc/posix-functions/wmemcmp.texi: Mention the new module.
49813 2011-02-07  Jim Meyering  <meyering@redhat.com>
49815         di-set, ino-map: new modules, from coreutils
49816         * lib/di-set.c: New file.
49817         * lib/di-set.h: Likewise.
49818         * lib/ino-map.c: Likewise.
49819         * lib/ino-map.h: Likewise.
49820         * modules/di-set: Likewise.
49821         * modules/di-set-tests: Likewise.
49822         * modules/ino-map: Likewise.
49823         * modules/ino-map-tests: Likewise.
49824         * tests/test-di-set.c: Likewise.
49825         * tests/test-ino-map.c: Likewise.
49827 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
49829         getloadavg: merge minor changes from Emacs
49831         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
49832         (getloadavg): Use memset, not bzero.
49834         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
49835         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
49836         clash (bug#86).
49838 2010-11-14  Bruno Haible  <bruno@clisp.org>
49840         Allow multiple gnulib generated replacements to coexist.
49841         * lib/getopt.in.h (struct option): Avoid identical redefinition.
49842         * lib/inttypes.in.h (imaxdiv_t): Likewise.
49843         * lib/langinfo.in.h (nl_item): Likewise.
49844         * lib/math.in.h (_NaN, NAN): Likewise.
49845         * lib/netdb.in.h (struct addrinfo): Likewise.
49846         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
49847         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
49848         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
49849         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
49850         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
49851         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
49852         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
49853         pthread_mutexattr_init, pthread_mutexattr_settype,
49854         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
49855         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
49856         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
49857         pthread_spin_trylock, pthread_spin_unlock): Likewise.
49858         * lib/sched.in.h (struct sched_param): Likewise.
49859         * lib/se-selinux.in.h (security_class_t, security_context_t,
49860         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
49861         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
49862         lsetfilecon, fsetfilecon, security_check_context,
49863         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
49864         Likewise.
49865         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
49866         Likewise.
49867         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
49868         _gl_function_taking_int_returning_void_t, union sigval,
49869         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
49870         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
49871         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
49872         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
49873         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
49874         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
49875         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
49876         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
49877         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
49878         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
49879         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
49880         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
49881         socklen_t, rpl_fd_isset): Likewise.
49882         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
49883         * lib/sys_time.in.h (struct timeval): Likewise.
49884         * lib/sys_times.in.h (struct tms): Likewise.
49885         * lib/sys_utsname.in.h (struct utsname):
49886         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
49887         * lib/unistd.in.h (getpagesize): Likewise.
49888         * lib/wchar.in.h (mbstate_t): Likewise.
49889         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
49890         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
49891         towlower, towupper): Likewise.
49892         Reported by Sam Steingold <sds@gnu.org>.
49894 2011-02-05  Eric Blake  <eblake@redhat.com>
49896         unsetenv: work around Haiku issues
49897         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
49898         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
49900 2010-12-30  Bruce Korb  <bkorb@gnu.org>
49902         libposix: avoid calling error() within libposix
49903         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
49904         is defined.
49906 2011-02-05  Eric Blake  <eblake@redhat.com>
49908         strerror_r-posix: port to cygwin
49909         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
49910         implementation.
49911         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
49912         * tests/test-strerror_r.c (main): Fix test.
49913         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
49914         issue.
49916 2011-02-05  Bruno Haible  <bruno@clisp.org>
49918         New module 'wmemchr'.
49919         * modules/wmemchr: New file.
49920         * lib/wchar.in.h (wmemchr): New declaration.
49921         * lib/wmemchr.c: New file.
49922         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
49923         * m4/wmemchr.m4: New file.
49924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
49925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
49926         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
49927         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
49928         * doc/posix-functions/wmemchr.texi: Mention the new module.
49930 2011-02-04  Eric Blake  <eblake@redhat.com>
49932         fdopendir: detect FreeBSD bug
49933         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
49934         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
49936 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
49938         stdbool: do not define HAVE_STDBOOL_H
49939         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
49940         AC_HEADER_STDBOOL.  All uses changed.  Do not define
49941         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
49942         imported from the latest Autoconf git.  It was motivated by Emacs,
49943         which uses gnulib but does not need HAVE_STDBOOL_H.
49945 2011-02-04  Bruno Haible  <bruno@clisp.org>
49947         wcsnrtombs: Prepare for new module wwcsnrtombs.
49948         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
49949         * lib/wcsnrtombs.c: Include it.
49950         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
49952         wcsrtombs: Prepare for new module wwcsrtombs.
49953         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
49954         * lib/wcsrtombs.c: Include it.
49955         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
49957         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
49958         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
49959         * lib/mbsnrtowcs.c: Include it.
49960         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
49962         mbsrtowcs: Prepare for new module mbsrtowwcs.
49963         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
49964         * lib/mbsrtowcs.c: Include it.
49965         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
49967 2011-02-04  Bruno Haible  <bruno@clisp.org>
49969         vasnprintf: Reduce use of malloc for small format strings.
49970         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
49971         (arguments): Add room for the first 7 arguments.
49972         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
49973         (char_directives, u8_directives, u16_directives, u32_directives): Add
49974         room for the first 7 directives.
49975         * lib/printf-parse.c: Include <string.h>.
49976         (PRINTF_PARSE): Change memory handling code so that it uses the first
49977         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
49978         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
49979         Reported by Pádraig Brady <P@draigbrady.com>.
49981 2011-01-31  Eric Blake  <eblake@redhat.com>
49983         dup2: work around Haiku bug
49984         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
49985         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
49986         * doc/posix-functions/dup2.texi (dup2): Document the bug.
49987         * tests/test-dup2.c (main): Enhance test.
49989 2011-01-31  Simon Josefsson  <simon@josefsson.org>
49991         doc: off_t is not available in eglibc 2.11.2 stdio.h.
49992         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
49993         declared by eglibc 2.11.2.
49994         * lib/stdio.in.h: Likewise.
49996 2011-01-31  Eric Blake  <eblake@redhat.com>
49998         ignore-value: add missing test dependency
49999         * tests/test-ignore-value.c: Revert previous change; stdio.h
50000         provides off_t.
50001         * modules/ignore-value-tests (Depends-on): Add missing dependency.
50003 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
50005         mktime: clarify long_int width checking
50006         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
50007         the top level, to make it clearer that the assumption about
50008         long_int width is being checked.  See
50009         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
50011 2011-01-30  Simon Josefsson  <simon@josefsson.org>
50013         ignore-value: Fix self-test.
50014         * tests/test-ignore-value.c: Include sys/types.h for off_t.
50016 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
50018         TYPE_MAXIMUM: avoid theoretically undefined behavior
50019         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
50020         negative number, which the C Standard says has undefined behavior.
50021         In practice this is not a problem, but might as well do it by the book.
50022         Reported by Rich Felker and Eric Blake; see
50023         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
50024         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
50025         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
50026         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
50027         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
50028         * m4/stdint.m4 (gl_STDINT_H): Likewise.
50029         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
50031         mktime: #undef mktime before #defining it
50032         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
50034         mktime: systematically normalize tm_isdst comparisons
50035         * lib/mktime.c (isdst_differ): New function.
50036         (__mktime_internal): Use it systematically for all isdst comparisons.
50037         This completes the fix for libc BZ #6723, and removes the need for
50038         normalizing tm_isdst.  See
50039         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
50040         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
50042         mktime: fix some integer overflow issues and sidestep the rest
50044         This was prompted by a bug report by Benjamin Lindner for MinGW
50045         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
50046         His bug is due to signed integer overflow (0 - INT_MIN), and I
50047         I scanned through mktime.c looking for other integer overflow
50048         problems, fixing all the bugs I found.
50050         Although the C Standard says the resulting code is still not safe
50051         in the presence of integer overflow, in practice it should be good
50052         enough for all real-world two's-complement implementations, except
50053         for debugging environments that deliberately trap on integer
50054         overflow (e.g., gcc -ftrapv).
50056         * lib/mktime.c (WRAPV): New macro.
50057         (SHR): Also check that long_int and time_t shift right in the
50058         usual way, before using the fast-but-unportable method.
50059         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
50060         used.  The code already assumed two's complement, so there's
50061         no need to test for alternatives.  All uses removed.
50062         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
50063         the C standard.  Problem reported by Rich Felker in
50064         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
50065         (twos_complement_arithmetic): Also check long_int and time_t.
50066         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
50067         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
50068         (__mktime_internal): Avoid integer overflow with unary subtraction
50069         in two instances where -1 - X is an adequate replacement for -X,
50070         since the calculations are approximate.
50072 2011-01-29  Eric Blake  <eblake@redhat.com>
50074         mktime: avoid infinite loop
50075         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
50076         type; behavior is still undefined but portable to all known targets.
50077         Reported by Rich Felker.
50079 2011-01-29  Simon Josefsson  <simon@josefsson.org>
50081         rename, unlink, same-inode: Relicense.
50082         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
50083         * modules/unlink (License): Likewise.
50084         * modules/same-inode (License): Likewise.
50086 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
50088         mktime: avoid problems on NetBSD 5 / i386
50089         * lib/mktime.c (long_int): New type.  This works around a problem
50090         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
50091         but time_t is 64 bits, and where I expect the existing code is
50092         wrong in some cases.
50093         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
50094         (ydhms_diff): Bring back the compile-time check for wide-enough
50095         year and yday.
50097         mktime: fix misspelling in comment
50098         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
50099         This merges all recent glibc changes of importance.
50101 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50103         move-if-change: cope with concurrent mv of identical file.
50104         * build-aux/move-if-change (CMPPROG): Accept environment
50105         variable as an override for `cmp'.
50106         (usage): Document CMPPROG.
50107         Adjust comparison to drop stdout.  Cope with failure of mv if
50108         the target file exists and is identical to the source, for
50109         parallel builds.
50110         Report from H.J. Lu against binutils in PR binutils/12283.
50112 2011-01-28  Bruce Korb  <bkorb@gnu.org>
50114         * users.txt: Mention sharutils.
50116 2011-01-28  Simon Josefsson  <simon@josefsson.org>
50118         * users.txt: Mention OATH Toolkit.
50120 2011-01-27  Bruno Haible  <bruno@clisp.org>
50122         Prepare for supporting FreeBSD 10.
50123         * build-aux/config.libpath: Remove handling of freebsd1*.
50125 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
50127         Prepare for supporting FreeBSD 10.
50128         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
50129         match FreeBSD 10.0.
50131 2011-01-27  Bruno Haible  <bruno@clisp.org>
50133         vma-iter, get-rusage-as: Add OpenBSD support.
50134         * modules/vma-iter (configure.ac): Test for mquery.
50135         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
50136         * lib/vma-iter.c: Include <sys/mman.h>.
50137         (vma_iterate): Add an implementation based on mquery().
50138         * lib/resource-ext.h (get_rusage_as): Update comments.
50139         * lib/get-rusage-as.c: Likewise.
50140         * lib/get-rusage-data.c: Likewise.
50142 2011-01-26  Karl Berry  <karl@gnu.org>
50144         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
50145         variables to make it easier to override the makeinfo program used.
50147 2011-01-26  Eric Blake  <eblake@redhat.com>
50149         fcntl: work around Haiku F_DUPFD bugs
50150         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
50151         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
50152         cloexec bit on duplication.
50153         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
50155 2011-01-26  Bruno Haible  <bruno@clisp.org>
50157         Enable memory leak tests on AIX.
50158         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
50159         * tests/test-fprintf-posix3.c (main): Likewise.
50161 2011-01-26  Bruno Haible  <bruno@clisp.org>
50163         Tests for module 'get-rusage-data'.
50164         * modules/get-rusage-data-tests: New file.
50165         * tests/test-get-rusage-data.c: New file.
50167         New module 'get-rusage-data'.
50168         * lib/resource-ext.h (get_rusage_data): New declaration.
50169         * lib/get-rusage-data.c: New file.
50170         * modules/get-rusage-data: New file.
50172 2011-01-25  Bruno Haible  <bruno@clisp.org>
50174         get-rusage-as: Allow for easier testing.
50175         * lib/resource-ext.h (get_rusage_as): Add comment.
50176         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
50177         (main): New function for interactive testing.
50179 2011-01-25  Bruno Haible  <bruno@clisp.org>
50181         vma-iter: Treat Haiku like BeOS.
50182         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
50183         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
50185 2011-01-25  Eric Blake  <eblake@redhat.com>
50187         c-stack: fix regression on cygwin when libsigsegv is present
50188         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
50190 2011-01-24  Bruno Haible  <bruno@clisp.org>
50192         vma-iter: Avoid empty intervals.
50193         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
50194         on an empty interval.
50196 2011-01-24  Jim Meyering  <meyering@redhat.com>
50198         u64: remove unnecessary #include
50199         * lib/u64.h: Don't include <stddef.h>.  It was not used.
50201 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
50203         Allow the user to avoid the HAVE_RAW_DECL_* macros.
50204         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
50206 2011-01-23  Bruno Haible  <bruno@clisp.org>
50208         New module 'vma-iter'.
50209         * lib/vma-iter.h: New file.
50210         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
50211         * modules/vma-iter: New file.
50212         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
50213         for get_rusage_as_via_iterator.
50214         (vma_iterate_callback): New function.
50215         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
50216         * modules/get-rusage-as (Depends-on): Add vma-iter.
50218 2011-01-23  Bruno Haible  <bruno@clisp.org>
50220         uninorm: Tweak includes.
50221         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
50222         Reported by Jim Meyering.
50224 2011-01-23  Bruno Haible  <bruno@clisp.org>
50226         get-rusage-as: Improve on NetBSD.
50227         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
50228         /proc, like on FreeBSD.
50230 2011-01-23  Jim Meyering  <meyering@redhat.com>
50232         xreadlink.h: remove unnecessary #include
50233         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
50235         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
50236         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
50238 2011-01-23  Bruno Haible  <bruno@clisp.org>
50240         get-rusage-as: Fix bug.
50241         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
50242         original limit when aborting the first loop.
50244 2011-01-23  Bruno Haible  <bruno@clisp.org>
50246         wctype: Ensure valid C syntax.
50247         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
50248         unconditionally, instead of gl_NEXT_HEADERS conditionally.
50250 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
50252         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
50253         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
50254         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
50255         as they are needed only for configure's test case.
50256         This removes two unnecessary symbols from config.h.
50258         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
50259         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
50260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
50261         AC_CHECK_HEADERS_ONCE on a header that we also invoke
50262         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
50263         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
50264         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
50265         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
50266         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
50267         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
50268         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
50269         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50270         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
50271         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50272         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
50273         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
50274         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
50275         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
50277 2011-01-21  Eric Blake  <eblake@redhat.com>
50279         maintainer-makefile: work with older git for submodule check
50280         * top/maint.mk (public-submodule-commit): Rewrite to avoid
50281         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
50282         Reported by Matthias Bolte.
50284         bootstrap: minor portability fixes
50285         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
50286         (usage): Omit leading capital and trailing . on help phrases, per
50287         GNU Coding Standards.
50288         (check_versions, top level): Prefix messages with script name.
50290 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
50292         bootstrap: support --no-git option
50293         * build-aux/bootstrap: Add --no-git option, to be used when
50294         --gnulib-srcdir points to the exact desired checkout.
50296 2011-01-21  Eric Blake  <eblake@redhat.com>
50298         strerror_r-posix: work with glibc 2.13
50299         * lib/strerror_r.c (strerror_r): Fix return type.
50301 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50302             Bruno Haible  <bruno@clisp.org>
50304         uN_strstr: New unit tests.
50305         * modules/unistr/u8-strstr-tests: New file.
50306         * modules/unistr/u16-strstr-tests: New file.
50307         * modules/unistr/u32-strstr-tests: New file.
50308         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
50309         * tests/unistr/test-u8-strstr.c: New file.
50310         * tests/unistr/test-u16-strstr.c: New file.
50311         * tests/unistr/test-u32-strstr.c: New file.
50313 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50314             Bruno Haible  <bruno@clisp.org>
50316         Make uN_strstr functions O(n) worst-case.
50317         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
50318         16-bit and 32-bit unit cases, use the unibyte algorithm from
50319         lib/mbsstr.c.
50320         * lib/unistr/u8-strstr.c: Include <string.h>.
50321         (UNIT_IS_UINT8_T): New macro.
50322         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
50323         (U_STRLEN, U_STRNLEN): New macros.
50324         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
50325         (U_STRLEN, U_STRNLEN): New macros.
50326         * modules/unistr/u8-strstr (Depends-on): Add strstr.
50327         (configure.ac): Update required libunistring version.
50328         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
50329         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
50330         malloca.
50331         (configure.ac): Update required libunistring version.
50332         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
50333         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
50334         malloca.
50335         (configure.ac): Update required libunistring version.
50337 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50338             Bruno Haible  <bruno@clisp.org>
50340         Prepare for faster uN_strstr functions.
50341         * lib/str-kmp.h: Support definable UNITs.
50342         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
50343         needle_len argument.
50344         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
50345         * lib/mbscasestr.c (mbscasestr): Likewise.
50347 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50349         malloca-tests: make faster by unsetting MALLOC_PERTURB_
50350         * tests/test-malloca.c (main): Unset the environment variable
50351         to greatly speed up the test.
50352         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
50353         * modules/malloca-tests: Depend on unsetenv.
50355 2011-01-21  Pádraig Brady  <P@draigBrady.com>
50357         ignore-value: remove stdint dependency
50358         * lib/ignore-value.h: Remove <stdint.h>
50359         * modules/ignore-value: Remove stdint dependency.
50361 2011-01-21  Jim Meyering  <meyering@redhat.com>
50363         maint.mk: adjust variable name to be consistent with other gl_ vars
50364         * top/maint.mk (gl_public_submodule_commit): Rename the variable
50365         to be lower case.
50367 2011-01-20  Jim Meyering  <meyering@redhat.com>
50369         maint.mk: make "check" depend on public-submodule-commit by default
50370         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
50372 2011-01-20  Bruno Haible  <bruno@clisp.org>
50374         mbfile, mbiter: Complete change from 2008-12-21.
50375         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
50376         * m4/mbiter.m4 (gl_MBITER): Likewise.
50378 2011-01-20  Jim Meyering  <meyering@redhat.com>
50380         init.sh: insert space between each function name and "()"
50381         * tests/init.sh: Make it a little easier to see that a function's
50382         name is "warn_", and not "warn" when looking at the first part of
50383         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
50385 2011-01-20  Jim Meyering  <meyering@redhat.com>
50387         mountlist: clean up code formatting
50388         * lib/mountlist.c (read_file_system_list): Split a long line,
50389         correct bracing style, use NULL in place of "(struct statfs *)0",
50390         don't parenthesize return value, add spaces around "=" and after
50391         ";-in-for-stmt".
50393 2011-01-14  Markus Duft  <mduft@gentoo.org>
50395         mountlist: add support for Interix
50396         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
50397         Apply statvfs to all entries of /dev/fs.
50398         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
50399         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
50401 2011-01-20  Jim Meyering  <meyering@redhat.com>
50403         maint.mk: improve the public-submodule-commit rule
50404         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
50405         to suppress printing of its commands... unless V=1.
50406         Add git submodule's --quiet option to suppress printing of e.g.,
50407         "Entering gnulib" output.
50408         "cd" into $(srcdir) before running git submodule.
50410 2011-01-20  Bruno Haible  <bruno@clisp.org>
50412         include_next: Fix bug introduced on 2011-01-18.
50413         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
50414         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
50415         ac_cv_header_... variable if the second argument is not 'check'.
50416         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
50417         gl_NEXT_HEADERS_INTERNAL.
50419 2011-01-20  Bruno Haible  <bruno@clisp.org>
50421         Allow the user to avoid the GNULIB_TEST_* macros.
50422         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
50423         Suggested by Paul Eggert.
50425 2011-01-14  Jim Meyering  <meyering@redhat.com>
50427         bootstrap: avoid failure when there is no .gitmodules file
50428         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
50429         has been assigned to, even when its value is the empty string.
50430         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
50431         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
50432         Reported by John W. Eaton <jwe@gnu.org>.
50434 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
50436         assume <ctype.h>, ..., <time.h> exist
50437         For years gnulib has been assuming the existence of the headers
50438         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
50439         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
50440         them, since they don't appear to be needed.
50441         * README (Portability guidelines): Document this.
50442         * lib/flock.c: Assume <fcntl.h> exists.
50443         * lib/regex_internal.h: Assume <locale.h> exists.
50444         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
50445         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
50446         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
50447         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
50448         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
50449         * m4/regex.m4 (gl_REGEX): Likewise.
50450         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
50451         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
50452         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
50453         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
50454         * tests/test-argp.c: Likewise.
50455         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
50457         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
50458         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
50459         AA_APPLE_UNIVERSAL_BUILD.  See
50460         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
50461         * NEWS: Document this.
50463 2011-01-19  Eric Blake  <eblake@redhat.com>
50465         c-stack: assume stack overflow if SA_SIGINFO unsupported
50466         * lib/c-stack.c (SIGACTION_WORKS): Rename...
50467         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
50468         sigaction will work.
50469         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
50470         behavior match Linux.
50471         * tests/test-c-stack.c (main): Prefer NULL for pointers.
50473         stdbool-tests: accommodate Haiku
50474         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
50476         binary-io: fix O_TEXT on Haiku
50477         * modules/binary-io (Depends-on): Add fcntl-h.
50478         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
50479         than blindly undefining O_TEXT.
50480         Reported by Scott McCreary.
50482 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50484         include_next: do not check for standard headers like stddef.h
50486         I found this problem when modifying Emacs to use gnulib.
50487         I noticed that it added HAVE_STDDEF_H to config.h, even though
50488         gnulib always assumes <stddef.h> exists as per README and this
50489         symbol is unnecessary.
50490         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
50491         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
50492         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
50493         faster for headers like stddef.h that are known to exist.
50494         (gl_CHECK_NEXT_HEADERS): Use it.
50495         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
50496         rather than gl_CHECK_NEXT_HEADERS.
50497         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
50498         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
50500 2011-01-18  Eric Blake  <eblake@redhat.com>
50502         ansi-c++-opt: skip C++ dependency style if C++ is unused
50503         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
50504         tests when we know C++ compilation is not desired.
50505         Reported by Scott McCreary.
50507 2011-01-18  Bruno Haible  <bruno@clisp.org>
50509         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
50510         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
50511         (main): Perform test also when getrlimit and setrlimit don't exist or
50512         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
50513         limiting the address space size using setrlimit, compare the address
50514         space size before and after the test.
50515         * tests/test-dprintf-posix2.c: Likewise.
50516         * tests/test-fprintf-posix3.sh: Update skip messages.
50517         * tests/test-dprintf-posix2.sh: Likewise.
50518         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
50519         * modules/dprintf-posix-tests (Depends-on): Likewise.
50520         Reported by Bruce Korb <bkorb@gnu.org> and
50521         Gary V. Vaughan <gary@gnu.org>.
50523 2011-01-18  Bruno Haible  <bruno@clisp.org>
50525         get-rusage-as: Improvement for Cygwin.
50526         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
50527         areas that are merely reserved.
50529 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
50531         strftime: remove dependencies on multibyte modules
50533         strftime depended on mbrlen, mbsinit, and wchar, but these modules
50534         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
50535         only if __osf__ is defined, and I suspect OSF doesn't need these
50536         other modules.  If my guess is wrong, we'll need to come up with a
50537         variant of strftime that doesn't need the multibyte modules.
50539         I discovered this problem when attempting modify Emacs to use the
50540         strftime module.  With the previous gnulib, this caused Emacs to
50541         need 31 new files, ranging from lib/config.charset to
50542         m4/wint_t.m4.  This was overkill and I expect would be offputting
50543         to the Emacs maintainers.  After this change, only 6 new files are
50544         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
50545         stdbool.m4, and tm_gmtoff.m4.
50547         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
50548         Suggested by Bruno Haible in
50549         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
50550         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
50551         and do not check for wchar.h.
50552         * modules/strftime (Files): Remove m4/mbstate_t.m4.
50553         (Depends-on): Remove mbrlen, mbsinit, wchar.
50555 2011-01-18  Bruno Haible  <bruno@clisp.org>
50557         Tests for module 'get-rusage-as'.
50558         * modules/get-rusage-as-tests: New file.
50559         * tests/test-get-rusage-as.c: New file.
50561         New module 'get-rusage-as'.
50562         * modules/get-rusage-as: New file.
50563         * lib/resource-ext.h: New file.
50564         * lib/get-rusage-as.c: New file.
50566 2011-01-17  Eric Blake  <eblake@redhat.com>
50568         sigaction: relax license from LGPLv3+ to LGPLv2+
50569         * modules/sigaction (License): Relax to LGPLv2+.
50571 2011-01-14  Bruno Haible  <bruno@clisp.org>
50573         filemode: Make function declarations usable in C++ mode.
50574         * lib/filemode.h: Enclose function declarations in extern "C" block.
50575         Reported by John W. Eaton <jwe@gnu.org>.
50577 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
50579         save-cwd: no longer include "xgetcwd.h"
50580         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
50581         This avoids a compilation failure in projects that use save-cwd
50582         without also using the xgetcwd module.
50584 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
50586         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
50587         This is so that a program like Emacs, which needs only dtoastr,
50588         does not have to bother with distributing and compiling ftoastr
50589         and ldtoastr.
50590         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
50591         * modules/dtoastr, modules/ldtoastr: New files.
50592         * modules/ftoastr: Now works just for 'float'.
50593         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
50594         (Makefile.am): Remove ftoastr.h (not needed and no effect),
50595         dtoastr.c, ldtoastr.c.
50597 2011-01-11  Jim Meyering  <meyering@redhat.com>
50599         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
50600         There is no need to work around the lack of the fchdir function,
50601         since gnulib can now provide a replacement when required.
50602         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
50603         * modules/save-cwd (Depends-on): Add fchdir.
50605 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
50607         openat, save-cwd: avoid xmalloc
50609         This removes a direct (but undocumented) dependency of openat on
50610         xalloc, along with an indirect dependency via save-cwd.  It also
50611         removes a dependency of save-cwd on xgetcwd, and thereby
50612         indirectly on xalloc.  This change causes the openat substitute
50613         to fall back on save_cwd when memory is tight, and for save_cwd to
50614         fail instead of dying when memory is tight, but that's good enough.
50615         Problem and initial idea for fix reported by Bastien Roucaries in
50616         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
50618         * lib/openat-proc.c: Include stdlib.h (for malloc), not
50619         xalloc.h (for xmalloc).
50620         (openat_proc_name): Use malloc, not xmalloc.
50621         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
50622         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
50624         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
50625         This avoids heap allocation for file names whose lengths are in
50626         the range 512..1023, with the upper bound increasing to at most
50627         4031 depending on the platform's PATH_MAX.  (We do not want
50628         pathmax.h here as it might supply a non-constant PATH_MAX.)
50629         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
50630         Perhaps they should be moved to malloca.h?
50631         (OPENAT_BUFFER_SIZE): Use them.
50633 2011-01-10  Bruno Haible  <bruno@clisp.org>
50635         doc: Update users.txt.
50636         * users.txt: Add recutils.
50638 2011-01-09  Karl Berry  <karl@gnu.org>
50640         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
50642         * doc/configmake.texi: New file.
50643         * doc/gnulib.texi: Include it.
50644         * modules/configmake: Move documentation from here.
50646 2011-01-09  Bruno Haible  <bruno@clisp.org>
50648         Update to Unicode 6.0.0.
50649         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
50650         (get_lbp): Update for Unicode 6.0.0.
50651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
50652         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
50653         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
50654         U+11001, U+11038..U+11046. Remove U+06DE.
50655         (uc_width): Fix bounds of planes.
50656         * tests/uniwidth/test-uc_width2.sh: Same updates as in
50657         lib/uniwidth/width.c.
50658         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
50659         trailing whitespace removed.
50660         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
50661         without comments, but with the original copyright notice.
50662         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
50663         * lib/unicase/ignorable.h: Likewise.
50664         * lib/unicase/tocasefold.h: Likewise.
50665         * lib/unicase/tolower.h: Likewise.
50666         * lib/unicase/totitle.h: Likewise.
50667         * lib/unicase/toupper.h: Likewise.
50668         * lib/unictype/bidi_of.h: Likewise.
50669         * lib/unictype/blocks.h: Likewise.
50670         * lib/unictype/categ_C.h: Likewise.
50671         * lib/unictype/categ_Cn.h: Likewise.
50672         * lib/unictype/categ_L.h: Likewise.
50673         * lib/unictype/categ_Ll.h: Likewise.
50674         * lib/unictype/categ_Lm.h: Likewise.
50675         * lib/unictype/categ_Lo.h: Likewise.
50676         * lib/unictype/categ_Lu.h: Likewise.
50677         * lib/unictype/categ_M.h: Likewise.
50678         * lib/unictype/categ_Mc.h: Likewise.
50679         * lib/unictype/categ_Me.h: Likewise.
50680         * lib/unictype/categ_Mn.h: Likewise.
50681         * lib/unictype/categ_N.h: Likewise.
50682         * lib/unictype/categ_Nd.h: Likewise.
50683         * lib/unictype/categ_No.h: Likewise.
50684         * lib/unictype/categ_P.h: Likewise.
50685         * lib/unictype/categ_Po.h: Likewise.
50686         * lib/unictype/categ_S.h: Likewise.
50687         * lib/unictype/categ_Sc.h: Likewise.
50688         * lib/unictype/categ_Sk.h: Likewise.
50689         * lib/unictype/categ_Sm.h: Likewise.
50690         * lib/unictype/categ_So.h: Likewise.
50691         * lib/unictype/categ_of.h: Likewise.
50692         * lib/unictype/combining.h: Likewise.
50693         * lib/unictype/ctype_alnum.h: Likewise.
50694         * lib/unictype/ctype_alpha.h: Likewise.
50695         * lib/unictype/ctype_graph.h: Likewise.
50696         * lib/unictype/ctype_lower.h: Likewise.
50697         * lib/unictype/ctype_print.h: Likewise.
50698         * lib/unictype/ctype_punct.h: Likewise.
50699         * lib/unictype/ctype_upper.h: Likewise.
50700         * lib/unictype/decdigit.h: Likewise.
50701         * lib/unictype/digit.h: Likewise.
50702         * lib/unictype/numeric.h: Likewise.
50703         * lib/unictype/pr_alphabetic.h: Likewise.
50704         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50705         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50706         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50707         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50708         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50709         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50710         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50711         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50712         * lib/unictype/pr_case_ignorable.h: Likewise.
50713         * lib/unictype/pr_cased.h: Likewise.
50714         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
50715         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
50716         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
50717         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
50718         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
50719         * lib/unictype/pr_combining.h: Likewise.
50720         * lib/unictype/pr_composite.h: Likewise.
50721         * lib/unictype/pr_currency_symbol.h: Likewise.
50722         * lib/unictype/pr_decimal_digit.h: Likewise.
50723         * lib/unictype/pr_deprecated.h: Likewise.
50724         * lib/unictype/pr_format_control.h: Likewise.
50725         * lib/unictype/pr_grapheme_base.h: Likewise.
50726         * lib/unictype/pr_grapheme_extend.h: Likewise.
50727         * lib/unictype/pr_grapheme_link.h: Likewise.
50728         * lib/unictype/pr_id_continue.h: Likewise.
50729         * lib/unictype/pr_id_start.h: Likewise.
50730         * lib/unictype/pr_ideographic.h: Likewise.
50731         * lib/unictype/pr_lowercase.h: Likewise.
50732         * lib/unictype/pr_math.h: Likewise.
50733         * lib/unictype/pr_numeric.h: Likewise.
50734         * lib/unictype/pr_other_alphabetic.h: Likewise.
50735         * lib/unictype/pr_other_id_continue.h: Likewise.
50736         * lib/unictype/pr_other_math.h: Likewise.
50737         * lib/unictype/pr_punctuation.h: Likewise.
50738         * lib/unictype/pr_sentence_terminal.h: Likewise.
50739         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50740         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50741         * lib/unictype/pr_unified_ideograph.h: Likewise.
50742         * lib/unictype/pr_uppercase.h: Likewise.
50743         * lib/unictype/pr_xid_continue.h: Likewise.
50744         * lib/unictype/pr_xid_start.h: Likewise.
50745         * lib/unictype/scripts.h: Likewise.
50746         * lib/unictype/scripts_byname.gperf: Likewise.
50747         * lib/unictype/sy_java_ident.h: Likewise.
50748         * lib/unigbrk/gbrkprop.h: Likewise.
50749         * lib/unilbrk/lbrkprop1.h: Likewise.
50750         * lib/unilbrk/lbrkprop2.h: Likewise.
50751         * lib/uninorm/decomposition-table2.h: Likewise.
50752         * lib/uniwbrk/wbrkprop.h: Likewise.
50753         * tests/unicase/test-cased.c: Likewise.
50754         * tests/unicase/test-ignorable.c: Likewise.
50755         * tests/unicase/test-uc_tolower.c: Likewise.
50756         * tests/unicase/test-uc_totitle.c: Likewise.
50757         * tests/unicase/test-uc_toupper.c: Likewise.
50758         * tests/unictype/test-categ_C.c: Likewise.
50759         * tests/unictype/test-categ_Cn.c: Likewise.
50760         * tests/unictype/test-categ_L.c: Likewise.
50761         * tests/unictype/test-categ_Ll.c: Likewise.
50762         * tests/unictype/test-categ_Lm.c: Likewise.
50763         * tests/unictype/test-categ_Lo.c: Likewise.
50764         * tests/unictype/test-categ_Lu.c: Likewise.
50765         * tests/unictype/test-categ_M.c: Likewise.
50766         * tests/unictype/test-categ_Mc.c: Likewise.
50767         * tests/unictype/test-categ_Me.c: Likewise.
50768         * tests/unictype/test-categ_Mn.c: Likewise.
50769         * tests/unictype/test-categ_N.c: Likewise.
50770         * tests/unictype/test-categ_Nd.c: Likewise.
50771         * tests/unictype/test-categ_No.c: Likewise.
50772         * tests/unictype/test-categ_P.c: Likewise.
50773         * tests/unictype/test-categ_Po.c: Likewise.
50774         * tests/unictype/test-categ_S.c: Likewise.
50775         * tests/unictype/test-categ_Sc.c: Likewise.
50776         * tests/unictype/test-categ_Sk.c: Likewise.
50777         * tests/unictype/test-categ_Sm.c: Likewise.
50778         * tests/unictype/test-categ_So.c: Likewise.
50779         * tests/unictype/test-ctype_alnum.c: Likewise.
50780         * tests/unictype/test-ctype_alpha.c: Likewise.
50781         * tests/unictype/test-ctype_graph.c: Likewise.
50782         * tests/unictype/test-ctype_lower.c: Likewise.
50783         * tests/unictype/test-ctype_print.c: Likewise.
50784         * tests/unictype/test-ctype_punct.c: Likewise.
50785         * tests/unictype/test-ctype_upper.c: Likewise.
50786         * tests/unictype/test-decdigit.h: Likewise.
50787         * tests/unictype/test-digit.h: Likewise.
50788         * tests/unictype/test-numeric.h: Likewise.
50789         * tests/unictype/test-pr_alphabetic.c: Likewise.
50790         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50791         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50792         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50793         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50794         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50795         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50796         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50797         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50798         * tests/unictype/test-pr_case_ignorable.c: Likewise.
50799         * tests/unictype/test-pr_cased.c: Likewise.
50800         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
50801         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
50802         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
50803         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
50804         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
50805         * tests/unictype/test-pr_combining.c: Likewise.
50806         * tests/unictype/test-pr_composite.c: Likewise.
50807         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50808         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50809         * tests/unictype/test-pr_deprecated.c: Likewise.
50810         * tests/unictype/test-pr_format_control.c: Likewise.
50811         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50812         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50813         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50814         * tests/unictype/test-pr_id_continue.c: Likewise.
50815         * tests/unictype/test-pr_id_start.c: Likewise.
50816         * tests/unictype/test-pr_ideographic.c: Likewise.
50817         * tests/unictype/test-pr_lowercase.c: Likewise.
50818         * tests/unictype/test-pr_math.c: Likewise.
50819         * tests/unictype/test-pr_numeric.c: Likewise.
50820         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50821         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50822         * tests/unictype/test-pr_other_math.c: Likewise.
50823         * tests/unictype/test-pr_punctuation.c: Likewise.
50824         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50825         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50826         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50827         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50828         * tests/unictype/test-pr_uppercase.c: Likewise.
50829         * tests/unictype/test-pr_xid_continue.c: Likewise.
50830         * tests/unictype/test-pr_xid_start.c: Likewise.
50831         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
50832         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
50833         changes.
50834         * lib/unictype/categ_Cc.h: Likewise.
50835         * lib/unictype/categ_Cf.h: Likewise.
50836         * lib/unictype/categ_Co.h: Likewise.
50837         * lib/unictype/categ_Cs.h: Likewise.
50838         * lib/unictype/categ_Lt.h: Likewise.
50839         * lib/unictype/categ_Nl.h: Likewise.
50840         * lib/unictype/categ_Pc.h: Likewise.
50841         * lib/unictype/categ_Pd.h: Likewise.
50842         * lib/unictype/categ_Pe.h: Likewise.
50843         * lib/unictype/categ_Pf.h: Likewise.
50844         * lib/unictype/categ_Pi.h: Likewise.
50845         * lib/unictype/categ_Ps.h: Likewise.
50846         * lib/unictype/categ_Z.h: Likewise.
50847         * lib/unictype/categ_Zl.h: Likewise.
50848         * lib/unictype/categ_Zp.h: Likewise.
50849         * lib/unictype/categ_Zs.h: Likewise.
50850         * lib/unictype/ctype_blank.h: Likewise.
50851         * lib/unictype/ctype_cntrl.h: Likewise.
50852         * lib/unictype/ctype_digit.h: Likewise.
50853         * lib/unictype/ctype_space.h: Likewise.
50854         * lib/unictype/ctype_xdigit.h: Likewise.
50855         * lib/unictype/mirror.h: Likewise.
50856         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50857         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50858         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50859         * lib/unictype/pr_bidi_control.h: Likewise.
50860         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50861         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50862         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50863         * lib/unictype/pr_bidi_pdf.h: Likewise.
50864         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50865         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50866         * lib/unictype/pr_dash.h: Likewise.
50867         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50868         * lib/unictype/pr_diacritic.h: Likewise.
50869         * lib/unictype/pr_extender.h: Likewise.
50870         * lib/unictype/pr_hex_digit.h: Likewise.
50871         * lib/unictype/pr_hyphen.h: Likewise.
50872         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50873         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50874         * lib/unictype/pr_ignorable_control.h: Likewise.
50875         * lib/unictype/pr_iso_control.h: Likewise.
50876         * lib/unictype/pr_join_control.h: Likewise.
50877         * lib/unictype/pr_left_of_pair.h: Likewise.
50878         * lib/unictype/pr_line_separator.h: Likewise.
50879         * lib/unictype/pr_logical_order_exception.h: Likewise.
50880         * lib/unictype/pr_non_break.h: Likewise.
50881         * lib/unictype/pr_not_a_character.h: Likewise.
50882         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50883         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50884         * lib/unictype/pr_other_id_start.h: Likewise.
50885         * lib/unictype/pr_other_lowercase.h: Likewise.
50886         * lib/unictype/pr_other_uppercase.h: Likewise.
50887         * lib/unictype/pr_paired_punctuation.h: Likewise.
50888         * lib/unictype/pr_paragraph_separator.h: Likewise.
50889         * lib/unictype/pr_pattern_syntax.h: Likewise.
50890         * lib/unictype/pr_pattern_white_space.h: Likewise.
50891         * lib/unictype/pr_private_use.h: Likewise.
50892         * lib/unictype/pr_quotation_mark.h: Likewise.
50893         * lib/unictype/pr_radical.h: Likewise.
50894         * lib/unictype/pr_soft_dotted.h: Likewise.
50895         * lib/unictype/pr_space.h: Likewise.
50896         * lib/unictype/pr_titlecase.h: Likewise.
50897         * lib/unictype/pr_variation_selector.h: Likewise.
50898         * lib/unictype/pr_white_space.h: Likewise.
50899         * lib/unictype/pr_zero_width.h: Likewise.
50900         * lib/unictype/sy_c_ident.h: Likewise.
50901         * lib/unictype/sy_c_whitespace.h: Likewise.
50902         * lib/unictype/sy_java_whitespace.h: Likewise.
50903         * lib/uninorm/composition-table.gperf: Likewise.
50904         * lib/uninorm/decomposition-table1.h: Likewise.
50905         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
50906         LB8.
50907         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
50908         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
50909         * modules/unictype/*: Bump version number of expected libunistring
50910         version.
50912 2011-01-09  Bruno Haible  <bruno@clisp.org>
50914         Update to Unicode 5.2.0.
50915         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
50916         trailing whitespace removed.
50918 2011-01-09  Bruno Haible  <bruno@clisp.org>
50920         New Unicode character properties, from Unicode 5.2.0.
50921         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
50922         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
50923         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
50924         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
50925         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
50926         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
50927         uc_is_property_cased, uc_is_property_case_ignorable,
50928         uc_is_property_changes_when_lowercased,
50929         uc_is_property_changes_when_uppercased,
50930         uc_is_property_changes_when_titlecased,
50931         uc_is_property_changes_when_casefolded,
50932         uc_is_property_changes_when_casemapped): New declarations.
50933         * lib/unictype/pr_byname.gperf: Add the new properties.
50934         * modules/unictype/property-byname (Depends-on): Depend on the new
50935         properties modules.
50936         * modules/unictype/property-all (Depends-on): Likewise.
50937         * MODULES.html.sh (Unicode string functions): Add
50938         unictype/property-case-ignorable, unictype/property-cased,
50939         unictype/property-changes-when-casefolded,
50940         unictype/property-changes-when-casemapped,
50941         unictype/property-changes-when-lowercased,
50942         unictype/property-changes-when-titlecased,
50943         unictype/property-changes-when-uppercased.
50945         New module 'unictype/property-changes-when-casemapped'.
50946         * modules/unictype/property-changes-when-casemapped: New file.
50947         * lib/unictype/pr_changes_when_casemapped.c: New file.
50948         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
50949         generated by gen-uni-tables.
50950         * modules/unictype/property-changes-when-casemapped-tests: New file.
50951         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
50952         automatically generated by gen-uni-tables.
50954         New module 'unictype/property-changes-when-casefolded'.
50955         * modules/unictype/property-changes-when-casefolded: New file.
50956         * lib/unictype/pr_changes_when_casefolded.c: New file.
50957         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
50958         generated by gen-uni-tables.
50959         * modules/unictype/property-changes-when-casefolded-tests: New file.
50960         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
50961         automatically generated by gen-uni-tables.
50963         New module 'unictype/property-changes-when-titlecased'.
50964         * modules/unictype/property-changes-when-titlecased: New file.
50965         * lib/unictype/pr_changes_when_titlecased.c: New file.
50966         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
50967         generated by gen-uni-tables.
50968         * modules/unictype/property-changes-when-titlecased-tests: New file.
50969         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
50970         automatically generated by gen-uni-tables.
50972         New module 'unictype/property-changes-when-uppercased'.
50973         * modules/unictype/property-changes-when-uppercased: New file.
50974         * lib/unictype/pr_changes_when_uppercased.c: New file.
50975         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
50976         generated by gen-uni-tables.
50977         * modules/unictype/property-changes-when-uppercased-tests: New file.
50978         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
50979         automatically generated by gen-uni-tables.
50981         New module 'unictype/property-changes-when-lowercased'.
50982         * modules/unictype/property-changes-when-lowercased: New file.
50983         * lib/unictype/pr_changes_when_lowercased.c: New file.
50984         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
50985         generated by gen-uni-tables.
50986         * modules/unictype/property-changes-when-lowercased-tests: New file.
50987         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
50988         automatically generated by gen-uni-tables.
50990         New module 'unictype/property-case-ignorable'.
50991         * modules/unictype/property-case-ignorable: New file.
50992         * lib/unictype/pr_case_ignorable.c: New file.
50993         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
50994         by gen-uni-tables.
50995         * modules/unictype/property-case-ignorable-tests: New file.
50996         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
50997         generated by gen-uni-tables.
50999         New module 'unictype/property-cased'.
51000         * modules/unictype/property-cased: New file.
51001         * lib/unictype/pr_cased.c: New file.
51002         * lib/unictype/pr_cased.h: New file, automatically generated by
51003         gen-uni-tables.
51004         * modules/unictype/property-cased-tests: New file.
51005         * tests/unictype/test-pr_cased.c: New file, automatically generated by
51006         gen-uni-tables.
51008 2011-01-09  Bruno Haible  <bruno@clisp.org>
51010         Update to Unicode 5.2.0.
51011         * lib/gen-uni-tables.c (output_predicate, output_category,
51012         output_combclass, output_bidi_category, output_decimal_digit_test,
51013         output_decimal_digit, output_digit_test, output_digit,
51014         output_numeric_test, output_numeric, output_mirror, output_scripts,
51015         output_scripts_byname, output_blocks, output_ident_category): Fix
51016         comment header.
51017         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
51018         get_wbp.
51019         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
51020         items.
51021         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
51022         Changes_When_Lowercased, Changes_When_Uppercased,
51023         Changes_When_Titlecased, Changes_When_Casefolded,
51024         Changes_When_Casemapped.
51025         (is_property_alphabetic, is_property_default_ignorable_code_point):
51026         Update for Unicode 5.2.0.
51027         (is_property_cased, is_property_case_ignorable,
51028         is_property_changes_when_lowercased,
51029         is_property_changes_when_uppercased,
51030         is_property_changes_when_titlecased,
51031         is_property_changes_when_casefolded,
51032         is_property_changes_when_casemapped): New functions.
51033         (output_properties): Output also the properties cased, case_ignorable,
51034         changes_when_lowercased, changes_when_uppercased,
51035         changes_when_titlecased, changes_when_casefolded,
51036         changes_when_casemapped.
51037         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
51038         Unicode TR#11 revision 17 -> 19.
51039         (LBP_CP): New enumeration value.
51040         (LBP_*): Adjust values accordingly.
51041         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
51042         TR#14 revision 22 -> 24.
51043         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
51044         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
51045         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
51046         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
51047         is_WBP_MIDLETTER.
51048         (output_composition_tables): Allow for 24 bits instead of 16 bits in
51049         the code1 and code2 of each composition rule.
51050         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
51051         * lib/unicase/ignorable.h: Likewise.
51052         * lib/unicase/tocasefold.h: Likewise.
51053         * lib/unicase/tolower.h: Likewise.
51054         * lib/unicase/totitle.h: Likewise.
51055         * lib/unicase/toupper.h: Likewise.
51056         * lib/unictype/bidi_of.h: Likewise.
51057         * lib/unictype/blocks.h: Likewise.
51058         * lib/unictype/categ_C.h: Likewise.
51059         * lib/unictype/categ_Cf.h: Likewise.
51060         * lib/unictype/categ_Cn.h: Likewise.
51061         * lib/unictype/categ_L.h: Likewise.
51062         * lib/unictype/categ_Ll.h: Likewise.
51063         * lib/unictype/categ_Lm.h: Likewise.
51064         * lib/unictype/categ_Lo.h: Likewise.
51065         * lib/unictype/categ_Lu.h: Likewise.
51066         * lib/unictype/categ_M.h: Likewise.
51067         * lib/unictype/categ_Mc.h: Likewise.
51068         * lib/unictype/categ_Mn.h: Likewise.
51069         * lib/unictype/categ_N.h: Likewise.
51070         * lib/unictype/categ_Nd.h: Likewise.
51071         * lib/unictype/categ_Nl.h: Likewise.
51072         * lib/unictype/categ_No.h: Likewise.
51073         * lib/unictype/categ_P.h: Likewise.
51074         * lib/unictype/categ_Pd.h: Likewise.
51075         * lib/unictype/categ_Po.h: Likewise.
51076         * lib/unictype/categ_S.h: Likewise.
51077         * lib/unictype/categ_Sc.h: Likewise.
51078         * lib/unictype/categ_So.h: Likewise.
51079         * lib/unictype/categ_of.h: Likewise.
51080         * lib/unictype/combining.h: Likewise.
51081         * lib/unictype/ctype_alnum.h: Likewise.
51082         * lib/unictype/ctype_alpha.h: Likewise.
51083         * lib/unictype/ctype_graph.h: Likewise.
51084         * lib/unictype/ctype_lower.h: Likewise.
51085         * lib/unictype/ctype_print.h: Likewise.
51086         * lib/unictype/ctype_punct.h: Likewise.
51087         * lib/unictype/ctype_upper.h: Likewise.
51088         * lib/unictype/decdigit.h: Likewise.
51089         * lib/unictype/digit.h: Likewise.
51090         * lib/unictype/numeric.h: Likewise.
51091         * lib/unictype/pr_alphabetic.h: Likewise.
51092         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
51093         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
51094         * lib/unictype/pr_bidi_european_digit.h: Likewise.
51095         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
51096         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
51097         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
51098         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
51099         * lib/unictype/pr_combining.h: Likewise.
51100         * lib/unictype/pr_composite.h: Likewise.
51101         * lib/unictype/pr_currency_symbol.h: Likewise.
51102         * lib/unictype/pr_dash.h: Likewise.
51103         * lib/unictype/pr_decimal_digit.h: Likewise.
51104         * lib/unictype/pr_deprecated.h: Likewise.
51105         * lib/unictype/pr_diacritic.h: Likewise.
51106         * lib/unictype/pr_extender.h: Likewise.
51107         * lib/unictype/pr_grapheme_base.h: Likewise.
51108         * lib/unictype/pr_grapheme_extend.h: Likewise.
51109         * lib/unictype/pr_grapheme_link.h: Likewise.
51110         * lib/unictype/pr_id_continue.h: Likewise.
51111         * lib/unictype/pr_id_start.h: Likewise.
51112         * lib/unictype/pr_ideographic.h: Likewise.
51113         * lib/unictype/pr_ignorable_control.h: Likewise.
51114         * lib/unictype/pr_logical_order_exception.h: Likewise.
51115         * lib/unictype/pr_lowercase.h: Likewise.
51116         * lib/unictype/pr_numeric.h: Likewise.
51117         * lib/unictype/pr_other_alphabetic.h: Likewise.
51118         * lib/unictype/pr_punctuation.h: Likewise.
51119         * lib/unictype/pr_sentence_terminal.h: Likewise.
51120         * lib/unictype/pr_terminal_punctuation.h: Likewise.
51121         * lib/unictype/pr_unassigned_code_value.h: Likewise.
51122         * lib/unictype/pr_unified_ideograph.h: Likewise.
51123         * lib/unictype/pr_uppercase.h: Likewise.
51124         * lib/unictype/pr_xid_continue.h: Likewise.
51125         * lib/unictype/pr_xid_start.h: Likewise.
51126         * lib/unictype/pr_zero_width.h: Likewise.
51127         * lib/unictype/scripts.h: Likewise.
51128         * lib/unictype/scripts_byname.gperf: Likewise.
51129         * lib/unictype/sy_java_ident.h: Likewise.
51130         * lib/unigbrk/gbrkprop.h: Likewise.
51131         * lib/unilbrk/lbrkprop1.h: Likewise.
51132         * lib/unilbrk/lbrkprop2.h: Likewise.
51133         * lib/unilbrk/lbrktables.h: Likewise.
51134         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
51135         LBP_CP. Implement rule LB30.
51136         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
51137         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
51138         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
51139         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
51140         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
51141         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
51142         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
51143         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
51144         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
51145         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
51146         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
51147         bits instead of 16 bits in the code1 and code2 of each composition
51148         rule.
51149         (uc_composition): Update for Unicode 5.2.0.
51150         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
51151         * lib/uninorm/decomposition-table2.h: Likewise.
51152         * lib/uniwbrk/wbrkprop.h: Likewise.
51153         * tests/unicase/test-cased.c: Likewise.
51154         * tests/unicase/test-ignorable.c: Likewise.
51155         * tests/unicase/test-uc_tolower.c: Likewise.
51156         * tests/unicase/test-uc_totitle.c: Likewise.
51157         * tests/unicase/test-uc_toupper.c: Likewise.
51158         * tests/unictype/test-categ_C.c: Likewise.
51159         * tests/unictype/test-categ_Cf.c: Likewise.
51160         * tests/unictype/test-categ_Cn.c: Likewise.
51161         * tests/unictype/test-categ_L.c: Likewise.
51162         * tests/unictype/test-categ_Ll.c: Likewise.
51163         * tests/unictype/test-categ_Lm.c: Likewise.
51164         * tests/unictype/test-categ_Lo.c: Likewise.
51165         * tests/unictype/test-categ_Lu.c: Likewise.
51166         * tests/unictype/test-categ_M.c: Likewise.
51167         * tests/unictype/test-categ_Mc.c: Likewise.
51168         * tests/unictype/test-categ_Mn.c: Likewise.
51169         * tests/unictype/test-categ_N.c: Likewise.
51170         * tests/unictype/test-categ_Nd.c: Likewise.
51171         * tests/unictype/test-categ_Nl.c: Likewise.
51172         * tests/unictype/test-categ_No.c: Likewise.
51173         * tests/unictype/test-categ_P.c: Likewise.
51174         * tests/unictype/test-categ_Pd.c: Likewise.
51175         * tests/unictype/test-categ_Po.c: Likewise.
51176         * tests/unictype/test-categ_S.c: Likewise.
51177         * tests/unictype/test-categ_Sc.c: Likewise.
51178         * tests/unictype/test-categ_So.c: Likewise.
51179         * tests/unictype/test-ctype_alnum.c: Likewise.
51180         * tests/unictype/test-ctype_alpha.c: Likewise.
51181         * tests/unictype/test-ctype_graph.c: Likewise.
51182         * tests/unictype/test-ctype_lower.c: Likewise.
51183         * tests/unictype/test-ctype_print.c: Likewise.
51184         * tests/unictype/test-ctype_punct.c: Likewise.
51185         * tests/unictype/test-ctype_upper.c: Likewise.
51186         * tests/unictype/test-decdigit.h: Likewise.
51187         * tests/unictype/test-digit.h: Likewise.
51188         * tests/unictype/test-numeric.h: Likewise.
51189         * tests/unictype/test-pr_alphabetic.c: Likewise.
51190         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
51191         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
51192         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
51193         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
51194         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
51195         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
51196         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
51197         * tests/unictype/test-pr_combining.c: Likewise.
51198         * tests/unictype/test-pr_composite.c: Likewise.
51199         * tests/unictype/test-pr_currency_symbol.c: Likewise.
51200         * tests/unictype/test-pr_dash.c: Likewise.
51201         * tests/unictype/test-pr_decimal_digit.c: Likewise.
51202         * tests/unictype/test-pr_deprecated.c: Likewise.
51203         * tests/unictype/test-pr_diacritic.c: Likewise.
51204         * tests/unictype/test-pr_extender.c: Likewise.
51205         * tests/unictype/test-pr_grapheme_base.c: Likewise.
51206         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
51207         * tests/unictype/test-pr_grapheme_link.c: Likewise.
51208         * tests/unictype/test-pr_id_continue.c: Likewise.
51209         * tests/unictype/test-pr_id_start.c: Likewise.
51210         * tests/unictype/test-pr_ideographic.c: Likewise.
51211         * tests/unictype/test-pr_ignorable_control.c: Likewise.
51212         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
51213         * tests/unictype/test-pr_lowercase.c: Likewise.
51214         * tests/unictype/test-pr_numeric.c: Likewise.
51215         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
51216         * tests/unictype/test-pr_punctuation.c: Likewise.
51217         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
51218         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
51219         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
51220         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
51221         * tests/unictype/test-pr_uppercase.c: Likewise.
51222         * tests/unictype/test-pr_xid_continue.c: Likewise.
51223         * tests/unictype/test-pr_xid_start.c: Likewise.
51224         * tests/unictype/test-pr_zero_width.c: Likewise.
51225         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
51226         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
51227         changed behaviour: line breaking is now disallowed between a letter
51228         or '=' and '('.
51229         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51230         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51231         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51232         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
51233         * tests/uniwidth/test-uc_width2.sh: Same updates as in
51234         lib/uniwidth/width.c.
51235         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
51236         without comments, but with the original copyright notice.
51237         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
51238         changes.
51239         * lib/unictype/categ_Cc.h: Likewise.
51240         * lib/unictype/categ_Co.h: Likewise.
51241         * lib/unictype/categ_Cs.h: Likewise.
51242         * lib/unictype/categ_Lt.h: Likewise.
51243         * lib/unictype/categ_Me.h: Likewise.
51244         * lib/unictype/categ_Pc.h: Likewise.
51245         * lib/unictype/categ_Pe.h: Likewise.
51246         * lib/unictype/categ_Pf.h: Likewise.
51247         * lib/unictype/categ_Pi.h: Likewise.
51248         * lib/unictype/categ_Ps.h: Likewise.
51249         * lib/unictype/categ_Sk.h: Likewise.
51250         * lib/unictype/categ_Sm.h: Likewise.
51251         * lib/unictype/categ_Z.h: Likewise.
51252         * lib/unictype/categ_Zl.h: Likewise.
51253         * lib/unictype/categ_Zp.h: Likewise.
51254         * lib/unictype/categ_Zs.h: Likewise.
51255         * lib/unictype/ctype_blank.h: Likewise.
51256         * lib/unictype/ctype_cntrl.h: Likewise.
51257         * lib/unictype/ctype_digit.h: Likewise.
51258         * lib/unictype/ctype_space.h: Likewise.
51259         * lib/unictype/ctype_xdigit.h: Likewise.
51260         * lib/unictype/mirror.h: Likewise.
51261         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
51262         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
51263         * lib/unictype/pr_bidi_block_separator.h: Likewise.
51264         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
51265         * lib/unictype/pr_bidi_common_separator.h: Likewise.
51266         * lib/unictype/pr_bidi_control.h: Likewise.
51267         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
51268         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
51269         * lib/unictype/pr_bidi_pdf.h: Likewise.
51270         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
51271         * lib/unictype/pr_bidi_whitespace.h: Likewise.
51272         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
51273         * lib/unictype/pr_format_control.h: Likewise.
51274         * lib/unictype/pr_hex_digit.h: Likewise.
51275         * lib/unictype/pr_hyphen.h: Likewise.
51276         * lib/unictype/pr_ids_binary_operator.h: Likewise.
51277         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
51278         * lib/unictype/pr_iso_control.h: Likewise.
51279         * lib/unictype/pr_join_control.h: Likewise.
51280         * lib/unictype/pr_left_of_pair.h: Likewise.
51281         * lib/unictype/pr_line_separator.h: Likewise.
51282         * lib/unictype/pr_math.h: Likewise.
51283         * lib/unictype/pr_non_break.h: Likewise.
51284         * lib/unictype/pr_not_a_character.h: Likewise.
51285         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
51286         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
51287         * lib/unictype/pr_other_id_continue.h: Likewise.
51288         * lib/unictype/pr_other_id_start.h: Likewise.
51289         * lib/unictype/pr_other_lowercase.h: Likewise.
51290         * lib/unictype/pr_other_math.h: Likewise.
51291         * lib/unictype/pr_other_uppercase.h: Likewise.
51292         * lib/unictype/pr_paired_punctuation.h: Likewise.
51293         * lib/unictype/pr_paragraph_separator.h: Likewise.
51294         * lib/unictype/pr_pattern_syntax.h: Likewise.
51295         * lib/unictype/pr_pattern_white_space.h: Likewise.
51296         * lib/unictype/pr_private_use.h: Likewise.
51297         * lib/unictype/pr_quotation_mark.h: Likewise.
51298         * lib/unictype/pr_radical.h: Likewise.
51299         * lib/unictype/pr_soft_dotted.h: Likewise.
51300         * lib/unictype/pr_space.h: Likewise.
51301         * lib/unictype/pr_titlecase.h: Likewise.
51302         * lib/unictype/pr_variation_selector.h: Likewise.
51303         * lib/unictype/pr_white_space.h: Likewise.
51304         * lib/unictype/sy_c_ident.h: Likewise.
51305         * lib/unictype/sy_c_whitespace.h: Likewise.
51306         * lib/unictype/sy_java_whitespace.h: Likewise.
51307         * modules/uni*/*: Bump version number of expected libunistring version.
51308         Reported by Simon Josefsson.
51310 2011-01-09  Karl Heuer  <kwzh@gnu.org>
51312         useless-if-before-free: fix typo in --help and make the internal,
51313         automatic version date update process work once again.
51314         --help output contained a NUL character instead of the
51315         backslash-zero that was intended.  Also, the "must lie within
51316         the first 8 lines" line is on line 9, and hence not getting
51317         automatically updated.
51318         * build-aux/useless-if-before-free: Fix the former by adding a
51319         backslash, and the latter by condensing the three lines of what-it-does
51320         to a single line, leaving one line of slack for the future.
51322 2011-01-09  Bruno Haible  <bruno@clisp.org>
51324         uniwidth/width: Fix width of U+1D173..U+1D17A.
51325         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
51326         symbolic_width, output_width_property_test): New functions.
51327         (main): Invoke output_nonspacing_property, output_width_property_test.
51328         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
51329         U+1D173..U+1D17A.
51330         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
51331         1.
51332         * modules/uniwidth/*: Bump version number of expected libunistring
51333         version.
51334         * modules/unilbrk/*: Likewise.
51336 2011-01-08  Bruno Haible  <bruno@clisp.org>
51338         uninorm tests: Preserve copyright of Unicode data file.
51339         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
51340         Mention modifications.
51342 2011-01-08  Bruno Haible  <bruno@clisp.org>
51344         gen-uni-tables: Prepare for Unicode 5.2.0.
51345         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
51346         (debug_output_lbp, output_lbp): Update.
51348 2011-01-08  Bruno Haible  <bruno@clisp.org>
51350         unilbrk: Clarify gen-uni-tables.c code.
51351         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
51352         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
51353         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
51355 2011-01-07  Bruno Haible  <bruno@clisp.org>
51357         strtod: Restore errno when successfully parsing Infinity or NaN.
51358         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
51359         restore the original errno.
51361 2011-01-07  Bruno Haible  <bruno@clisp.org>
51363         remove test: Avoid failure on HP-UX 11.
51364         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
51366 2011-01-07  Bruno Haible  <bruno@clisp.org>
51368         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
51369         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
51370         error code.
51372 2011-01-07  Pádraig Brady  <P@draigBrady.com>
51374         ignore-value: fixup comments, and add Eric Blake
51375         as an author since he rewrote the macros.
51376         * lib/ignore-value.h (ignore_value):  State that
51377         we now support aggregates.  Also specify exactly
51378         when the GCC warn_unused_result feature was added.
51380 2011-01-06  Eric Blake  <eblake@redhat.com>
51382         ignore-value: support aggregate types
51383         * lib/ignore-value.h (ignore_value): Provide separate gcc
51384         definition.
51385         * modules/ignore-value-tests: New test module.
51386         * tests/test-ignore-value.c: New test.
51388         maint.mk: improve sc_prohibit_strcmp regex
51389         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
51390         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
51391         definition of STRNEQ.
51393         signal: work around Haiku issue with SIGBUS
51394         * lib/siglist.h: Add comment.
51395         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
51396         strsignal's favoring of SIGSEGV.
51397         * tests/test-signal.c (main): Avoid test failure.
51398         * doc/posix-headers/signal.texi (signal.h): Document the issue.
51399         Reported by Scott McCreary.
51401         maint.mk: add pre-release check to ensure submodule commits are public
51402         * top/maint.mk (public-submodule-commit): New rule.
51403         (submodule-checks): New variable.
51404         (alpha beta stable): Depend on the variable.
51406 2011-01-05  Pádraig Brady  <P@draigBrady.com>
51407         and Jim Meyering  <meyering@redhat.com>
51409         ignore-value: make ignore_value more generic; deprecate ignore_ptr
51410         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
51411         (ATTRIBUTE_DEPRECATED): Define.
51412         (_ignore_case): New function.
51413         (ignore_value): New macro, to replace the old function.
51414         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
51415         * modules/ignore-value (Depends-on): Add stdint.
51417 2011-01-04  Eric Blake  <eblake@redhat.com>
51419         doc: regenerate INSTALL
51420         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
51421         @firstparagraphindent support, now that autoconf dropped it.
51422         (INSTALL_PRELUDE): Reinstate old macro.
51423         * doc/install.texi: Resync from autoconf.
51424         * doc/INSTALL: Reflect recent autoconf update.
51425         * doc/INSTALL.ISO: Likewise.
51426         * doc/INSTALL.UTF-8: Likewise.
51427         Reported by Karl Berry.
51429 2011-01-04  Bruce Korb  <address@hidden>
51431         git-version-gen: avoid a sub-shell
51432         * build-aux/git-version-gen: Redirect stderr in `...` via
51433         "exec 2>...", rather than via an added sub-shell.
51435 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
51437         git-version-gen: use (...) rather than sh -c '...'
51438         * build-aux/git-version-gen: Rather than hard-coding a shell's name
51439         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
51441 2011-01-03  Jim Meyering  <meyering@redhat.com>
51443         git-version-gen: convert leading TABs to spaces
51444         * build-aux/git-version-gen: Expand leading TABs.
51446         git-version-gen: handle failed "git rev-list"
51447         * build-aux/git-version-gen: Rather than leaking a "fatal" error
51448         from git and proceeding as if it had succeeded but printed no SHA1
51449         checksums, suppress the diagnostic and handle the failure.
51450         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
51452         git-version-gen: include command name in one more diagnostic
51453         * build-aux/git-version-gen: When the required .tarball-version file
51454         was missing or unreadable, you might see the diagnostic from "cat",
51455         but no trace of the name of the invoking script.  Now, you still see
51456         the diagnostic from cat, but also get one from "git-version-gen: ".
51457         Inspired by a patch from Bruce Korb.
51459         update-copyright: adjust test to match changed code
51460         * tests/test-update-copyright.sh: Change test's expected output
51461         to match new actual output.
51463 2011-01-02  Bruno Haible  <bruno@clisp.org>
51465         getlogin_r: Avoid test failure on HP-UX 11.
51466         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
51467         ERANGE when the second argument is zero.
51468         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
51469         portability problem.
51471 2011-01-02  Bruce Korb  <bkorb@gnu.org>
51473         * build-aux/update-copyright: doc Simon's changes
51475 2011-01-02  Simon Josefsson  <simon@josefsson.org>
51477         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
51478         environment variable.
51480 2011-01-02  Bruno Haible  <bruno@clisp.org>
51482         unigbrk: Avoid gcc warnings.
51483         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
51484         unused variable.
51485         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
51486         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
51487         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
51488         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
51489         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
51490         Change type of first argument to 'const char *'.
51491         (main): Remove unused variable.
51492         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
51493         type of first argument to 'const char *'.
51494         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
51495         Likewise.
51496         (main): Change type of variable 's'.
51497         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
51498         to 'int'.
51500 2011-01-02  Bruno Haible  <bruno@clisp.org>
51502         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
51503         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
51504         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
51505         bug.
51506         * lib/pwrite.c: Undo 2010-12-31 patch.
51507         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
51509 2011-01-02  Bruno Haible  <bruno@clisp.org>
51511         pread: Fix test whether it works.
51512         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
51514 2011-01-02  Bruno Haible  <bruno@clisp.org>
51516         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
51517         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
51518         ends in "6". Don't require a specific month name. Try also the locale
51519         names found on HP-UX 11 and Solaris 7.
51521 2011-01-02  Bruno Haible  <bruno@clisp.org>
51523         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
51524         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
51525         C linkage.
51526         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
51528 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51530         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
51531         for consistency, since the "cluster" term is not used elsewhere.
51532         * lib/unigbrk.in.h: Update name.
51533         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
51534         * lib/unigbrk/u16-grapheme-next.c: Update name.
51535         * lib/unigbrk/u16-grapheme-prev.c: Update name.
51536         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
51537         * lib/unigbrk/u32-grapheme-next.c: Update name.
51538         * lib/unigbrk/u32-grapheme-prev.c: Update name.
51539         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
51540         * lib/unigbrk/u8-grapheme-next.c: Update name.
51541         * lib/unigbrk/u8-grapheme-prev.c: Update name.
51542         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
51543         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
51544         Suggested by Bruno Haible.
51546 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51548         Remove module 'u8-grapheme-len' as too redundant with
51549         'u8-grapheme-next'.
51550         * modules/unigbrk/u8-grapheme-len: Delete file.
51551         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
51552         * lib/unigbrk.in.h: Remove prototype for deleted function.
51553         * lib/unigbrk/u8-grapheme-len.c: Delete file.
51554         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
51556         Remove module 'u16-grapheme-len' as too redundant with
51557         'u16-grapheme-next'.
51558         * modules/unigbrk/u16-grapheme-len: Delete file.
51559         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
51560         * lib/unigbrk.in.h: Remove prototype for deleted function.
51561         * lib/unigbrk/u16-grapheme-len.c: Delete file.
51562         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
51564         Remove module 'u32-grapheme-len' as too redundant with
51565         'u32-grapheme-next'.
51566         * modules/unigbrk/u32-grapheme-len: Delete file.
51567         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
51568         * lib/unigbrk.in.h: Remove prototype for deleted function.
51569         * lib/unigbrk/u32-grapheme-len.c: Delete file.
51570         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
51572         Suggested by Bruno Haible.
51574 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
51576         * unigbrk.in.h: Fix typo: "ben" => "been".
51577         Reported by Bruno Haible.
51579 2011-01-01  Jim Meyering  <meyering@redhat.com>
51581         maint: update almost all copyright ranges to include 2011
51582         Run the new "make update-copyright" rule.
51584 2011-01-01  Jim Meyering  <meyering@redhat.com>
51586         maint: update-copyright: exempt doc/INSTALL*
51587         * Makefile (update-copyright): Also exclude doc/INSTALL*,
51588         since they are generated.  Suggested by Bruno Haible.
51590 2011-01-01  Jim Meyering  <meyering@redhat.com>
51592         maint: refine the update-copyright rule
51593         * Makefile (update-copyright): Also exclude any file that includes
51594         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
51595         code that merely generates the comment.
51597 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
51599         New module 'u8-grapheme-len'.
51600         * modules/unigbrk/u8-grapheme-len: New file.
51601         * modules/unigbrk/u8-grapheme-len-tests: New file.
51602         * lib/unigbrk.in.h: Add prototype for new function.
51603         * lib/unigbrk/u8-grapheme-len.c: New file.
51604         * tests/unigbrk/test-u8-grapheme-len.c: New file.
51606         New module 'u16-grapheme-len'.
51607         * modules/unigbrk/u16-grapheme-len: New file.
51608         * modules/unigbrk/u16-grapheme-len-tests: New file.
51609         * lib/unigbrk.in.h: Add prototype for new function.
51610         * lib/unigbrk/u16-grapheme-len.c: New file.
51611         * tests/unigbrk/test-u16-grapheme-len.c: New file.
51613         New module 'u32-grapheme-len'.
51614         * modules/unigbrk/u32-grapheme-len: New file.
51615         * modules/unigbrk/u32-grapheme-len-tests: New file.
51616         * lib/unigbrk.in.h: Add prototype for new function.
51617         * lib/unigbrk/u32-grapheme-len.c: New file.
51618         * tests/unigbrk/test-u32-grapheme-len.c: New file.
51620         New module 'u8-grapheme-next'.
51621         * modules/unigbrk/u8-grapheme-next: New file.
51622         * modules/unigbrk/u8-grapheme-next-tests: New file.
51623         * lib/unigbrk.in.h: Add prototype for new function.
51624         * lib/unigbrk/u8-grapheme-next.c: New file.
51625         * tests/unigbrk/test-u8-grapheme-next.c: New file.
51627         New module 'u16-grapheme-next'.
51628         * modules/unigbrk/u16-grapheme-next: New file.
51629         * modules/unigbrk/u16-grapheme-next-tests: New file.
51630         * lib/unigbrk.in.h: Add prototype for new function.
51631         * lib/unigbrk/u16-grapheme-next.c: New file.
51632         * tests/unigbrk/test-u16-grapheme-next.c: New file.
51634         New module 'u32-grapheme-next'.
51635         * modules/unigbrk/u32-grapheme-next: New file.
51636         * modules/unigbrk/u32-grapheme-next-tests: New file.
51637         * lib/unigbrk.in.h: Add prototype for new function.
51638         * lib/unigbrk/u32-grapheme-next.c: New file.
51639         * tests/unigbrk/test-u32-grapheme-next.c: New file.
51641         New module 'u8-grapheme-prev'.
51642         * modules/unigbrk/u8-grapheme-prev: New file.
51643         * modules/unigbrk/u8-grapheme-prev-tests: New file.
51644         * lib/unigbrk.in.h: Add prototype for new function.
51645         * lib/unigbrk/u8-grapheme-prev.c: New file.
51646         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
51648         New module 'u16-grapheme-prev'.
51649         * modules/unigbrk/u16-grapheme-prev: New file.
51650         * modules/unigbrk/u16-grapheme-prev-tests: New file.
51651         * lib/unigbrk.in.h: Add prototype for new function.
51652         * lib/unigbrk/u16-grapheme-prev.c: New file.
51653         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
51655         New module 'u32-grapheme-prev'.
51656         * modules/unigbrk/u32-grapheme-prev: New file.
51657         * modules/unigbrk/u32-grapheme-prev-tests: New file.
51658         * lib/unigbrk.in.h: Add prototype for new function.
51659         * lib/unigbrk/u32-grapheme-prev.c: New file.
51660         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
51662         New module 'u8-grapheme-breaks'.
51663         * modules/unigbrk/u8-grapheme-breaks: New file.
51664         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
51665         * lib/unigbrk.in.h: Add prototype for new function.
51666         * lib/unigbrk/u8-grapheme-breaks.c: New file.
51667         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
51669         New module 'u16-grapheme-breaks'.
51670         * modules/unigbrk/u16-grapheme-breaks: New file.
51671         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
51672         * lib/unigbrk.in.h: Add prototype for new function.
51673         * lib/unigbrk/u16-grapheme-breaks.c: New file.
51674         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
51676         New module 'u32-grapheme-breaks'.
51677         * modules/unigbrk/u32-grapheme-breaks: New file.
51678         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
51679         * lib/unigbrk.in.h: Add prototype for new function.
51680         * lib/unigbrk/u32-grapheme-breaks.c: New file.
51681         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
51683         New module 'ulc-grapheme-breaks'.
51684         * modules/unigbrk/ulc-grapheme-breaks: New file.
51685         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
51686         * m4/locale-ar.m4: New file.
51687         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
51688         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
51689         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
51691 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
51693         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
51694         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
51695         modified how this file was generated before I initially submitted
51696         the module, but failed to regenerate it.  This meant that several
51697         of the level2 entries were wrong.
51698         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
51699         Remove the division-by-2 that is folded into the table now that
51700         gbrkprop.h has been regenerated properly.  Now -1 entries are
51701         handled correctly.
51703         New module 'unigbrk/uc-gbrk-prop-tests'.
51704         * modules/unigbrk/uc-gbrk-prop-tests: New file.
51705         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
51706         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
51707         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
51709 2011-01-01  Bruno Haible  <bruno@clisp.org>
51711         Avoid use of hexadecimal escapes.
51712         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
51713         instead of hexadecimal escapes.
51715 2011-01-01  Jim Meyering  <meyering@redhat.com>
51717         maint: new rule to update copyright year ranges
51718         * Makefile (update-copyright): New rule.
51720         maint: indent with TABs in Makefile
51721         * Makefile: Expand leading sequences of spaces to TABs
51723         version-etc: update the copyright year it reports
51724         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
51726 2010-12-31  Bruno Haible  <bruno@clisp.org>
51728         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
51729         * lib/isfinite.c (zerof, zerod, zerol): New variables.
51730         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
51731         zero.
51733 2010-12-31  Bruno Haible  <bruno@clisp.org>
51735         pwrite: Work around HP-UX 11.11 bug.
51736         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
51737         works and set REPLACE_PWRITE if not.
51738         * lib/pwrite.c (pwrite): Add an implementation that uses the system
51739         function.
51740         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
51742 2010-12-31  Bruno Haible  <bruno@clisp.org>
51744         pread: Work around HP-UX 11 bugs.
51745         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
51746         and set REPLACE_PREAD if not.
51747         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
51749 2010-12-31  Eric Blake  <eblake@redhat.com>
51751         nl_langinfo: fix YESEXPR on Irix 6.5
51752         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
51753         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
51754         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
51755         it.
51757 2010-12-31  Bruno Haible  <bruno@clisp.org>
51759         iconv: Document HP-UX 11 bug.
51760         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
51762 2010-12-31  Bruno Haible  <bruno@clisp.org>
51764         ldexpl: Fix link error on HP-UX 11.
51765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
51766         LDEXPL_LIBM, using $ISNANL_LIBM.
51768 2010-12-31  Eric Blake  <eblake@redhat.com>
51770         ftello: avoid compilation failure with SunStudio c89
51771         * lib/ftello.c (ftello): Use lseek, not llseek.
51773         tests: avoid failing coreutils tests on cygwin
51774         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
51775         (create_exe_shims_): Return 0 when skipping.
51777 2010-12-31  Bruno Haible  <bruno@clisp.org>
51779         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
51780         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
51782 2010-12-31  Bruno Haible  <bruno@clisp.org>
51784         waitpid: Fix link error in C++ mode.
51785         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
51787 2010-12-31  Bruno Haible  <bruno@clisp.org>
51789         isnan: Use GCC built-ins when possible.
51790         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
51791         __builtin_isnan.
51792         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
51793         (isnan): Define using GCC built-ins for GCC >= 4.0.
51795 2010-12-31  Bruno Haible  <bruno@clisp.org>
51797         isnand: Fix mistake.
51798         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
51799         __builtin_isnand.
51801 2010-12-31  Bruno Haible  <bruno@clisp.org>
51803         open: Avoid C++ error on HP-UX 11.
51804         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
51806 2010-12-31  Bruno Haible  <bruno@clisp.org>
51808         time_r: Add missing declarations on HP-UX 11.
51809         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
51810         instead of HAVE_LOCALTIME_R.
51811         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
51812         HAVE_LOCALTIME_R always.
51813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
51814         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
51815         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
51816         HAVE_LOCALTIME_R.
51817         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
51818         * doc/posix-functions/localtime_r.texi: Likewise.
51820 2010-12-29  Eric Blake  <eblake@redhat.com>
51822         mountlist: tweak previous commit
51823         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
51824         Reported by Paul Eggert.
51826         mountlist: fix local drive detection on cygwin
51827         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
51828         that works for cygwin.
51830 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
51832         ftoastr, snprintf: ftoastr + snprintf module
51833         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
51834         since the snprintf module now should be good enough here.
51835         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
51836         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
51837         and gl_MODULE_INDICATOR([snprintf]), but the former enables
51838         GNULIB_SNPRINTF only for the test directory, and the latter
51839         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
51840         seems to suffice by itself.
51842 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
51844         alloca: one step towards thread-safety
51845         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
51846         need for a static variable.  All callers changed.  This does not
51847         make the alloca replacement thread-safe, but it's one step.
51849         tests: minor indenting change
51850         * tests/init.sh: Sync from coreutils housekeeping patch
51851         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
51852         to keep lines within 80 columns.
51854 2010-12-28  Jim Meyering  <meyering@redhat.com>
51856         regex: don't infloop on persistent failing calloc
51857         * lib/regexec.c (build_trtable): Return failure indication upon
51858         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
51859         In glibc, this was fixed for version 2.13:
51860         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
51862 2010-12-28  Bruno Haible  <bruno@clisp.org>
51863             Paul Eggert <eggert@cs.ucla.edu>
51865         linkat: Make implementation robust against system behaviour variations.
51866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
51867         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
51868         way, and to -2 if it needs a generic runtime test.
51869         * lib/linkat.c (solaris_optimized_link_immediate,
51870         solaris_optimized_link_follow): New functions.
51871         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
51872         (check_same_link): Use it.
51874 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
51876         New module 'unigbrk/base'.
51877         * modules/unigbrk/base: New file.
51878         * lib/unigbrk.in.h: New file.
51880         New module 'unigbrk/uc-gbrk-prop'.
51881         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
51882         * modules/unigbrk/uc-gbrk-prop: New file.
51883         * lib/unigbrk/gbrkprop.h: New file.
51884         * lib/unigbrk/uc-gbrk-prop.c: New file.
51886         New module 'unigbrk/uc-is-grapheme-break'.
51887         * modules/unigbrk/uc-is-grapheme-break: New file.
51888         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
51889         * lib/unigbrk/uc-is-grapheme-break.c: New file.
51890         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
51891         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
51892         * tests/unigbrk/GraphemeBreakTest.txt: New file.
51894         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
51896 2010-12-27  Bruno Haible  <bruno@clisp.org>
51898         linkat test: Avoid failure on Solaris 11 2010-11.
51899         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
51901 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51903         utimens: work around glibc rounding bug on more platforms
51904         * lib/utimens.c (fdutimens): Work around rounding bug even if
51905         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
51906         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
51908 2010-12-27  Bruno Haible  <bruno@clisp.org>
51910         select tests: Improve comments.
51911         * tests/test-select.c (do_select): Add comments.
51913 2010-12-27  Bruno Haible  <bruno@clisp.org>
51915         select tests: Safer way of handling timeout.
51916         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
51917         at every invocation.
51919 2010-12-27  Bruno Haible  <bruno@clisp.org>
51921         select tests: Use 'bool' where appropriate.
51922         * tests/test-select.c (connect_to_socket): Change argument type to
51923         'bool'.
51925 2010-12-27  Bruno Haible  <bruno@clisp.org>
51927         select tests: Use existing modules.
51928         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
51929         (configure.ac): Don't test for unistd.h.
51930         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
51931         declared in <unistd.h>.
51933 2010-12-27  Bruno Haible  <bruno@clisp.org>
51935         mbrtowc: Work around a Solaris 7 bug.
51936         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
51937         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
51938         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
51939         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
51940         MBRTOWC_NULL_ARG1_BUG.
51941         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
51942         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
51943         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
51944         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
51946 2010-12-27  Jim Meyering  <meyering@redhat.com>
51948         read-file.c: tweak syntax
51949         * lib/read-file.c (fread_file): Remove space after "*" in function
51950         definitions.
51952 2010-12-27  Bruno Haible  <bruno@clisp.org>
51954         times test: Avoid gcc warnings on OSF/1.
51955         * tests/test-times.c (main): Cast printf arguments from clock_t to
51956         'long int'.
51958 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
51960         utimens: work around glibc rounding bug on older Linux kernels
51961         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
51962         on Linux with a glibc whose utimes might not work, then work
51963         around a longstanding glibc bug involving rounding rather than
51964         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
51965         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
51967 2010-12-26  Bruno Haible  <bruno@clisp.org>
51969         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
51970         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
51971         _GL_CXXALIAS_SYS.
51972         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
51974 2010-12-26  Bruno Haible  <bruno@clisp.org>
51976         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
51977         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
51978         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
51979         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
51980         looking for the declaration.
51981         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
51982         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
51983         problem.
51984         * doc/posix-functions/inet_pton.texi: Likewise.
51986 2010-12-26  Bruno Haible  <bruno@clisp.org>
51988         arpa_inet: Use the common idioms with C++ support.
51989         * lib/arpa_inet.in.h: Include c++defs.h.
51990         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
51991         support.
51992         * modules/arpa_inet (Depends-on): Add c++defs.
51993         (Makefile.am): Substitute the contents of c++defs.h.
51994         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
51995         * modules/arpa_inet-c++-tests: New file.
51996         * tests/test-arpa_inet-c++.cc: New file.
51998 2010-12-25  Bruno Haible  <bruno@clisp.org>
52000         Fix more C++ link errors on Solaris 8.
52001         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
52002         $(LIB_EACCESS).
52003         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
52004         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
52005         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
52006         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
52007         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
52009 2010-12-25  Bruno Haible  <bruno@clisp.org>
52011         printf-posix: Fix link error when a non-GCC compiler is used.
52012         * lib/stdio.in.h (printf): When not using GCC, override printf
52013         correctly.
52014         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52016 2010-12-25  Bruno Haible  <bruno@clisp.org>
52018         strerror_r-posix: Update doc.
52019         * doc/posix-functions/strerror_r.texi: Update doc about the return
52020         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
52022 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
52024         utimens: simplify the logic of the previous change
52025         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
52026         This should not affect whether the test succeeds or fails.
52028         utimens: configure better on hosts with NFS clock skew
52029         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
52030         uses the clock of the local host.  It might use the clock of the
52031         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
52032         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
52034 2010-12-25  Bruno Haible  <bruno@clisp.org>
52036         ptsname test: Avoid failure on Solaris.
52037         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
52038         open a pseudo-terminal; don't use BSD-style ptys.
52039         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
52041 2010-12-25  Bruno Haible  <bruno@clisp.org>
52043         ptsname: Avoid ERANGE failure on some systems.
52044         * lib/ptsname.c (buffer): Increase size.
52046 2010-12-25  Bruno Haible  <bruno@clisp.org>
52048         rename, renameat: Avoid test failures at NFS mounted locations.
52049         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
52050         so that subsequent mkdir calls succeed.
52052 2010-12-25  Bruno Haible  <bruno@clisp.org>
52054         iswblank: Fix C++ link error on Solaris 8.
52055         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
52056         _GL_FUNCDECL_SYS.
52058 2010-12-25  Bruno Haible  <bruno@clisp.org>
52060         unistd: Fix C++ link error on Solaris 8.
52061         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
52063 2010-12-25  Bruno Haible  <bruno@clisp.org>
52065         readlink doc: Mention an old glibc bug.
52066         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
52068 2010-12-25  Bruno Haible  <bruno@clisp.org>
52070         fcntl-h: Fix for use of C++ on glibc systems.
52071         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
52072         also on glibc systems in C++ mode.
52073         Reported by Gary V. Vaughan <gary@gnu.org>.
52075 2010-12-25  Bruno Haible  <bruno@clisp.org>
52077         roundl-ieee: Make it work on OSF/1 5.1 with cc.
52078         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
52080 2010-12-25  Bruno Haible  <bruno@clisp.org>
52082         truncl-ieee: Make it work on OSF/1 5.1 with cc.
52083         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
52084         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
52085         test whether truncl works according to ISO C 99 with IEC 60559.
52086         * m4/truncl-ieee.m4: New file.
52087         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
52088         m4/signbit.m4.
52089         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
52091 2010-12-25  Bruno Haible  <bruno@clisp.org>
52093         ceill-ieee: Make it work on OSF/1 5.1 with cc.
52094         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
52095         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
52096         test whether ceill works according to ISO C 99 with IEC 60559.
52097         * m4/ceill-ieee.m4: New file.
52098         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
52099         m4/signbit.m4.
52100         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
52102 2010-12-25  Bruno Haible  <bruno@clisp.org>
52104         Ensure all prerequisites of <wchar.h> are included.
52105         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
52106         before <wchar.h>.
52107         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
52108         gl_MBRLEN_NUL_RETVAL): Likewise.
52109         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
52110         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
52111         AC_FUNC_MBRTOWC): Likewise.
52112         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
52113         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52114         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
52115         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
52116         Likewise.
52117         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
52118         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
52119         (gl_WCHAR_H): Improve comments.
52120         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
52122 2010-12-25  Bruno Haible  <bruno@clisp.org>
52124         strtok_r: Fix C syntax error in autoconf macro.
52125         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
52126         characters in test program.
52128 2010-12-24  Bruno Haible  <bruno@clisp.org>
52130         ceil, trunc, round: Fix gcc warnings.
52131         * lib/ceil.c (MIN): Undefine before redefining.
52132         * lib/trunc.c (MIN): Likewise.
52133         * lib/round.c (MIN): Likewise.
52134         Include <math.h> first.
52136 2010-12-24  Bruno Haible  <bruno@clisp.org>
52138         select tests: Avoid failures on OSF/1 5.1.
52139         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
52140         failure of closing the last socket; it may fail with ECONNRESET.
52142 2010-12-24  Eric Blake  <eblake@redhat.com>
52144         stdint: avoid HP-UX 10.20 preprocessor bug
52145         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
52146         than #if.
52147         * tests/test-floor2.c (main): Likewise.
52148         Reported by Peter O'Gorman.
52150         pipe: make obsoletion transition easier
52151         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
52152         * modules/pipe (Files): Include revived file.
52153         (Include): Drop reference, to mirror getdate's behavior.
52155 2010-12-24  Bruno Haible  <bruno@clisp.org>
52157         sys_socket: Hide mismatch of declarations on NonStop Kernel.
52158         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
52159         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
52160         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52162 2010-12-24  Bruno Haible  <bruno@clisp.org>
52164         gethostname: Ensure declaration on NonStop Kernel.
52165         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
52166         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52168 2010-12-24  Bruno Haible  <bruno@clisp.org>
52170         sys_select: Ensure all necessary types on NonStop Kernel.
52171         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
52172         include <sys/time.h>.
52173         * doc/posix-headers/sys_select.texi: Mention that it's missing on
52174         NonStop Kernel.
52175         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52177 2010-12-24  Bruno Haible  <bruno@clisp.org>
52179         sys_select: Remove unneeded include.
52180         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
52181         have <sys/select.h>.
52183 2010-12-24  Bruno Haible  <bruno@clisp.org>
52185         gethostname: Provide a fallback for HOST_NAME_MAX.
52186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
52187         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
52188         instead.
52189         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52191 2010-12-24  Bruno Haible  <bruno@clisp.org>
52193         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
52194         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
52195         (SA_RESTART): Likewise.
52196         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52198 2010-12-24  Bruno Haible  <bruno@clisp.org>
52200         signal: Define NSIG.
52201         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
52202         * tests/test-signal.c (nsig): New variable.
52203         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52205 2010-12-24  Bruno Haible  <bruno@clisp.org>
52207         rename, renameat: Avoid test failures on OSF/1 5.1.
52208         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
52209         alternative error codes.
52210         * tests/test-renameat.c (main): Likewise.
52212 2010-12-24  Bruno Haible  <bruno@clisp.org>
52214         *printf: Detect large precisions bug on Solaris 10/SPARC.
52215         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
52216         by Paul Eggert.
52217         * tests/test-snprintf-posix.h (test_function): Add this test code here
52218         too.
52219         * tests/test-sprintf-posix.h (test_function): Likewise.
52220         * tests/test-vasnprintf-posix.c (test_function): Likewise.
52221         * tests/test-vasprintf-posix.c (test_function): Likewise.
52222         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
52223         around by gnulib.
52224         * doc/posix-functions/printf.texi: Likewise.
52225         * doc/posix-functions/snprintf.texi: Likewise.
52226         * doc/posix-functions/sprintf.texi: Likewise.
52227         * doc/posix-functions/vfprintf.texi: Likewise.
52228         * doc/posix-functions/vprintf.texi: Likewise.
52229         * doc/posix-functions/vsnprintf.texi: Likewise.
52230         * doc/posix-functions/vsprintf.texi: Likewise.
52231         * doc/posix-functions/dprintf.texi: Undo last commit.
52232         * doc/posix-functions/vdprintf.texi: Likewise.
52234 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
52236         tests: port test-fdutimensat.c to Solaris 8
52237         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
52238         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
52239         On Solaris 8, it fails with errno == ENOSYS, because there is no
52240         futimens (so it can't use the fd), and there is no lutimens (so it
52241         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
52243         vsnprintf: make more consistent with snprintf; doc fixes
52245         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
52246         the byte count return problem was promoted from the snprintf-posix
52247         to the snprintf module.
52248         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
52249         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
52250         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
52251         * tests/test-snprintf.c (main): Check the byte count returned.
52252         * tests/test-vsnprintf.c (main): Likewise.
52254 2010-12-23  Eric Blake  <eblake@redhat.com>
52256         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
52257         * modules/sigpipe (License): Relax license.
52259 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52261         doc: document Solaris printf bug with large float precisions
52262         * doc/posix-functions/dprintf.texi (dprintf):
52263         * doc/posix-functions/fprintf.texi (fprintf):
52264         * doc/posix-functions/printf.texi (printf):
52265         * doc/posix-functions/snprintf.texi (snprintf):
52266         * doc/posix-functions/sprintf.texi (sprintf):
52267         * doc/posix-functions/vdprintf.texi (vdprintf):
52268         * doc/posix-functions/vfprintf.texi (vfprintf):
52269         * doc/posix-functions/vprintf.texi (vprintf):
52270         * doc/posix-functions/vsnprintf.texi (vsnprintf):
52271         * doc/posix-functions/vsprintf.texi (vsprintf):
52272         Mention that these functions mishandle large floating point
52273         precisions on Solaris 10.  The same bug is also present in Solaris
52274         8, and I assume earlier.  This causes "cd gnulib-tests; make
52275         check" to fail on Solaris 8 (and I assume, later) when building
52276         the latest coreutils, in test-vasprintf-posix's call to
52277         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
52278         the wide flavors (e.g., wprintf) so this patch just updates the
52279         documentation for the narrow ones.
52281         test-posixtm.c: add two tests
52282         * tests/test-posixtm.c: Add two tests, to highlight the
52283         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
52284         around this bug; this is merely to document it.
52286 2010-12-22  Bruno Haible  <bruno@clisp.org>
52288         getlogin_r: Work around portability problem on OSF/1.
52289         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
52290         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
52291         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
52292         test for a truncated result.
52293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
52294         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
52295         * modules/getlogin_r (Depends-on): Add memchr.
52296         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
52298 2010-12-22  Bruno Haible  <bruno@clisp.org>
52300         ptsname: Avoid test failure on OSF/1 5.1.
52301         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
52302         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
52303         (same_slave): New function.
52304         (main): Use it to compare ptsname's result with the expected file name.
52306 2010-12-22  Bruno Haible  <bruno@clisp.org>
52308         Port extended stdio modules to HP NonStop Kernel.
52309         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
52310         macros.
52311         * lib/fbufmode.c: Update comments.
52312         * lib/fflush.c: Likewise.
52313         * lib/fpurge.c: Likewise.
52314         * lib/freadable.c: Likewise.
52315         * lib/freadahead.c: Likewise.
52316         * lib/freading.c: Likewise.
52317         * lib/freadptr.c: Likewise.
52318         * lib/freadseek.c: Likewise.
52319         * lib/fseeko.c: Likewise.
52320         * lib/fseterr.c: Likewise.
52321         * lib/fwritable.c: Likewise.
52322         * lib/fwriting.c: Likewise.
52323         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
52325 2010-12-22  Bruno Haible  <bruno@clisp.org>
52327         ttyname_r: Work around bug on OSF/1 5.1.
52328         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
52329         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
52330         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
52331         present.
52332         * lib/ttyname_r.c (ttyname_r): Update comments.
52334 2010-12-22  Bruno Haible  <bruno@clisp.org>
52336         round: Implement result sign according to IEEE 754.
52337         * lib/round.c (MIN, MINUS_ZERO): New macros.
52338         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
52339         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
52340         * tests/test-round-ieee.c (main): Likewise.
52341         * tests/test-roundl-ieee.c (main): Likewise.
52343         trunc: Implement result sign according to IEEE 754.
52344         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
52345         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
52346         * tests/test-trunc2.c: Include minus-zero.h.
52347         (MINUS_ZERO): New macro.
52348         (trunc_reference): Keep in sync with lib/trunc.c.
52349         * tests/test-truncf2.c: Include minus-zero.h.
52350         (MINUS_ZERO): New macro.
52351         (truncf_reference): Keep in sync with lib/trunc.c.
52352         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
52353         * tests/test-trunc-ieee.c (main): Likewise.
52354         * tests/test-truncl-ieee.c (main): Likewise.
52356         ceil: Implement result sign according to IEEE 754.
52357         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
52358         (FUNC): Return -0.0 for -1 < x < 0.
52359         * tests/test-ceil2.c: Include minus-zero.h.
52360         (MINUS_ZERO): New macro.
52361         (ceil_reference): Keep in sync with lib/ceil.c.
52362         * tests/test-ceilf2.c: Include minus-zero.h.
52363         (MINUS_ZERO): New macro.
52364         (ceilf_reference): Keep in sync with lib/ceil.c.
52365         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
52366         * tests/test-ceil-ieee.c (main): Likewise.
52367         * tests/test-ceill-ieee.c (main): Likewise.
52369         floor: Implement result sign according to IEEE 754.
52370         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
52371         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
52372         * tests/test-floorf2.c (floorf_reference): Likewise.
52373         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
52374         * tests/test-floor-ieee.c (main): Likewise.
52375         * tests/test-floorl-ieee.c (main): Likewise.
52377 2010-12-22  Bruno Haible  <bruno@clisp.org>
52379         getaddrinfo: Update doc.
52380         * doc/posix-functions/gai_strerror.texi: Return type is also different
52381         on AIX and HP-UX.
52383 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
52385         getaddrinfo, inet_ntop: Update doc for Solaris.
52386         * doc/posix-functions/gai_strerror.texi: Return type is also an
52387         issue on Solaris 9 and earlier.
52388         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
52389         on Solaris 10 and earlier.
52391 2010-12-21  Bruno Haible  <bruno@clisp.org>
52393         New module 'roundl-ieee'.
52394         * modules/roundl-ieee: New file.
52395         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
52396         test whether roundl works according to ISO C 99 with IEC 60559.
52397         * m4/roundl-ieee.m4: New file.
52398         * modules/roundl-ieee-tests: New file.
52399         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
52400         * tests/test-roundl.c (main): Remove signbit tests.
52401         * modules/roundl-tests (Depends-on): Remove signbit.
52402         * doc/posix-functions/roundl.texi: Mention the new module.
52404 2010-12-21  Bruno Haible  <bruno@clisp.org>
52406         New module 'truncl-ieee'.
52407         * modules/truncl-ieee: New file.
52408         * modules/truncl-ieee-tests: New file.
52409         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
52410         * tests/test-truncl.c (main): Remove signbit tests.
52411         * modules/truncl-tests (Depends-on): Remove signbit.
52412         * doc/posix-functions/truncl.texi: Mention the new module.
52414 2010-12-21  Bruno Haible  <bruno@clisp.org>
52416         New module 'ceill-ieee'.
52417         * modules/ceill-ieee: New file.
52418         * modules/ceill-ieee-tests: New file.
52419         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
52420         * tests/test-ceill.c (main): Remove signbit tests.
52421         * modules/ceill-tests (Depends-on): Remove signbit.
52422         * doc/posix-functions/ceill.texi: Mention the new module.
52424 2010-12-21  Bruno Haible  <bruno@clisp.org>
52426         New module 'floorl-ieee'.
52427         * modules/floorl-ieee: New file.
52428         * modules/floorl-ieee-tests: New file.
52429         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
52430         * tests/test-floorl.c (main): Remove signbit tests.
52431         * modules/floorl-tests (Depends-on): Remove signbit.
52432         * doc/posix-functions/floorl.texi: Mention the new module.
52434 2010-12-21  Bruno Haible  <bruno@clisp.org>
52436         New module 'round-ieee'.
52437         * modules/round-ieee: New file.
52438         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
52439         whether round works according to ISO C 99 with IEC 60559.
52440         * m4/round-ieee.m4: New file.
52441         * modules/round-ieee-tests: New file.
52442         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
52443         * tests/test-round1.c (main): Remove signbit tests.
52444         * modules/round-tests (Depends-on): Remove 'signbit'.
52445         * doc/posix-functions/round.texi: Mention the new module.
52447 2010-12-21  Bruno Haible  <bruno@clisp.org>
52449         New module 'trunc-ieee'.
52450         * modules/trunc-ieee: New file.
52451         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
52452         whether trunc works according to ISO C 99 with IEC 60559.
52453         * m4/trunc-ieee.m4: New file.
52454         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
52455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
52456         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
52457         * modules/trunc-ieee-tests: New file.
52458         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
52459         * tests/test-trunc1.c (main): Remove signbit tests.
52460         * modules/trunc-tests (Depends-on): Remove 'signbit'.
52461         * doc/posix-functions/trunc.texi: Mention the new module.
52463 2010-12-21  Bruno Haible  <bruno@clisp.org>
52465         New module 'ceil-ieee'.
52466         * modules/ceil-ieee: New file.
52467         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
52468         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
52469         ISO C 99 with IEC 60559.
52470         * m4/ceil-ieee.m4: New file.
52471         * modules/ceil (Files): Add lib/ceil.c.
52472         (Depends-on): Add 'float'.
52473         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52474         * lib/math.in.h (ceil): New declaration.
52475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
52476         REPLACE_CEIL.
52477         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
52478         * modules/ceil-ieee-tests: New file.
52479         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
52480         * tests/test-math-c++.cc: Check the signature of 'ceil'.
52481         * doc/posix-functions/ceil.texi: Mention the new module.
52483 2010-12-21  Bruno Haible  <bruno@clisp.org>
52485         New module 'floor-ieee'.
52486         * modules/floor-ieee: New file.
52487         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
52488         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
52489         ISO C 99 with IEC 60559.
52490         * m4/floor-ieee.m4: New file.
52491         * modules/floor (Files): Add lib/floor.c.
52492         (Depends-on): Add 'float'.
52493         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52494         * lib/math.in.h (floor): New declaration.
52495         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
52496         REPLACE_FLOOR.
52497         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
52498         * modules/floor-ieee-tests: New file.
52499         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
52500         * tests/test-math-c++.cc: Check the signature of 'floor'.
52501         * doc/posix-functions/floor.texi: Mention the new module.
52503 2010-12-21  Bruno Haible  <bruno@clisp.org>
52505         New module 'roundf-ieee'.
52506         * modules/roundf-ieee: New file.
52507         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
52508         test whether roundf works according to ISO C 99 with IEC 60559.
52509         * m4/roundf-ieee.m4: New file.
52510         * modules/roundf-ieee-tests: New file.
52511         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
52512         * tests/test-roundf1.c (main): Remove signbit tests.
52513         * modules/roundf-tests (Depends-on): Remove 'signbit'.
52514         * doc/posix-functions/roundf.texi: Mention the new module.
52516 2010-12-21  Bruno Haible  <bruno@clisp.org>
52518         New module 'truncf-ieee'.
52519         * modules/truncf-ieee: New file.
52520         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
52521         test whether truncf works according to ISO C 99 with IEC 60559.
52522         * m4/truncf-ieee.m4: New file.
52523         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
52524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
52525         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
52526         * modules/truncf-ieee-tests: New file.
52527         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
52528         * tests/test-truncf1.c (main): Remove signbit tests.
52529         * modules/truncf-tests (Depends-on): Remove 'signbit'.
52530         * doc/posix-functions/truncf.texi: Mention the new module.
52532 2010-12-21  Bruno Haible  <bruno@clisp.org>
52534         New module 'ceilf-ieee'.
52535         * modules/ceilf-ieee: New file.
52536         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
52537         test whether ceilf works according to ISO C 99 with IEC 60559.
52538         * m4/ceilf-ieee.m4: New file.
52539         * modules/ceilf-ieee-tests: New file.
52540         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
52541         * tests/test-ceilf1.c (main): Remove signbit tests.
52542         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
52543         * doc/posix-functions/ceilf.texi: Mention the new module.
52545 2010-12-21  Bruno Haible  <bruno@clisp.org>
52547         New module 'floorf-ieee'.
52548         * modules/floorf-ieee: New file.
52549         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
52550         test whether floorf works according to ISO C 99 with IEC 60559.
52551         * m4/floorf-ieee.m4: New file.
52552         * modules/floorf-ieee-tests: New file.
52553         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
52554         * tests/test-floorf1.c (main): Remove signbit tests.
52555         * modules/floorf-tests (Depends-on): Remove 'signbit'.
52556         * doc/posix-functions/floorf.texi: Mention the new module.
52558 2010-12-21  Bruno Haible  <bruno@clisp.org>
52560         Support for minus zero in autoconf macros.
52561         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
52562         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
52563         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
52564         * tests/minus-zero.h: Update comments.
52566 2010-12-21  Bruno Haible  <bruno@clisp.org>
52568         Tests for module 'ceil'.
52569         * modules/ceil-tests: New file.
52570         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
52571         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
52573 2010-12-21  Bruno Haible  <bruno@clisp.org>
52575         Tests for module 'floor'.
52576         * modules/floor-tests: New file.
52577         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
52578         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
52580 2010-12-21  Bruno Haible  <bruno@clisp.org>
52582         math: Fix indentation.
52583         * lib/math.in.h (floorf): Fix indentation.
52585 2010-12-21  Bruno Haible  <bruno@clisp.org>
52587         Fix cross-compilation guesses on Solaris.
52588         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
52589         not match "solaris2.10".
52590         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
52591         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
52592         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
52594 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
52596         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
52597         This fixes a problem observed with the latest coreutils snapshot
52598         that caused a test to fail on Solaris 8.  src/csplit.c's call
52599         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
52600         earlier, instead of returning the number of bytes that would have
52601         been generated; this causes csplit to incorrectly report memory
52602         exhaustion.
52603         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
52604         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
52605         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
52606         comments to match.
52607         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
52608         Fix typo in matching older versions of Solaris: "solaris2.10"
52609         is matched by the shell pattern "solaris2.[0-9]*".  This matters
52610         only for guessing while cross-compiling.
52611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
52613 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
52615         ftoastr: fix comment again
52616         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
52617         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
52618         Also, simplify example a bit by using flags = 0.
52620 2010-12-20  Bruno Haible  <bruno@clisp.org>
52622         round*, trunc*: Update documentation regarding glibc.
52623         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
52624         * doc/posix-functions/round.texi: Likewise.
52625         * doc/posix-functions/roundl.texi: Likewise.
52626         * doc/posix-functions/truncf.texi: Likewise.
52627         * doc/posix-functions/trunc.texi: Likewise.
52628         * doc/posix-functions/truncl.texi: Likewise.
52630 2010-12-20  Bruno Haible  <bruno@clisp.org>
52632         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
52633         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
52634         * doc/posix-functions/round.texi: Likewise.
52635         * doc/posix-functions/roundl.texi: Likewise.
52637 2010-12-20  Bruno Haible  <bruno@clisp.org>
52639         ttyname_r: Add missing declaration on HP-UX 11.
52640         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
52641         HAVE_TTYNAME_R.
52642         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
52643         declared. Set HAVE_TTYNAME_R always.
52644         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52645         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
52646         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
52647         HAVE_TTYNAME_R.
52648         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
52650 2010-12-20  Bruno Haible  <bruno@clisp.org>
52652         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
52653         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
52654         * doc/posix-functions/getlogin_r.texi: Likewise.
52655         * tests/test-getlogin.c: Include <errno.h>.
52656         (main): Avoid test failure on HP-UX 11.11.
52657         * tests/test-getlogin_r.c (main): Likewise.
52659 2010-12-20  Bruno Haible  <bruno@clisp.org>
52661         getlogin_r: Add missing declaration on HP-UX 11.
52662         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
52663         declared also when it exists as a function.
52664         * doc/posix-functions/getlogin_r.texi: Document this workaround.
52666 2010-12-20  Bruno Haible  <bruno@clisp.org>
52668         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
52669         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
52670         through wcrtomb.
52672 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
52674         ftoastr: fix comment
52675         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
52676         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
52678 2010-12-19  Bruno Haible  <bruno@clisp.org>
52680         isnan: Ensure it is a macro.
52681         * lib/math.in.h (isnan): Define as a macro if not already a macro.
52682         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
52683         Solaris.
52685 2010-12-19  Bruno Haible  <bruno@clisp.org>
52687         ldexpl test: Fix link error on OSF/1 5.1.
52688         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
52690 2010-12-19  Bruno Haible  <bruno@clisp.org>
52692         wctype: Make it work in C++ mode on OSF/1 5.1.
52693         * lib/wctype.in.h (iswblank): Declare but not define here.
52694         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
52695         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
52696         * modules/wctype (Files): Add lib/iswblank.c.
52698 2010-12-19  Bruno Haible  <bruno@clisp.org>
52700         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
52701         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
52702         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
52704 2010-12-19  Bruno Haible  <bruno@clisp.org>
52706         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
52707         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
52708         _POSIX_PII_SOCKET.
52709         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
52710         * doc/posix-functions/recvfrom.texi: Likewise.
52711         * doc/posix-functions/send.texi: Likewise.
52712         * doc/posix-functions/sendto.texi: Likewise.
52714 2010-12-19  Bruno Haible  <bruno@clisp.org>
52716         tcgetsid: Add missing declaration on OSF/1 5.1.
52717         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
52718         HAVE_TCGETSID.
52719         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
52720         Don't set HAVE_TCGETSID.
52721         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
52722         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
52723         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
52724         HAVE_TCGETSID.
52725         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
52727 2010-12-19  Bruno Haible  <bruno@clisp.org>
52729         stdio: Fix problem with popen() declaration on OSF/1 5.1.
52730         * lib/stdio.in.h: During the include_next statement, let recursive
52731         includes of this file include only the system header file.
52733 2010-12-19  Bruno Haible  <bruno@clisp.org>
52735         iconv_open: Fix regression from 2010-12-04.
52736         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
52737         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
52739 2010-12-19  Bruno Haible  <bruno@clisp.org>
52741         stdbool test: Avoid a gcc warning.
52742         * tests/test-stdbool.c (main): Fail if e1 is false.
52743         Reported by Jim Meyering.
52745 2010-12-19  Jim Meyering  <meyering@redhat.com>
52747         setenv: restore to working order
52748         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
52749         mistakenly removed.
52750         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
52751         HAVE_SETENV.
52752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
52753         HAVE_SETENV.
52755 2010-12-19  Bruno Haible  <bruno@clisp.org>
52757         Document some different function declarations on OSF/1 5.1.
52758         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
52759         * doc/posix-functions/inet_ntop.texi: Likewise.
52760         * doc/posix-functions/gethostname.texi: Likewise.
52761         * lib/unistd.in.h (gethostname): Update comment.
52763 2010-12-19  Bruno Haible  <bruno@clisp.org>
52765         doc: Mention vasprintf-posix module.
52766         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
52767         the 'vasprintf-posix' module.
52768         * doc/glibc-functions/vasprintf.texi: Likewise.
52770 2010-12-19  Bruno Haible  <bruno@clisp.org>
52772         unsetenv: Add missing declaration on OSF/1 5.1.
52773         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
52774         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
52775         Don't set HAVE_UNSETENV. In the test program, set _BSD.
52776         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
52777         not HAVE_UNSETENV.
52778         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
52779         HAVE_UNSETENV.
52780         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
52782 2010-12-19  Bruno Haible  <bruno@clisp.org>
52784         setenv: Add missing declaration on OSF/1 5.1.
52785         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
52786         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
52787         declared. Don't set HAVE_SETENV.
52788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
52789         not HAVE_SETENV.
52790         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
52791         HAVE_SETENV.
52792         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
52794 2010-12-19  Bruno Haible  <bruno@clisp.org>
52796         nl_langinfo tests: Avoid gcc warning.
52797         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
52799 2010-12-19  Bruno Haible  <bruno@clisp.org>
52801         mknod: Avoid error in C++ mode on OSF/1 with GCC.
52802         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
52803         _GL_CXXALIAS_SYS.
52805 2010-12-19  Bruno Haible  <bruno@clisp.org>
52807         stdbool: Relax test.
52808         * tests/test-stdbool.c (e): Don't require that casts from a variable's
52809         address to 'bool' work in static initializer, for compilers other than
52810         GCC.
52812 2010-12-19  Bruno Haible  <bruno@clisp.org>
52814         ftello: Add missing declaration on OSF/1 5.1.
52815         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
52816         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
52817         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
52818         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
52819         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
52821 2010-12-19  Bruno Haible  <bruno@clisp.org>
52823         fseeko: Add missing declaration on OSF/1 5.1.
52824         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
52825         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
52826         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
52827         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
52828         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
52830 2010-12-19  Bruno Haible  <bruno@clisp.org>
52832         fchdir: Add missing declaration on OSF/1 5.1.
52833         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
52834         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
52835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
52836         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
52837         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
52839 2010-12-19  Bruno Haible  <bruno@clisp.org>
52841         relocatable-prog-wrapper: Separate from relocatable-prog.
52842         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
52843         uninstall-relocwrapper rule here.
52844         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
52845         Reported by Ian Beckwith <ianb@erislabs.net>.
52847 2010-12-19  Bruno Haible  <bruno@clisp.org>
52849         unistr/u8-mbsnlen: Add missing dependency.
52850         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
52851         Reported by Ian Beckwith <ianb@erislabs.net>.
52853 2010-12-19  Bruno Haible  <bruno@clisp.org>
52855         iconv: Make it possible again to use this module without 'iconv-h'.
52856         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
52857         if it is not defined.
52858         Reported by Ian Beckwith <ianb@erislabs.net>.
52860 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
52862         acl: port to Solaris 8 when copying from tmpfs to ufs
52863         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
52864         error number.  Problem observed on Solaris 8 with latest
52865         coreutils, with "mv A B", where A is on a tmpfs file system and B
52866         is on a ufs file system.  This caused coreutils' mv/part-symlink
52867         test to fail.
52869         tests: set fail=0 at start
52870         * tests/init.sh (setup_): Move fail=0 initialization here ...
52871         (mktempd_): ... from here, so that tests can rely on fail being
52872         set to 0 initially.  This fixes a problem in coreutils; see:
52873         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
52875 2010-12-18  Bruno Haible  <bruno@clisp.org>
52877         memmem-simple: Stylistic changes.
52878         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
52879         Fix preprocessor directive indentation.
52881 2010-12-15  Pádraig Brady  <P@draigBrady.com>
52883         memmem, memmem-simple: reorganize and expand empty needle check
52884         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
52885         functional checks to memmem-simple so that one has a fully functional
52886         memmem by using just this module.
52887         Restrict the performance only check to the memmem module.
52888         Also expand the empty needle check to ensure the correct
52889         pointer is returned, not just a non NULL pointer.
52890         * doc/glibc-functions/memmem.texi: Rearrange the portability
52891         documentation to correlate with the rearranged checks.
52892         Clarify exactly how the memmem and memmem-simple modules
52893         relate to each other.
52895 2010-12-15  Pádraig Brady  <P@draigBrady.com>
52896             Bruno Haible  <bruno@clisp.org>
52898         Improve cross-compilation guesses for uClibc.
52899         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
52900         that uClibc does not have the glibc bug.
52901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
52902         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
52904 2010-12-14  Eric Blake  <eblake@redhat.com>
52906         configmake: provide fallbacks for oldest supported autotools
52907         * m4/configmake.m4: New file.
52908         * modules/configmake (Files): Ship it.
52909         (configure.ac): Use it to guarantee fallbacks.
52911 2010-12-13  Pádraig Brady  <P@draigBrady.com>
52913         read-file: Improve handling of large files
52914         * lib/read-file.c (fread_file): Minimize realloc()s
52915         for regular files, and better manage sizes around SIZE_MAX.
52917 2010-12-13  Eric Blake  <eblake@redhat.com>
52919         cloexec, fcntl: relax license
52920         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
52921         consent from all contributors.
52922         * modules/fcntl (License): Likewise.
52924 2010-12-10  Bruno Haible  <bruno@clisp.org>
52926         Tests for module 'pipe-posix'.
52927         * modules/pipe-posix-tests: New file.
52928         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
52930 2010-12-10  Bruno Haible  <bruno@clisp.org>
52932         pipe-posix: Make it work in C++ mode.
52933         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
52934         (pipe): Use common idiom, not a macro definition.
52935         * lib/pipe.c: New file.
52936         * m4/pipe.m4: New file.
52937         * modules/pipe-posix (Description): Enhance.
52938         (Files): Add lib/pipe.c, m4/pipe.m4.
52939         (configure.ac): Invoke gl_FUNC_PIPE.
52940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
52941         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
52942         * tests/test-unistd-c++.cc: Check the signature of pipe.
52944 2010-12-10  Bruno Haible  <bruno@clisp.org>
52946         Rename module 'pipe' to 'spawn-pipe'.
52947         * modules/spawn-pipe: New file, renamed from modules/pipe.
52948         (Files, configure.ac, Makefile.am): Update.
52949         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
52950         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
52951         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
52952         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
52953         "spawn-pipe.h" instead of "pipe.h".
52954         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
52955         to gl_SPAWN_PIPE.
52956         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
52957         (Files, Makefile.am): Update.
52958         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
52959         Update.
52960         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
52961         Include "spawn-pipe.h" instead of "pipe.h".
52962         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
52963         * lib/javacomp.c: Likewise.
52964         * lib/javaversion.c: Likewise.
52965         * lib/pipe-filter-gi.c: Likewise.
52966         * lib/pipe-filter-ii.c: Likewise.
52967         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
52968         * modules/javacomp (Depends-on): Likewise.
52969         * modules/javaversion (Depends-on): Likewise.
52970         * modules/pipe-filter-gi (Depends-on): Likewise.
52971         * modules/pipe-filter-ii (Depends-on): Likewise.
52972         * MODULES.html.sh (Executing programs): Update.
52973         * NEWS: Mention the change.
52975 2010-12-10  Eric Blake  <eblake@redhat.com>
52977         pipe-posix: new module
52978         * modules/pipe-posix: New file.
52979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
52980         (gl_UNISTD_H): Check for declaration.
52981         * modules/unistd (Makefile.am): Substitute it.
52982         * lib/unistd.in.h (pipe): Provide it for mingw.
52983         * doc/posix-functions/pipe.texi (pipe): Update documentation.
52984         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
52986 2010-12-07  Bruno Haible  <bruno@clisp.org>
52988         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
52989         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
52990         u8_strcmp_gnu.
52991         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
52993 2010-12-06  Bruno Haible  <bruno@clisp.org>
52995         Update internal documentation.
52996         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
52998 2010-12-04  Bruno Haible  <bruno@clisp.org>
53000         Put more information about failed tests into the test return codes.
53001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
53002         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
53003         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53004         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
53005         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
53006         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53007         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53008         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
53009         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
53010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53011         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
53012         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
53013         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
53014         * m4/stdint.m4 (gl_STDINT_H): Likewise.
53015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
53016         returns a bit mask.
53017         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
53018         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
53019         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
53020         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
53021         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
53022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
53023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
53024         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
53025         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
53026         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
53027         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
53028         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
53029         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
53030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
53031         * m4/link.m4 (gl_FUNC_LINK): Likewise.
53032         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
53033         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
53034         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
53035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
53036         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
53037         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53038         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
53039         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
53040         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
53041         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
53042         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
53043         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
53044         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
53045         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
53046         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
53047         gl_PRINTF_PRECISION): Likewise.
53048         * m4/regex.m4 (gl_REGEX): Likewise.
53049         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
53050         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
53051         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
53052         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
53053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53054         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53055         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
53056         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
53057         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53058         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53059         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
53060         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
53061         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
53062         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
53063         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
53064         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
53065         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
53066         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
53067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53068         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
53069         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
53070         enumerated value.
53071         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
53073 2010-12-04  Bruno Haible  <bruno@clisp.org>
53075         Update for Solaris 11 2010-11.
53076         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
53077         Express, released in November 2010.
53079 2010-12-04  Bruno Haible  <bruno@clisp.org>
53081         nproc: Relax license.
53082         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
53083         and Paul Eggert.
53084         Requested by Ludovic Courtès <ludo@gnu.org>.
53086 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53088         utimecmp: fine-grained src to nearby coarse-grained dest
53090         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
53091         and the source is on a file system with higher-resolution time
53092         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
53093         not work, and the time stamps are close together, the algorithm to
53094         determine the exact resolution from the read-back mtime was buggy:
53095         it had a "!=" where it should have had an "==".  This bug has been
53096         in the code ever since it was introduced to gnulib.
53097         Problem reported by Dan Jacobson in
53098         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
53100 2010-11-30  Bruno Haible  <bruno@clisp.org>
53102         strerror_r-posix: Fix autoconf test.
53103         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
53105 2010-11-28  Bruno Haible  <bruno@clisp.org>
53106             Paul Eggert  <eggert@cs.ucla.edu>
53108         Tests for module 'getdomainname'.
53109         * modules/getdomainname-tests: New file.
53110         * tests/test-getdomainname.c: New file, based on
53111         tests/test-gethostname.c.
53113 2010-11-28  Bruno Haible  <bruno@clisp.org>
53114             Paul Eggert  <eggert@cs.ucla.edu>
53116         getdomainname: Use the system function when possible.
53117         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
53118         (getdomainname): Replace if needed. Provide the declaration if it is
53119         missing. Don't use _GL_CXXALIAS_SYS_CAST.
53120         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
53121         (getdomainname): When the system has getdomainname, call the system
53122         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
53123         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53124         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
53125         found in libnsl. Look for the declaration also in <netdb.h>. Replace
53126         the function if its second argument is of type 'int' or if it is found
53127         in libnsl.
53128         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
53129         <sys/systeminfo.h> and sysinfo().
53130         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
53131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53132         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
53133         HAVE_GETDOMAINNAME.
53134         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
53135         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
53136         * doc/glibc-functions/getdomainname.texi: Document the problems with
53137         the getdomainname declaration.
53139 2010-11-28  Bruno Haible  <bruno@clisp.org>
53141         sys_socket: Ensure ss_family field on AIX.
53142         * lib/sys_socket.in.h (ss_family): New macro definition.
53143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
53144         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
53145         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53146         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
53147         * modules/sys_socket (Makefile.am): Substitute
53148         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
53149         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
53151 2010-11-27  Bruno Haible  <bruno@clisp.org>
53153         readline: Improve configure output.
53154         * m4/readline.m4 (gl_FUNC_READLINE): Make the
53155         "checking for readline..." result understandable.
53157 2010-11-27  Bruno Haible  <bruno@clisp.org>
53159         *printf-posix: Detect a bug on Solaris 10/x86.
53160         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
53161         for floating-point output.
53162         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
53163         directive.
53164         * tests/test-snprintf-posix.h (test_function): Likewise.
53165         * tests/test-sprintf-posix.h (test_function): Likewise.
53166         * tests/test-vasprintf-posix.c (test_function): Likewise.
53167         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
53168         * doc/posix-functions/printf.texi: Likewise.
53169         * doc/posix-functions/snprintf.texi: Likewise.
53170         * doc/posix-functions/sprintf.texi: Likewise.
53171         * doc/posix-functions/vfprintf.texi: Likewise.
53172         * doc/posix-functions/vprintf.texi: Likewise.
53173         * doc/posix-functions/vsnprintf.texi: Likewise.
53174         * doc/posix-functions/vsprintf.texi: Likewise.
53175         * doc/glibc-functions/obstack_printf.texi: Likewise.
53176         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
53178 2010-11-27  Bruno Haible  <bruno@clisp.org>
53180         Fix link error when module libunistring-optional is in use.
53181         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
53182         * modules/striconveha-tests (Makefile.am): Likewise.
53184 2010-11-27  Bruno Haible  <bruno@clisp.org>
53186         regex: Mention link dependencies.
53187         * modules/regex (Link): New section.
53188         * modules/rpmatch (Link): Likewise.
53189         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
53191 2010-11-27  Bruno Haible  <bruno@clisp.org>
53193         ftoastr: Fix compilation error on Solaris.
53194         * lib/ftoastr.c: Include <config.h>.
53196 2010-11-27  Bruno Haible  <bruno@clisp.org>
53198         getloadavg: Update documentation.
53199         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
53201 2010-11-27  Bruno Haible  <bruno@clisp.org>
53203         sys_socket: Fix test whether the functions are declared.
53204         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
53205         not <sys/select.h>.
53207 2010-11-27  Bruno Haible  <bruno@clisp.org>
53209         getpass: Make sure to get system declaration on some platforms.
53210         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
53211         gl_USE_SYSTEM_EXTENSIONS.
53212         * modules/getpass (Depends-on): Add extensions.
53214 2010-11-26  Bruno Haible  <bruno@clisp.org>
53216         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
53217         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
53218         'iconv' module is present.
53219         (ICONV_CONST): New macro.
53220         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
53221         ICONV_CONST.
53222         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
53223         set ICONV_CONST.
53224         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
53225         here.
53226         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
53227         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
53228         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
53229         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
53230         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
53231         present.
53233 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53235         ftoastr: comment fix
53236         * lib/ftoastr.c: "little" -> "little or no" in comment
53238 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
53240         stdint: port to GCC 4.3 + OSX + Octave
53241         On this platform, stdint.h is buggy and defines int64_t to long
53242         long int.  The replacement defined it to long int, causing
53243         problems with C++ style name mangling.  Instead, trust the system
53244         definition if INT64_MAX is defined, and likewise for the unsigned
53245         variant.   Problem reported by Jarno Rajahalme in
53246         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
53247         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
53248         and don't mess with int64_t and INT64_MAX in this case.
53249         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
53251 2010-11-24  Bruno Haible  <bruno@clisp.org>
53253         doc: Corrections regarding MacOS X 10.4 and 10.5.
53254         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
53255         MacOS X.
53256         Reported by Simon Josefsson.
53258 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
53260         Uninstall ".bin" files installed by relocwrapper.
53261         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
53262         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
53263         unless it is already there.
53265 2010-11-21  Bruno Haible  <bruno@clisp.org>
53267         Update for NetBSD 5.0.
53268         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
53269         NetBSD; the test fails on NetBSD 5.0.
53270         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
53271         about NetBSD.
53273 2010-11-21  Bruno Haible  <bruno@clisp.org>
53275         Update for HP-UX 11.23 and HP-UX 11.31.
53276         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
53277         HP-UX.
53279 2010-11-21  Bruno Haible  <bruno@clisp.org>
53281         Update for MacOS X 10.5.
53282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
53283         MacOS X; the test fails on MacOS X 10.5.8.
53284         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
53285         about MacOS X.
53287 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
53289         bootstrap: add bootstrap_sync option.
53290         See discussion at
53291         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
53292         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
53293         * build-aux/bootstrap: Accept --bootstrap-sync to update
53294         bootstrap if it is not identical to the local gnulib's
53295         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
53296         enable this by default.  Accept --no-bootstrap-sync to disable
53297         it.
53299 2010-11-20  Bruno Haible  <bruno@clisp.org>
53301         Ensure that <features.h> is included before __GLIBC__ is tested.
53302         * lib/printf-parse.h: Include <features.h>.
53303         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
53304         Reported by Mike Frysinger <vapier@gentoo.org>.
53306         Ensure that <features.h> is included before __GLIBC__ is tested.
53307         * lib/wchar.in.h: Include <features.h>.
53308         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
53309         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
53310         Reported by Mike Frysinger <vapier@gentoo.org>.
53312         Ensure that <features.h> is included before __GLIBC__ is tested.
53313         * lib/arpa_inet.in.h: Include <features.h>.
53314         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
53315         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
53316         Reported by Mike Frysinger <vapier@gentoo.org>.
53318         Ensure that <features.h> is included before __GLIBC__ is tested.
53319         * build-aux/link-warning.h: Include <features.h>.
53320         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
53321         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
53322         Reported by Mike Frysinger <vapier@gentoo.org>.
53324         Ensure that <features.h> is included before __GLIBC__ is tested.
53325         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
53326         Reported by Mike Frysinger <vapier@gentoo.org>.
53328 2010-11-20  Bruno Haible  <bruno@clisp.org>
53330         memmem: Fix autoconf test.
53331         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
53333 2010-11-20  Bruno Haible  <bruno@clisp.org>
53335         Port to uClibc.
53336         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
53337         * lib/fcntl.in.h: Likewise.
53338         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
53339         * lib/mbrtowc.c (mbrtowc): Likewise.
53340         * lib/relocatable.c (find_shared_library_fullname): Likewise.
53341         * lib/strerror_r.c: Likewise.
53342         * lib/unistr/u8-strnlen.c: Likewise.
53343         * lib/vasnprintf.c (decimal_point_char): Likewise.
53344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
53345         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
53346         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
53347         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
53348         * tests/test-sigaction.c (handler, main): Likewise.
53349         * lib/freading.h: Treat uClibc like a non-glibc platform.
53350         * lib/freading.c: Likewise.
53351         * lib/gettext.h: Likewise.
53352         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
53353         Likewise.
53354         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
53355         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
53356         * lib/propername.c (proper_name_utf8): Likewise.
53357         * lib/spawn.in.h: Likewise.
53358         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
53359         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
53360         mem_cd_iconveh_internal): Likewise.
53361         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
53362         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
53363         strstr, strcasestr): Likewise.
53364         * lib/unicodeio.c (unicode_to_mb): Likewise.
53365         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
53366         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
53367         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
53368         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
53369         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
53370         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
53371         * lib/unistr/u8-stpncpy.c: Likewise.
53372         * lib/vasnprintf.c (VASNPRINTF): Likewise.
53373         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
53374         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53375         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53376         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
53377         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
53378         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
53379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
53380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53381         Likewise.
53382         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
53383         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53384         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
53385         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53386         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
53387         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
53388         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
53389         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
53390         * tests/test-getopt.h (OPTIND_MIN): Likewise.
53391         * tests/test-striconveha.c (main): Likewise.
53392         * tests/test-vasnprintf-posix.c (test_function): Likewise.
53393         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
53394         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
53395         * doc/posix-functions/getline.texi: Likewise.
53396         Reported by Mike Frysinger <vapier@gentoo.org>.
53398 2010-11-20  Bruno Haible  <bruno@clisp.org>
53400         nproc: Fix condition.
53401         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
53402         HAVE_PTHREAD_AFFINITY_NP.
53404 2010-11-20  Bruno Haible  <bruno@clisp.org>
53406         Fix a comment.
53407         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
53409 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
53411         ftoastr: don't assume snprintf
53412         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
53413         Implement a subset of snprintf here, by using sprintf safely.
53414         * modules/ftoastr (Depends-on): Remove snprintf.
53416 2010-11-19  Jim Meyering  <meyering@redhat.com>
53418         test-rename.h: fix compilation failure
53419         * tests/test-rename.h (test_rename): Add omitted "}".
53421 2010-11-17  Jim Meyering  <meyering@redhat.com>
53423         maint.mk: add a URL discussing the no-@acronym policy
53424         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
53426 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
53428         ftoastr: depend on snprintf, improve comments
53429         * lib/ftoastr.c: Also mention Loitsch's draft.
53430         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
53431         needed in the current implementation, but it might simplify
53432         speeding up the code later.
53433         * modules/ftoastr: Depend on snprintf; this improves portability.
53434         Suggested by Bruno Haible in the same email.
53436         ftoastr: port to hosts lacking strtof and strtold
53437         Problem reported by Bruno Haible in
53438         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
53439         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
53440         environment and strtold (and presumably strtof) are not available.
53441         * modules/ftoastr (Files): Add m4/c-strtod.m4.
53442         (configure.ac): Require gl_C99_STRTOLD.
53444 2010-11-18  Bruno Haible  <bruno@clisp.org>
53446         c-strtold: Avoid link error on AIX 7.
53447         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
53448         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
53449         (gl_C_STRTOLD): Test whether strtold_l exists.
53450         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53452 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
53454         intprops: new macro INT_BITS_STRLEN_BOUND
53455         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
53456         ftoastr.h.  This exposes an internal of intprops.h that was formerly
53457         not exposed.  Also, it uses a slightly tighter bound than before;
53458         though this makes no practical difference, we might as well be as
53459         tight as we easily can.
53461         ftoastr: new module, for lossless conversion of floats to short strings
53462         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
53463         * modules/ftoastr: New files.
53465 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53467         bootstrap: port to Solaris sed
53468         * build-aux/bootstrap (get_version): Port to Solaris sed.
53469         See Ralf Wildenhues's note in
53470         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
53472 2010-11-14  Jim Meyering  <meyering@redhat.com>
53474         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
53475         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
53476         and move definition closer to sole use.
53478 2010-11-13  Jim Meyering  <meyering@redhat.com>
53480         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
53481         Now we require at least autoconf-2.59, which means the work-around
53482         is no longer needed.
53483         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
53484         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53486         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
53487         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53489 2010-11-13  Bruno Haible  <bruno@clisp.org>
53491         rename, renameat: Avoid test failures at NFS mounted locations.
53492         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
53493         functions.
53494         (test_rename): Use assert_nonexistent.
53495         * tests/test-rename.c: Include <dirent.h>.
53496         * tests/test-renameat.c: Likewise.
53497         Reported by Gary V. Vaughan <gary@gnu.org>.
53499         rename, renameat: Document Linux bug with NFS
53500         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
53501         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
53502         * doc/posix-functions/renameat.texi: Likewise.
53503         Suggested by Eric Blake.
53505 2010-11-13  Bruno Haible  <bruno@clisp.org>
53507         rename test: Add comments.
53508         * tests/test-rename.h (test_rename): Add structure and comments.
53510 2010-11-13  Eric Blake  <eblake@redhat.com>
53512         maintainer-makefile: cover a few more files
53513         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
53514         scripts generated within C files, for libvirt.
53516 2010-11-13  Bruno Haible  <bruno@clisp.org>
53518         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
53519         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
53520         character, return the number of bytes that belong together, not always
53521         1.
53522         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
53523         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
53524         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
53525         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
53526         number of bytes of an invalid character.
53527         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
53528         (main): Invoke it.
53529         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
53530         results.
53531         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
53532         malformed byte sequences.
53533         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
53534         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
53535         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
53536         Reported by Ben Pfaff and Paolo Bonzini.
53538 2010-11-13  Bruno Haible  <bruno@clisp.org>
53540         openat: Work around glibc bug with fchownat() and empty file names.
53541         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
53542         (gl_FUNC_FCHOWNAT): Invoke it.
53543         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
53544         * doc/posix-functions/fchownat.texi: Document the glibc bug.
53545         Reported by Gary V. Vaughan <gary@gnu.org>.
53547 2010-11-13  Bruno Haible  <bruno@clisp.org>
53549         openat: Ensure autoconf macro ordering.
53550         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
53551         gl_USE_SYSTEM_EXTENSIONS.
53552         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
53554 2010-11-13  Bruno Haible  <bruno@clisp.org>
53556         Update comments.
53557         * lib/unistr/u8-check.c: Update file name in comments.
53558         * lib/unistr/u8-mblen.c: Likewise.
53559         * lib/unistr/u8-prev.c: Likewise.
53560         * lib/unistr/u8-strmblen.c: Likewise.
53561         * lib/unistr/u8-strmbtouc.c: Likewise.
53563 2010-11-13  Jim Meyering  <meyering@redhat.com>
53565         tests: avoid test failure on Solaris 10 due to lack of PATH export
53566         * tests/test-update-copyright.sh: Don't forget to export PATH.
53568         init.sh: ensure that IFS is defined, just in case...
53569         * tests/init.sh (setup_): Ensure that IFS is defined,
53570         so that saving and restoring it works as expected.  This
53571         appears to be useful at least for an old version of dash
53572         from a long time ago (RH 6).  See here for details:
53573         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
53575         maint.mk: tighten "test a == b" check
53576         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
53577         test to files that contain something like #!/bin/sh.
53578         Without this, coreutils would get two false positives in
53579         the comments of C source files.
53581 2010-11-12  Eric Blake  <eblake@redhat.com>
53583         bootstrap: fix typo in previous attempt
53584         * build-aux/bootstrap (buildreq): Correct the grouping.
53585         Reported by Paul Eggert.
53587         maintainer-makefile: prohibit test x == x
53588         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
53589         Based on a report by Matthias Bolte.
53591         bootstrap: allow FreeBSD gzip
53592         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
53593         which has no '.' and goes to stderr.
53594         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
53595         Reported by Matthias Bolte.
53597         maintainer-makefile: check for i18n setup
53598         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
53599         will likely work.
53601 2010-11-12  Bruno Haible  <bruno@clisp.org>
53603         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
53604         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
53605         * lib/nanosleep.c (nanosleep): Likewise.
53607 2010-11-11  Bruno Haible  <bruno@clisp.org>
53609         fcntl-h: Fix for use of C++ on glibc systems.
53610         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
53611         also on glibc systems in C++ mode.
53612         Reported by Gary V. Vaughan <gary@gnu.org>.
53614 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
53616         mknod: avoid false failure with dash
53617         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
53619 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
53621         unlink: Fix "is it should" typo in diagnostic.
53622         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
53623         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
53625 2010-11-11  Bruno Haible  <bruno@clisp.org>
53627         Tests for module 'strerror_r-posix'.
53628         * modules/strerror_r-posix-tests: New file.
53629         * tests/test-strerror_r.c: New file.
53630         * tests/test-string-c++.cc: Check the signature of strerror_r.
53632         New module 'strerror_r-posix'.
53633         * lib/string.in.h (strerror_r): New declaration.
53634         * lib/strerror_r.c: New file.
53635         * m4/strerror_r.m4: New file.
53636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
53637         of strerror_r.
53638         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
53639         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
53640         * modules/strerror_r-posix: New file.
53641         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
53642         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
53643         * doc/posix-functions/strerror_r.texi: Mention the new module and the
53644         portability problems.
53646 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
53648         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
53649         line is also considered for output. Quoted function name in shell
53650         command, so temporary files for functions like MyClass::operator()
53651         are removed correctly without errors.
53653 2010-11-09  Bruno Haible  <bruno@clisp.org>
53655         * doc/posix-functions/strerror.texi: List more failing platforms.
53657         * doc/posix-functions/strerror.texi: Add a comment.
53659 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
53661         fdopendir: fix bug on MacOS X when low on file descriptors
53663         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
53664         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
53665         All callers changed.
53666         (fdopendir): Invoke save_cwd at the top level, not after using
53667         multiple dup() calls to use up file descriptors.  Then retry
53668         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
53669         less than the maximum number of open file descriptors, because
53670         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
53671         on Mac OS X 10.6.4 for tar 1.24
53672         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
53673         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
53674         and for tar 1.25
53675         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
53677 2010-11-07  Bruno Haible  <bruno@clisp.org>
53679         vasnprintf: Support I flag on glibc systems.
53680         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
53681         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
53682         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
53683         snprintf function.
53684         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
53685         glibc systems.
53686         * tests/test-vasnprintf-posix3.c: New file.
53687         * modules/vasnprintf-posix-tests (Files): Add it.
53688         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
53690 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53692         [html] Fix copy/paste bug: Use unique name for compiler warnings.
53693         * MODULES.html.sh: For compiler warnings, use name
53694         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
53696 2010-11-05  Eric Blake  <eblake@redhat.com>
53698         ceil, floor: avoid spurious failure with icc
53699         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
53700         [denormals-as-zero] when optimizing without -mieee-fp option.
53701         * tests/test-floorf2.c (floorf_reference): Likewise.
53702         * tests/test-ceilf1.c (dummy): New function.
53703         (main): Use it to outsmart icc's optimization.
53704         * tests/test-floorf1.c (dummy, main): Likewise.
53706         tests: require working signbit
53707         * modules/ceilf-tests (Depends-on): Add signbit.
53708         * modules/ceill-tests (Depends-on): Likewise.
53709         * modules/floorf-tests (Depends-on): Likewise.
53710         * modules/floorl-tests (Depends-on): Likewise.
53711         * modules/round-tests (Depends-on): Likewise.
53712         * modules/roundf-tests (Depends-on): Likewise.
53713         * modules/roundl-tests (Depends-on): Likewise.
53714         * modules/trunc-tests (Depends-on): Likewise.
53715         * modules/truncf-tests (Depends-on): Likewise.
53716         * modules/truncl-tests (Depends-on): Likewise.
53718         strtod: work around icc bug
53719         * lib/strtod.c (minus_zero): Define to working value.
53720         (strtod): Use it to avoid icc bug.
53722         copysign: enhance tests
53723         * modules/copysign-tests (Files): Add minus-zero.h.
53724         * tests/test-copysign.c (main): Also test zeros.
53726 2010-11-04  Eric Blake  <eblake@redhat.com>
53728         ceil, floor, round, trunc: enhance tests of -0
53729         * tests/test-ceilf1.c (main): Ensure correct sign of result.
53730         * tests/test-ceill.c (main): Likewise.
53731         * tests/test-floorf1.c (main): Likewise.
53732         * tests/test-floorl.c (main): Likewise.
53733         * tests/test-round1.c (main): Likewise.
53734         * tests/test-roundf1.c (main): Likewise.
53735         * tests/test-roundl.c (main): Likewise.
53736         * tests/test-trunc1.c (main): Likewise.
53737         * tests/test-truncf1.c (main): Likewise.
53738         * tests/test-truncl.c (main): Likewise.
53740 2010-11-04  Eric Blake  <eblake@redhat.com>
53742         frexp, tests: work around ICC bug with -zero
53743         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
53744         works with more compilers.
53745         * tests/minus-zero.h: New file.
53746         * modules/ceilf-tests (Files): Include it.
53747         * modules/ceill-tests (Files): Likewise.
53748         * modules/floorf-tests (Files): Likewise.
53749         * modules/floorl-tests (Files): Likewise.
53750         * modules/frexp-nolibm-tests (Files): Likewise.
53751         * modules/frexp-tests (Files): Likewise.
53752         * modules/frexpl-nolibm-tests (Files): Likewise.
53753         * modules/frexpl-tests (Files): Likewise.
53754         * modules/isnan-tests (Files): Likewise.
53755         * modules/isnand-nolibm-tests (Files): Likewise.
53756         * modules/isnand-tests (Files): Likewise.
53757         * modules/isnanf-nolibm-tests (Files): Likewise.
53758         * modules/isnanf-tests (Files): Likewise.
53759         * modules/isnanl-nolibm-tests (Files): Likewise.
53760         * modules/isnanl-tests (Files): Likewise.
53761         * modules/round-tests (Files): Likewise.
53762         * modules/roundf-tests (Files): Likewise.
53763         * modules/roundl-tests (Files): Likewise.
53764         * modules/ldexpl-tests (Files): Likewise.
53765         * modules/signbit-tests (Files): Likewise.
53766         * modules/snprintf-posix-tests (Files): Likewise.
53767         * modules/sprintf-posix-tests (Files): Likewise.
53768         * modules/strtod-tests (Files): Likewise.
53769         * modules/trunc-tests (Files): Likewise.
53770         * modules/truncf-tests (Files): Likewise.
53771         * modules/truncl-tests (Files): Likewise.
53772         * modules/vsnprintf-posix-tests (Files): Likewise.
53773         * modules/vsprintf-posix-tests (Files): Likewise.
53774         * modules/vasnprintf-posix-tests (Files): Likewise.
53775         * modules/vasprintf-posix-tests (Files): Likewise.
53776         * tests/test-ceilf1.c (main): Use it.
53777         * tests/test-ceill.c (main): Likewise.
53778         * tests/test-floorf1.c (main): Likewise.
53779         * tests/test-floorl.c (main): Likewise.
53780         * tests/test-frexp.c (main): Likewise.
53781         * tests/test-frexpl.c (main): Likewise.
53782         * tests/test-isnan.c (main): Likewise.
53783         * tests/test-isnand.h (main): Likewise.
53784         * tests/test-isnanf.h (main): Likewise.
53785         * tests/test-isnanl.h (main): Likewise.
53786         * tests/test-ldexpl.c (main): Likewise.
53787         * tests/test-round.c (main): Likewise.
53788         * tests/test-roundf.c (main): Likewise.
53789         * tests/test-roundl.c (main): Likewise.
53790         * tests/test-signbit.c (test_signbitf, test_signbitd)
53791         (test_signbitl): Likewise.
53792         * tests/test-snprintf-posix.h (test_function): Likewise.
53793         * tests/test-sprintf-posix.h (test_function): Likewise.
53794         * tests/test-strtod.c (main): Likewise.
53795         * tests/test-trunc1.c (main): Likewise.
53796         * tests/test-truncf1.c (main): Likewise.
53797         * tests/test-truncl.c (main): Likewise.
53799         isnanl: work around icc bug
53800         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
53802 2010-11-03  Eric Blake  <eblake@redhat.com>
53804         tests: fix compiler warnings
53805         * tests/test-getopt.h (test_getopt): Fix condition.
53806         * tests/test-getopt_long.h (test_getopt_long): Likewise.
53807         * tests/test-pipe2.c (main): Likewise.
53808         * tests/test-quotearg-simple.c (main): Avoid icc warning.
53810         utimens: fix broken m4 test
53811         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
53813 2010-10-28  Bruno Haible  <bruno@clisp.org>
53815         posix_spawn*, getdtablesize: Relax license.
53816         * modules/posix_spawn (License): Change to LGPLv2+.
53817         * modules/posix_spawnp (License): Likewise.
53818         * modules/posix_spawn-internal (License): Likewise.
53819         * modules/posix_spawnattr_init (License): Likewise.
53820         * modules/posix_spawnattr_getflags (License): Likewise.
53821         * modules/posix_spawnattr_setflags (License): Likewise.
53822         * modules/posix_spawnattr_getpgroup (License): Likewise.
53823         * modules/posix_spawnattr_setpgroup (License): Likewise.
53824         * modules/posix_spawnattr_getschedparam (License): Likewise.
53825         * modules/posix_spawnattr_setschedparam (License): Likewise.
53826         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
53827         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
53828         * modules/posix_spawnattr_getsigdefault (License): Likewise.
53829         * modules/posix_spawnattr_setsigdefault (License): Likewise.
53830         * modules/posix_spawnattr_getsigmask (License): Likewise.
53831         * modules/posix_spawnattr_setsigmask (License): Likewise.
53832         * modules/posix_spawnattr_destroy (License): Likewise.
53833         * modules/posix_spawn_file_actions_init (License): Likewise.
53834         * modules/posix_spawn_file_actions_addclose (License): Likewise.
53835         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
53836         * modules/posix_spawn_file_actions_addopen (License): Likewise.
53837         * modules/posix_spawn_file_actions_destroy (License): Likewise.
53838         * modules/getdtablesize (License): Likewise.
53839         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
53841 2010-10-26  Bruno Haible  <bruno@clisp.org>
53843         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
53844         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
53845         Cygwin and mingw.
53846         Suggested by Eric Blake.
53848 2010-10-26  Bruno Haible  <bruno@clisp.org>
53850         stdio: Work around compilation error due to renameat() on Solaris 10.
53851         * lib/stdio.in.h: Include <unistd.h> on Solaris.
53852         * lib/renameat.c: Don't include <unistd.h> here.
53853         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
53854         Reported by Paul Eggert and Eric Blake.
53856 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
53858         renameat: port to Solaris 10, which declares renameat in unistd.h
53860         * lib/renameat.c: Include unistd.h before stdio.h, because
53861         Solaris 10 declares renameat in unistd.h.  Problem encountered
53862         when building GNU tar 1.24 on Solaris 10.
53864 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
53866         fdopendir: fix C89 compilation
53867         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
53868         compilers.
53870 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
53872         inttostr: simplify by removing unnecessary redundancy
53873         * lib/anytostr.c: Don't include verify.h.
53874         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
53875         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
53876         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
53877         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
53878         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
53879         Likewise.
53880         * modules/inttostr (Depends-on): Remove 'verify'.
53882 2010-10-23  Bruno Haible  <bruno@clisp.org>
53884         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
53885         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
53886         Reported by Eric Blake.
53888 2010-10-23  Bruno Haible  <bruno@clisp.org>
53890         Tests: Fix LOCALE_JA on MirBSD 10.
53891         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
53892         to an UTF-8 locale.
53893         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
53894         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
53895         Reported by Eric Blake.
53897 2010-10-21  Bruno Haible  <bruno@clisp.org>
53899         nl_langinfo test: Avoid test failure on NetBSD 5.
53900         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
53901         Reported by Eric Blake.
53903 2010-10-21  Eric Blake  <eblake@redhat.com>
53905         c-stack: work around libsigsegv 2.8 bug
53906         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
53907         overflow on at least PowerPC64.
53909 2010-10-17  Bruno Haible  <bruno@clisp.org>
53911         userspec: Drop redundant file.
53912         * modules/userspec (Files): Remove lib/inttostr.h.
53914 2010-10-17  Bruno Haible  <bruno@clisp.org>
53916         nl_langinfo tests: Silence some warnings.
53917         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
53918         Reported by Jim Meyering.
53920 2010-10-17  Bruno Haible  <bruno@clisp.org>
53922         Make use of GCC's attribute __alloc_size__.
53923         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
53924         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
53925         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
53926         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
53927         __alloc_size__.
53928         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53929         Suggested by Jim Meyering.
53931 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
53933         bootstrap: anchor .gitignore entries.
53934         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
53935         with...
53936         (insert_vc_ignore): ... this new function, which prepends `/' to
53937         all .gitignore entries before passing them to
53938         insert_sorted_if_absent.
53940 2010-10-16  Bruno Haible  <bruno@clisp.org>
53942         nextafter: Fix configure check.
53943         * modules/nextafter (configure.ac): Correct expected prototype.
53945 2010-10-16  Bruno Haible  <bruno@clisp.org>
53947         termios: Update documentation.
53948         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
53950 2010-10-16  Bruno Haible  <bruno@clisp.org>
53952         tests: Make them compile with TinyCC.
53953         * tests/test-strstr.c (main): Remove parentheses around array
53954         initializer.
53956 2010-10-15  Eric Blake  <eblake@redhat.com>
53958         ignore-value: make header idempotent
53959         * lib/ignore-value.h: Add double-inclusion guards.
53960         Reported by Stefan Berger.
53962 2010-10-15  Jim Meyering  <meyering@redhat.com>
53964         GNUmakefile: handle "stable" target, not "major"
53965         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
53966         lists in maint.mk and announce-gen.  Without this, "make stable"
53967         would fail to ensure that $(VERSION) is up to date.
53969 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
53971         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
53972         & co.
53974 2010-10-14  Bruno Haible  <bruno@clisp.org>
53976         vasnprintf: Don't set errno to 0.
53977         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
53978         block that sets it to 0.
53979         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
53981 2010-10-14  Bruno Haible  <bruno@clisp.org>
53983         socketlib: Fix.
53984         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
53985         gl_PREREQ_SYS_H_WINSOCK2.
53986         Reported by Ian Beckwith <ianb@erislabs.net>.
53988 2010-10-13  Jim Meyering  <meyering@redhat.com>
53990         test-select-stdin.c: avoid warn_unused_result warnings
53991         * tests/test-select-stdin.c: Include "macros.h".
53992         ASSERT that read and fflush succeed.
53994 2010-10-13  Jim Meyering  <meyering@redhat.com>
53996         git-version-gen: do require git-VC'd files in cwd
53997         * build-aux/git-version-gen: Reject a git version string
53998         if there are no commits associated with the current directory.
53999         This avoids an unlikely false-positive (unrelated dir whose parent
54000         repository also contains a tag matching v*), as pointed out
54001         by Giuseppe Scrivano in
54002         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
54004 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54006         argv-iter: omit nonconforming declaration
54007         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
54008         enum arg_iter_err declaration, which doesn't conform to C99.
54009         Solaris 10 cc warns about this.
54011 2010-10-13  Eric Blake  <eblake@redhat.com>
54013         termios: fix compilation on mingw
54014         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
54015         (gl_TERMIOS_H): Adjust it on mingw.
54016         * modules/termios (Makefile.am): Substitute new key.
54017         * lib/termios.in.h (includes): Make include_next conditional.
54018         * doc/posix-headers/termios.texi (termios.h): Update
54019         documentation.
54020         Reported by Daniel P. Berrange.
54022 2010-10-13  Jim Meyering  <meyering@redhat.com>
54024         git-version-gen: don't require that .git/ be in the current dir
54025         * build-aux/git-version-gen: Adjust this script so that it works
54026         when run from any working directory beneath the top-level .git/-
54027         containing directory.  Inspired by a patch from Giuseppe Scrivano,
54028         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
54030         test-select: avoid warn_unused_result warnings
54031         * tests/test-select.c: Include "macros.h".
54032         ASSERT that each call to read, write, and pipe succeeds.
54033         While not technically required, also check each "close".
54034         * modules/select-tests (Files): Add tests/macros.h.
54036         test-symlinkat: remove declaration of unused local
54037         * tests/test-symlinkat.c (main): Remove unused local, "buf".
54039         test-inttostr: avoid shadowing warnings
54040         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
54041         and use malloc rather than the stack for the same reason as
54042         mentioned in the comment justifying the other allocation.
54044 2010-10-11  Bruno Haible  <bruno@clisp.org>
54046         stdlib: Allow multiple gnulib generated replacements to coexist.
54047         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
54048         Reported by Sam Steingold <sds@gnu.org>.
54050 2010-10-11  Jim Meyering  <meyering@redhat.com>
54052         fix a documentation typo
54053         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
54055 2010-10-11  Eric Blake  <eblake@redhat.com>
54057         futimens: work around Solaris 11 bug
54058         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
54059         * tests/test-futimens.h (test_futimens): Enhance, rather than
54060         weaken test.
54061         * doc/posix-functions/futimens.texi (futimens): Document the bug.
54063 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
54065         Indentation.
54066         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
54067         higher-level operators more to the left.
54069 2010-10-11  Jim Meyering  <meyering@redhat.com>
54071         test-futimens: avoid unwarranted test failure on Solaris 5.11
54072         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
54073         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
54074         because it tries to dereference the NULL name argument.
54076 2010-10-11  Bruno Haible  <bruno@clisp.org>
54078         Indentation.
54079         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
54080         indentation.
54082 2010-10-11  Jim Meyering  <meyering@redhat.com>
54084         spawn.in.h: make indentation consistent with parentheses
54085         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
54086         Make indentation consistent with parentheses.
54088 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
54090         Fix mismatched parens in previous commit
54091         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
54092         parens.
54094 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54096         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
54098         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
54099         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
54100         * lib/malloca.c: Include "verify.h".
54101         (verify1): Remove, replacing with a verify call.
54102         * lib/relocwrapper.c (verify1): Likewise.
54103         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
54104         Likewise.
54105         * modules/malloca (Depends-on): Add 'verify'.
54106         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
54107         * modules/vasnprintf (Depends-on): Add 'verify'.
54108         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54110         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54111         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54112         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54113         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54114         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54116         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
54118         Formerly the style was sometimes 2*X - 1, because the C standard
54119         was wrongly thought to disallow ?: in integral constant expressions.
54120         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
54121         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
54122         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
54123         * lib/stdint.in.h (_verify_intmax_size): Likewise.
54124         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
54125         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
54126         verify that time_t cannot be floating.
54128 2010-10-08  Eric Blake  <eblake@redhat.com>
54130         time: enforce recent POSIX ruling that time_t is integral
54131         * lib/time.in.h (__time_t_must_be_integral): Detect any
54132         problematic systems, allowing the rest of gnulib to assume POSIX.
54134 2010-10-08  Jim Meyering  <meyering@redhat.com>
54136         fdopendir: fix a bug on systems lacking openat and /proc support
54137         OpenBSD 4.7 is one such system.  The most noticeable effect was
54138         failure of any application making nontrivial use of fts: rm, du,
54139         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
54140           ./rm: traversal failed: `a': Bad file descriptor
54141         Debugging that, you see that even though FD 6 was closed just
54142         prior to the opendir call in fd_clone_opendir, its resulting
54143         dir->dd_fd was 8, rather than the expected value of 6:
54145         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
54146         93                close (fd);
54147         (gdb) n
54148         94                dir = fd_clone_opendir (dupfd);
54149         (gdb) n
54150         95                saved_errno = errno;
54151         (gdb) p dir->dd_fd
54152         $11 = 8
54154         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
54155         The problem is that on OpenBSD, fd_clone_opendir has to resort
54156         to using the old-style save/restore CWD mechanism, due to its
54157         lack of openat/proc support, and *that* would steal the FD (6)
54158         that opendir was supposed to use.
54160         The fix is to squirrel away the desired FD so that save_cwd uses a
54161         different one, and then free the dest FD right before calling opendir.
54162         That guarantees opendir will use the required file descriptor.
54164         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
54166 2010-10-08  Bruno Haible  <bruno@clisp.org>
54168         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
54169         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
54171 2010-10-08  Bruno Haible  <bruno@clisp.org>
54173         nanosleep: Make replacement POSIX compliant.
54174         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
54175         is out of range.
54176         Reported by Jim Meyering.
54178 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
54180         bootstrap: add hook for altering gnulib.mk, for Bison
54181         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
54182         the Bison bootstrapping process can rewrite file names and variables
54183         in this file before later parts of 'bootstrap' use the file.
54184         Bison wants to include lib/gnulib.mk from the top-level makefile,
54185         so it needs the file names in this file to be relative to the top
54186         level, not relative to lib; plus it needs variable names to be
54187         rewritten.
54188         (slurp): Use the new function.
54190         bootstrap: reformat for readability
54191         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
54193 2010-10-08  Eric Blake  <eblake@redhat.com>
54195         docs: update cygwin progress
54196         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
54197         1.7.7.
54198         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
54199         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
54200         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
54201         * doc/posix-functions/carg.texi (carg): Likewise.
54202         * doc/posix-functions/cargf.texi (cargf): Likewise.
54203         * doc/posix-functions/casin.texi (casin): Likewise.
54204         * doc/posix-functions/casinf.texi (casinf): Likewise.
54205         * doc/posix-functions/casinh.texi (casinh): Likewise.
54206         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
54207         * doc/posix-functions/catan.texi (catan): Likewise.
54208         * doc/posix-functions/catanf.texi (catanf): Likewise.
54209         * doc/posix-functions/catanh.texi (catanh): Likewise.
54210         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
54211         * doc/posix-functions/ccos.texi (ccos): Likewise.
54212         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
54213         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
54214         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
54215         * doc/posix-functions/cexp.texi (cexp): Likewise.
54216         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
54217         * doc/posix-functions/cimag.texi (cimag): Likewise.
54218         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
54219         * doc/posix-functions/clog.texi (clog): Likewise.
54220         * doc/posix-functions/clogf.texi (clogf): Likewise.
54221         * doc/posix-functions/conj.texi (conj): Likewise.
54222         * doc/posix-functions/conjf.texi (conjf): Likewise.
54223         * doc/posix-functions/cpow.texi (cpow): Likewise.
54224         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
54225         * doc/posix-functions/cproj.texi (cproj): Likewise.
54226         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
54227         * doc/posix-functions/creal.texi (creal): Likewise.
54228         * doc/posix-functions/crealf.texi (crealf): Likewise.
54229         * doc/posix-functions/csin.texi (csin): Likewise.
54230         * doc/posix-functions/csinf.texi (csinf): Likewise.
54231         * doc/posix-functions/csinh.texi (csinh): Likewise.
54232         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
54233         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
54234         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
54235         * doc/posix-functions/ctan.texi (ctan): Likewise.
54236         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
54237         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
54238         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
54239         * doc/posix-headers/complex.texi (complex.h): Likewise.
54241 2010-10-07  Jim Meyering  <meyering@redhat.com>
54243         parse-datetime: avoid compilation failure on OpenBSD 4.7
54244         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
54245         This works around a compilation failure on OpenBSD 4.7:
54246         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
54248 2010-10-07  Eric Blake  <eblake@redhat.com>
54250         docs: update cygwin progress
54251         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
54252         1.7.6.
54253         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
54254         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
54255         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
54256         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
54257         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
54258         Likewise.
54259         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
54260         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
54261         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
54262         Likewise.
54263         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
54264         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
54265         Likewise.
54266         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
54267         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
54268         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
54269         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
54270         Likewise.
54271         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
54272         Likewise.
54273         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
54275         docs: update parse-datetime history
54276         * doc/parse-datetime.texi (Authors of parse_datetime): Better
54277         documentation of this function's history and alternatives.
54279         cygwin: use more robust version check
54280         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
54281         exclude an eventual cygwin 1.9.1.
54282         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
54283         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
54284         (gl_FUNC_STRCASESTR): Likewise.
54285         Reported by Bruno Haible.
54287 2010-10-06  Bruno Haible  <bruno@clisp.org>
54289         string, sys_select: Avoid #including large headers unless necessary.
54290         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
54291         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
54292         OSF/1, BeOS, Haiku.
54293         Reported by Jim Meyering.
54295 2010-10-05  Eric Blake  <eblake@redhat.com>
54297         memmem, strstr, strcasestr: fix bug with long periodic needle
54298         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
54299         periodic needle having false positive.
54300         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
54301         and cygwin 1.7.7.
54302         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
54303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
54304         (gl_FUNC_STRCASESTR): Likewise.
54305         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
54306         * tests/test-memmem.c (main): Expose the bug.
54307         * tests/test-strcasestr.c (main): Likewise.
54308         * tests/test-strstr.c (main): Likewise.
54309         * tests/test-c-strcasestr.c (main): Likewise.
54310         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
54311         * doc/posix-functions/strstr.texi (strstr): Likewise.
54312         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54313         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
54315 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54317         parse-datetime: do some more renaming
54318         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
54319         parse_datetime, not get_date.  Mention the renaming.
54320         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
54321         in comments.
54322         * m4/bison.m4: Likewise.
54324 2010-10-05  Eric Blake  <eblake@redhat.com>
54326         parse-datetime: better name than get_date
54327         * NEWS: Reword the deprecation notice.
54328         * modules/get_date: Rename to modules/parse-datetime.
54329         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
54330         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
54331         * lib/get_date.y: Rename to lib/parse-datetime.y.
54332         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
54333         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
54334         * doc/getdate.texi: Provide fallback wrapper.
54335         * lib/getdate.h: Move guts, and wrap...
54336         * lib/parse-datetime.h: ...new file.
54337         * lib/parse-datetime.y (get_date): Rename...
54338         (parse_datetime): ...to this.
54339         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
54340         (gl_PARSE_DATETIME): ...to this.
54341         * doc/posix-functions/getdate.texi (get_date): Provide fallback
54342         documentation.
54343         * modules/getdate (Files): Provide fallback docs and header.
54344         (Notice, Depends-on): Update references.
54345         * tests/test-parse-datetime.c: Likewise.
54346         * DEPENDENCIES: Likewise.
54347         * MODULES.html.sh (Date and time <time.h>): Likewise.
54348         * doc/parse-datetime.texi (Date input formats)
54349         (Authors of parse_datetime): Likewise.
54350         * modules/parse-datetime (Files, configure.ac, Makefile.am)
54351         (Include): Likewise.
54352         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
54353         * gnulib-tool: Likewise.
54354         * m4/bison.m4 (gl_BISON): Likewise.
54355         Suggested by Bruno Haible.
54357 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54359         more ports to Solaris tr, which needs [] around ranges
54360         * gnulib-tool: Solaris tr needs [] around ranges.
54361         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
54362         * tests/test-pipe-filter-gi1.c (main): Likewise.
54363         * tests/test-pipe-filter-ii1.c (main): Likewise.
54365 2010-10-05  Eric Blake  <eblake@redhat.com>
54367         bootstrap: fix Solaris regression
54368         * build-aux/bootstrap (check_versions): Solaris tr still needs []
54369         around ranges.
54370         Reported by Pádraig Brady.
54372         bootstrap: work with pkg-config
54373         * build-aux/bootstrap (check_versions): Also transliterate - in
54374         prerequisite name.
54375         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
54376         prerequisites that were already found, to avoid confusion.
54377         Reported by Justin Clift.
54379         faccessat: remove unused wrappers
54380         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
54381         presence of these wrappers dragged in -lgen on Solaris.
54382         Reported by Clemens Brogi; fix suggested by Paul Eggert.
54384 2010-10-05  Jim Meyering  <meyering@redhat.com>
54386         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
54387         * Makefile (sc_pragma_columns): New syntax-check rule.
54389 2010-10-04  Bruno Haible  <bruno@clisp.org>
54391         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
54392         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
54393         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
54394         Reported by Bruce Korb and Eric Blake.
54396 2010-10-04  Bruno Haible  <bruno@clisp.org>
54398         threadlib: Make option --with-libpth-prefix work.
54399         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
54400         use $LIBPTH, not just -lpth.
54402 2010-10-04  Bruno Haible  <bruno@clisp.org>
54404         Avoid line length limitation from HP NonStop system header files.
54405         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
54406         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
54407         * lib/ctype.in.h: Likewise.
54408         * lib/dirent.in.h: Likewise.
54409         * lib/errno.in.h: Likewise.
54410         * lib/fcntl.in.h: Likewise.
54411         * lib/float.in.h: Likewise.
54412         * lib/getopt.in.h: Likewise.
54413         * lib/iconv.in.h: Likewise.
54414         * lib/inttypes.in.h: Likewise.
54415         * lib/langinfo.in.h: Likewise.
54416         * lib/locale.in.h: Likewise.
54417         * lib/math.in.h: Likewise.
54418         * lib/netdb.in.h: Likewise.
54419         * lib/netinet_in.in.h: Likewise.
54420         * lib/poll.in.h: Likewise.
54421         * lib/pthread.in.h: Likewise.
54422         * lib/pty.in.h: Likewise.
54423         * lib/sched.in.h: Likewise.
54424         * lib/se-selinux.in.h: Likewise.
54425         * lib/search.in.h: Likewise.
54426         * lib/signal.in.h: Likewise.
54427         * lib/spawn.in.h: Likewise.
54428         * lib/stdarg.in.h: Likewise.
54429         * lib/stddef.in.h: Likewise.
54430         * lib/stdint.in.h: Likewise.
54431         * lib/stdio.in.h: Likewise.
54432         * lib/stdlib.in.h: Likewise.
54433         * lib/string.in.h: Likewise.
54434         * lib/strings.in.h: Likewise.
54435         * lib/sys_file.in.h: Likewise.
54436         * lib/sys_ioctl.in.h: Likewise.
54437         * lib/sys_select.in.h: Likewise.
54438         * lib/sys_socket.in.h: Likewise.
54439         * lib/sys_stat.in.h: Likewise.
54440         * lib/sys_time.in.h: Likewise.
54441         * lib/sys_times.in.h: Likewise.
54442         * lib/sys_utsname.in.h: Likewise.
54443         * lib/sys_wait.in.h: Likewise.
54444         * lib/sysexits.in.h: Likewise.
54445         * lib/termios.in.h: Likewise.
54446         * lib/time.in.h: Likewise.
54447         * lib/unistd.in.h: Likewise.
54448         * lib/wchar.in.h: Likewise.
54449         * lib/wctype.in.h: Likewise.
54450         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
54451         * modules/ctype (Makefile.am): Likewise.
54452         * modules/dirent (Makefile.am): Likewise.
54453         * modules/errno (Makefile.am): Likewise.
54454         * modules/fcntl-h (Makefile.am): Likewise.
54455         * modules/float (Makefile.am): Likewise.
54456         * modules/getopt-posix (Makefile.am): Likewise.
54457         * modules/iconv-h (Makefile.am): Likewise.
54458         * modules/inttypes (Makefile.am): Likewise.
54459         * modules/langinfo (Makefile.am): Likewise.
54460         * modules/locale (Makefile.am): Likewise.
54461         * modules/math (Makefile.am): Likewise.
54462         * modules/netdb (Makefile.am): Likewise.
54463         * modules/netinet_in (Makefile.am): Likewise.
54464         * modules/poll-h (Makefile.am): Likewise.
54465         * modules/pthread (Makefile.am): Likewise.
54466         * modules/pty (Makefile.am): Likewise.
54467         * modules/sched (Makefile.am): Likewise.
54468         * modules/search (Makefile.am): Likewise.
54469         * modules/selinux-h (Makefile.am): Likewise.
54470         * modules/signal (Makefile.am): Likewise.
54471         * modules/spawn (Makefile.am): Likewise.
54472         * modules/stdarg (Makefile.am): Likewise.
54473         * modules/stddef (Makefile.am): Likewise.
54474         * modules/stdint (Makefile.am): Likewise.
54475         * modules/stdio (Makefile.am): Likewise.
54476         * modules/stdlib (Makefile.am): Likewise.
54477         * modules/string (Makefile.am): Likewise.
54478         * modules/strings (Makefile.am): Likewise.
54479         * modules/sys_file (Makefile.am): Likewise.
54480         * modules/sys_ioctl (Makefile.am): Likewise.
54481         * modules/sys_select (Makefile.am): Likewise.
54482         * modules/sys_socket (Makefile.am): Likewise.
54483         * modules/sys_stat (Makefile.am): Likewise.
54484         * modules/sys_time (Makefile.am): Likewise.
54485         * modules/sys_times (Makefile.am): Likewise.
54486         * modules/sys_utsname (Makefile.am): Likewise.
54487         * modules/sys_wait (Makefile.am): Likewise.
54488         * modules/sysexits (Makefile.am): Likewise.
54489         * modules/termios (Makefile.am): Likewise.
54490         * modules/time (Makefile.am): Likewise.
54491         * modules/unistd (Makefile.am): Likewise.
54492         * modules/wchar (Makefile.am): Likewise.
54493         * modules/wctype (Makefile.am): Likewise.
54495 2010-10-04  Bruno Haible  <bruno@clisp.org>
54497         read-file tests: Avoid a test failure on NonStop Kernel.
54498         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
54499         a regular file.
54500         Reported by Joachim Schmitz <schmitz@hp.com>.
54502 2010-10-03  Bruno Haible  <bruno@clisp.org>
54504         gnulib-tool: Fixes for --create-testdir with --libtool.
54505         * gnulib-tool (func_get_automake_snippet): Don't augment
54506         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
54507         an executable.
54508         (func_create_testdir): Handle module 'alloca' like func_import.
54509         Reported by Bruce Korb <bruce.korb@gmail.com>.
54511 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54513         Avoid some lines longer than 80 characters.
54514         * lib/stdint.in.h: Break long comment lines.
54515         * lib/math.in.h: Likewise.
54516         (_GL_NUM_UINT_WORDS): New macro, for readability.
54517         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
54518         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
54519         * lib/stdlib.in.h: Likewise.
54520         * lib/spawn.in.h: Likewise.
54521         * lib/sys_socket.in.h: Update an URL.
54522         * lib/sys_stat.in.h: Break long line.
54524 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
54526         Improve pmccabe2html.
54527         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
54528         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
54529         when the sources change. Remove the line in the HTML about "Used
54530         ranges" (which implied that there might be other unused ranges),
54531         rename "Resume" to "Summary" (easier to understand for more users).
54532         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
54533         styles, and some unnecessary blank lines.
54535 2010-10-03  Bruno Haible  <bruno@clisp.org>
54536             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
54538         acl: Add support for ACLs on NonStop Kernel.
54539         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
54540         Check whether the function aclsort() exists.
54541         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
54542         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
54543         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54544         (acl_nontrivial [HAVE_ACLSORT]: New function.
54545         (file_has_acl): Implement for NonStop Kernel.
54546         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54547         (qset_acl): Implement for NonStop Kernel.
54548         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
54549         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
54550         (main): Implement for NonStop Kernel.
54551         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
54552         Kernel. Handle this flavor.
54553         * tests/test-set-mode-acl.sh: Likewise.
54554         * tests/test-copy-acl.sh: Likewise.
54555         * tests/test-copy-file.sh: Likewise.
54557 2010-10-03  Bruno Haible  <bruno@clisp.org>
54559         Info about ACLs on NonStop Kernel.
54560         * doc/acl-resources.txt: Add info about NonStop Kernel.
54561         References by Joachim Schmitz <schmitz@hp.com>.
54563 2010-10-02  Bruno Haible  <bruno@clisp.org>
54565         Define missing EDQUOT on NonStop Kernel.
54566         * lib/errno.in.h (EDQUOT): Assign a value if missing.
54567         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
54568         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
54569         missing.
54570         * doc/posix-headers/errno.texi: Mention the NSK bug.
54571         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
54572         Reported by Joachim Schmitz <schmitz@hp.com>.
54574 2010-10-02  Bruno Haible  <bruno@clisp.org>
54576         Update doc for POSIX:2008.
54577         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
54578         Update URL of POSIX specification.
54580 2010-10-02  Bruno Haible  <bruno@clisp.org>
54582         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
54583         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
54584         from gnulib, not from Automake.
54586 2010-10-02  Bruno Haible  <bruno@clisp.org>
54588         New module 'system-posix'.
54589         * modules/system-posix: New file.
54590         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
54591         module is present.
54592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
54593         GNULIB_SYSTEM_POSIX.
54594         * modules/stdlib (Depends-on): Remove sys_wait.
54595         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
54596         * doc/posix-functions/system.texi: Mention the new module.
54597         * doc/posix-headers/stdlib.texi: Likewise.
54598         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
54599         define test_sys_wait_macros to a no-op.
54600         Reported by Sam Steingold <sds@gnu.org>.
54602 2010-09-30  Bruno Haible  <bruno@clisp.org>
54604         More renaming from 'getdate' to 'get_date'.
54605         * doc/get_date.texi: Renamed from doc/getdate.texi.
54606         * modules/get_date (Files): Update.
54607         * MODULES.html.sh (Date and time <time.h>): Update.
54608         * DEPENDENCIES: Update.
54609         * gnulib-tool: Update comment.
54610         * m4/bison.m4 (gl_BISON): Likewise.
54611         * m4/get_date.m4 (gl_GET_DATE): Likewise.
54613 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
54615         bootstrap: support ACLOCAL_FLAGS during aclocal
54616         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
54617         can add additional -I dir for third-party .m4 files.
54619 2010-09-30  Eric Blake  <eblake@redhat.com>
54621         bootstrap: use glibtoolize on MacOS
54622         * build-aux/bootstrap (check_versions): Convert libtool into
54623         libtoolize.
54624         (tool search): Move libtool check earlier, and look for
54625         glibtoolize for MacOS.
54626         (gnulib_tool_options): Auto-add --libtool when appropriate.
54627         Reported by Justin Clift.
54629         poll: fix typo that broke test on MacOS
54630         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
54631         Reported by Justin Clift.
54633         getdate: rename to get_date
54634         Note: getdate.h is not renamed, to minimize client impact.
54635         * modules/getdate: Mark obsolete.  Move old contents...
54636         * modules/get_date: ...to new module name.
54637         * modules/getdate-tests: Move...
54638         * modules/get_date-tests: ...here.
54639         * m4/getdate.m4: Move...
54640         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
54641         * lib/getdate.y: Move...
54642         * lib/get_date.y: ...here.
54643         * tests/test-getdate.c: Move...
54644         * tests/test-get_date.c: ...here.
54645         * doc/posix-functions/getdate.texi (getdate): Update name.
54646         * NEWS: Mention the change.
54648 2010-09-29  Bruno Haible  <bruno@clisp.org>
54650         Separate the module 'waitpid' from the module 'sys_wait'.
54651         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
54652         present.
54653         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
54654         gl_MODULE_INDICATOR_FOR_TESTS.
54655         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
54656         * modules/sys_wait (Depends-on): Remove waitpid.
54657         (Makefile.am): Substitute GNULIB_WAITPID.
54658         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
54659         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
54660         signature only if the 'waitpid' module is present.
54661         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
54662         * NEWS: Mention the change.
54663         * modules/grantpt (Depends-on): Add waitpid.
54664         * modules/wait-process (Depends-on): Likewise.
54666 2010-09-29  Bruno Haible  <bruno@clisp.org>
54668         More tests for module 'sys_wait'.
54669         * modules/sys_wait-c++-tests: New file.
54670         * tests/test-sys_wait-c++.cc: New file.
54671         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
54672         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
54674 2010-09-29  Bruno Haible  <bruno@clisp.org>
54676         New module 'waitpid'.
54677         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
54678         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
54679         Don't include <process.h>.
54680         (waitpid): Declare only, using modern idiom.
54681         * m4/waitpid.m4: New file.
54682         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
54683         * modules/waitpid: New file.
54684         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
54685         (Makefile.am): Update.
54686         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
54688 2010-09-28  Bruno Haible  <bruno@clisp.org>
54690         poll: Assume ANSI C.
54691         * lib/poll.c (poll): Use an ANSI C declaration.
54693 2010-09-28  Bruno Haible  <bruno@clisp.org>
54695         poll-h: Create poll.h on all platforms.
54696         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
54697         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
54698         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
54699         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
54700         (gl_REPLACE_POLL_H): Don't set POLL_H.
54701         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
54702         * modules/poll-h (Depends-on): Add include_next.
54703         (Makefile.am): Create poll.h unconditionally. Substitute also
54704         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
54706 2010-09-28  Bruno Haible  <bruno@clisp.org>
54708         Tests for module 'poll-h'.
54709         * modules/poll-h-c++-tests: New file.
54710         * tests/test-poll-h-c++.cc: New file.
54712         Tests for module 'poll-h'.
54713         * modules/poll-h-tests: New file.
54714         * tests/test-poll-h.c: New file.
54716 2010-09-28  Bruno Haible  <bruno@clisp.org>
54718         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
54719         * modules/poll-h (Depends-on): Add 'extensions'.
54721 2010-09-28  Bruno Haible  <bruno@clisp.org>
54723         New module 'poll-h'.
54724         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
54725         (poll): Use modern idiom.
54726         * modules/poll-h: New file.
54727         * modules/poll (Files): Remove lib/poll.in.h.
54728         (Depends-on): Add poll-h.
54729         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
54730         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
54731         * m4/poll_h.m4: New file.
54732         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
54733         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
54734         and invoke gl_REPLACE_POLL_H.
54735         * lib/poll.c: Use common idiom.
54736         * tests/test-poll.c: Likewise.
54737         * doc/posix-headers/poll.texi: Mention the poll-h module.
54738         Suggested by Eric Blake.
54740 2010-09-26  Bruno Haible  <bruno@clisp.org>
54742         sys_wait: Implement WSTOPSIG.
54743         * lib/sys_wait.in.h (WSTOPSIG): New macro.
54744         Reported by Simon Josefsson.
54746 2010-09-26  Simon Josefsson  <simon@josefsson.org>
54748         stdlib, sys_wait: Avoid compilation error on mingw.
54749         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
54751 2010-09-26  Bruno Haible  <bruno@clisp.org>
54753         stdlib tests: Avoid code duplication.
54754         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
54755         * modules/sys_wait-tests (Files): Likewise.
54756         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
54757         * tests/test-stdlib.c: Include test-sys_wait.h.
54758         (main): Invoke test_sys_wait_macros.
54759         * tests/test-sys_wait.c: Include test-sys_wait.h.
54760         (main): Invoke test_sys_wait_macros.
54762 2010-09-25  Simon Josefsson  <simon@josefsson.org>
54764         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
54765         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
54766         sure Windows sockets are working before calling getaddrinfo.
54767         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
54768         * doc/gnulib.texi (Windows sockets): Fix typo.
54770 2010-09-25  Bruno Haible  <bruno@clisp.org>
54772         Tests for module 'regex-quote'.
54773         * modules/regex-quote-tests: New file.
54774         * tests/test-regex-quote.c: New file.
54776         New module 'regex-quote'.
54777         * lib/regex-quote.h: New file.
54778         * lib/regex-quote.c: New file.
54779         * modules/regex-quote: New file.
54780         Suggested by Reuben Thomas <rrt@sc3d.org>.
54782 2010-09-24  Bruno Haible  <bruno@clisp.org>
54784         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
54785         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
54787 2010-09-23  Bruno Haible  <bruno@clisp.org>
54789         setenv: Relax license.
54790         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
54791         Blake.
54792         Requested by Eric Blake.
54794 2010-09-22  Bruno Haible  <bruno@clisp.org>
54796         termios: Relax license.
54797         * modules/termios (License): Change to LGPLv2+.
54798         Requested by Eric Blake.
54800 2010-09-22  Bruno Haible  <bruno@clisp.org>
54802         threadlib: Allow the package to change the default to 'no'.
54803         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
54804         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
54805         Reported by Paul Eggert.
54807 2010-09-22  Pádraig Brady  <P@draigbrady.com>
54808             Bruno Haible  <bruno@clisp.org>
54810         Fix endless loop in mbmemcasecoll.
54811         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
54812         byte.
54813         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
54815 2010-09-22  Bruno Haible  <bruno@clisp.org>
54817         Tests for module 'memcoll'.
54818         * modules/memcoll-tests: New file.
54819         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
54821         memcoll, xmemcoll: Clarify size vs. length.
54822         * modules/memcoll.c (memcoll0): Clarify specification.
54823         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
54824         passed to collate_error.
54826 2010-09-22  Bruno Haible  <bruno@clisp.org>
54828         Tests for module 'memcasecmp'.
54829         * modules/memcasecmp-tests: New file.
54830         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
54832 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54834         * lib/pthread.in.h: Add split double-inclusion guard, and include
54835         system <pthread.h> if there is one.  Use @@-style as in other
54836         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
54837         pthread.h doesn't.
54838         (pthread_mutexattr_destroy, pthread_mutexattr_init):
54839         (pthread_mutexattr_settype, pthread_mutex_trylock):
54840         New static inline functions, if there's no system <pthread.h>.
54841         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
54842         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
54843         Approximate with mutexes if the system lacks spinlocks, as in
54844         MacOS.
54845         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
54846         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
54847         @@-style.  Check for spinlocks separately.
54848         (gl_PTHREAD_DEFAULTS): New macro.
54849         * modules/pthread: Redo to use a more typical style for in.h files.
54851 2010-09-21  Eric Blake  <eblake@redhat.com>
54853         net_if: enhance tests
54854         * tests/test-net_if.c (main): Move signature checks earlier.
54855         Print failures to stderr.
54856         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
54857         Document the bug that we do not yet fix.
54859 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
54861         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
54862         about gnulib, not GSS.
54864 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
54866         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
54867         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
54868         for Emacs.
54869         * build-aux/pmccabe2html: Make Makefile.am example code more
54870         cut-and-paste friendly.
54872 2010-09-21  Simon Josefsson  <simon@josefsson.org>
54874         * tests/test-net_if.c: New file.
54875         * modules/net_if-tests: New file.
54877 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
54879         pthread: add pthread_spin_destroy
54880         * lib/pthread.in.h (pthread_spin_destroy): New function.
54882 2010-09-19  Bruno Haible  <bruno@clisp.org>
54884         gnulib-tool: Fix --help output.
54885         * gnulib-tool (func_usage): Fix help message.
54886         Reported by Reuben Thomas <rrt@sc3d.org>.
54888 2010-09-18  Jim Meyering  <meyering@redhat.com>
54890         maint.mk: avoid unexpanded \n in two diagnostics
54891         * top/maint.mk (sc_prohibit_always_true_header_tests):
54892         Don't use a literal \n in a halt=... assignment.  It would not be
54893         expanded, and the two \n bytes would appear in the diagnostic output
54894         rather than the desired newline.  Use halt=$$(printf ... instead.
54895         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54897 2010-09-18  Bruno Haible  <bruno@clisp.org>
54899         netinet_in: Doc tweak.
54900         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
54901         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54903 2010-09-18  Jim Meyering  <meyering@redhat.com>
54905         init.sh: correct an outdated comment
54906         * tests/init.sh (create_exe_shims_):  s/function/alias/
54908         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
54909         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
54910         a file named "*.exe" is removed between the glob expansion and the
54911         processing of that oddly named file.
54913 2010-09-17  Eric Blake  <eblake@redhat.com>
54915         mirbsd: add some more support
54916         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
54917         in BSD family.
54918         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
54919         devices as OpenBSD.
54920         * m4/host-os.m4 (mirbsd): Add MirBSD.
54922         tests: fix unportable assumption on sys/wait.h
54923         * tests/test-sys_wait.c (main): Relax test.
54924         * tests/test-stdlib.c (main): Likewise.
54926         init.sh: accommodate directory with no .exes
54927         * tests/init.sh: Accomodate directory containing only scripts.
54929         tests: avoid compiler warning
54930         * tests/test-stdlib.c (main): Use the variable.
54932         fdutimens, fdutimensat: update signature, again
54933         * lib/utimens.h (gl_futimens): Delete, and move signature...
54934         (fdutimens): ...here.
54935         (fdutimensat): Rearrange signature.
54936         (lutimensat): Rename variable for clarity.
54937         * lib/fdutimensat.c (fdutimensat): Update signature.
54938         * lib/utimens.c (fdutimens): Likewise.
54939         (gl_futimens): Delete.
54940         (utimens, lutimens): Update callers.
54941         * lib/futimens.c (futimens): Likewise.
54942         * tests/test-fdutimensat.c: Likewise.
54943         * tests/test-utimens.c: Likewise.
54944         * tests/test-futimens.h: Update comment.
54945         * NEWS: Mention this.
54946         Suggested by Paul Eggert.
54948 2010-09-17  Bruno Haible  <bruno@clisp.org>
54950         Take over the maintenance of some older macros from Autoconf.
54951         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
54952         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
54953         GNU Autoconf.
54954         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
54955         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
54957 2010-09-17  Eric Blake  <eblake@redhat.com>
54959         fdutimensat: drop atflag validation
54960         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
54961         with valid fd, to close a race scenario where futimens is
54962         unsupported and FILE was replaced by a symlink.
54963         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
54964         accordingly.
54965         Suggested by Paul Eggert.
54967 2010-09-16  Bruno Haible  <bruno@clisp.org>
54969         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
54970         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
54972 2010-09-16  Bruno Haible  <bruno@clisp.org>
54974         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
54975         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
54976         login_tty exists.
54977         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54979 2010-09-16  Bruno Haible  <bruno@clisp.org>
54981         login_tty: Make the replacement code work on BSD systems.
54982         * lib/login_tty.c: Include <sys/ioctl.h>.
54983         (login_tty): Use ioctl TIOCSCTTY when available.
54984         * modules/login_tty (Depends-on): Add sys_ioctl.
54985         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54987 2010-09-16  Bruno Haible  <bruno@clisp.org>
54989         login_tty: Stricter unit test.
54990         * modules/login_tty-tests (Depends-on): Add tcgetsid.
54991         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
54992         and tcgetsid() after login_tty.
54993         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
54995 2010-09-16  Bruno Haible  <bruno@clisp.org>
54997         New module 'tcgetsid'.
54998         * lib/tcgetsid.c: New file.
54999         * m4/tcgetsid.m4: New file.
55000         * modules/tcgetsid: New file.
55001         * modules/termios (Depends-on): Add c++defs, warn-on-use.
55002         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
55003         GNULIB_TCGETSID, HAVE_TCGETSID.
55004         * lib/termios.in.h: Include <sys/types.h>.
55005         (tcgetsid): New declaration.
55006         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
55007         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
55008         * doc/posix-functions/tcgetsid.texi: Mention the new module.
55009         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
55011 2010-09-16  Bruno Haible  <bruno@clisp.org>
55013         Tests for module 'termios'.
55014         * modules/termios-c++-tests: New file.
55015         * modules/termios-tests: New file.
55016         * tests/test-termios-c++.cc: New file.
55017         * tests/test-termios.c: New file.
55019         New module 'termios'.
55020         * modules/termios: New file.
55021         * lib/termios.in.h: New file.
55022         * m4/termios_h.m4: New file.
55023         * doc/posix-headers/termios.texi: Mention the new module.
55025 2010-09-16  Eric Blake  <eblake@redhat.com>
55027         fdutimensat: add an atflag parameter
55028         * lib/fdutimensat.c (fdutimensat): Add new parameter.
55029         * lib/utimens.h (fdutimensat): Update prototype.
55030         * tests/test-fdutimensat.c: Adjust test to match.
55031         * NEWS: Document the change.
55032         Suggested by Paul Eggert.
55034 2010-09-16  Bruno Haible  <bruno@clisp.org>
55036         Fix typos in comments.
55037         * lib/striconveh.h: Fix typo in comment.
55038         * lib/login_tty.c (login_tty): Likewise.
55040 2010-09-15  Bruno Haible  <bruno@clisp.org>
55042         stdlib: clarify MirBSD WEXITSTATUS bug
55043         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
55044         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
55046 2010-09-15  Eric Blake  <eblake@redhat.com>
55048         stdlib: work around MirBSD WEXITSTATUS bug
55049         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
55050         * modules/stdlib (Depends-on): Add sys_wait.
55051         * tests/test-sys_wait.c (main): Enhance test.
55052         * tests/test-stdlib.c (main): Likewise.
55053         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
55055         docs: mention MacOS issue with WEXITSTATUS(constant)
55056         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
55057         issue.
55058         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
55060         strnlen: add tests
55061         * modules/strnlen-tests: New file.
55062         * tests/test-strnlen.c: Likewise.
55064 2010-09-14  Bruno Haible  <bruno@clisp.org>
55066         unistr/base: Avoid link errors when module 'libunistring' is also used.
55067         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
55068         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
55069         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
55070         Declare also when HAVE_LIBUNISTRING is set.
55071         Reported by Pádraig Brady <P@draigbrady.com>.
55073 2010-09-14  Eric Blake  <eblake@redhat.com>
55075         test-rawmemchr: make more robust
55076         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
55077         (Depends-on, configure.ac): Add needed prerequisites to use it.
55078         * modules/memchr-tests (Files, Depends-on, configure.ac):
55079         Likewise, to avoid implicit reliance on memchr module prereqs.
55080         * tests/test-memchr.c (main): Ensure proper masking.
55081         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
55082         reads.
55084         memchr: detect glibc Alpha bug
55085         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
55086         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
55087         Alpha.
55088         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
55089         * tests/test-memchr.c (main): Enhance test.
55090         Reported by Nelson H. F. Beebe.
55092 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55094         fts, getcwd, glob: audit for dirfd returning -1
55095         * lib/fts.c (opendir): Remove #define; no longer used.
55096         (opendirat): New arg PDIR_FD.  All callers changed.
55097         (fts_build, _opendir2): Use new opendirat to avoid the need for
55098         dirfd, or for checking whether dirfd returns a negative value.
55099         Don't use opendir; always use openat followed by fdopendir.
55100         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
55101         it.
55102         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
55103         returns -1 here.
55104         * modules/fts (Depends-on): Remove dirfd.
55105         * modules/getcwd (Depends-on): Likewise.
55107 2010-09-13  Eric Blake  <eblake@redhat.com>
55109         float: fix broken MirBSD header
55110         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
55111         * doc/posix-headers/float.texi (float.h): Document it.
55113 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
55115         fts: use O_NOFOLLOW to avoid race condition when opening a directory
55116         * lib/fts.c (opendirat): New arg extra_flags.
55117         (__opendir2): Use it to avoid following symlinks when opening
55118         a directory, if symlinks are not supposed to be followed.  See
55119         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
55121         fdopendir: preserve argument fd before returning
55122         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
55123         (fdopendir_with_dup, fd_clone_opendir): New static functions.
55124         (fdopendir): Use them, arranging for FD to be open to the same
55125         directory that it was when it started.  (It might be temporarily
55126         closed while fdopendir is running, so this not thread- or
55127         signal-safe.)  Be careful to do the right thing even when file
55128         descriptors are scarce and dup fails with errno == EMFILE.  See
55129         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
55131 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
55133         regex: Pass the system regex if its only problem is 32-bit regoff_t.
55134         * NEWS: Document change.
55135         * m4/regex.m4: Disable test for regoff_t size.
55137 2010-09-13  Jim Meyering  <meyering@redhat.com>
55139         fts: don't operate on an invalid file descriptor after failed dup
55140         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
55141         negative file descriptor.
55143 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55145         savedir: add streamsavedir, deprecate fdsavedir
55146         * NEWS: Mention deprecation of fdsavedir.
55147         * lib/savedir.c (streamsavedir): New extern function, whose name
55148         ends in "savedir" to be consistent with the others.  This differs
55149         from savedirstream in that it doesn't close its argument.  The
55150         next version of GNU tar will use this instead of fdsavedir, to
55151         avoid some race conditions and conserve file descriptors.
55152         (savedirstream): Reimplement as a wrapper around streamsavedir.
55153         (fdsavedir): Add a comment deprecating this function.  As far as
55154         I know, only GNU tar used it, and GNU tar doesn't need it any more.
55155         * lib/savedir.h (streamsavedir): New decl.
55156         (fdsavedir): Add a comment deprecating this.
55158 2010-09-10  Bruno Haible  <bruno@clisp.org>
55160         langinfo: Fix last commit.
55161         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
55162         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
55163         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55165 2010-09-10  Bruno Haible  <bruno@clisp.org>
55167         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
55168         * lib/progreloc.c (O_EXEC): Define fallback.
55170 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
55172         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
55173         * NEWS: Document recent changes to fcntl-h.
55174         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
55175         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
55176         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
55177         Similarly for O_SEARCH; this last was already true, but not documented.
55178         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
55179         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
55180         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
55181         Likewise.
55182         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
55183         is zero, not whether it is defined.
55184         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
55185         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
55186         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
55188 2010-09-10  Bruno Haible  <bruno@clisp.org>
55190         langinfo, nl_langinfo: Fix for IRIX 5.3.
55191         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
55192         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
55193         HAVE_LANGINFO_YESEXPR.
55194         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
55195         HAVE_LANGINFO_YESEXPR.
55196         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
55197         HAVE_LANGINFO_T_FMT_AMPM is 0.
55198         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
55199         HAVE_LANGINFO_YESEXPR is 0.
55200         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
55201         NOEXPR.
55202         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
55203         * doc/posix-functions/nl_langinfo.texi: Likewise.
55204         Reported by Eric Blake.
55206 2010-09-10  Bruno Haible  <bruno@clisp.org>
55208         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
55209         * doc/glibc-functions/login_tty.texi: Mention the include file problem
55210         on FreeBSD 8.0 and OpenBSD 4.6.
55211         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
55212         * m4/pty_h.m4 (gl_PTY_H): Likewise.
55213         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
55214         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
55215         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
55216         ac_includes_default.
55217         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
55219 2010-09-09  Eric Blake  <eblake@redhat.com>
55221         strsignal: work around NetBSD bug
55222         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
55223         * lib/string.in.h (includes): Likewise.
55224         * doc/posix-functions/strsignal.texi (strsignal): Document the
55225         bug.
55226         Reported by Nelson H. F. Beebe.
55228         gnulib-tool: work with NetBSD /bin/sh
55229         * gnulib-tool (func_cache_var, func_cache_lookup_module)
55230         (func_get_description, func_get_comment, func_get_status)
55231         (func_get_notice, func_get_applicability, func_get_filelist)
55232         (func_get_dependencies, func_get_autoconf_early_snippet)
55233         (func_get_autoconf_snippet, func_get_automake_snippet)
55234         (func_get_include_directive, func_get_link_directive)
55235         (func_get_license, func_get_maintainer, func_import): Avoid
55236         shell syntax errors from parsing syntax extensions.
55238 2010-09-09  Bruno Haible  <bruno@clisp.org>
55240         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
55241         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
55242         a reliable way to determine whether the 'alias' command works.
55244 2010-09-08  Jim Meyering  <meyering@redhat.com>
55246         init.sh: penalize a set-x-impaired shell; don't disqualify it
55247         * tests/init.sh: Too many shells corrupt application stderr when
55248         you set -x, so we can't afford to disqualify them, since at least
55249         on Irix-6.5, that would disqualify all bourne shells.
55250         Instead, use a two-pass approach.
55251         On the first pass, try to find a shell that meets the stricter
55252         condition that set -x does not corrupt stderr.
55253         If no shell meets the stricter condition, retest each candidate
55254         shell, but without that extra condition.  Finally, when
55255         VERBOSE=yes is requested and set -x might cause trouble, simply
55256         issue a warning and refrain from enabling debug output.
55258 2010-09-08  Eric Blake  <eblake@redhat.com>
55260         unsetenv: fix OpenBSD bug
55261         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
55262         * doc/posix-functions/unsetenv.texi (unsetenv): Update
55263         documentation.
55264         Reported by Jim Meyering.
55266         strtod: work around IRIX 6.5 bug
55267         * lib/strtod.c (strtod): Reparse number on shorter string if
55268         exponent parse was invalid.
55269         * tests/test-strtod.c (main): Add check for "0x1p 2".
55270         Reported by Tom G. Christensen.
55272         getopt: optimize previous patch
55273         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
55274         empty variable.  Speed up awk script.
55275         Reported by Paolo Bonzini.
55277 2010-09-08  Jim Meyering  <meyering@redhat.com>
55279         test.sh: disqualify shells for which set -x corrupts stderr
55280         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
55281         and OpenBSD 4.7.  They make it so with "set -x", environment settings
55282         appear in stderr output.  For example, this command:
55283             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
55284         prints "P=1" on those two systems:
55286 2010-09-08  Bruno Haible  <bruno@clisp.org>
55288         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
55289         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
55290         commands, because some shells ignore redirections when there is an
55291         error in the command lookup.
55292         Reported by Eric Blake.
55294 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
55296         * lib/regex.h: Fix a mention of `regex_compile' (should be
55297         `re_compile_pattern').
55298         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
55299         (re_set_registers): Correct name of parameter in comment.
55301         * doc/regex.texi: Add documentation for missing syntax flags.
55302         Remove commented-out documentation of defunct syntax option
55303         RE_NO_EMPTY_ALTS.
55304         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
55305         Add documentation of re_set_registers.
55306         Document trick to re-use a pattern buffer by setting fastmap manually.
55307         Update documentation of struct re_pattern_buffer per public members.
55308         Uncomment documentation of equivalence class operators and
55309         collating symbol operators, since they are now implemented,
55310         Explain leftmost-longest matching in relation to alternatives.
55311         Tidy documentation of substring matching.
55312         Remove POSIX documentation, which is done better in
55313         glibc, and refer the reader there. Keep BSD API documentation, as
55314         that is not readily available elsewhere.
55316 2010-09-07  Eric Blake  <eblake@redhat.com>
55318         getopt: handle POSIXLY_CORRECT set but not exported
55319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
55320         export state of POSIXLY_CORRECT, due to bash set -o posix.
55321         Reported by Dustin J. Mitchell.
55323 2010-09-05  Bruno Haible  <bruno@clisp.org>
55325         gnulib-tool: Highlight the changed options.
55326         * gnulib-tool (func_usage): Display the --import, --add-import,
55327         --remove-import explanations in bold font.
55329 2010-09-06  Karl Berry  <karl@gnu.org>
55331         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
55333 2010-09-05  Bruno Haible  <bruno@clisp.org>
55335         uniwidth/width: Update comment.
55336         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
55337         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
55339 2010-09-05  Bruno Haible  <bruno@clisp.org>
55341         isinf, isnan: Relax license.
55342         * modules/isinf (License): Change from GPL to LGPL, with consent from
55343         Ben Pfaff.
55344         * modules/isnan (License): Likewise.
55345         Requested by Ludovic Courtès.
55347 2010-09-04  Bruno Haible  <bruno@clisp.org>
55349         gnulib-tool: Help migration from --import to --add-import or --update.
55350         * gnulib-tool: Emit a verbose error message when --import is used
55351         without any module name.
55353 2010-09-04  Bruno Haible  <bruno@clisp.org>
55355         Update doc about gnulib-tool.
55356         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
55357         'gnulib-tool --update' in more detail.
55358         Reported by Eric Blake.
55360 2010-09-04  Bruno Haible  <bruno@clisp.org>
55362         gnulib-tool: Change --import. New options --add/remove-import.
55363         * gnulib-tool: New options --add-import, --remove-import.
55364         (func_usage): Document them.
55365         (have_associative): Define always.
55366         (func_import): In import mode, don't merge the specified settings with
55367         the cached settings. Implement remove-import mode.
55368         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
55369         Explain when to use them versus --import.
55370         (Simple update): Use --add-import instead of --import.
55371         * NEWS: Mention the change.
55373 2010-09-04  Bruno Haible  <bruno@clisp.org>
55375         * doc/gnulib-tool.texi (Initial import): Update paragraph about
55376         separate gnulib.mk.
55378 2010-09-04  Bruno Haible  <bruno@clisp.org>
55380         gnulib-tool: Don't talk about CVS any more.
55381         * gnulib-tool (func_usage, func_import): Write "version control"
55382         instead of CVS.
55384 2010-09-04  Jim Meyering  <meyering@redhat.com>
55386         maint.mk: avoid obscure sc_copyright_check failure in coreutils
55387         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
55388         false positives (whose names may be ill-chosen) when searching
55389         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
55390         would cause a false-positive.
55392         avoid coreutils "make distcheck" failure
55393         Coreutils tests with an absolute build directory name that contains
55394         a space.  Not quoting this directory name caused a failure.
55395         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
55396         * tests/test-vc-list-files-cvs.sh: Likewise.
55398 2010-09-04  Bruno Haible  <bruno@clisp.org>
55400         gnulib-tool: Avoid error when run in a package without Makefile.am.
55401         * gnulib-tool: When collecting the m4dirs in a package that does not
55402         have a Makefile.am, eliminate those directories that contain no
55403         gnulib-cache.m4. Fix expression that counts these directories.
55405 2010-09-04  Bruno Haible  <bruno@clisp.org>
55407         update-copyright test: Improve output when perl is missing or too old.
55408         * tests/test-update-copyright.sh: Move test of Perl version down after
55409         the test whether Perl exists. Provide an explanation relating Perl's
55410         error message to Automake's SKIP: message.
55412 2010-09-04  Bruno Haible  <bruno@clisp.org>
55414         Don't augment PATH in TESTS_ENVIRONMENT.
55415         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
55416         set abs_aux_dir instead of augmenting PATH.
55417         * modules/vc-list-files-tests (Makefile.am): Likewise.
55418         * tests/test-update-copyright.sh: Augment PATH here.
55419         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
55420         path_prepend_.
55421         * tests/test-vc-list-files-git.sh: Likewise.
55423 2010-09-04  Jim Meyering  <meyering@redhat.com>
55425         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
55426         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
55428 2010-09-04  Bruno Haible  <bruno@clisp.org>
55430         strdup: Fix compilation error in C++ mode.
55431         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
55432         the macro.
55434 2010-09-04  Bruno Haible  <bruno@clisp.org>
55436         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
55437         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
55438         macro into a function.
55439         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
55441 2010-09-04  Bruno Haible  <bruno@clisp.org>
55443         Set PATH_SEPARATOR the same way autoconf does.
55444         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
55445         the value of PATH_SEPARATOR the same way autoconf-generated configure
55446         scripts do.
55447         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
55448         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
55450 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
55452         Set PATH_SEPARATOR the same way autoconf does.
55453         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
55454         the same way autoconf-generated configure scripts do.
55455         * posix-modules: Likewise.
55457 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55459         hash: fix safe_hasher const typo
55460         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
55461         const; otherwise, there is a type error later.
55463 2010-09-02  Jim Meyering  <meyering@redhat.com>
55465         test-update-copyright.sh: require perl 5.8.0
55466         * tests/test-update-copyright.sh: Require 5.8.0,
55467         which Tom G. Christensen has confirmed is adequate,
55468         while 5.6.1 is not.
55470 2010-09-02  Eric Blake  <eblake@redhat.com>
55472         tests: init.sh improvements for re-exec'ing with zsh
55473         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
55474         -vx through shell re-exec.
55475         Reported by Tom G. Christensen.
55477         wctype: fix typo in previous commit
55478         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
55479         Reported by Ludovic Courtès.
55481 2010-09-02  Jim Meyering  <meyering@redhat.com>
55483         test-update-copyright.sh: skip test if Perl is too old
55484         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
55485         Reported by Tom G. Christensen.
55487 2010-09-02  Bruno Haible  <bruno@clisp.org>
55489         wctype: Avoid compilation error on IRIX 6.5.30.
55490         * lib/wctype.in.h (iswblank): Declare with a replacement if
55491         REPLACE_ISWBLANK is set.
55492         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
55493         declared. Set REPLACE_ISWBLANK.
55494         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
55495         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
55496         * doc/posix-headers/wctype.texi: Likewise.
55497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55499 2010-09-01  Bruno Haible  <bruno@clisp.org>
55501         New module 'socketlib'.
55502         * modules/socketlib: New file.
55503         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
55504         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
55505         * modules/sockets (Depends-on): Add socketlib.
55506         Suggested by Sam Steingold <sds@gnu.org>.
55508 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55510         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
55512         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
55513         when one needs search access to a directory but not read access.
55514         On systems where it is available, it works in some cases where
55515         O_RDONLY does not, namely on directories that are searchable but
55516         not readable, and which need only to be searchable.  If O_SEARCH
55517         is not available, fall back to the traditional method of using
55518         O_RDONLY.
55520         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
55521         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
55522         when opening a directory that needs only to be searchable.
55523         * lib/chdir-safer.c (chdir_no_follow): Likewise.
55524         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
55525         * lib/openat-proc.c (openat_proc_name): Likewise.
55526         * lib/openat.c (openat_needs_fchdir): Likewise.
55527         * lib/save-cwd.c (save_cwd): Likewise.
55528         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
55530 2010-08-28  Bruno Haible  <bruno@clisp.org>
55532         New module 'host-cpu-c-abi'.
55533         * modules/host-cpu-c-abi: New file.
55534         * m4/host-cpu-c-abi.m4: New file, based on part of
55535         clisp/src/m4/general.m4.
55536         Requested by Sam Steingold <sds@gnu.org>.
55538 2010-08-31  Eric Blake  <eblake@redhat.com>
55539         and Jim Meyering  <meyering@redhat.com>
55541         hash: factor, and guard against misbehaving hasher function
55542         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
55543         of table->hasher's return value.  Also protect against a hash value
55544         so large that adding it to table->bucket results in a NULL pointer.
55545         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
55546         Use it in place of open-coded check-and-abort.
55548 2010-08-30  Bruno Haible  <bruno@clisp.org>
55550         hash: silence spurious clang warning
55551         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
55552         Reported by Eric Blake.
55554 2010-08-30  Eric Blake  <eblake@redhat.com>
55556         strstr, memmem, strcasestr: avoid leaked shell message
55557         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
55558         FreeBSD.
55559         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55560         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55562         tests: silence clang warning
55563         * tests/test-malloca.c (do_allocation): Avoid dead store.
55565 2010-08-29  Bruno Haible  <bruno@clisp.org>
55567         gettext: Fix recent mistake.
55568         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
55570 2010-08-29  Bruno Haible  <bruno@clisp.org>
55572         selinux-h: Offer a --without-selinux option.
55573         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
55574         --without-selinux was specified, skip all tests and define
55575         HAVE_SELINUX_SELINUX_H to 0.
55576         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
55577         set LIB_SELINUX to empty.
55578         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
55579         gl_LIBSELINUX. If --without-selinux was specified, replace
55580         selinux/context.h.
55581         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
55583 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55584             Bruno Haible  <bruno@clisp.org>
55586         Make the module 'realloc-gnu' work again on AIX and OSF/1.
55587         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
55588         of HAVE_REALLOC.
55589         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
55590         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
55591         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
55592         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
55594 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55595             Bruno Haible  <bruno@clisp.org>
55597         Make the module 'calloc-gnu' work again on AIX and OSF/1.
55598         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
55599         HAVE_CALLOC.
55600         * lib/xmalloc.c: Update accordingly.
55601         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
55602         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
55603         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
55605 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55606             Bruno Haible  <bruno@clisp.org>
55608         Make the module 'malloc-gnu' work again on AIX and OSF/1.
55609         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
55610         HAVE_MALLOC.
55611         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
55612         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
55613         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
55615 2010-08-29  Bruno Haible  <bruno@clisp.org>
55617         Update modules list.
55618         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
55619         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
55620         (String handling <string.h>): Add astrxfrm.
55621         (File system functions): Add readlinkat.
55623 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55625         Tests for module 'realloc-gnu'.
55626         * modules/realloc-gnu-tests: New file.
55627         * tests/test-realloc-gnu.c: New file.
55629         Tests for module 'calloc-gnu'.
55630         * modules/calloc-gnu-tests: New file.
55631         * tests/test-calloc-gnu.c: New file.
55633         Tests for module 'malloc-gnu'.
55634         * modules/malloc-gnu-tests: New file.
55635         * tests/test-malloc-gnu.c: New file.
55637 2010-08-28  Bruno Haible  <bruno@clisp.org>
55639         Rename module 'realloc' -> 'realloc-gnu'.
55640         * modules/realloc-gnu: New file, copied from modules/realloc.
55641         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
55642         obsolete.
55643         * modules/mgetgroups (Depends-on): Update.
55644         * doc/posix-functions/realloc.texi: Update.
55645         * NEWS: Mention the change.
55647         Rename module 'calloc' -> 'calloc-gnu'.
55648         * modules/calloc-gnu: New file, copied from modules/calloc.
55649         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
55650         obsolete.
55651         * doc/posix-functions/calloc.texi: Update.
55652         * NEWS: Mention the change.
55654         Rename module 'malloc' -> 'malloc-gnu'.
55655         * modules/malloc-gnu: New file, copied from modules/malloc.
55656         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
55657         obsolete.
55658         * modules/argp (Depends-on): Update.
55659         * modules/regex (Depends-on): Update.
55660         * doc/posix-functions/malloc.texi: Update.
55661         * NEWS: Mention the change.
55663 2010-08-28  Eric Blake  <eblake@redhat.com>
55665         pread, pwrite: add missing dependency
55666         * modules/pread (Depends-on): Add extensions.
55667         * modules/pwrite (Depends-on): Likewise.
55669 2010-08-28  Bruno Haible  <bruno@clisp.org>
55671         unistr/u*-strchr: Fix tests dependencies.
55672         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
55673         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
55674         Reported by Ian Beckwith <ianb@erislabs.net>.
55676 2010-08-28  Bruno Haible  <bruno@clisp.org>
55678         read-file: Don't occupy too much unused memory.
55679         * lib/read-file.c (fread_file): Shrink the buffer at the end.
55681 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
55682             Eric Blake  <eblake@redhat.com>
55683             Bruno Haible  <bruno@clisp.org>
55685         read-file: Avoid memory reallocations with regular files.
55686         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
55687         (fread_file): With regular files, use the remaining length as the
55688         initial buffer size.  Check against overflow.
55689         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
55690         sys_stat.
55692 2010-08-28  Bruno Haible  <bruno@clisp.org>
55694         ftello: Relax license.
55695         * modules/ftello (License): Relax to LGPLv2+.
55696         Reported by Eric Blake.
55698 2010-08-28  Bruno Haible  <bruno@clisp.org>
55700         Avoid relocwrapper link errors due to gnulib replacement functions.
55701         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
55702         function.
55703         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55705 2010-08-28  Bruno Haible  <bruno@clisp.org>
55707         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
55708         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
55709         defined.
55710         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
55711         Suggested by Eric Blake.
55713 2010-08-28  Bruno Haible  <bruno@clisp.org>
55715         sys_socket, netdb: Ensure socklen_t gets defined.
55716         * modules/sys_socket (Depends-on): Add socklen.
55717         * modules/netdb (Depends-on): Likewise.
55718         * modules/getaddrinfo (Depends-on): Remove socklen.
55719         * modules/getsockopt (Depends-on): Likewise.
55720         * modules/setsockopt (Depends-on): Likewise.
55721         * tests/test-sys_socket.c: Check that socklen_t is defined.
55722         * tests/test-netdb.c: Likewise.
55723         * m4/socklen.m4: Update comments.
55724         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55726 2010-08-27  Eric Blake  <eblake@redhat.com>
55728         login_tty: add missing dependency
55729         * modules/login_tty (Depends-on): Add pty.
55731 2010-08-26  Eric Blake  <eblake@redhat.com>
55733         lib-symbol-versions: fix m4 quoting
55734         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
55735         format for AC_LINK_IFELSE.
55737         glob: fix compile test
55738         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
55740         btowc: fix missing file
55741         * modules/btowc (Files): Also ship locale-fr.m4.
55743         lseek: fix link test
55744         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
55745         AC_LINK_IFELSE.
55747         include_next: silence autoconf 2.68 warning
55748         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
55749         AC_COMPILE_IFELSE as special.
55750         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
55751         autoconf < 2.68.
55753         acl: fix compilation test
55754         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
55755         AC_COMPILE_IFELSE.
55757 2010-08-26  Bruno Haible  <bruno@clisp.org>
55759         Modernize AC_TRY_RUN invocations.
55760         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
55761         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
55762         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
55763         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
55764         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
55765         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
55766         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
55767         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55768         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55769         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
55770         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
55771         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
55772         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
55773         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
55774         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
55775         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
55776         gl_MBRLEN_NUL_RETVAL): Likewise.
55777         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
55778         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
55779         Likewise.
55780         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
55781         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
55782         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
55783         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
55784         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
55785         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
55786         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
55787         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
55788         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
55789         Likewise.
55790         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
55791         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
55792         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55793         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
55794         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
55795         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
55796         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
55797         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
55798         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
55799         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
55801 2010-08-26  Bruno Haible  <bruno@clisp.org>
55803         Modernize AC_TRY_LINK invocations.
55804         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
55805         AC_TRY_LINK.
55806         * m4/argp.m4 (gl_ARGP): Likewise.
55807         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
55808         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
55809         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
55810         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
55811         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
55812         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
55813         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
55814         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
55815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
55816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
55817         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
55818         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
55819         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
55820         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
55821         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55822         * m4/hostent.m4 (gl_HOSTENT): Likewise.
55823         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
55824         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
55825         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
55826         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
55827         Likewise.
55828         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
55829         Likewise.
55830         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
55831         Likewise.
55832         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
55833         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
55834         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
55835         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
55836         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
55837         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
55838         * m4/servent.m4 (gl_SERVENT): Likewise.
55839         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
55840         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
55841         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
55842         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
55843         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
55844         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
55845         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
55846         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
55847         * modules/tsearch-tests (configure.ac): Likewise.
55849 2010-08-26  Bruno Haible  <bruno@clisp.org>
55851         Modernize AC_TRY_COMPILE invocations.
55852         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
55853         AC_TRY_COMPILE.
55854         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
55855         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
55856         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
55857         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
55858         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
55859         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
55860         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55861         * m4/lock.m4 (gl_LOCK): Likewise.
55862         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
55863         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
55864         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
55865         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
55866         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
55867         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
55868         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
55869         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
55870         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
55871         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
55872         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
55873         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
55874         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
55875         extraneous semicolon.
55877 2010-08-26  Jim Meyering  <meyering@redhat.com>
55879         stat-time: relax license LGPL
55880         * modules/stat-time (License): Change from GPL to LGPL,
55881         with consent from all contributors, for use in libguile.
55882         Requested by Ludovic Courtès.
55884 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
55886         poll: return immediately on POLLHUP.
55887         * lib/poll.c (poll): Always set timeout before wait_timeout is
55888         computed.
55890 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55892         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
55893         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
55894         rmdir ("dir/.//"), unlinkat.
55896 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
55898         stdbool: avoid spurious failure with modern xlc
55899         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
55901 2010-08-24  Bruno Haible  <bruno@clisp.org>
55903         getloadavg: simplify code
55904         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
55905         gl_have_func. Update comments.
55907 2010-08-24  Eric Blake  <eblake@redhat.com>
55909         getloadavg: don't define SVR4 on cygwin
55910         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
55911         only define SVR4 when -lkvm is required.
55912         Reported by Yaakov Selkowitz.
55914 2010-08-24  Bruno Haible  <bruno@clisp.org>
55916         priv-set: fix comment
55917         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
55919 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
55921         priv-set: fix comments
55922         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
55923         to match code, as suggested by David Bartley in:
55924         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
55926 2010-08-23  Eric Blake  <eblake@redhat.com>
55928         stdbool: avoid rejecting clang
55929         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
55930         * tests/test-stdbool.c: Enable more tests if using the system
55931         <stdbool.h> instead of the gnulib replacement.
55932         (main): Move xlc bug test to a runtime test for all compilers.
55933         Reported by Anders Kaseorg.
55935         argz: fix shell quoting issue
55936         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
55937         Reported by Charles Wilson.
55939 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
55940             Erik Faye-Lund <kusmabite@gmail.com>
55942         poll, select: handle ERROR_BROKEN_PIPE.
55943         * lib/poll.c (win32_compute_revents): Return POLLHUP when
55944         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
55945         * lib/select.c (win32_compute_revents): Do not mark a pipe
55946         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
55948 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
55950         fts: allow compilation with C++
55951         * lib/fts_.h: Specify extern "C" linkage with C++.
55953 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55955         Fix gnulib-tool sed script de-commentation for AIX sed.
55956         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
55957         sed.
55959 2010-08-17  Eric Blake  <eblake@redhat.com>
55961         test-stddef: test for (some) offsetof bugs
55962         * tests/test-stddef.c: Enhance test to ensure correct type of
55963         offsetof.
55964         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
55965         that we are not fixing at this time.
55967 2010-08-15  Bruno Haible  <bruno@clisp.org>
55969         stpncpy: Allow stpncpy to be defined as a macro.
55970         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
55971         if it's already correctly declared.
55972         * lib/string.in.h (stpncpy): Undefine before redefining.
55973         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
55975 2010-08-14  Bruno Haible  <bruno@clisp.org>
55977         Rename module 'memxfrm' to 'amemxfrm'.
55978         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
55979         (amemxfrm): Renamed from memxfrm.
55980         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
55981         (amemxfrm): Renamed from memxfrm.
55982         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
55983         * NEWS: Mention the change.
55984         * MODULES.html.sh (String handling <string.h>): Update.
55985         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
55986         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
55987         * lib/unicase/u16-casexfrm.c: Likewise.
55988         * lib/unicase/u32-casexfrm.c: Likewise.
55989         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
55990         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
55991         * lib/uninorm/u16-normxfrm.c: Likewise.
55992         * lib/uninorm/u32-normxfrm.c: Likewise.
55993         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
55994         memxfrm.
55995         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
55996         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
55997         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
55998         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
55999         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
56000         Suggested by Paul Eggert.
56002 2010-08-14  Bruno Haible  <bruno@clisp.org>
56004         Tests for module 'astrxfrm'.
56005         * modules/astrxfrm-tests: New file.
56006         * tests/test-astrxfrm.c: New file.
56008         New module 'astrxfrm'.
56009         * lib/astrxfrm.h: New file.
56010         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
56011         * modules/astrxfrm: New file.
56013 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
56015         regex: Tweak doc.
56016         * doc/regex.texi (Overview): Don't mention regex.c.
56017         (GNU Regular Expression Compiling): Likewise.
56018         (Match-end-of-line Operator): Mention 'not_eol'.
56020 2010-08-14  Brian Gough  <bjg@gnu.org>
56021             Bruno Haible  <bruno@clisp.org>
56023         git-merge-changelog: add doc relating to use with bzr and hg.
56024         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
56026 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
56028         pthread: fix pthread.h creation for srcdir != builddir
56029         * modules/pthread (Makefile.am): Fix the rule to work also in a
56030         non-srcdir build.
56032 2010-08-13  Karl Berry  <karl@gnu.org>
56034         * doc/regex.texi (Predefined Syntaxes): @smallexample.
56035         * doc/posix-*/*: force line break before @url of POSIX
56036         specifications.
56037         Suggested by Werner Lemberg.
56039 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
56041         strtod: fix const diagnostic
56042         * lib/strtod.c (strtod): Don't assign const char * to char *,
56043         as this elicits a warning from GCC when warnings are enabled.
56045 2010-08-10  Pádraig Brady  <P@draigbrady.com>
56046         and Eric Blake  <eblake@redhat.com>
56048         copy-acl: ignore ENOTSUP on HP-UX
56049         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
56050         so that it is available for HP-UX.
56051         * lib/copy-acl.c (qcopy_acl): Use it.
56052         Reported by Patrick M. Callahan.
56054 2010-08-10  Eric Blake  <eblake@redhat.com>
56056         open, chown: relax license
56057         * modules/open (License): Change to LGPLv2+, with consent by all
56058         authors, for use in augeas.
56059         * modules/chown (License): Likewise.
56060         * modules/lchown (Likewise): Likewise.
56061         Requested by Adam Stokes.
56063 2010-08-09  Karl Berry  <karl@gnu.org>
56065         * build-aux/ar-lib: new file, import from Automake.
56066         * config/srclist.txt: autocheck for updates.
56068 2010-08-09  Eric Blake  <eblake@redhat.com>
56070         readlinkat: adjust client modules
56071         * modules/areadlinkat (Depends-on): Use readlinkat, not
56072         symlinkat.
56073         * modules/areadlinkat-with-size (Depends-on): Likewise.
56075         mknod: be more vocal about danger of running tests as root
56076         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
56077         root, since that is just asking for problems.
56078         Suggested by Bruno Haible, based on a report by Rainer Tammer.
56080         readlinkat: split into its own module
56081         * modules/symlinkat: Split readlinkat...
56082         * modules/readlinkat: ...into separate module.
56083         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
56084         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
56085         * lib/symlinkat.c (readlinkat): Move...
56086         * lib/readlinkat.c: ...into new file.
56087         * modules/symlinkat-tests: Split readlinkat test...
56088         * modules/readlinkat-tests: ...into separate module.
56089         * tests/test-symlinkat.c: Split...
56090         * tests/test-readlinkat.c: ...into new file.
56091         * NEWS: Document the split.
56092         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
56093         * lib/unistd.in.h (readlinkat): Likewise.
56094         Suggested by Bruno Haible.
56096 2010-08-08  Bruno Haible  <bruno@clisp.org>
56098         memxfrm: Speed up.
56099         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
56100         that usually only one call to strxfrm is necessary for each string
56101         part.
56102         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56104 2010-08-07  Karl Berry  <karl@gnu.org>
56106         * doc/posix-headers/limits.texi,
56107         * doc/posix-functions/malloc.texi,
56108         * doc/posix-functions/strsignal.texi: missing @item.
56109         * doc/ld-version-script.texi: spurious leading i.
56110         * doc/regex.texi (Interval Operators): no commas inside @var.
56112 2010-08-01  Bruno Haible  <bruno@clisp.org>
56114         Integrate the regex documentation.
56115         * doc/gnulib.texi: Define 'cn' index.
56116         (Regular expressions): New a chapter that includes regex.texi and
56117         regexprops-generic.texi.
56118         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
56119         syntax.
56121         Whitespace cleanup.
56122         * doc/regex.texi: Remove trailing spaces.
56124         Add regex documentation.
56125         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
56126         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
56127         Written by Kathy A. Hargreaves and Karl Berry.
56129 2010-08-01  Bruno Haible  <bruno@clisp.org>
56131         link: Update documentation.
56132         * doc/posix-functions/link.texi: Update regarding Solaris.
56134 2010-07-31  Bruno Haible  <bruno@clisp.org>
56136         Update modules list.
56137         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
56138         (String handling <string.h>): Add memcmp2, memxfrm.
56139         (Container data structures): Add xlist, xsublist, xoset.
56140         (Core language properties): Add alignof, unused-parameter.
56141         (Process control, Numeric conversion functions <stdlib.h>): Renamed
56142         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
56143         (Unibyte characters <ctype.h>): New section.
56144         (String handling <string.h>): New section.
56145         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
56146         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
56147         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
56148         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
56149         tan, tanh, tanl, y0, y1, yn.
56150         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
56151         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
56152         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
56153         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
56154         unlockpt, vdprintf, vdprintf-posix.
56155         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
56156         (File system functions): Add concat-filename, sys_file, sys_ioctl,
56157         xconcat-filename.
56158         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
56159         getdtablesize, pipe2, pipe2-safer.
56160         (Security): New section.
56161         (Networking functions): Add accept4.
56162         (Signal handling): Add sigpipe.
56163         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
56164         mbmemcasecoll.
56165         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
56166         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
56167         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
56168         pipe-filter-ii.
56169         (Misc): Add argp-version-etc, login_tty, parse-duration.
56171 2010-07-31  Bruno Haible  <bruno@clisp.org>
56173         Improve doc in MODULES.html.
56174         * modules/linkat (Description): Add the word "function".
56175         * modules/mkfifo (Description): Likewise.
56176         * modules/mknod (Description): Likewise.
56177         * modules/remove (Description): Likewise.
56178         * modules/renameat (Description): Likewise.
56179         * modules/stat (Description): Likewise.
56180         * modules/symlink (Description): Likewise.
56181         * modules/unlink (Description): Likewise.
56183 2010-07-31  Bruno Haible  <bruno@clisp.org>
56185         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
56186         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
56187         option --enable/disable-c++ instead of --enable/disable-cxx.
56188         * NEWS: Mention the change.
56190 2010-07-31  Bruno Haible  <bruno@clisp.org>
56192         readlink, areadlink: Relax test a bit.
56193         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
56194         alternative to ENOTDIR.
56195         * tests/test-areadlink.h (test_areadlink): Likewise.
56196         Reported by Rainer Tammer.
56198 2010-07-31  Bruno Haible  <bruno@clisp.org>
56200         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
56201         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
56202         character, perform the search using U_STRCHR.
56203         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
56204         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
56205         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
56206         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
56207         Suggested by Paolo Bonzini.
56209 2010-07-31  Bruno Haible  <bruno@clisp.org>
56211         unistr/u*-strstr: Fix dependencies.
56212         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
56213         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
56214         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
56216 2010-07-31  Bruno Haible  <bruno@clisp.org>
56218         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
56219         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
56220         the beginning of the loop.
56221         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
56222         cases in 'switch' statement.
56224         unistr/u8-strchr: Fix several bugs.
56225         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
56226         the string. When not found, return NULL, not a pointer near the end.
56228         More tests for unistr/u8-strchr.
56229         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
56230         that the function does not read past the first occurrence of the byte
56231         being searched.
56232         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
56233         * tests/unistr/test-u16-strchr.c (main): New function.
56234         * tests/unistr/test-u32-strchr.c (main): New function.
56236 2010-07-31  Bruno Haible  <bruno@clisp.org>
56238         posix-modules: Ignore backup files of documentation files.
56239         * posix-modules: grep only through files named *.texi.
56241 2010-07-31  Bruno Haible  <bruno@clisp.org>
56243         symlinkat: Fix documentation.
56244         * doc/posix-functions/readlinkat.texi: Fix module name.
56246 2010-07-31  Bruno Haible  <bruno@clisp.org>
56248         fchownat: Replace also when chown has the trailing slash bug.
56249         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
56250         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
56251         introduced on 2010-04-10.
56252         Reported by Rainer Tammer.
56254 2010-07-31  Bruno Haible  <bruno@clisp.org>
56256         linkat: Work around AIX 7.1 bug.
56257         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
56258         whether linkat handles trailing slash correctly. If not, replace linkat
56259         and define LINKAT_TRAILING_SLASH_BUG.
56260         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
56261         check whether (fd1,file1) points to a directory if file1 or file2 ends
56262         in a slash. Code taken from lib/link.c.
56263         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
56264         Reported by Rainer Tammer.
56266 2010-07-31  Bruno Haible  <bruno@clisp.org>
56268         Correctly determine whether pow is available in libc on AIX 7 with xlc.
56269         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
56270         This disables an xlc optimization that was causing wrong test results.
56271         Reported by Rainer Tammer.
56273 2010-07-31  Bruno Haible  <bruno@clisp.org>
56275         iconv: Work around AIX 6.1..7.1 bug.
56276         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
56277         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
56278         cross-compiling, guess no on all versions of AIX.
56279         Reported by Rainer Tammer.
56281 2010-07-31  Bruno Haible  <bruno@clisp.org>
56283         readlink: Relax test a bit.
56284         * tests/test-readlink.h (test_readlink): Allow different errno value
56285         when readlink is called with a file name that ends in / and refers to
56286         a file.
56287         Suggested by Eric Blake.
56288         Reported by Rainer Tammer.
56290 2010-07-31  Bruno Haible  <bruno@clisp.org>
56292         copysign: Does not require -lm on glibc systems.
56293         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
56294         gl_COMMON_DOUBLE_MATHFUNC.
56295         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
56297 2010-07-31  Bruno Haible  <bruno@clisp.org>
56299         duplocale: Work around AIX 7.1 bug.
56300         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
56301         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
56302         * lib/duplocale.c (rpl_duplocale): Update comment.
56303         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
56304         Reported by Rainer Tammer.
56306 2010-07-30  Bruno Haible  <bruno@clisp.org>
56308         dirfd: Avoid link error on AIX 7.1.
56309         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
56310         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
56311         exist, set REPLACE_DIRFD.
56312         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
56313         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
56314         * doc/posix-functions/dirfd.texi: Update.
56315         Reported by Rainer Tammer.
56317 2010-07-30  Eric Blake  <eblake@redhat.com>
56319         strtod: next round of AIX fixes
56320         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
56321         exponent.
56322         * tests/test-strtod.c (main): Enhance tests.
56323         * doc/posix-functions/strtod.texi (strtod): Document next bug.
56324         Reported by Rainer Tammer.
56326         futimens: fix configure check
56327         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
56328         Reported by Bruno Haible.
56330 2010-07-30  Bruno Haible  <bruno@clisp.org>
56332         getline: Update regarding AIX.
56333         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
56334         Reported by Rainer Tammer.
56336 2010-07-30  Bruno Haible  <bruno@clisp.org>
56338         wcwidth: Drop replacement on AIX 7.
56339         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
56340         AIX 7.
56341         Reported by Rainer Tammer.
56343 2010-07-30  Bruno Haible  <bruno@clisp.org>
56345         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
56346         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
56347         a 'char *'.
56348         Reported by Rainer Tammer.
56350 2010-07-30  Bruno Haible  <bruno@clisp.org>
56352         unlink: Update regarding AIX.
56353         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
56354         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
56355         Reported by Rainer Tammer.
56357 2010-07-30  Bruno Haible  <bruno@clisp.org>
56359         symlink: Update regarding AIX.
56360         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
56361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
56362         Reported by Rainer Tammer.
56364 2010-07-30  Bruno Haible  <bruno@clisp.org>
56366         strndup: Update regarding AIX.
56367         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
56368         AIX 7.
56369         Reported by Rainer Tammer.
56371 2010-07-30  Bruno Haible  <bruno@clisp.org>
56373         stat: Update regarding AIX.
56374         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
56375         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
56376         Reported by Rainer Tammer.
56378 2010-07-30  Bruno Haible  <bruno@clisp.org>
56380         truncl: Fix autoconf test.
56381         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
56382         whether truncl works.
56383         Reported by Rainer Tammer.
56385 2010-07-30  Bruno Haible  <bruno@clisp.org>
56387         round: Update regarding AIX.
56388         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
56389         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
56390         Reported by Rainer Tammer.
56392 2010-07-30  Bruno Haible  <bruno@clisp.org>
56394         rename: Update regarding AIX.
56395         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
56396         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
56397         Reported by Rainer Tammer.
56399 2010-07-30  Bruno Haible  <bruno@clisp.org>
56401         printf.m4: Update regarding AIX.
56402         * m4/printf.m4: Update comments regarding AIX.
56403         Reported by Rainer Tammer.
56405 2010-07-30  Bruno Haible  <bruno@clisp.org>
56407         iconv: Update regarding AIX.
56408         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
56409         AIX 7.
56410         Reported by Rainer Tammer.
56412 2010-07-30  Bruno Haible  <bruno@clisp.org>
56414         getopt: Update regarding AIX.
56415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
56416         no on AIX.
56417         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
56418         Reported by Rainer Tammer.
56420 2010-07-30  Bruno Haible  <bruno@clisp.org>
56422         ldexpl; Update regarding AIX.
56423         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
56424         on AIX 7.
56425         Reported by Rainer Tammer.
56427 2010-07-30  Bruno Haible  <bruno@clisp.org>
56429         frexpl: Update regarding AIX.
56430         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
56431         on AIX 7.
56432         Reported by Rainer Tammer.
56434 2010-07-30  Bruno Haible  <bruno@clisp.org>
56436         open, fopen: Update regarding AIX.
56437         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
56438         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
56439         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
56440         * doc/posix-functions/fopen.texi: Likewise.
56441         Reported by Rainer Tammer.
56443 2010-07-30  Bruno Haible  <bruno@clisp.org>
56445         chown: Update doc regarding AIX.
56446         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
56447         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
56448         Reported by Rainer Tammer.
56450 2010-07-30  Eric Blake  <eblake@redhat.com>
56452         strtod: fix bug in replacement function on AIX
56453         * lib/strtod.c (strtod): Special case broken "0x" parse in
56454         underlying strtod.
56455         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
56456         * doc/posix-functions/strtod.texi (strtod): Likewise.
56457         Reported by Rainer Tammer.
56459 2010-07-30  Bruno Haible  <bruno@clisp.org>
56461         mbrlen: Fix cross-compilation guess for AIX.
56462         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
56463         guess. Leftover from 2008-12-22.
56465 2010-07-30  Bruno Haible  <bruno@clisp.org>
56467         mbrtowc: Fix cross-compilation guess for AIX.
56468         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
56469         guess. Leftover from 2008-12-21.
56471 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
56473         init.sh: work around trap limitation of some shells
56474         * tests/init.sh (setup_): Move exit trap outside of shell function.
56476 2010-07-29  Eric Blake  <eblake@redhat.com>
56478         strtod: aid debugging
56479         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
56480         understanding why strtod is rejected.
56482 2010-07-28  Bruno Haible  <bruno@clisp.org>
56484         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
56485         * lib/unistr/u8-chr.c: Include <string.h>.
56486         * tests/unistr/test-u8-chr.c: Likewise.
56487         * tests/unistr/test-u16-chr.c: Likewise.
56488         * tests/unistr/test-u32-chr.c: Likewise.
56489         * tests/unistr/test-u8-strchr.c: Likewise.
56490         * tests/unistr/test-u16-strchr.c: Likewise.
56491         * tests/unistr/test-u32-strchr.c: Likewise.
56492         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
56493         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
56494         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
56495         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
56497 2010-07-28  Bruno Haible  <bruno@clisp.org>
56499         Use spaces for indentation, not tabs.
56500         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
56502 2010-07-27  Bruno Haible  <bruno@clisp.org>
56504         mbspcasecmp: Fix function specification.
56505         * lib/string.in.h (mbspcasecmp): Fix specification comment.
56506         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
56507         Reported by Eric Blake <eblake@redhat.com>.
56509 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
56511         timespec: use cast and not conditional, as truncation isn't possible
56512         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
56513         instead of a conditional.  Comment about the situation in more detail.
56514         This undoes most of the 2009-10-29 patch.
56516 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
56518         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
56519         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
56520         * lib/unistr/u8-strchr.c: Likewise.
56521         * modules/unistr/u8-chr: Depend on memchr.
56523         unistr/u*-strchr: add tests
56524         * modules/unistr/u8-strchr-tests: New file.
56525         * modules/unistr/u16-strchr-tests: New file.
56526         * modules/unistr/u32-strchr-tests: New file.
56527         * tests/unistr/test-strchr.h: New file.
56528         * tests/unistr/test-u8-strchr.c: New file.
56529         * tests/unistr/test-u16-strchr.c: New file.
56530         * tests/unistr/test-u32-strchr.c: New file.
56532         unistr/u*-chr: test multibyte sequences more
56533         * tests/unistr/test-chr.h: Do complete testing of the characters in the
56534         test vector.
56535         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
56536         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
56537         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
56539         unistr/u*-chr: test multibyte sequences
56540         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
56542         unistr/u*-chr: prepare for multibyte tests
56543         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
56544         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
56545         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
56546         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
56547         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
56548         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
56550 2010-07-18  Bruno Haible  <bruno@clisp.org>
56552         unistr/u8-strchr: Optimize non-ASCII argument case.
56553         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
56554         because the first byte often matches anyway.
56555         Reported by Pádraig Brady <P@draigbrady.com>.
56557 2010-07-15  Karl Berry  <karl@gnu.org>
56559         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
56561 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
56563         getcwd: on Solaris, work better if ancestors are inaccessible
56564         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
56565         buffer and size, try again with a large buffer.  This works better
56566         on Solaris, since its getcwd succeeds even if the path to the root
56567         is inaccessible, and this is helpful in common cases such as .zfs
56568         hidden directories.  Problem reported by J Chapman Flack in
56569         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
56570         Use system getcwd if it's declared, not merely if it's partly
56571         working; use the partly-working test only to avoid needless effort
56572         if the system getcwd fails.
56573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
56574         comment that was already obsolete and is now even more obsolete.
56575         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
56576         now might call strdup.
56578 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
56580         pthread: Add enough so that coreutils/src/sort.c compiles.
56581         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
56582         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
56583         gnulib. Include <sched.h> and <time.h>, as per POSIX.
56584         Include <sys/types.h>, in case it defines pthread_t.
56585         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
56586         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
56587         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
56588         (pthread_rwlockattr_t, pthread_spinlock_t):
56589         New typedefs, if HAVE_PTHREAD_T is not defined.
56590         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
56591         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
56592         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
56593         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
56594         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
56595         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
56596         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
56597         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
56598         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
56599         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
56600         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
56601         New macros.
56602         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
56603         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
56604         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
56605         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
56606         (pthread_spin_unlock): New dummy functions.
56607         (pthread_create): Return EAGAIN; don't set errno.
56608         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
56609         require AC_C_INLINE.
56610         * modules/pthread (Depends-on): Add sched, time.
56611         (pthread.h): Use AM_V_GEN.
56613 2010-07-13  Bruno Haible  <bruno@clisp.org>
56615         striconveh: Don't malloc memory if the result buffer is sufficient.
56616         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
56617         buffer if its size is sufficient.
56618         Reported by Ludovic Courtès <ludo@gnu.org>.
56620 2010-07-13  Bruno Haible  <bruno@clisp.org>
56622         strtod: Add safety check.
56623         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
56625 2010-07-12  Bruno Haible  <bruno@clisp.org>
56627         Unify tests that set gl_cv_func_ldexpl_no_libm.
56628         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
56629         gl_FUNC_LDEXPL.
56630         (gl_FUNC_LDEXPL): Invoke it.
56631         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56633 2010-07-12  Bruno Haible  <bruno@clisp.org>
56635         Unify tests that set gl_cv_func_ldexp_no_libm.
56636         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
56637         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
56638         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
56639         (configure.ac): Simply invoke gl_FUNC_LDEXP.
56640         * modules/strtod (Files): Add m4/ldexp.m4.
56642 2010-07-12  Bruno Haible  <bruno@clisp.org>
56644         Unify tests that set gl_cv_func_frexpl_no_libm.
56645         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
56646         gl_FUNC_FREXPL_NO_LIBM.
56647         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
56648         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
56650 2010-07-12  Bruno Haible  <bruno@clisp.org>
56652         Unify tests that set gl_cv_func_frexp_no_libm.
56653         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
56654         gl_FUNC_FREXP_NO_LIBM.
56655         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
56656         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
56658 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
56660         memcoll: clarify sizes versus lengths, document better, and tweak perf
56661         * lib/memcoll.c (strcoll_loop, memcoll0):
56662         Improve quality of descriptive comments.  Name variables
56663         consistently as to whether they are lengths (which do not include
56664         terminating null) versus sizes (which do).
56665         * lib/xmemcoll.c (xmemcoll0): Likewise.
56666         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
56667         returned when s1size == 0; this is easier to compile and saves
56668         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
56670 2010-07-12  Bruno Haible  <bruno@clisp.org>
56672         Tests for module '_Exit'.
56673         * modules/_Exit-tests: New file.
56674         * tests/test-_Exit.sh: New file.
56675         * tests/test-_Exit.c: New file.
56677         New module '_Exit'.
56678         * lib/stdlib.in.h (__attribute__): New macro.
56679         (_Exit): New declaration.
56680         * lib/_Exit.c: New file.
56681         * m4/_Exit.m4: New file.
56682         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
56683         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
56684         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
56685         * modules/_Exit: New file.
56686         * tests/test-stdlib-c++.cc (_Exit): Check signature.
56687         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
56689 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
56691         strtod: make it more-accurate typically, and don't require libm
56692         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
56693         Include limits.h.  Don't include string.h.
56694         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
56695         (locale_isspace): New function, so that no casts are needed to
56696         check whether *s is a space.
56697         (ldexp): Provide an unused dummy if not available.
56698         (scale_radix_exp, parse_number, underlying_strtod): New functions.
56699         (strtod): Use them.  This implementation prefers to use the
56700         underlying strtod if available, falling back on our own code
56701         only to fix known bugs.  This is more likely to produce an
56702         accurate result.  Also, it avoids the use of libm functions.
56703         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
56704         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
56705         was absent, but it caused a test failure with coreutils.
56706         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
56707         with libm.
56708         * modules/strtod (Makefile.am, Link): libm is no longer needed.
56709         * modules/strtod-tests (Makefile.am): Likewise.
56711 2010-07-11  Pádraig Brady  <P@draigBrady.com>
56712             Bruno Haible  <bruno@clisp.org>
56714         unistr/u8-strchr: Optimize ASCII argument case.
56715         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
56717 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56719         (x)memcoll: minor tweaks
56720         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
56721         is after the type that it qualifies.
56722         (memcoll0): Likewise.
56723         * lib/memcoll.h (memcoll0): Likewise.
56724         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
56725         * lib/xmemcoll.h (xmemcoll0): Likewise.
56726         * lib/memcoll.c (memcoll0): Correct the comment.  This function
56727         differs from memcoll in that the NUL byte is part of the argument.
56728         Omit the abort-checks, as performance is a real issue here.  Plus,
56729         the checks were wrong anyway (an off-by-one error).  Omit local
56730         variable 'diff', as it's a bit clearer that way.
56731         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
56732         no longer needed.
56734 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
56736         (x)memcoll: speedup when input is known to be NUL delimited
56737         * lib/memcoll.c: Include stdlib.
56738         (memcoll0): New function.
56739         (strcoll_loop): New function, refactored for use in both memcoll
56740         and memcoll0.
56741         * lib/memcoll.h (memcoll0): Add prototype.
56742         * lib/xmemcoll.c (xmemcoll0): New function.
56743         (collate_error): New function, refactored for use in both xmemcoll
56744         and xmemcoll0.
56745         * lib/xmemcoll.h (xmemcoll0): Add prototype.
56746         * m4/memcoll.m4: add inline invocation.
56748 2010-07-06  Pádraig Brady  <P@draigBrady.com>
56750         * build-aux/bootstrap: Remove any local translations
56751         from the translation project synchronization directory,
56752         so that local only translations are not distributed.
56754 2010-07-04  Bruno Haible  <bruno@clisp.org>
56756         fsusage: Clarify which code applies to which platforms.
56757         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
56758         platform.
56759         * lib/fsusage.c (get_fs_usage): Likewise.
56761 2010-07-04  Bruno Haible  <bruno@clisp.org>
56763         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
56764         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
56765         Reported by Martin Lambers <marlam@marlam.de>.
56767 2010-07-04  Jim Meyering  <meyering@redhat.com>
56769         hash: once again explicitly disallow insertion of NULL
56770         * lib/hash.c (hash_insert0): Reinstate just-removed test:
56771         inserting a NULL pointer cannot work with these functions.
56772         Add a comment with details.
56773         This reverts part of the 2010-07-01 commit, 5bef1a35
56774         "hash: extend module to deal with non-pointer keys".
56776 2010-07-01  Bruno Haible  <bruno@clisp.org>
56778         stdbool: Update doc.
56779         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
56780         Info from Christian Weisgerber <naddy@mips.inka.de>.
56782 2010-07-01  Jim Meyering  <meyering@redhat.com>
56784         hash: extend module to deal with non-pointer keys
56785         * lib/hash.c (hash_insert0): New interface, much like hash_insert
56786         but that allows insertion of non-pointer entries.
56787         Do not disallow an ENTRY value of NULL.
56788         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
56789         * lib/hash.h (hash_insert0): Declare.
56791 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
56793         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
56794         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
56795         not present (i.e. with autoconf 2.59 and when using gettextize, not
56796         gnulib), require AC_GNU_SOURCE instead.
56798 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
56800         idpriv-drop: Fix tests.
56801         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
56802         not to the test-idpriv-droptemp program.
56804 2010-06-29  Bruno Haible  <bruno@clisp.org>
56806         string: Fix syntax error with g++ 2.96.
56807         * lib/string.in.h (__pure__): Remove definition.
56808         (_GL_ATTRIBUTE_PURE): New macro.
56809         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
56810         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
56811         Reported by Christian Weisgerber <naddy@mips.inka.de>.
56813 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
56815         unitypes: Fix bug introduced on 2010-05-18.
56816         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
56818 2010-06-22  Eric Blake  <eblake@redhat.com>
56820         memmem: slight optimization
56821         * lib/str-two-way.h (critical_factorization): Update comments.
56822         Reduce work during factorization phase.
56823         Reported by Carlos Bueno <carlos@bueno.org>.
56825 2010-06-21  Bruno Haible  <bruno@clisp.org>
56827         Fix HAVE_CALLOC_POSIX misnomer.
56828         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
56829         !HAVE_CALLOC_POSIX.
56830         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
56831         HAVE_CALLOC_POSIX.
56832         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
56833         instead of HAVE_CALLOC_POSIX.
56834         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
56835         HAVE_CALLOC_POSIX.
56837         Use modern idiom for calloc() replacement.
56838         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
56839         AC_FUNC_CALLOC.
56840         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
56841         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
56842         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56843         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
56844         (gl_REPLACE_CALLOC): New macro.
56846 2010-06-21  Bruno Haible  <bruno@clisp.org>
56848         Fix HAVE_REALLOC_POSIX misnomer.
56849         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
56850         !HAVE_REALLOC_POSIX.
56851         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
56852         HAVE_REALLOC_POSIX.
56853         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
56854         instead of HAVE_REALLOC_POSIX.
56855         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
56856         HAVE_REALLOC_POSIX.
56858         Use modern idiom for realloc() replacement.
56859         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
56860         AC_FUNC_REALLOC.
56861         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
56862         Autoconf's AC_FUNC_REALLOC.
56863         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56864         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
56865         (gl_REPLACE_REALLOC): New macro.
56866         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
56868 2010-06-21  Bruno Haible  <bruno@clisp.org>
56870         Fix HAVE_MALLOC_POSIX misnomer.
56871         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
56872         !HAVE_MALLOC_POSIX.
56873         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
56874         HAVE_MALLOC_POSIX.
56875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
56876         instead of HAVE_MALLOC_POSIX.
56877         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
56878         HAVE_MALLOC_POSIX.
56880         Use modern idiom for malloc() replacement.
56881         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
56882         AC_FUNC_MALLOC.
56883         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
56884         Autoconf's AC_FUNC_MALLOC.
56885         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
56886         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
56887         (gl_REPLACE_MALLOC): New macro.
56888         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
56890 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
56892         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
56893         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
56894         This macro takes 3 arguments, not 4.
56896 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
56898         ipv6: fix detection under mingw
56899         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
56900         in6_addr.
56902 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
56904         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
56905         that strtod() works when cross-compiling to a glibc version known
56906         to work.
56908 2010-06-15  Bruno Haible  <bruno@clisp.org>
56910         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
56912 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
56914         select: Correct timeout.
56915         * lib/select.c (rpl_select): Compute wait_timeout correctly.
56917 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56919         git-version-gen: init shell var to avoid env var influence
56920         * build-aux/git-version-gen (v): Init shell var to empty.
56922 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
56924         priv-set: Don't assume that priv.h exists merely because getppriv does.
56925         See Jan Andersen's bug report about AIX 5L in
56926         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
56927         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
56928         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
56929         * lib/priv-set.h: Likewise.
56930         * tests/test-priv-set.c: Likewise.
56932 2010-06-13  Bruno Haible  <bruno@clisp.org>
56934         relocatable: Make it easier to test whether to install wrappers.
56935         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
56936         RELOCATABLE_VIA_WRAPPER.
56938 2010-06-13  Bruno Haible  <bruno@clisp.org>
56940         gnulib-tool: Display specified modules and dependencies differently.
56941         * gnulib-tool (func_show_module_list): New function.
56942         (func_import, func_create_testdir): Invoke it.
56943         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56945 2010-06-13  Bruno Haible  <bruno@clisp.org>
56947         gnulib-tool: Align code of func_import and func_create_testdir.
56948         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
56949         specified_modules.
56951 2010-06-12  Jim Meyering  <meyering@redhat.com>
56953         test-inttostr: avoid spurious failure on Solaris 9
56954         * tests/test-inttostr.c (main): Skip the test when snprintf fails
56955         to accept "%ju".  Reported by Bruno Haible.
56957 2010-06-11  Jim Meyering  <meyering@redhat.com>
56959         test-sys_socket: mark variables as used more readably
56960         * tests/test-sys_socket.c (main): Mark otherwise unused variables
56961         as "used" explicitly via (void) statement casts.  This is more
56962         readable than using them in an artificial return expression.
56963         Suggestion from Bruno Haible.
56965 2010-06-11  Bruno Haible  <bruno@clisp.org>
56967         Avoid some more warnings from "gcc -Wwrite-strings".
56968         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
56969         to 'const char *'.
56970         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
56971         * tests/test-c-strcasestr.c (main): Likewise.
56972         * tests/test-mbscasestr1.c (main): Likewise.
56973         * tests/test-mbscasestr2.c (main): Likewise.
56974         * tests/test-memmem.c (main): Likewise.
56975         * tests/test-strstr.c (main): Likewise.
56976         * tests/test-strcasestr.c (main): Likewise.
56978 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56980         init.sh: change framework_failure_ to fail with status 99, not 1
56981         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
56982         automake's parallel-tests rule that this is an unexpected failure,
56983         even if the test is listed in XFAIL_TESTS.
56985 2010-06-11  Jim Meyering  <meyering@redhat.com>
56987         test-inttostr: avoid warnings about 4-6KB literal strings
56988         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
56989         Include "macros.h", for its definition of ASSERT.
56990         (CK): s/assert/ASSERT/
56991         * modules/inttostr-tests (Files): Add macros.h.
56993         init.sh: don't use $ME_ or skip_ before they are defined
56994         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
56995         their first uses.  Also hoist their companions: warn_, fail_,
56996         framework_failure_, $stderr_fileno.  Prompted by a patch from
56997         Stefano Lattarini.
56999         test-sys_socket: avoid set-but-not-used warnings from gcc
57000         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
57001         avoid warning about set-but-not-used variables.
57003         test-xvasprintf: avoid 'const' discard warnings
57004         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
57005         "const" when assigning from literal strings.
57006         (test_xasprintf): Add "void" in function argument list to placate
57007         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
57009         tests: avoid compilation warnings in argmatch and exclude tests...
57010         in packages that define ARGMATCH_DIE_DECL, like coreutils.
57011         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
57012         Since it always exits, declare with the "noreturn" attribute.
57013         * tests/test-argmatch.c: Likewise.
57015         tests: avoid 'const' discard warnings in mbsstr tests
57016         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
57017         * tests/test-mbsstr2.c (main): Likewise.
57019         test-verify: avoid warning from gcc's -Wmissing-declarations
57020         * tests/test-verify.c (function): Declare to be static.
57022         test-inttostr.c: include <string.h> for use of strcmp
57023         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
57025         test-linkat: avoid failed assertion on "other" architectures
57026         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
57027         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
57028         sparc: https://bugs.launchpad.net/bugs/591968
57030 2010-06-11  Jim Meyering  <meyering@redhat.com>
57032         printf.m4: avoid autoconf's "Expanded Before Required" warning
57033         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
57034         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
57035         autoconf warning.
57037 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
57039         Replacement header templates are now named with ".in", not "_".
57040         * doc/gnulib-intro.texi: Correct.
57042 2010-06-10  Jim Meyering  <meyering@redhat.com>
57044         inttostr-tests: depend on snprintf, not snprintf-posix
57045         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
57046         snprintf-posix, to avoid this aclocal failure:
57047           missing file gnulib-tests/vasnprintf.c
57048           configure.ac:45: error: expected source file, required through \
57049           AC_LIBSOURCES, not found
57051 2010-06-10  Jim Meyering  <meyering@redhat.com>
57053         inttostr: add a new function, inttostr, and tests
57054         The namesake function was not available.  The existence of the
57055         template file, inttostr.c makes its addition nontrivial.
57056         * lib/anytostr.c: Rename from inttostr.c.
57057         (anytostr): Rename from inttostr.
57058         * lib/inttostr.c: New file.
57059         * modules/inttostr (Files): Add anytostr.c.
57060         (Makefile.am): Set lib_SOURCES instead of ...
57061         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
57062         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
57063         * lib/offtostr.c: Likewise.
57064         * lib/uinttostr.c: Likewise.
57065         * lib/umaxtostr.c: Likewise.
57066         * modules/inttostr-tests: New file.
57067         * tests/test-inttostr.c: New file.  Test these functions.
57069 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
57070             Bruno Haible  <bruno@clisp.org>
57072         Add "Extending Gnulib" chapter to manual.
57073         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
57074         chapter.
57075         (Extending Gnulib): New chapter.
57076         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
57077         chapter.
57079 2010-06-09  Bruno Haible  <bruno@clisp.org>
57081         Avoid relocwrapper link errors due to gnulib replacement functions.
57082         * lib/areadlink.c: Use the system's malloc, realloc functions.
57083         (areadlink): Set errno to ENOMEM explicitly.
57084         * modules/areadlink (Depends-on): Remove malloc-posix.
57085         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57087 2010-06-09  Bruno Haible  <bruno@clisp.org>
57089         Avoid relocwrapper link errors due to gnulib replacement functions.
57090         * lib/canonicalize-lgpl.c: Use the system's malloc function.
57091         * lib/malloca.c: Likewise.
57092         * lib/relocatable.c: Likewise.
57093         * lib/progreloc.c: Use the system's malloc, sprintf functions.
57094         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
57095         * lib/setenv.c: Use the system's malloc, realloc functions.
57096         * lib/strerror.c: Use the system's sprintf function.
57097         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57099 2010-06-04  Bruno Haible  <bruno@clisp.org>
57101         Prefer documented low-level autoconf macro names.
57102         * m4/lib-link.m4: Use m4_translit instead of translit.
57103         * m4/environ.m4: Likewise.
57104         * m4/mathfunc.m4: Likewise.
57105         * m4/onceonly.m4: Likewise.
57106         * m4/stdint.m4: Likewise.
57107         Suggested by Eric Blake.
57109 2010-06-04  Martin Lambers  <marlam@marlam.de>
57110             Bruno Haible  <bruno@clisp.org>
57112         havelib: Allow library names with '+' characters.
57113         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
57114         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
57116 2010-06-09  Bruno Haible  <bruno@clisp.org>
57118         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
57119         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
57120         realloc failed.
57122 2010-06-08  Peter Simons  <simons@cryp.to>
57124         maint.mk: make the news-check rule more configurable
57125         * top/maint.mk (news-check-lines-spec): New variable.
57126         (news-check): Use "sed -n 1,10p" in place of "head".
57128 2010-06-07  Jim Meyering  <meyering@redhat.com>
57130         do-release-commit-and-tag: fix typo in --help
57131         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
57133         regex: avoid new dead-code warning with gcc-4.6.0
57134         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
57135         if-block containing a while-loop.  It's been unused for at least
57136         5 years.
57138 2010-06-05  Bruno Haible  <bruno@clisp.org>
57140         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
57141         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
57143 2010-06-04  Bruno Haible  <bruno@clisp.org>
57145         Update to GNU gettext 0.18.1.
57146         * modules/gettext (configure.ac): Require gettext infrastructure from
57147         version 0.18.1.
57149 2010-06-03  Bruno Haible  <bruno@clisp.org>
57151         Don't use AC_LIBOBJ with file names in subdirectories.
57152         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
57153         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
57154         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
57155         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
57156         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
57157         gl_LIBUNISTRING_LIBSOURCE.
57158         (Makefile.am): Augment lib_SOURCES here, conditionally.
57159         * NEWS: Drop requirement for Automake option 'subdir-objects'.
57161 2010-06-03  Bruno Haible  <bruno@clisp.org>
57163         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
57164         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
57165         expansion does not end with a newline.
57166         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
57167         unnecessary newline.
57169 2010-06-03  Bruno Haible  <bruno@clisp.org>
57171         Reduce dependencies.
57172         * tests/test-quotearg.h: New file, extracted from
57173         tests/test-quotearg.c.
57174         * tests/test-quotearg-simple.c: New file, extracted from
57175         tests/test-quotearg.c.
57176         * tests/test-quotearg.c: Don't include <ctype.h>.
57177         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
57178         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
57179         use_quote_double_quotes, use_quotearg_colon): Moved to
57180         tests/test-quotearg.h.
57181         (results_g, flag_results, custom_quotes, custom_results): Moved
57182         to tests/test-quotearg-simple.c.
57183         (main): Moved the part that does not depend on gettext to
57184         tests/test-quotearg-simple.c. Return 77 if the test cannot be
57185         performed.
57186         * modules/quotearg-simple: New file.
57187         * modules/quotearg-simple-tests: New file.
57188         * modules/quotearg (Depends-on): Add quotearg-simple.
57189         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
57190         (Files): Add tests/test-quotearg.h.
57191         Reported by Paolo Bonzini.
57193 2010-06-03  Bruno Haible  <bruno@clisp.org>
57195         Reduce dependencies.
57196         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
57198 2010-06-03  Bruno Haible  <bruno@clisp.org>
57200         time: Undefine more broken macros.
57201         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
57202         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
57203         Reported by Eric Blake.
57205 2010-06-03  Bruno Haible  <bruno@clisp.org>
57207         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
57208         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
57209         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
57210         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
57211         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
57212         Reported by Ludovic Courtès <ludo@gnu.org>.
57214 2010-06-02  Eric Blake  <eblake@redhat.com>
57216         time: work with mingw + pthreads-win32 library
57217         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
57218         if timespec is defined only in pthread.h.
57219         * modules/time (Makefile.am): Substitute it.
57220         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
57221         <pthread.h>, when needed.
57222         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
57223         from the library.
57225 2010-05-31  Bruno Haible  <bruno@clisp.org>
57227         Avoid expanding two macros in the wrong order.
57228         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
57229         gl_LIBUNISTRING if it is defined.
57230         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
57231         autoconf >= 2.64.
57232         Reported by Ludovic Courtès <ludo@gnu.org>.
57234 2010-05-27  Jim Meyering  <meyering@redhat.com>
57236         maint.mk: also prohibit "#undef" of always-defined symbols
57237         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
57238         Allow more than one space before the symbol name.
57239         (sc_prohibit_always-defined_macros): Use grep's -E, now that
57240         the regexp uses alternation.
57242 2010-05-26  Eric Blake  <eblake@redhat.com>
57244         maint.mk: avoid echo -e
57245         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
57246         Convert all uses of echo -* to printf.
57247         Reported by Matthias Bolte.
57249 2010-05-25  Bruno Haible  <bruno@clisp.org>
57251         Update to GNU gettext 0.18, part 2.
57252         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
57253         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
57255 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57257         Add missing include in test-pwrite.c.
57258         * tests/test-pwrite.c: Include string.h, for strcmp.
57260 2010-05-24  Bruno Haible  <bruno@clisp.org>
57262         * NEWS: Mention requirement for Automake option 'subdir-objects'.
57264 2010-05-24  Bruno Haible  <bruno@clisp.org>
57266         Don't use conversion with transliteration in u{8,16,32}_strcoll.
57267         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
57268         iconveh_error argument.
57269         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
57270         U_STRCONV_TO_LOCALE.
57271         * lib/unistr/u16-strcoll.c: Likewise.
57272         * lib/unistr/u32-strcoll.c: Likewise.
57273         * modules/unistr/u8-strcoll (Depends-on): Add
57274         uniconv/u8-strconv-to-enc, localcharset. Remove
57275         uniconv/u8-strconv-to-locale.
57276         (configure.ac): Bump version number.
57277         * modules/unistr/u16-strcoll (Depends-on): Add
57278         uniconv/u16-strconv-to-enc, localcharset. Remove
57279         uniconv/u16-strconv-to-locale.
57280         (configure.ac): Bump version number.
57281         * modules/unistr/u32-strcoll (Depends-on): Add
57282         uniconv/u32-strconv-to-enc, localcharset. Remove
57283         uniconv/u32-strconv-to-locale.
57284         (configure.ac): Bump version number.
57286 2010-05-24  Bruno Haible  <bruno@clisp.org>
57288         Avoid a test failure on NetBSD 5.0.
57289         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
57290         an iconv() bug.
57292 2010-05-24  Bruno Haible  <bruno@clisp.org>
57294         Adjust #include directive style.
57295         * modules/regex (Includes): Recommend to write <regex.h>.
57297 2010-05-24  Bruno Haible  <bruno@clisp.org>
57299         regex: Don't require alloca.
57300         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
57301         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
57302         only inside if (0).
57304 2010-05-23  Jim Meyering  <meyering@redhat.com>
57306         test-renameat.c: include <sys/stat.h>
57307         * tests/test-renameat.c: Include <sys/stat.h>; required for
57308         definition of S_IS* macros.
57310 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
57312         Update maintainer documentation for 'relocatable-prog' module.
57313         * doc/relocatable-maint.texi: Update.
57314         Comments by Bruno Haible.
57316 2010-05-23  Bruno Haible  <bruno@clisp.org>
57318         git-merge-changelog: Enable --split-merged-entry by default.
57319         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
57320         (usage): Don't mention this option any more.
57321         Reported by Ralf Wildenhues.
57323 2010-05-23  Jim Meyering  <meyering@redhat.com>
57325         test-pwrite: do not leave behind a test file named "out"
57326         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
57327         The trivial-looking use of init.sh is really necessary.
57328         It ensures that the temporary file, "out", is created in
57329         a temporary directory, and removed upon termination.
57330         * tests/test-pwrite.sh: Re-add file.
57331         * modules/pwrite-tests: Reference it.
57333 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57335         Fix output redirection buglet in init.sh.
57336         * tests/init.sh: Fix redirection of stderr.
57338 2010-05-20  Simon Josefsson  <simon@josefsson.org>
57340         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
57342 2010-05-17  Simon Josefsson  <simon@josefsson.org>
57344         * modules/valgrind-tests: New file.
57345         * m4/valgrind-tests.m4: New file.
57346         * doc/valgrind-tests.texi: New file.
57347         * doc/gnulib.texi (Running self-tests under valgrind): New
57348         section.
57350 2010-05-19  Bruno Haible  <bruno@clisp.org>
57352         Clean up dead code in recent commit.
57353         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
57354         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
57355         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
57356         Suggested by Paolo Bonzini.
57358 2010-05-19  Bruno Haible  <bruno@clisp.org>
57360         Avoid valgrind error reports from libunistring.
57361         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
57362         * modules/libunistring (Files): Add it.
57363         * modules/libunistring-optional (Files): Likewise.
57365 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
57366             Bruno Haible  <bruno@clisp.org>
57368         New module 'libunistring-optional'.
57369         * modules/libunistring-optional: New file.
57370         * m4/libunistring-base.m4: New file.
57371         * m4/libunistring-optional.m4: New file.
57372         * lib/unicase.in.h: Renamed from lib/unicase.h.
57373         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
57374         * lib/unictype.in.h: Renamed from lib/unictype.h.
57375         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
57376         * lib/uniname.in.h: Renamed from lib/uniname.h.
57377         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
57378         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
57379         * lib/unistr.in.h: Renamed from lib/unistr.h.
57380         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
57381         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
57382         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
57383         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
57384         gl_LIBUNISTRING. If the library was found, determine the installed
57385         version and set LIBUNISTRING_VERSION.
57386         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
57387         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
57388         handle a configuration option --with-included-libunistring.
57389         * modules/libunistring (Files): Add m4/absolute-header.m4.
57390         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
57391         Add m4/libunistring-base.m4.
57392         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57393         (Makefile.am): Build unicase.h from unicase.in.h.
57394         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
57395         Add m4/libunistring-base.m4.
57396         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57397         (Makefile.am): Build uniconv.h from uniconv.in.h.
57398         * modules/unictype/base (Files): Use unictype.in.h instead of
57399         unictype.h. Add m4/libunistring-base.m4.
57400         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57401         (Makefile.am): Build unictype.h from unictype.in.h.
57402         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
57403         Add m4/libunistring-base.m4.
57404         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57405         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
57406         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
57407         Add m4/libunistring-base.m4.
57408         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57409         (Makefile.am): Build uniname.h from uniname.in.h.
57410         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
57411         Add m4/libunistring-base.m4.
57412         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57413         (Makefile.am): Build uninorm.h from uninorm.in.h.
57414         * modules/unistdio/base (Files): Use unistdio.in.h instead of
57415         unistdio.h. Add m4/libunistring-base.m4.
57416         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57417         (Makefile.am): Build unistdio.h from unistdio.in.h.
57418         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
57419         Add m4/libunistring-base.m4.
57420         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57421         (Makefile.am): Build unistr.h from unistr.in.h.
57422         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
57423         Add m4/libunistring-base.m4.
57424         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57425         (Makefile.am): Build unitypes.h from unitypes.in.h.
57426         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
57427         Add m4/libunistring-base.m4.
57428         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57429         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
57430         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
57431         uniwidth.h. Add m4/libunistring-base.m4.
57432         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
57433         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
57434         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
57435         instead of augmenting lib_SOURCES.
57436         * modules/unicase/empty-suffix-context: Likewise.
57437         * modules/unicase/locale-language: Likewise.
57438         * modules/unicase/tolower: Likewise.
57439         * modules/unicase/totitle: Likewise.
57440         * modules/unicase/toupper: Likewise.
57441         * modules/unicase/u8-casecmp: Likewise.
57442         * modules/unicase/u8-casecoll: Likewise.
57443         * modules/unicase/u8-casefold: Likewise.
57444         * modules/unicase/u8-casexfrm: Likewise.
57445         * modules/unicase/u8-ct-casefold: Likewise.
57446         * modules/unicase/u8-ct-tolower: Likewise.
57447         * modules/unicase/u8-ct-totitle: Likewise.
57448         * modules/unicase/u8-ct-toupper: Likewise.
57449         * modules/unicase/u8-is-cased: Likewise.
57450         * modules/unicase/u8-is-casefolded: Likewise.
57451         * modules/unicase/u8-is-lowercase: Likewise.
57452         * modules/unicase/u8-is-titlecase: Likewise.
57453         * modules/unicase/u8-is-uppercase: Likewise.
57454         * modules/unicase/u8-prefix-context: Likewise.
57455         * modules/unicase/u8-suffix-context: Likewise.
57456         * modules/unicase/u8-tolower: Likewise.
57457         * modules/unicase/u8-totitle: Likewise.
57458         * modules/unicase/u8-toupper: Likewise.
57459         * modules/unicase/u16-casecmp: Likewise.
57460         * modules/unicase/u16-casecoll: Likewise.
57461         * modules/unicase/u16-casefold: Likewise.
57462         * modules/unicase/u16-casexfrm: Likewise.
57463         * modules/unicase/u16-ct-casefold: Likewise.
57464         * modules/unicase/u16-ct-tolower: Likewise.
57465         * modules/unicase/u16-ct-totitle: Likewise.
57466         * modules/unicase/u16-ct-toupper: Likewise.
57467         * modules/unicase/u16-is-cased: Likewise.
57468         * modules/unicase/u16-is-casefolded: Likewise.
57469         * modules/unicase/u16-is-lowercase: Likewise.
57470         * modules/unicase/u16-is-titlecase: Likewise.
57471         * modules/unicase/u16-is-uppercase: Likewise.
57472         * modules/unicase/u16-prefix-context: Likewise.
57473         * modules/unicase/u16-suffix-context: Likewise.
57474         * modules/unicase/u16-tolower: Likewise.
57475         * modules/unicase/u16-totitle: Likewise.
57476         * modules/unicase/u16-toupper: Likewise.
57477         * modules/unicase/u32-casecmp: Likewise.
57478         * modules/unicase/u32-casecoll: Likewise.
57479         * modules/unicase/u32-casefold: Likewise.
57480         * modules/unicase/u32-casexfrm: Likewise.
57481         * modules/unicase/u32-ct-casefold: Likewise.
57482         * modules/unicase/u32-ct-tolower: Likewise.
57483         * modules/unicase/u32-ct-totitle: Likewise.
57484         * modules/unicase/u32-ct-toupper: Likewise.
57485         * modules/unicase/u32-is-cased: Likewise.
57486         * modules/unicase/u32-is-casefolded: Likewise.
57487         * modules/unicase/u32-is-lowercase: Likewise.
57488         * modules/unicase/u32-is-titlecase: Likewise.
57489         * modules/unicase/u32-is-uppercase: Likewise.
57490         * modules/unicase/u32-prefix-context: Likewise.
57491         * modules/unicase/u32-suffix-context: Likewise.
57492         * modules/unicase/u32-tolower: Likewise.
57493         * modules/unicase/u32-totitle: Likewise.
57494         * modules/unicase/u32-toupper: Likewise.
57495         * modules/unicase/ulc-casecmp: Likewise.
57496         * modules/unicase/ulc-casecoll: Likewise.
57497         * modules/unicase/ulc-casexfrm: Likewise.
57498         * modules/uniconv/u8-conv-from-enc: Likewise.
57499         * modules/uniconv/u8-conv-to-enc: Likewise.
57500         * modules/uniconv/u8-strconv-from-enc: Likewise.
57501         * modules/uniconv/u8-strconv-from-locale: Likewise.
57502         * modules/uniconv/u8-strconv-to-enc: Likewise.
57503         * modules/uniconv/u8-strconv-to-locale: Likewise.
57504         * modules/uniconv/u16-conv-from-enc: Likewise.
57505         * modules/uniconv/u16-conv-to-enc: Likewise.
57506         * modules/uniconv/u16-strconv-from-enc: Likewise.
57507         * modules/uniconv/u16-strconv-from-locale: Likewise.
57508         * modules/uniconv/u16-strconv-to-enc: Likewise.
57509         * modules/uniconv/u16-strconv-to-locale: Likewise.
57510         * modules/uniconv/u32-conv-from-enc: Likewise.
57511         * modules/uniconv/u32-conv-to-enc: Likewise.
57512         * modules/uniconv/u32-strconv-from-enc: Likewise.
57513         * modules/uniconv/u32-strconv-from-locale: Likewise.
57514         * modules/uniconv/u32-strconv-to-enc: Likewise.
57515         * modules/uniconv/u32-strconv-to-locale: Likewise.
57516         * modules/unictype/bidicategory-byname: Likewise.
57517         * modules/unictype/bidicategory-name: Likewise.
57518         * modules/unictype/bidicategory-of: Likewise.
57519         * modules/unictype/bidicategory-test: Likewise.
57520         * modules/unictype/block-list: Likewise.
57521         * modules/unictype/block-test: Likewise.
57522         * modules/unictype/category-C: Likewise.
57523         * modules/unictype/category-Cc: Likewise.
57524         * modules/unictype/category-Cf: Likewise.
57525         * modules/unictype/category-Cn: Likewise.
57526         * modules/unictype/category-Co: Likewise.
57527         * modules/unictype/category-Cs: Likewise.
57528         * modules/unictype/category-L: Likewise.
57529         * modules/unictype/category-Ll: Likewise.
57530         * modules/unictype/category-Lm: Likewise.
57531         * modules/unictype/category-Lo: Likewise.
57532         * modules/unictype/category-Lt: Likewise.
57533         * modules/unictype/category-Lu: Likewise.
57534         * modules/unictype/category-M: Likewise.
57535         * modules/unictype/category-Mc: Likewise.
57536         * modules/unictype/category-Me: Likewise.
57537         * modules/unictype/category-Mn: Likewise.
57538         * modules/unictype/category-N: Likewise.
57539         * modules/unictype/category-Nd: Likewise.
57540         * modules/unictype/category-Nl: Likewise.
57541         * modules/unictype/category-No: Likewise.
57542         * modules/unictype/category-P: Likewise.
57543         * modules/unictype/category-Pc: Likewise.
57544         * modules/unictype/category-Pd: Likewise.
57545         * modules/unictype/category-Pe: Likewise.
57546         * modules/unictype/category-Pf: Likewise.
57547         * modules/unictype/category-Pi: Likewise.
57548         * modules/unictype/category-Po: Likewise.
57549         * modules/unictype/category-Ps: Likewise.
57550         * modules/unictype/category-S: Likewise.
57551         * modules/unictype/category-Sc: Likewise.
57552         * modules/unictype/category-Sk: Likewise.
57553         * modules/unictype/category-Sm: Likewise.
57554         * modules/unictype/category-So: Likewise.
57555         * modules/unictype/category-Z: Likewise.
57556         * modules/unictype/category-Zl: Likewise.
57557         * modules/unictype/category-Zp: Likewise.
57558         * modules/unictype/category-Zs: Likewise.
57559         * modules/unictype/category-and: Likewise.
57560         * modules/unictype/category-and-not: Likewise.
57561         * modules/unictype/category-byname: Likewise.
57562         * modules/unictype/category-name: Likewise.
57563         * modules/unictype/category-none: Likewise.
57564         * modules/unictype/category-of: Likewise.
57565         * modules/unictype/category-or: Likewise.
57566         * modules/unictype/category-test: Likewise.
57567         * modules/unictype/combining-class: Likewise.
57568         * modules/unictype/ctype-alnum: Likewise.
57569         * modules/unictype/ctype-alpha: Likewise.
57570         * modules/unictype/ctype-blank: Likewise.
57571         * modules/unictype/ctype-cntrl: Likewise.
57572         * modules/unictype/ctype-digit: Likewise.
57573         * modules/unictype/ctype-graph: Likewise.
57574         * modules/unictype/ctype-lower: Likewise.
57575         * modules/unictype/ctype-print: Likewise.
57576         * modules/unictype/ctype-punct: Likewise.
57577         * modules/unictype/ctype-space: Likewise.
57578         * modules/unictype/ctype-upper: Likewise.
57579         * modules/unictype/ctype-xdigit: Likewise.
57580         * modules/unictype/decimal-digit: Likewise.
57581         * modules/unictype/digit: Likewise.
57582         * modules/unictype/mirror: Likewise.
57583         * modules/unictype/numeric: Likewise.
57584         * modules/unictype/property-alphabetic: Likewise.
57585         * modules/unictype/property-ascii-hex-digit: Likewise.
57586         * modules/unictype/property-bidi-arabic-digit: Likewise.
57587         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
57588         * modules/unictype/property-bidi-block-separator: Likewise.
57589         * modules/unictype/property-bidi-boundary-neutral: Likewise.
57590         * modules/unictype/property-bidi-common-separator: Likewise.
57591         * modules/unictype/property-bidi-control: Likewise.
57592         * modules/unictype/property-bidi-embedding-or-override: Likewise.
57593         * modules/unictype/property-bidi-eur-num-separator: Likewise.
57594         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
57595         * modules/unictype/property-bidi-european-digit: Likewise.
57596         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
57597         * modules/unictype/property-bidi-left-to-right: Likewise.
57598         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
57599         * modules/unictype/property-bidi-other-neutral: Likewise.
57600         * modules/unictype/property-bidi-pdf: Likewise.
57601         * modules/unictype/property-bidi-segment-separator: Likewise.
57602         * modules/unictype/property-bidi-whitespace: Likewise.
57603         * modules/unictype/property-byname: Likewise.
57604         * modules/unictype/property-combining: Likewise.
57605         * modules/unictype/property-composite: Likewise.
57606         * modules/unictype/property-currency-symbol: Likewise.
57607         * modules/unictype/property-dash: Likewise.
57608         * modules/unictype/property-decimal-digit: Likewise.
57609         * modules/unictype/property-default-ignorable-code-point: Likewise.
57610         * modules/unictype/property-deprecated: Likewise.
57611         * modules/unictype/property-diacritic: Likewise.
57612         * modules/unictype/property-extender: Likewise.
57613         * modules/unictype/property-format-control: Likewise.
57614         * modules/unictype/property-grapheme-base: Likewise.
57615         * modules/unictype/property-grapheme-extend: Likewise.
57616         * modules/unictype/property-grapheme-link: Likewise.
57617         * modules/unictype/property-hex-digit: Likewise.
57618         * modules/unictype/property-hyphen: Likewise.
57619         * modules/unictype/property-id-continue: Likewise.
57620         * modules/unictype/property-id-start: Likewise.
57621         * modules/unictype/property-ideographic: Likewise.
57622         * modules/unictype/property-ids-binary-operator: Likewise.
57623         * modules/unictype/property-ids-trinary-operator: Likewise.
57624         * modules/unictype/property-ignorable-control: Likewise.
57625         * modules/unictype/property-iso-control: Likewise.
57626         * modules/unictype/property-join-control: Likewise.
57627         * modules/unictype/property-left-of-pair: Likewise.
57628         * modules/unictype/property-line-separator: Likewise.
57629         * modules/unictype/property-logical-order-exception: Likewise.
57630         * modules/unictype/property-lowercase: Likewise.
57631         * modules/unictype/property-math: Likewise.
57632         * modules/unictype/property-non-break: Likewise.
57633         * modules/unictype/property-not-a-character: Likewise.
57634         * modules/unictype/property-numeric: Likewise.
57635         * modules/unictype/property-other-alphabetic: Likewise.
57636         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
57637         * modules/unictype/property-other-grapheme-extend: Likewise.
57638         * modules/unictype/property-other-id-continue: Likewise.
57639         * modules/unictype/property-other-id-start: Likewise.
57640         * modules/unictype/property-other-lowercase: Likewise.
57641         * modules/unictype/property-other-math: Likewise.
57642         * modules/unictype/property-other-uppercase: Likewise.
57643         * modules/unictype/property-paired-punctuation: Likewise.
57644         * modules/unictype/property-paragraph-separator: Likewise.
57645         * modules/unictype/property-pattern-syntax: Likewise.
57646         * modules/unictype/property-pattern-white-space: Likewise.
57647         * modules/unictype/property-private-use: Likewise.
57648         * modules/unictype/property-punctuation: Likewise.
57649         * modules/unictype/property-quotation-mark: Likewise.
57650         * modules/unictype/property-radical: Likewise.
57651         * modules/unictype/property-sentence-terminal: Likewise.
57652         * modules/unictype/property-soft-dotted: Likewise.
57653         * modules/unictype/property-space: Likewise.
57654         * modules/unictype/property-terminal-punctuation: Likewise.
57655         * modules/unictype/property-test: Likewise.
57656         * modules/unictype/property-titlecase: Likewise.
57657         * modules/unictype/property-unassigned-code-value: Likewise.
57658         * modules/unictype/property-unified-ideograph: Likewise.
57659         * modules/unictype/property-uppercase: Likewise.
57660         * modules/unictype/property-variation-selector: Likewise.
57661         * modules/unictype/property-white-space: Likewise.
57662         * modules/unictype/property-xid-continue: Likewise.
57663         * modules/unictype/property-xid-start: Likewise.
57664         * modules/unictype/property-zero-width: Likewise.
57665         * modules/unictype/scripts: Likewise.
57666         * modules/unictype/syntax-c-ident: Likewise.
57667         * modules/unictype/syntax-c-whitespace: Likewise.
57668         * modules/unictype/syntax-java-ident: Likewise.
57669         * modules/unictype/syntax-java-whitespace: Likewise.
57670         * modules/unilbrk/u8-possible-linebreaks: Likewise.
57671         * modules/unilbrk/u8-width-linebreaks: Likewise.
57672         * modules/unilbrk/u16-possible-linebreaks: Likewise.
57673         * modules/unilbrk/u16-width-linebreaks: Likewise.
57674         * modules/unilbrk/u32-possible-linebreaks: Likewise.
57675         * modules/unilbrk/u32-width-linebreaks: Likewise.
57676         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
57677         * modules/unilbrk/ulc-width-linebreaks: Likewise.
57678         * modules/uniname/uniname: Likewise.
57679         * modules/uninorm/canonical-decomposition: Likewise.
57680         * modules/uninorm/composition: Likewise.
57681         * modules/uninorm/decomposing-form: Likewise.
57682         * modules/uninorm/decomposition: Likewise.
57683         * modules/uninorm/filter: Likewise.
57684         * modules/uninorm/nfc: Likewise.
57685         * modules/uninorm/nfd: Likewise.
57686         * modules/uninorm/nfkc: Likewise.
57687         * modules/uninorm/nfkd: Likewise.
57688         * modules/uninorm/u8-normalize: Likewise.
57689         * modules/uninorm/u8-normcmp: Likewise.
57690         * modules/uninorm/u8-normcoll: Likewise.
57691         * modules/uninorm/u8-normxfrm: Likewise.
57692         * modules/uninorm/u16-normalize: Likewise.
57693         * modules/uninorm/u16-normcmp: Likewise.
57694         * modules/uninorm/u16-normcoll: Likewise.
57695         * modules/uninorm/u16-normxfrm: Likewise.
57696         * modules/uninorm/u32-normalize: Likewise.
57697         * modules/uninorm/u32-normcmp: Likewise.
57698         * modules/uninorm/u32-normcoll: Likewise.
57699         * modules/uninorm/u32-normxfrm: Likewise.
57700         * modules/unistdio/u8-asnprintf: Likewise.
57701         * modules/unistdio/u8-asprintf: Likewise.
57702         * modules/unistdio/u8-snprintf: Likewise.
57703         * modules/unistdio/u8-sprintf: Likewise.
57704         * modules/unistdio/u8-u8-asnprintf: Likewise.
57705         * modules/unistdio/u8-u8-asprintf: Likewise.
57706         * modules/unistdio/u8-u8-snprintf: Likewise.
57707         * modules/unistdio/u8-u8-sprintf: Likewise.
57708         * modules/unistdio/u8-u8-vasnprintf: Likewise.
57709         * modules/unistdio/u8-u8-vasprintf: Likewise.
57710         * modules/unistdio/u8-u8-vsnprintf: Likewise.
57711         * modules/unistdio/u8-u8-vsprintf: Likewise.
57712         * modules/unistdio/u8-vasnprintf: Likewise.
57713         * modules/unistdio/u8-vasprintf: Likewise.
57714         * modules/unistdio/u8-vsnprintf: Likewise.
57715         * modules/unistdio/u8-vsprintf: Likewise.
57716         * modules/unistdio/u16-asnprintf: Likewise.
57717         * modules/unistdio/u16-asprintf: Likewise.
57718         * modules/unistdio/u16-snprintf: Likewise.
57719         * modules/unistdio/u16-sprintf: Likewise.
57720         * modules/unistdio/u16-u16-asnprintf: Likewise.
57721         * modules/unistdio/u16-u16-asprintf: Likewise.
57722         * modules/unistdio/u16-u16-snprintf: Likewise.
57723         * modules/unistdio/u16-u16-sprintf: Likewise.
57724         * modules/unistdio/u16-u16-vasnprintf: Likewise.
57725         * modules/unistdio/u16-u16-vasprintf: Likewise.
57726         * modules/unistdio/u16-u16-vsnprintf: Likewise.
57727         * modules/unistdio/u16-u16-vsprintf: Likewise.
57728         * modules/unistdio/u16-vasnprintf: Likewise.
57729         * modules/unistdio/u16-vasprintf: Likewise.
57730         * modules/unistdio/u16-vsnprintf: Likewise.
57731         * modules/unistdio/u16-vsprintf: Likewise.
57732         * modules/unistdio/u32-asnprintf: Likewise.
57733         * modules/unistdio/u32-asprintf: Likewise.
57734         * modules/unistdio/u32-snprintf: Likewise.
57735         * modules/unistdio/u32-sprintf: Likewise.
57736         * modules/unistdio/u32-u32-asnprintf: Likewise.
57737         * modules/unistdio/u32-u32-asprintf: Likewise.
57738         * modules/unistdio/u32-u32-snprintf: Likewise.
57739         * modules/unistdio/u32-u32-sprintf: Likewise.
57740         * modules/unistdio/u32-u32-vasnprintf: Likewise.
57741         * modules/unistdio/u32-u32-vasprintf: Likewise.
57742         * modules/unistdio/u32-u32-vsnprintf: Likewise.
57743         * modules/unistdio/u32-u32-vsprintf: Likewise.
57744         * modules/unistdio/u32-vasnprintf: Likewise.
57745         * modules/unistdio/u32-vasprintf: Likewise.
57746         * modules/unistdio/u32-vsnprintf: Likewise.
57747         * modules/unistdio/u32-vsprintf: Likewise.
57748         * modules/unistdio/ulc-asnprintf: Likewise.
57749         * modules/unistdio/ulc-asprintf: Likewise.
57750         * modules/unistdio/ulc-fprintf: Likewise.
57751         * modules/unistdio/ulc-snprintf: Likewise.
57752         * modules/unistdio/ulc-sprintf: Likewise.
57753         * modules/unistdio/ulc-vasnprintf: Likewise.
57754         * modules/unistdio/ulc-vasprintf: Likewise.
57755         * modules/unistdio/ulc-vfprintf: Likewise.
57756         * modules/unistdio/ulc-vsnprintf: Likewise.
57757         * modules/unistdio/ulc-vsprintf: Likewise.
57758         * modules/unistr/u8-check: Likewise.
57759         * modules/unistr/u8-chr: Likewise.
57760         * modules/unistr/u8-cmp: Likewise.
57761         * modules/unistr/u8-cmp2: Likewise.
57762         * modules/unistr/u8-cpy: Likewise.
57763         * modules/unistr/u8-cpy-alloc: Likewise.
57764         * modules/unistr/u8-endswith: Likewise.
57765         * modules/unistr/u8-mblen: Likewise.
57766         * modules/unistr/u8-mbsnlen: Likewise.
57767         * modules/unistr/u8-mbtouc: Likewise.
57768         * modules/unistr/u8-mbtouc-unsafe: Likewise.
57769         * modules/unistr/u8-mbtoucr: Likewise.
57770         * modules/unistr/u8-move: Likewise.
57771         * modules/unistr/u8-next: Likewise.
57772         * modules/unistr/u8-prev: Likewise.
57773         * modules/unistr/u8-set: Likewise.
57774         * modules/unistr/u8-startswith: Likewise.
57775         * modules/unistr/u8-stpcpy: Likewise.
57776         * modules/unistr/u8-stpncpy: Likewise.
57777         * modules/unistr/u8-strcat: Likewise.
57778         * modules/unistr/u8-strchr: Likewise.
57779         * modules/unistr/u8-strcmp: Likewise.
57780         * modules/unistr/u8-strcoll: Likewise.
57781         * modules/unistr/u8-strcpy: Likewise.
57782         * modules/unistr/u8-strcspn: Likewise.
57783         * modules/unistr/u8-strdup: Likewise.
57784         * modules/unistr/u8-strlen: Likewise.
57785         * modules/unistr/u8-strmblen: Likewise.
57786         * modules/unistr/u8-strmbtouc: Likewise.
57787         * modules/unistr/u8-strncat: Likewise.
57788         * modules/unistr/u8-strncmp: Likewise.
57789         * modules/unistr/u8-strncpy: Likewise.
57790         * modules/unistr/u8-strnlen: Likewise.
57791         * modules/unistr/u8-strpbrk: Likewise.
57792         * modules/unistr/u8-strrchr: Likewise.
57793         * modules/unistr/u8-strspn: Likewise.
57794         * modules/unistr/u8-strstr: Likewise.
57795         * modules/unistr/u8-strtok: Likewise.
57796         * modules/unistr/u8-to-u16: Likewise.
57797         * modules/unistr/u8-to-u32: Likewise.
57798         * modules/unistr/u8-uctomb: Likewise.
57799         * modules/unistr/u16-check: Likewise.
57800         * modules/unistr/u16-chr: Likewise.
57801         * modules/unistr/u16-cmp: Likewise.
57802         * modules/unistr/u16-cmp2: Likewise.
57803         * modules/unistr/u16-cpy: Likewise.
57804         * modules/unistr/u16-cpy-alloc: Likewise.
57805         * modules/unistr/u16-endswith: Likewise.
57806         * modules/unistr/u16-mblen: Likewise.
57807         * modules/unistr/u16-mbsnlen: Likewise.
57808         * modules/unistr/u16-mbtouc: Likewise.
57809         * modules/unistr/u16-mbtouc-unsafe: Likewise.
57810         * modules/unistr/u16-mbtoucr: Likewise.
57811         * modules/unistr/u16-move: Likewise.
57812         * modules/unistr/u16-next: Likewise.
57813         * modules/unistr/u16-prev: Likewise.
57814         * modules/unistr/u16-set: Likewise.
57815         * modules/unistr/u16-startswith: Likewise.
57816         * modules/unistr/u16-stpcpy: Likewise.
57817         * modules/unistr/u16-stpncpy: Likewise.
57818         * modules/unistr/u16-strcat: Likewise.
57819         * modules/unistr/u16-strchr: Likewise.
57820         * modules/unistr/u16-strcmp: Likewise.
57821         * modules/unistr/u16-strcoll: Likewise.
57822         * modules/unistr/u16-strcpy: Likewise.
57823         * modules/unistr/u16-strcspn: Likewise.
57824         * modules/unistr/u16-strdup: Likewise.
57825         * modules/unistr/u16-strlen: Likewise.
57826         * modules/unistr/u16-strmblen: Likewise.
57827         * modules/unistr/u16-strmbtouc: Likewise.
57828         * modules/unistr/u16-strncat: Likewise.
57829         * modules/unistr/u16-strncmp: Likewise.
57830         * modules/unistr/u16-strncpy: Likewise.
57831         * modules/unistr/u16-strnlen: Likewise.
57832         * modules/unistr/u16-strpbrk: Likewise.
57833         * modules/unistr/u16-strrchr: Likewise.
57834         * modules/unistr/u16-strspn: Likewise.
57835         * modules/unistr/u16-strstr: Likewise.
57836         * modules/unistr/u16-strtok: Likewise.
57837         * modules/unistr/u16-to-u32: Likewise.
57838         * modules/unistr/u16-to-u8: Likewise.
57839         * modules/unistr/u16-uctomb: Likewise.
57840         * modules/unistr/u32-check: Likewise.
57841         * modules/unistr/u32-chr: Likewise.
57842         * modules/unistr/u32-cmp: Likewise.
57843         * modules/unistr/u32-cmp2: Likewise.
57844         * modules/unistr/u32-cpy: Likewise.
57845         * modules/unistr/u32-cpy-alloc: Likewise.
57846         * modules/unistr/u32-endswith: Likewise.
57847         * modules/unistr/u32-mblen: Likewise.
57848         * modules/unistr/u32-mbsnlen: Likewise.
57849         * modules/unistr/u32-mbtouc: Likewise.
57850         * modules/unistr/u32-mbtouc-unsafe: Likewise.
57851         * modules/unistr/u32-mbtoucr: Likewise.
57852         * modules/unistr/u32-move: Likewise.
57853         * modules/unistr/u32-next: Likewise.
57854         * modules/unistr/u32-prev: Likewise.
57855         * modules/unistr/u32-set: Likewise.
57856         * modules/unistr/u32-startswith: Likewise.
57857         * modules/unistr/u32-stpcpy: Likewise.
57858         * modules/unistr/u32-stpncpy: Likewise.
57859         * modules/unistr/u32-strcat: Likewise.
57860         * modules/unistr/u32-strchr: Likewise.
57861         * modules/unistr/u32-strcmp: Likewise.
57862         * modules/unistr/u32-strcoll: Likewise.
57863         * modules/unistr/u32-strcpy: Likewise.
57864         * modules/unistr/u32-strcspn: Likewise.
57865         * modules/unistr/u32-strdup: Likewise.
57866         * modules/unistr/u32-strlen: Likewise.
57867         * modules/unistr/u32-strmblen: Likewise.
57868         * modules/unistr/u32-strmbtouc: Likewise.
57869         * modules/unistr/u32-strncat: Likewise.
57870         * modules/unistr/u32-strncmp: Likewise.
57871         * modules/unistr/u32-strncpy: Likewise.
57872         * modules/unistr/u32-strnlen: Likewise.
57873         * modules/unistr/u32-strpbrk: Likewise.
57874         * modules/unistr/u32-strrchr: Likewise.
57875         * modules/unistr/u32-strspn: Likewise.
57876         * modules/unistr/u32-strstr: Likewise.
57877         * modules/unistr/u32-strtok: Likewise.
57878         * modules/unistr/u32-to-u16: Likewise.
57879         * modules/unistr/u32-to-u8: Likewise.
57880         * modules/unistr/u32-uctomb: Likewise.
57881         * modules/uniwbrk/u8-wordbreaks: Likewise.
57882         * modules/uniwbrk/u16-wordbreaks: Likewise.
57883         * modules/uniwbrk/u32-wordbreaks: Likewise.
57884         * modules/uniwbrk/ulc-wordbreaks: Likewise.
57885         * modules/uniwbrk/wordbreak-property: Likewise.
57886         * modules/uniwidth/u8-strwidth: Likewise.
57887         * modules/uniwidth/u8-width: Likewise.
57888         * modules/uniwidth/u16-strwidth: Likewise.
57889         * modules/uniwidth/u16-width: Likewise.
57890         * modules/uniwidth/u32-strwidth: Likewise.
57891         * modules/uniwidth/u32-width: Likewise.
57892         * modules/uniwidth/width: Likewise.
57893         * modules/unicase/cased-tests (Makefile.am): Link all test programs
57894         with $(LIBUNISTRING).
57895         * modules/unicase/ignorable-tests: Likewise.
57896         * modules/unicase/locale-language-tests: Likewise.
57897         * modules/unicase/tolower-tests: Likewise.
57898         * modules/unicase/totitle-tests: Likewise.
57899         * modules/unicase/toupper-tests: Likewise.
57900         * modules/unicase/u8-casecmp-tests: Likewise.
57901         * modules/unicase/u8-casecoll-tests: Likewise.
57902         * modules/unicase/u8-casefold-tests: Likewise.
57903         * modules/unicase/u8-is-cased-tests: Likewise.
57904         * modules/unicase/u8-is-casefolded-tests: Likewise.
57905         * modules/unicase/u8-is-lowercase-tests: Likewise.
57906         * modules/unicase/u8-is-titlecase-tests: Likewise.
57907         * modules/unicase/u8-is-uppercase-tests: Likewise.
57908         * modules/unicase/u8-tolower-tests: Likewise.
57909         * modules/unicase/u8-totitle-tests: Likewise.
57910         * modules/unicase/u8-toupper-tests: Likewise.
57911         * modules/unicase/u16-casecmp-tests: Likewise.
57912         * modules/unicase/u16-casecoll-tests: Likewise.
57913         * modules/unicase/u16-casefold-tests: Likewise.
57914         * modules/unicase/u16-is-cased-tests: Likewise.
57915         * modules/unicase/u16-is-casefolded-tests: Likewise.
57916         * modules/unicase/u16-is-lowercase-tests: Likewise.
57917         * modules/unicase/u16-is-titlecase-tests: Likewise.
57918         * modules/unicase/u16-is-uppercase-tests: Likewise.
57919         * modules/unicase/u16-tolower-tests: Likewise.
57920         * modules/unicase/u16-totitle-tests: Likewise.
57921         * modules/unicase/u16-toupper-tests: Likewise.
57922         * modules/unicase/u32-casecmp-tests: Likewise.
57923         * modules/unicase/u32-casecoll-tests: Likewise.
57924         * modules/unicase/u32-casefold-tests: Likewise.
57925         * modules/unicase/u32-is-cased-tests: Likewise.
57926         * modules/unicase/u32-is-casefolded-tests: Likewise.
57927         * modules/unicase/u32-is-lowercase-tests: Likewise.
57928         * modules/unicase/u32-is-titlecase-tests: Likewise.
57929         * modules/unicase/u32-is-uppercase-tests: Likewise.
57930         * modules/unicase/u32-tolower-tests: Likewise.
57931         * modules/unicase/u32-totitle-tests: Likewise.
57932         * modules/unicase/u32-toupper-tests: Likewise.
57933         * modules/unicase/ulc-casecmp-tests: Likewise.
57934         * modules/unicase/ulc-casecoll-tests: Likewise.
57935         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
57936         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
57937         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
57938         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
57939         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
57940         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
57941         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
57942         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
57943         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
57944         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
57945         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
57946         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
57947         * modules/unictype/bidicategory-byname-tests: Likewise.
57948         * modules/unictype/bidicategory-name-tests: Likewise.
57949         * modules/unictype/bidicategory-of-tests: Likewise.
57950         * modules/unictype/bidicategory-test-tests: Likewise.
57951         * modules/unictype/block-list-tests: Likewise.
57952         * modules/unictype/block-of-tests: Likewise.
57953         * modules/unictype/block-test-tests: Likewise.
57954         * modules/unictype/category-C-tests: Likewise.
57955         * modules/unictype/category-Cc-tests: Likewise.
57956         * modules/unictype/category-Cf-tests: Likewise.
57957         * modules/unictype/category-Cn-tests: Likewise.
57958         * modules/unictype/category-Co-tests: Likewise.
57959         * modules/unictype/category-Cs-tests: Likewise.
57960         * modules/unictype/category-L-tests: Likewise.
57961         * modules/unictype/category-Ll-tests: Likewise.
57962         * modules/unictype/category-Lm-tests: Likewise.
57963         * modules/unictype/category-Lo-tests: Likewise.
57964         * modules/unictype/category-Lt-tests: Likewise.
57965         * modules/unictype/category-Lu-tests: Likewise.
57966         * modules/unictype/category-M-tests: Likewise.
57967         * modules/unictype/category-Mc-tests: Likewise.
57968         * modules/unictype/category-Me-tests: Likewise.
57969         * modules/unictype/category-Mn-tests: Likewise.
57970         * modules/unictype/category-N-tests: Likewise.
57971         * modules/unictype/category-Nd-tests: Likewise.
57972         * modules/unictype/category-Nl-tests: Likewise.
57973         * modules/unictype/category-No-tests: Likewise.
57974         * modules/unictype/category-P-tests: Likewise.
57975         * modules/unictype/category-Pc-tests: Likewise.
57976         * modules/unictype/category-Pd-tests: Likewise.
57977         * modules/unictype/category-Pe-tests: Likewise.
57978         * modules/unictype/category-Pf-tests: Likewise.
57979         * modules/unictype/category-Pi-tests: Likewise.
57980         * modules/unictype/category-Po-tests: Likewise.
57981         * modules/unictype/category-Ps-tests: Likewise.
57982         * modules/unictype/category-S-tests: Likewise.
57983         * modules/unictype/category-Sc-tests: Likewise.
57984         * modules/unictype/category-Sk-tests: Likewise.
57985         * modules/unictype/category-Sm-tests: Likewise.
57986         * modules/unictype/category-So-tests: Likewise.
57987         * modules/unictype/category-Z-tests: Likewise.
57988         * modules/unictype/category-Zl-tests: Likewise.
57989         * modules/unictype/category-Zp-tests: Likewise.
57990         * modules/unictype/category-Zs-tests: Likewise.
57991         * modules/unictype/category-and-not-tests: Likewise.
57992         * modules/unictype/category-and-tests: Likewise.
57993         * modules/unictype/category-byname-tests: Likewise.
57994         * modules/unictype/category-name-tests: Likewise.
57995         * modules/unictype/category-none-tests: Likewise.
57996         * modules/unictype/category-of-tests: Likewise.
57997         * modules/unictype/category-or-tests: Likewise.
57998         * modules/unictype/category-test-withtable-tests: Likewise.
57999         * modules/unictype/combining-class-tests: Likewise.
58000         * modules/unictype/ctype-alnum-tests: Likewise.
58001         * modules/unictype/ctype-alpha-tests: Likewise.
58002         * modules/unictype/ctype-blank-tests: Likewise.
58003         * modules/unictype/ctype-cntrl-tests: Likewise.
58004         * modules/unictype/ctype-digit-tests: Likewise.
58005         * modules/unictype/ctype-graph-tests: Likewise.
58006         * modules/unictype/ctype-lower-tests: Likewise.
58007         * modules/unictype/ctype-print-tests: Likewise.
58008         * modules/unictype/ctype-punct-tests: Likewise.
58009         * modules/unictype/ctype-space-tests: Likewise.
58010         * modules/unictype/ctype-upper-tests: Likewise.
58011         * modules/unictype/ctype-xdigit-tests: Likewise.
58012         * modules/unictype/decimal-digit-tests: Likewise.
58013         * modules/unictype/digit-tests: Likewise.
58014         * modules/unictype/mirror-tests: Likewise.
58015         * modules/unictype/numeric-tests: Likewise.
58016         * modules/unictype/property-alphabetic-tests: Likewise.
58017         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
58018         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
58019         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
58020         * modules/unictype/property-bidi-block-separator-tests: Likewise.
58021         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
58022         * modules/unictype/property-bidi-common-separator-tests: Likewise.
58023         * modules/unictype/property-bidi-control-tests: Likewise.
58024         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
58025         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
58026         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
58027         * modules/unictype/property-bidi-european-digit-tests: Likewise.
58028         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
58029         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
58030         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
58031         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
58032         * modules/unictype/property-bidi-pdf-tests: Likewise.
58033         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
58034         * modules/unictype/property-bidi-whitespace-tests: Likewise.
58035         * modules/unictype/property-byname-tests: Likewise.
58036         * modules/unictype/property-combining-tests: Likewise.
58037         * modules/unictype/property-composite-tests: Likewise.
58038         * modules/unictype/property-currency-symbol-tests: Likewise.
58039         * modules/unictype/property-dash-tests: Likewise.
58040         * modules/unictype/property-decimal-digit-tests: Likewise.
58041         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
58042         * modules/unictype/property-deprecated-tests: Likewise.
58043         * modules/unictype/property-diacritic-tests: Likewise.
58044         * modules/unictype/property-extender-tests: Likewise.
58045         * modules/unictype/property-format-control-tests: Likewise.
58046         * modules/unictype/property-grapheme-base-tests: Likewise.
58047         * modules/unictype/property-grapheme-extend-tests: Likewise.
58048         * modules/unictype/property-grapheme-link-tests: Likewise.
58049         * modules/unictype/property-hex-digit-tests: Likewise.
58050         * modules/unictype/property-hyphen-tests: Likewise.
58051         * modules/unictype/property-id-continue-tests: Likewise.
58052         * modules/unictype/property-id-start-tests: Likewise.
58053         * modules/unictype/property-ideographic-tests: Likewise.
58054         * modules/unictype/property-ids-binary-operator-tests: Likewise.
58055         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
58056         * modules/unictype/property-ignorable-control-tests: Likewise.
58057         * modules/unictype/property-iso-control-tests: Likewise.
58058         * modules/unictype/property-join-control-tests: Likewise.
58059         * modules/unictype/property-left-of-pair-tests: Likewise.
58060         * modules/unictype/property-line-separator-tests: Likewise.
58061         * modules/unictype/property-logical-order-exception-tests: Likewise.
58062         * modules/unictype/property-lowercase-tests: Likewise.
58063         * modules/unictype/property-math-tests: Likewise.
58064         * modules/unictype/property-non-break-tests: Likewise.
58065         * modules/unictype/property-not-a-character-tests: Likewise.
58066         * modules/unictype/property-numeric-tests: Likewise.
58067         * modules/unictype/property-other-alphabetic-tests: Likewise.
58068         * modules/unictype/property-other-default-ignorable-code-point-tests:
58069         Likewise.
58070         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
58071         * modules/unictype/property-other-id-continue-tests: Likewise.
58072         * modules/unictype/property-other-id-start-tests: Likewise.
58073         * modules/unictype/property-other-lowercase-tests: Likewise.
58074         * modules/unictype/property-other-math-tests: Likewise.
58075         * modules/unictype/property-other-uppercase-tests: Likewise.
58076         * modules/unictype/property-paired-punctuation-tests: Likewise.
58077         * modules/unictype/property-paragraph-separator-tests: Likewise.
58078         * modules/unictype/property-pattern-syntax-tests: Likewise.
58079         * modules/unictype/property-pattern-white-space-tests: Likewise.
58080         * modules/unictype/property-private-use-tests: Likewise.
58081         * modules/unictype/property-punctuation-tests: Likewise.
58082         * modules/unictype/property-quotation-mark-tests: Likewise.
58083         * modules/unictype/property-radical-tests: Likewise.
58084         * modules/unictype/property-sentence-terminal-tests: Likewise.
58085         * modules/unictype/property-soft-dotted-tests: Likewise.
58086         * modules/unictype/property-space-tests: Likewise.
58087         * modules/unictype/property-terminal-punctuation-tests: Likewise.
58088         * modules/unictype/property-test-tests: Likewise.
58089         * modules/unictype/property-titlecase-tests: Likewise.
58090         * modules/unictype/property-unassigned-code-value-tests: Likewise.
58091         * modules/unictype/property-unified-ideograph-tests: Likewise.
58092         * modules/unictype/property-uppercase-tests: Likewise.
58093         * modules/unictype/property-variation-selector-tests: Likewise.
58094         * modules/unictype/property-white-space-tests: Likewise.
58095         * modules/unictype/property-xid-continue-tests: Likewise.
58096         * modules/unictype/property-xid-start-tests: Likewise.
58097         * modules/unictype/property-zero-width-tests: Likewise.
58098         * modules/unictype/scripts-tests: Likewise.
58099         * modules/unictype/syntax-c-ident-tests: Likewise.
58100         * modules/unictype/syntax-c-whitespace-tests: Likewise.
58101         * modules/unictype/syntax-java-ident-tests: Likewise.
58102         * modules/unictype/syntax-java-whitespace-tests: Likewise.
58103         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
58104         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
58105         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
58106         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
58107         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
58108         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
58109         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
58110         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
58111         * modules/uniname/uniname-tests: Likewise.
58112         * modules/uninorm/canonical-decomposition-tests: Likewise.
58113         * modules/uninorm/compat-decomposition-tests: Likewise.
58114         * modules/uninorm/composition-tests: Likewise.
58115         * modules/uninorm/decomposing-form-tests: Likewise.
58116         * modules/uninorm/decomposition-tests: Likewise.
58117         * modules/uninorm/filter-tests: Likewise.
58118         * modules/uninorm/nfc-tests: Likewise.
58119         * modules/uninorm/nfd-tests: Likewise.
58120         * modules/uninorm/nfkc-tests: Likewise.
58121         * modules/uninorm/nfkd-tests: Likewise.
58122         * modules/uninorm/u8-normcmp-tests: Likewise.
58123         * modules/uninorm/u8-normcoll-tests: Likewise.
58124         * modules/uninorm/u16-normcmp-tests: Likewise.
58125         * modules/uninorm/u16-normcoll-tests: Likewise.
58126         * modules/uninorm/u32-normcmp-tests: Likewise.
58127         * modules/uninorm/u32-normcoll-tests: Likewise.
58128         * modules/unistdio/u8-asnprintf-tests: Likewise.
58129         * modules/unistdio/u8-vasnprintf-tests: Likewise.
58130         * modules/unistdio/u8-vasprintf-tests: Likewise.
58131         * modules/unistdio/u8-vsnprintf-tests: Likewise.
58132         * modules/unistdio/u8-vsprintf-tests: Likewise.
58133         * modules/unistdio/u16-asnprintf-tests: Likewise.
58134         * modules/unistdio/u16-vasnprintf-tests: Likewise.
58135         * modules/unistdio/u16-vasprintf-tests: Likewise.
58136         * modules/unistdio/u16-vsnprintf-tests: Likewise.
58137         * modules/unistdio/u16-vsprintf-tests: Likewise.
58138         * modules/unistdio/u32-asnprintf-tests: Likewise.
58139         * modules/unistdio/u32-vasnprintf-tests: Likewise.
58140         * modules/unistdio/u32-vasprintf-tests: Likewise.
58141         * modules/unistdio/u32-vsnprintf-tests: Likewise.
58142         * modules/unistdio/u32-vsprintf-tests: Likewise.
58143         * modules/unistdio/ulc-asnprintf-tests: Likewise.
58144         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
58145         * modules/unistdio/ulc-vasprintf-tests: Likewise.
58146         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
58147         * modules/unistdio/ulc-vsprintf-tests: Likewise.
58148         * modules/unistr/u8-check-tests: Likewise.
58149         * modules/unistr/u8-chr-tests: Likewise.
58150         * modules/unistr/u8-cmp-tests: Likewise.
58151         * modules/unistr/u8-cmp2-tests: Likewise.
58152         * modules/unistr/u8-cpy-alloc-tests: Likewise.
58153         * modules/unistr/u8-cpy-tests: Likewise.
58154         * modules/unistr/u8-mblen-tests: Likewise.
58155         * modules/unistr/u8-mbsnlen-tests: Likewise.
58156         * modules/unistr/u8-mbtouc-tests: Likewise.
58157         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
58158         * modules/unistr/u8-mbtoucr-tests: Likewise.
58159         * modules/unistr/u8-move-tests: Likewise.
58160         * modules/unistr/u8-next-tests: Likewise.
58161         * modules/unistr/u8-prev-tests: Likewise.
58162         * modules/unistr/u8-set-tests: Likewise.
58163         * modules/unistr/u8-stpcpy-tests: Likewise.
58164         * modules/unistr/u8-stpncpy-tests: Likewise.
58165         * modules/unistr/u8-strcat-tests: Likewise.
58166         * modules/unistr/u8-strcmp-tests: Likewise.
58167         * modules/unistr/u8-strcoll-tests: Likewise.
58168         * modules/unistr/u8-strcpy-tests: Likewise.
58169         * modules/unistr/u8-strdup-tests: Likewise.
58170         * modules/unistr/u8-strlen-tests: Likewise.
58171         * modules/unistr/u8-strmblen-tests: Likewise.
58172         * modules/unistr/u8-strmbtouc-tests: Likewise.
58173         * modules/unistr/u8-strncat-tests: Likewise.
58174         * modules/unistr/u8-strncmp-tests: Likewise.
58175         * modules/unistr/u8-strncpy-tests: Likewise.
58176         * modules/unistr/u8-strnlen-tests: Likewise.
58177         * modules/unistr/u8-to-u16-tests: Likewise.
58178         * modules/unistr/u8-to-u32-tests: Likewise.
58179         * modules/unistr/u8-uctomb-tests: Likewise.
58180         * modules/unistr/u16-check-tests: Likewise.
58181         * modules/unistr/u16-chr-tests: Likewise.
58182         * modules/unistr/u16-cmp-tests: Likewise.
58183         * modules/unistr/u16-cmp2-tests: Likewise.
58184         * modules/unistr/u16-cpy-alloc-tests: Likewise.
58185         * modules/unistr/u16-cpy-tests: Likewise.
58186         * modules/unistr/u16-mblen-tests: Likewise.
58187         * modules/unistr/u16-mbsnlen-tests: Likewise.
58188         * modules/unistr/u16-mbtouc-tests: Likewise.
58189         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
58190         * modules/unistr/u16-mbtoucr-tests: Likewise.
58191         * modules/unistr/u16-move-tests: Likewise.
58192         * modules/unistr/u16-next-tests: Likewise.
58193         * modules/unistr/u16-prev-tests: Likewise.
58194         * modules/unistr/u16-set-tests: Likewise.
58195         * modules/unistr/u16-stpcpy-tests: Likewise.
58196         * modules/unistr/u16-stpncpy-tests: Likewise.
58197         * modules/unistr/u16-strcat-tests: Likewise.
58198         * modules/unistr/u16-strcmp-tests: Likewise.
58199         * modules/unistr/u16-strcoll-tests: Likewise.
58200         * modules/unistr/u16-strcpy-tests: Likewise.
58201         * modules/unistr/u16-strdup-tests: Likewise.
58202         * modules/unistr/u16-strlen-tests: Likewise.
58203         * modules/unistr/u16-strmblen-tests: Likewise.
58204         * modules/unistr/u16-strmbtouc-tests: Likewise.
58205         * modules/unistr/u16-strncat-tests: Likewise.
58206         * modules/unistr/u16-strncmp-tests: Likewise.
58207         * modules/unistr/u16-strncpy-tests: Likewise.
58208         * modules/unistr/u16-strnlen-tests: Likewise.
58209         * modules/unistr/u16-to-u32-tests: Likewise.
58210         * modules/unistr/u16-to-u8-tests: Likewise.
58211         * modules/unistr/u16-uctomb-tests: Likewise.
58212         * modules/unistr/u32-check-tests: Likewise.
58213         * modules/unistr/u32-chr-tests: Likewise.
58214         * modules/unistr/u32-cmp-tests: Likewise.
58215         * modules/unistr/u32-cmp2-tests: Likewise.
58216         * modules/unistr/u32-cpy-alloc-tests: Likewise.
58217         * modules/unistr/u32-cpy-tests: Likewise.
58218         * modules/unistr/u32-mblen-tests: Likewise.
58219         * modules/unistr/u32-mbsnlen-tests: Likewise.
58220         * modules/unistr/u32-mbtouc-tests: Likewise.
58221         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
58222         * modules/unistr/u32-mbtoucr-tests: Likewise.
58223         * modules/unistr/u32-move-tests: Likewise.
58224         * modules/unistr/u32-next-tests: Likewise.
58225         * modules/unistr/u32-prev-tests: Likewise.
58226         * modules/unistr/u32-set-tests: Likewise.
58227         * modules/unistr/u32-stpcpy-tests: Likewise.
58228         * modules/unistr/u32-stpncpy-tests: Likewise.
58229         * modules/unistr/u32-strcat-tests: Likewise.
58230         * modules/unistr/u32-strcmp-tests: Likewise.
58231         * modules/unistr/u32-strcoll-tests: Likewise.
58232         * modules/unistr/u32-strcpy-tests: Likewise.
58233         * modules/unistr/u32-strdup-tests: Likewise.
58234         * modules/unistr/u32-strlen-tests: Likewise.
58235         * modules/unistr/u32-strmblen-tests: Likewise.
58236         * modules/unistr/u32-strmbtouc-tests: Likewise.
58237         * modules/unistr/u32-strncat-tests: Likewise.
58238         * modules/unistr/u32-strncmp-tests: Likewise.
58239         * modules/unistr/u32-strncpy-tests: Likewise.
58240         * modules/unistr/u32-strnlen-tests: Likewise.
58241         * modules/unistr/u32-to-u16-tests: Likewise.
58242         * modules/unistr/u32-to-u8-tests: Likewise.
58243         * modules/unistr/u32-uctomb-tests: Likewise.
58244         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
58245         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
58246         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
58247         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
58248         * modules/uniwidth/u8-strwidth-tests: Likewise.
58249         * modules/uniwidth/u8-width-tests: Likewise.
58250         * modules/uniwidth/u16-strwidth-tests: Likewise.
58251         * modules/uniwidth/u16-width-tests: Likewise.
58252         * modules/uniwidth/u32-strwidth-tests: Likewise.
58253         * modules/uniwidth/u32-width-tests: Likewise.
58254         * modules/uniwidth/width-tests: Likewise.
58256 2010-05-18  Richard Jones  <rjones@redhat.com>
58258         doc: users.txt: list hivex
58259         * users.txt: Add hivex.
58261 2010-05-18  Richard Jones  <rjones@redhat.com>
58263         doc: users.txt: list febootstrap
58264         * users.txt: Add febootstrap.
58266 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
58268         bootstrap: fix an error when gnulib is not used as a git submodule
58269         * build-aux/bootstrap (gnulib_path): If its length is zero then
58270         assign "gnulib" to it.
58271         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
58273 2010-05-16  Bruno Haible  <bruno@clisp.org>
58275         Avoid autoconf warnings about AM_ICONV.
58276         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
58277         2.64.
58279 2010-05-16  Bruno Haible  <bruno@clisp.org>
58281         absolute-header: Make the macro usable in more situations.
58282         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
58283         from gl_ABSOLUTE_HEADER.
58284         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
58286 2010-05-16  James Youngman  <jay@gnu.org>
58288         doc: update users.txt
58289         * users.txt: Add CSSC.
58291 2010-05-16  Jim Meyering  <meyering@redhat.com>
58293         init.sh: fix an error in the previous change; add more comments
58294         * tests/init.sh: Compare exit code in loop against 9, not 2.
58295         Patch by Bruno Haible.
58296         Make the two tests more similar by adding an empty "then" clause.
58297         Add comments.
58299         init.sh: avoid unnecessary shell re-exec
58300         * tests/init.sh: Improve the re-exec-required check to first test the
58301         current shell.  If it passes the test, do not search for a shell that
58302         does pass, and do not re-exec.  This test is particularly contorted to
58303         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
58304         of $(...) evokes a syntax error and causes immediate shell exit with
58305         status 2.  Bruno Haible reported that the re-exec made it impossible
58306         to single-step through any init.sh-using script.
58308 2010-05-16  Bruno Haible  <bruno@clisp.org>
58310         Fix collision between gnulib's and libintl's printf replacements.
58311         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
58312         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
58313         (printf): When using GNU C, map the __printf__ function to rpl_printf
58314         via __asm__. When not using GNU C, define rpl_printf instead of
58315         __printf__.
58316         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
58317         commit.
58318         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
58319         commit.
58320         * m4/asm-underscore.m4: New file.
58321         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
58322         * modules/stdio (Files): Add m4/asm-underscore.m4.
58323         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
58324         Reported by Ben Pfaff.
58326 2010-05-16  Bruno Haible  <bruno@clisp.org>
58328         verify: Avoid skipping the test on openSUSE 11.0.
58329         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
58331 2010-05-13  Bruno Haible  <bruno@clisp.org>
58333         Avoid useless warnings from G++.
58334         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
58335         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
58336         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
58338 2010-05-11  Jim Meyering  <meyering@redhat.com>
58340         maint.mk: tweak preceding change
58341         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
58342         regexps tighter by anchoring at EOL, and make the new group "shy"
58343         for slightly decreased overhead.
58345 2010-05-11  Eric Blake  <eblake@redhat.com>
58347         maint.mk: gnulib doesn't guarantee NSIG
58348         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
58350 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
58352         test-pwrite.c: Remove unused variable declaration.
58353         * tests/test-pwrite.c (main): Remove read_buf declaration.
58355         Remove useless test-pwrite.sh file.
58356         * tests/test-pwrite.sh: Delete file.
58357         * modules/pwrite-tests: Remove references.
58358         Reported by Bruno Haible.
58360 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
58362         init.sh: fix a typo
58363         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
58365 2010-05-10  Jim Meyering  <meyering@redhat.com>
58367         maint.mk: avoid using a temporary file in the always-defined-macros check
58368         * top/maint.mk (.re-defmac): Remove rule.
58369         (gl_trap_): Remove definition.
58370         (sc_prohibit_always-defined_macros): Rewrite not to create and
58371         depend on a temporary file.  Instead, depend on GNU grep's ability
58372         to read a list of regular expressions from stdin when given "-f -".
58374 2010-05-09  Bruno Haible  <bruno@clisp.org>
58376         Update to GNU gettext 0.18, part 1.
58377         * m4/gettext.m4: Update to GNU gettext 0.18.
58378         * m4/intl.m4: Likewise.
58379         * m4/po.m4: Likewise.
58380         * modules/gettext (Files): Add m4/fcntl-o.m4.
58381         (configure.ac): Require gettext infrastructure from version 0.18.
58383 2010-05-09  Jim Meyering  <meyering@redhat.com>
58385         init.sh: enable MALLOC_PERTURB_
58386         * tests/init.sh: Enable glibc's malloc-perturbing option.
58388         maint.mk: improve sc_cross_check_PATH_usage_in_tests
58389         With my recent change in init.sh from the two-line form:
58390             -#   : ${srcdir=.}
58391             -#   . "$srcdir/init.sh"; path_prepend_ .
58392             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
58393         I noticed that using the one-line form would cause this test
58394         to fail with a false-positive, or to stop working altogether,
58395         depending on whether help-version changed or all the tests did.
58396         * top/maint.mk (_hv_regex): Remove this definition.
58397         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
58398         (_hv_regex_strong): Use a stronger regex to check for conformance.
58399         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
58400         Give a separate diagnostic for lack of conforming use.
58402         maint.mk: prohibit definition of symbols defined by gnulib
58403         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
58404         definition of symbols defined by gnulib.
58406 2010-05-09  Bruno Haible  <bruno@clisp.org>
58408         acl: Avoid test failure on Cygwin-hosted mingw.
58409         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
58411 2010-05-09  Bruno Haible  <bruno@clisp.org>
58413         error: Use system's fcntl function.
58414         * lib/error.c (fcntl): Undefine.
58416 2010-05-09  Jim Meyering  <meyering@redhat.com>
58418         verify: adjust formatting to be more consistent
58419         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
58420         argument-list '('s, and after one comma.
58422 2010-05-09  Bruno Haible  <bruno@clisp.org>
58424         error: More reliable output on mingw.
58425         * lib/error.c: Include <windows.h>.
58426         (is_open): New function.
58427         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
58428         defined.
58430 2010-05-09  Bruno Haible  <bruno@clisp.org>
58432         vasnprintf: Fix syntax errors in libintl build on mingw.
58433         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
58434         pad_ourselves and prec_ourselves after use.
58436 2010-05-08  Bruno Haible  <bruno@clisp.org>
58438         * lib/config.charset: Update comments for Cygwin 1.7.
58439         * lib/localcharset.c: Likewise.
58441 2010-05-07  Jim Meyering  <meyering@redhat.com>
58443         init.sh: improve comments
58444         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
58445         . "${srcdir=.}/init.sh"; path_prepend_ .
58446         Add a note about path_prepend_ and the alternative of using
58447         TESTS_ENVIRONMENT.
58449 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
58451         exclude: Unescape hashed patterns in wildcard mode.
58452         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
58453         to the hash list.
58454         * tests/test-exclude8.sh: New test case.
58455         * modules/exclude-tests: Add new test.
58457 2010-05-05  Eric Blake  <eblake@redhat.com>
58459         verify: automate tests
58460         * modules/verify-tests: New module.
58461         * tests/test-verify.sh: New file.
58462         * tests/test-verify.c: Guard each negative test with a unique id.
58463         Also avoid warning about unused left hand of comma expressions.
58465 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58467         Further improvements to verify.h, suggested by Eric Blake.
58468         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
58469         the GL_* versions, to avoid collision with OpenGL.
58470         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
58471         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
58472         than testing merely whether it's defined.
58474         Modify verify.h to pacify gcc -Wredundant_decls.
58475         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
58476         These use the prefix "GL_" since they're likely to be useful elsewhere.
58477         We may need to break them out into a different .h file.
58478         (__COUNTER__): Define to 0 if the compiler doesn't support it.
58479         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
58480         of verify_function__.
58482 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
58484         Tests for module pwrite.
58485         * modules/pwrite-tests: New file.
58486         * tests/test-pwrite.sh: New file.
58487         * tests/test-pwrite.c: New file.
58489         New module pwrite.
58490         * lib/unistd.in.h (pwrite): New declaration.
58491         * lib/pwrite.c: New file, from glibc with modifications.
58492         * m4/pwrite.m4: New file.
58493         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
58494         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
58495         REPLACE_PWRITE.
58496         * modules/pwrite: New file.
58497         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
58498         REPLACE_PWRITE.
58499         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
58500         * doc/posix-functions/pwrite.texi: Mention the new module.
58502 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
58504         pread: Update documentation.
58505         * doc/posix-functions/pread.texi: Mention the 'pread' module.
58507 2010-05-04  Eric Blake  <eblake@redhat.com>
58509         docs: update cygwin progress
58510         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
58511         this bug.
58512         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
58513         Added in cygwin 1.7.2.
58514         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
58515         Likewise.
58516         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
58517         Likewise.
58518         * doc/glibc-functions/dup3.texi (dup3): Likewise.
58519         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
58520         * doc/glibc-functions/accept4.texi (accept4): Likewise.
58521         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
58522         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
58523         Mention nproc module.
58524         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
58525         bug in cygwin 1.7.5 addition.
58526         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
58527         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
58528         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
58529         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
58530         1.7.5.
58531         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
58532         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
58533         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
58534         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
58535         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
58536         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
58537         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
58538         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
58539         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
58540         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
58541         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
58542         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
58543         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
58544         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
58545         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
58546         Likewise.
58547         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
58548         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
58549         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
58550         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
58551         Likewise.
58552         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
58553         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
58554         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
58555         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
58556         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
58557         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
58558         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
58559         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
58560         Likewise.
58561         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
58562         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
58563         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
58564         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
58565         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
58566         Likewise.
58567         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
58568         Likewise.
58569         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
58570         Likewise.
58571         * doc/glibc-functions/xdrrec_endofrecord.texi
58572         (xdrrec_endofrecord): Likewise.
58573         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
58574         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
58575         Likewise.
58576         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
58577         Likewise.
58579 2010-05-04  Jim Meyering  <meyering@redhat.com>
58581         gendocs.sh: make its "-s FILE" option more useful
58582         * build-aux/gendocs.sh: When honoring the -s FILE option, update
58583         $PACKAGE to reflect the probably-different basename of "FILE".
58585 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
58587         bootstrap: don't ignore download_po_files failure
58588         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
58589         failure.
58591 2010-05-03  Jim Meyering  <meyering@redhat.com>
58593         maint.mk: allow to pass options to gendocs.sh
58594         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
58595         (gendocs_options_): New overridable variable.
58597         gnu-web-doc-update: don't ignore configure or build failure
58598         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
58600         announce-gen: backslash-escape '@'s in --help output
58601         * build-aux/announce-gen: Fix syntax errors.
58603         maint.mk, announce-gen: allow project-specific announcement mail headers
58604         * top/maint.mk (translation_project_): Define default.
58605         (announcement_Cc_, announcement_mail_headers_): Likewise.
58606         (announcement): Invoke announce-gen with new --mail-headers option.
58607         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
58609         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
58610         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
58611         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
58612         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
58613         line in the "err2" output file when running "make check" in verbose
58614         mode (i.e., with set -x enabled).
58616 2010-05-03  Bruno Haible  <bruno@clisp.org>
58618         wctob: Fix for weird platforms.
58619         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
58620         argument value.
58622 2010-05-03  Jim Meyering  <meyering@redhat.com>
58624         maint.mk: prohibit unwarranted use of <strings.h>
58625         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
58626         strings.h in a file that does not also use strcasecmp, strncasecmp,
58627         ffs or ffsll.
58629         maint.mk: remove obsolete comments
58630         * top/maint.mk: Remove stale, commented-out rules.
58632 2010-05-02  Bruno Haible  <bruno@clisp.org>
58634         wcwidth: Declare also when it's aliased.
58635         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
58636         macro.
58638 2010-05-02  Bruno Haible  <bruno@clisp.org>
58640         Fix regression from 2010-04-25.
58641         * gnulib-tool (func_modules_transitive_closure): Check the status of
58642         all modules, not only of the tests that are of the form foo-tests where
58643         foo is a module.
58645 2010-05-02  Bruno Haible  <bruno@clisp.org>
58647         wctob: Work around nasty Cygwin 1.7.2 bug.
58648         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
58649         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
58651 2010-05-01  Bruno Haible  <bruno@clisp.org>
58653         fpurge: Sharper test.
58654         * tests/test-fpurge.c (main): Add one more ftell check.
58655         * modules/fpurge-tests (Depends-on): Add ftell.
58656         Suggested by Eric Blake.
58658 2010-05-01  Bruno Haible  <bruno@clisp.org>
58660         ftello: Another test.
58661         * tests/test-ftello3.c: New file.
58662         * modules/ftello-tests (Files): Add it.
58663         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
58664         MOSTLYCLEANFILES.
58666         ftell: Another test.
58667         * tests/test-ftell3.c: New file.
58668         * modules/ftell-tests (Files): Add it.
58669         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
58670         MOSTLYCLEANFILES.
58672 2010-05-01  Bruno Haible  <bruno@clisp.org>
58674         ftell, ftello: Work around Solaris bug.
58675         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
58676         * lib/ftello.c: Include stdio-impl.h.
58677         (ftello): On Solaris, when _IOWRT is set, compute the result without
58678         looking at _IOREAD.
58679         * modules/ftello (Files): Add lib/stdio-impl.h.
58680         * doc/posix-functions/ftell.texi: Mention Solaris bug.
58681         * doc/posix-functions/ftello.texi: Likewise.
58682         Reported by Eric Blake.
58684 2010-05-01  Bruno Haible  <bruno@clisp.org>
58686         freading: Adapt to special meaning of _IOREAD flag on Solaris.
58687         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
58688         the _IOWRT flag is also set.
58690 2010-05-01  Bruno Haible  <bruno@clisp.org>
58692         Fix doc about a HP-UX stdio bug.
58693         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
58694         * doc/posix-functions/ftello.texi: Likewise.
58696 2010-05-01  Bruno Haible  <bruno@clisp.org>
58698         lseek test: Fix failure on Solaris.
58699         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
58700         output.
58702 2010-04-30  Jim Meyering  <meyering@redhat.com>
58704         bootstrap: don't ignore failure to generate po*/Makevars
58705         * build-aux/bootstrap (with_gettext): Don't ignore failure
58706         to create po/Makevars or runtime-po/Makevars.
58708 2010-04-29  Eric Blake  <eblake@redhat.com>
58710         headers: relax license to LGPLv2+
58711         * modules/fcntl-h (License): Relax license.
58712         * modules/getopt-posix (License): Likewise.
58713         * modules/locale (License): Likewise.
58714         * modules/math (License): Likewise.
58715         * modules/pty (License): Likewise.
58716         * modules/sched (License): Likewise.
58717         * modules/search (License): Likewise.
58718         * modules/spawn (License): Likewise.
58719         * modules/stdarg (License): Likewise.
58720         * modules/sysexits (License): Likewise.
58722 2010-04-29  Jim Meyering  <meyering@redhat.com>
58724         inttypes: relax license to LGPLv2+
58725         * modules/inttypes (License): Relax license.
58727 2010-04-29  Simon Josefsson  <simon@josefsson.org>
58729         * top/maint.mk (indent): Run twice to produce idempotent results.
58731 2010-04-28  Bruno Haible  <bruno@clisp.org>
58733         getdate: Generate getdate.c in the source directory.
58734         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
58735         MOSTLYCLEANFILES.
58736         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
58738 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
58740         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
58741         is not declared as a const *; avoid warnings in that case.
58743 2010-04-28  Eric Blake  <eblake@redhat.com>
58745         canonicalize-lgpl: avoid compiler warning
58746         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
58747         declaration' / 'extraneous semicolon' warning with some compilers.
58748         Reported by Andreas Gruenbacher.
58750 2010-04-28  Jim Meyering  <meyering@redhat.com>
58752         init.sh: ensure a more reliable exit status when exiting via trap
58753         * tests/init.sh (setup_): Don't rely on $? in signal handler.
58754         Inspired by patches from Dmitry V. Levin.
58755         Also trap on signal 3 (SIGQUIT).
58757 2010-04-27  Bruno Haible  <bruno@clisp.org>
58759         Update doc about utimes().
58760         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
58761         'utimens' module.
58762         Reported by Andreas Gruenbacher <agruen@suse.de>.
58764 2010-04-27  Eric Blake  <eblake@redhat.com>
58766         full-read, full-write: relax license
58767         * modules/full-read (License): Drop to LGPLv2+.
58768         * modules/full-write (License): Likewise.
58769         * modules/safe-read (License): Likewise.
58770         * modules/safe-write (License): Likewise.
58772         pthread: mention library for linking
58773         * modules/pthread (Link): Mention $(LIB_PTHREAD).
58775 2010-04-27  Jim Meyering  <meyering@redhat.com>
58777         maint.mk: fix a bug introduced in last change
58778         * top/maint.mk (gl_assured_headers_): Now that all names are on
58779         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
58780         is not anchored to end of word, it should be adequate.
58782         maint.mk: avoid side-effect in latest syntax-check
58783         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
58784         to run commands via $(shell...), and hence to incur cost only when
58785         the new rule is actually run.
58787         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
58788         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
58789         and use that to create a regexp used to detect all #if HAVE_..._H uses.
58790         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
58791         (gl_assured_headers_, az_, AZ_): Define.
58792         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
58794 2010-04-26  Jim Meyering  <jim@meyering.net>
58795             Bruno Haible  <bruno@clisp.org>
58797         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
58798         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
58799         Prompted by an exchange with Gilles Espinasse.
58801 2010-04-26  Jim Meyering  <meyering@redhat.com>
58803         git-version-gen: aesthetic tweak
58804         * build-aux/git-version-gen: Use "$nl" rather than a literal,
58805         so that the command remains on a single line.
58807 2010-04-26  Eric Blake  <eblake@redhat.com>
58809         git-version-gen: allow use on EBCDIC hosts
58810         * build-aux/git-version-gen (dirty): Use literal rather than tying
58811         ourselves to ascii.
58812         Reported by Steve Goetze.
58814 2010-04-25  Bruno Haible  <bruno@clisp.org>
58816         netdb: Add support for GNULIB_POSIXCHECK.
58817         * lib/netdb.in.h: Include warn-on-use.h.
58818         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
58819         functions are used when GNULIB_POSIXCHECK is defined and the
58820         getaddrinfo module is not in use.
58821         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
58822         freeaddrinfo, gai_strerror, getnameinfo are declared.
58823         * modules/netdb (Depends-on): Add warn-on-use.
58824         (Makefile.am): Include warn-on-use.h in netdb.h.
58826 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
58828         build: avoid "make check" failure without .git/ directory
58829         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
58830         there is no .git/ directory.
58832 2010-04-25  Bruno Haible  <bruno@clisp.org>
58834         ptsname: Fix misuse of ttyname_r.
58835         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
58836         of errno.
58838 2010-04-25  Bruno Haible  <bruno@clisp.org>
58840         ttyname_r: Make it work on Solaris 10.
58841         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
58842         if the system function has the POSIX declaration. Test whether the
58843         function fails if the buffer is less than 128 bytes large.
58844         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
58845         system's ttyname_r function. Provide a reasonably large buffer.
58846         * modules/ttyname_r (Depends-on): Add extensions.
58847         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
58849 2010-04-25  Bruno Haible  <bruno@clisp.org>
58851         Use the 'extensions' module for some more functions on Solaris.
58852         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
58853         module.
58854         * doc/posix-functions/ctime_r.texi: Likewise.
58855         * doc/posix-functions/getgrgid_r.texi: Likewise.
58856         * doc/posix-functions/getgrnam_r.texi: Likewise.
58857         * doc/posix-functions/getpwnam_r.texi: Likewise.
58858         * doc/posix-functions/getpwuid_r.texi: Likewise.
58859         * doc/posix-functions/readdir_r.texi: Likewise.
58860         * doc/posix-functions/sigwait.texi: Likewise.
58861         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
58862         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
58864 2010-04-25  Bruno Haible  <bruno@clisp.org>
58866         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
58867         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
58868         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
58869         * lib/ttyname_r.c: Include <limits.h>.
58870         (ttyname_r): Define using the system's ttyname_r function, if it exists
58871         and not on Solaris.
58872         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
58873         set.
58874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
58875         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
58876         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
58877         Reported by Simon Josefsson.
58879 2010-04-25  Bruno Haible  <bruno@clisp.org>
58881         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
58882         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
58883         * doc/posix-functions/ctime_r.texi: Likewise.
58884         * doc/posix-functions/getgrgid_r.texi: Likewise.
58885         * doc/posix-functions/getgrnam_r.texi: Likewise.
58886         * doc/posix-functions/getlogin_r.texi: Likewise.
58887         * doc/posix-functions/getpwnam_r.texi: Likewise.
58888         * doc/posix-functions/getpwuid_r.texi: Likewise.
58889         * doc/posix-functions/readdir_r.texi: Likewise.
58890         * doc/posix-functions/sigwait.texi: Likewise.
58891         * doc/posix-functions/ttyname_r.texi: Likewise.
58892         Reported by Simon Josefsson.
58894 2010-04-25  Bruno Haible  <bruno@clisp.org>
58896         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
58897         * gnulib-tool (func_usage): Document that --with-*-tests options apply
58898         also to --create-testdir.
58899         (func_acceptable): Don't consider the status of *-tests modules here.
58900         (func_modules_transitive_closure): Consider it here, before including a
58901         test module.
58902         (func_import, func_create_testdir): Set inc_all_direct_tests,
58903         inc_all_indirect_tests.
58904         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
58905         --create-testdir and --create-megatestdir.
58907 2010-04-25  Bruno Haible  <bruno@clisp.org>
58909         gnulib-tool: Add --without-*-tests options.
58910         * gnulib-tool (func_usage): Document the --without-*-tests options.
58911         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
58912         excl_unportable_tests): New variables.
58913         Fail if they are specified with --import or --update.
58914         (func_acceptable): Respect the excl_*_tests variables.
58915         (func_import): Set the excl_*_tests variables to empty.
58917 2010-04-25  Simon Josefsson  <simon@josefsson.org>
58918             Bruno Haible  <bruno@clisp.org>
58920         Work around a MacOS X 10.4 bug with openpty.
58921         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
58922         * tests/test-openpty.c (main): Close the master side explicitly.
58924 2010-04-25  Bruno Haible  <bruno@clisp.org>
58926         strnlen: Fix a C++ test error on MacOS X and Solaris.
58927         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
58928         the function is not declared.
58929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
58930         Simon Josefsson.
58932 2010-04-24  Bruno Haible  <bruno@clisp.org>
58934         Avoid a gcc warning.
58935         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
58936         of correct type for %08lx directive.
58937         Reported by Eric Blake.
58939 2010-04-24  Bruno Haible  <bruno@clisp.org>
58941         vasnprintf: Correct errno value in case of out-of-memory.
58942         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
58943         or sprintf. Use the errno value from SNPRINTF or sprintf.
58944         Reported by Ian Beckwith <ianb@erislabs.net>.
58946 2010-04-24  Bruno Haible  <bruno@clisp.org>
58948         ansi-c++-opt: Find correct compiler when cross-compiling.
58949         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
58950         AC_CHECK_PROGS.
58951         Reported by Simon Josefsson.
58953 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
58955         vc-list-files: Add support for subversion
58956         * build-aux/vc-list-files: Use "svn list" to generate the list of
58957         files controlled by subversion.
58959 2010-04-23  Jim Meyering  <meyering@redhat.com>
58961         vc-list-files tests: convert to use init.sh
58962         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
58963         path_prepend_.
58964         Use Exit, not exit.
58965         Use skip_ rather than open coding it.
58966         Remove trap set-up and compare definitions.
58967         * tests/test-vc-list-files-git.sh: Likewise.
58968         * modules/vc-list-files-tests (Files): Add tests/init.sh.
58970 2010-04-22  Simon Josefsson  <simon@josefsson.org>
58972         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
58973         backup files.
58975 2010-04-21  Simon Josefsson  <simon@josefsson.org>
58977         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
58979 2010-04-20  Eric Blake  <eblake@redhat.com>
58981         tests: be robust to ignored SIGPIPE
58982         * tests/test-select-in.sh: Consume all output.
58983         * tests/test-lseek.sh: Check correct exit status, while avoiding
58984         EPIPE.
58986 2010-04-20  Simon Josefsson  <simon@josefsson.org>
58987             Bruno Haible  <bruno@clisp.org>
58989         visibility: Don't use -fvisibility if it leads to a warning.
58990         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
58991         yes, don't pretend that visibility works if it leads to a warning.
58992         Reported by Mike Gran <spk121@yahoo.com>.
58994 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
58996         * build-aux/bootstrap: Use "git -h" for testing for supported options
58997         instead of "git --help".  The short-form option only shows a summary,
58998         and doesn't layout the full man page.  Grep for the full option name
58999         in the summary, too.
59001 2010-04-19  Bruno Haible  <bruno@clisp.org>
59003         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
59004         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
59005         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
59006         mention of RELOCATABLE_STRIP.
59007         Reported by Sylvain Beucler <beuc@beuc.net>.
59009 2010-04-19  Bruno Haible  <bruno@clisp.org>
59011         * lib/diffseq.h: Fix typo in comment.
59012         Reported by Eric Blake.
59014 2010-04-19  Bruno Haible  <bruno@clisp.org>
59016         ioctl: Move autoconf macro to a .m4 file.
59017         * m4/ioctl.m4: New file, extracted from modules/ioctl.
59018         * modules/ioctl (Files): Add it.
59019         (configure.ac): Simply invoke gl_FUNC_IOCTL.
59020         Reported by Ian Beckwith <ianb@erislabs.net>.
59022 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
59023             Bruno Haible  <bruno@clisp.org>
59025         diffseq: Accommodate use-case with abstract arrays.
59026         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
59027         is not defined.
59028         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
59029         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
59031 2010-04-18  Bruno Haible  <bruno@clisp.org>
59033         * doc/posix-headers/stdbool.texi: More precise wording.
59035 2010-04-17  Jim Meyering  <meyering@redhat.com>
59037         maint.mk: use gnu-style indentation in an embedded perl script
59038         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
59039         Rename variable: s/two/last_two_bytes/
59041 2010-04-16  Eric Blake  <eblake@redhat.com>
59043         test-stdbool: skip test that fails with Solaris CC
59044         * tests/test-stdbool.c (f): Skip test that causes compilation
59045         error under buggy C++ compiler.
59046         * lib/stdbool.in.h: Document the limitation.
59047         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
59049         setenv: allow compilation with C++
59050         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
59051         register keyword.
59053         stdint: allow test to pass with C++
59054         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
59056         getopt: allow compilation with C++
59057         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
59058         struct.
59059         * lib/getopt.c (_getopt_internal_r): Use correct type.
59060         Reported by Dagobert Michelson, via Joel E. Denny.
59062 2010-04-16  Bruno Haible  <bruno@clisp.org>
59064         Override netdb.h always.
59065         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
59066         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
59067         Reported by Ludovic Courtès <ludo@gnu.org>.
59069 2010-04-15  Bruno Haible  <bruno@clisp.org>
59071         openpty: Fix mistake from 2010-03-21.
59072         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
59073         Reported by Simon Josefsson.
59075 2010-04-15  Eric Blake  <eblake@redhat.com>
59077         test-forkpty: fix expected signature
59078         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
59079         Reported by Simon Josefsson.
59081 2010-04-15  Jim Meyering  <meyering@redhat.com>
59083         maint.mk: texinfo_suffix_re_: correct the default regexp
59084         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
59086         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
59087         make it configurable via texinfo_suffix_re_.
59089 2010-04-14  Eric Blake  <eblake@redhat.com>
59091         strtok_r: relax license to LGPLv2+
59092         * modules/strtok_r (License): Relax license.
59093         Reported by Matthias Bolte.
59095 2010-04-14  Simon Josefsson  <simon@josefsson.org>
59097         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
59098         version 1.4.4 by default instead of requiring the libgcrypt
59099         version used during build.  This makes it possible to use the
59100         application with older but still binary compatible libgcrypt
59101         versions.
59103 2010-04-13  Eric Blake  <eblake@redhat.com>
59105         getopt-gnu: match recent glibc fixes and posix ruling
59106         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
59107         '+' handling, when requesting extensions.
59108         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
59109         'W;' handling.
59110         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
59111         * doc/posix-functions/getopt.texi (getopt): Document this.
59112         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
59113         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59114         Likewise.
59116         getopt: merge bug fixes from glibc
59117         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
59118         diagnostics.  Honor '+:' correctly.  Reject ';'.
59120         getopt-posix: detect MacOS bug
59121         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
59122         optind when missing a required argument.
59123         * doc/posix-functions/getopt.texi (getopt): Document the bug.
59124         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
59125         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
59126         Likewise.
59128         getopt-posix: avoid spurious failure on Solaris
59129         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
59130         an indicator that setting optind=1 is sufficient for reset.
59132         getopt-posix: avoid spurious failure on FreeBSD
59133         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
59134         in POSIX mode, since the m4 test uses it.
59136         gnulib-tool: silence warning on BSD sh
59137         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
59139 2010-04-13  Jim Meyering  <meyering@redhat.com>
59141         doc: users.txt: GNU patch now uses gnulib
59142         * users.txt: Add patch.
59144 2010-04-12  Jim Meyering  <meyering@redhat.com>
59146         maint.mk: generate more concise timing data for syntax-check rules
59147         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
59148         " done" from each line that reports a syntax-check test duration.
59150 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
59152         git-version-gen: use "git update-index..." rather than "git status"
59153         * build-aux/git-version-gen: Use git update-index --refresh, not
59154         "git status".  With some versions of git, "git status" would fail
59155         to update the index and result in an unwarranted "-dirty" suffix.
59157 2010-04-11  Jim Meyering  <meyering@redhat.com>
59159         openat: correct formatting (no semantic change)
59160         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
59161         Suggested by Bruno Haible.
59163 2010-04-11  Bruno Haible  <bruno@clisp.org>
59165         Stricter declaration checking in testdirs.
59166         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
59167         If for_tests is true, augment AM_CPPFLAGS to define
59168         GNULIB_STRICT_CHECKING.
59169         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
59170         GNULIB_STRICT_CHECKING is defined, verify that the function is
59171         declared.
59173 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
59174             Bruno Haible  <bruno@clisp.org>
59176         libunistring: Improve configure output.
59177         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
59178         Don't say "consider installing GNU libunistring" when checking again
59179         with libiconv.
59181 2010-04-11  Bruno Haible  <bruno@clisp.org>
59183         libunistring: Correct value of $LTLIBUNISTRING.
59184         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
59185         correct the value of $LTLIBUNISTRING.
59187 2010-04-11  Bruno Haible  <bruno@clisp.org>
59189         havelib: Add static libraries to LIBS in the right order.
59190         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
59191         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
59193 2010-04-11  Bruno Haible  <bruno@clisp.org>
59195         libunistring: Detect libunistring also when it depends on libiconv.
59196         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
59197         the second AC_LIB_HAVE_LINKFLAGS invocation.
59199 2010-04-11  James Youngman  <jay@gnu.org>
59201         close-stream: declare local scalars to be "const"
59202         * lib/close-stream.c (close_stream): Make boolean variables const
59203         to document the fact that we set but do not change them.
59205 2010-04-11  Bruno Haible  <bruno@clisp.org>
59207         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
59209 2010-04-11  Jim Meyering  <meyering@redhat.com>
59211         maint.mk: don't include dist-check.mk
59212         * top/maint.mk: Remove bogus include directive.
59214         maint.mk: improve empty-line-at-EOF check
59215         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
59216         solution, rather than tail+Perl-based one.  The latter would read
59217         a few kilobytes from the end of each file, and did not handle empty
59218         files properly.
59220         maint.mk: print the elapsed time for each syntax-check rule
59221         * top/maint.mk (sc_m_rules_): Save start time in a file.
59222         (sc_z_rules_): New rules: remove temp file and print elapsed time.
59223         (local-check): Interpose the .z rules
59225 2010-04-11  Jim Meyering  <meyering@redhat.com>
59227         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
59228         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
59229         empty file with one that ends in an empty line.
59231 2010-04-10  Bruno Haible  <bruno@clisp.org>
59233         mkdir: Make it work on mingw64.
59234         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
59235         * lib/mkdir.c: Update comment.
59236         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
59238 2010-04-10  Bruno Haible  <bruno@clisp.org>
59240         Don't override improved macro from newer autoconf.
59241         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
59242         autoconf >= 2.62.
59243         Reported by Joel E. Denny <jdenny@clemson.edu>.
59245 2010-04-10  Jim Meyering  <meyering@redhat.com>
59247         maint.mk: new syntax-check rule: prohibit empty lines at end of file
59248         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
59250         maint.mk: correct a diagnostic
59251         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
59252         in diagnostic; now use $prohibit.
59254 2010-04-10  Bruno Haible  <address@hidden>
59256         fchownat: Fix a C++ test error on Solaris 8.
59257         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
59258         the function does not exist.
59260 2010-04-10  Bruno Haible  <bruno@clisp.org>
59262         vasnprintf: Add more tests.
59263         * tests/test-vasnprintf-posix.c: Include <errno.h>.
59264         (test_function): Test converting an invalid wide string.
59266         vasnprintf: Correct handling of unconvertible wide string arguments.
59267         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
59268         VASNPRINTF.
59269         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
59270         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
59271         smaller than the expected maximum need for the directive. Set errno to
59272         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
59273         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
59274         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
59275         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
59276         * modules/vasnprintf (Files): Add m4/printf.m4.
59277         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59279 2010-04-10  Bruno Haible  <bruno@clisp.org>
59281         vasnprintf: Fix crash in %ls directive.
59282         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
59283         string is passed as argument to %ls, with no precision and no width.
59284         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59286 2010-04-10  Bruno Haible  <bruno@clisp.org>
59288         vasnprintf: Fix multiple test failures on mingw.
59289         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
59290         _snprintf, or snwprintf, not _snwprintf.
59292 2010-04-10  Bruno Haible  <bruno@clisp.org>
59294         write: Fix a C++ test error on mingw.
59295         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
59297 2010-04-10  Bruno Haible  <bruno@clisp.org>
59299         vasnprintf test: Reduce code duplication.
59300         * tests/test-vasnprintf.c (test_function): New function, extracted from
59301         test_vasnprintf.
59302         (test_vasnprintf, test_asnprintf): Invoke it.
59304 2010-04-10  Bruno Haible  <bruno@clisp.org>
59306         strnlen: Fix warning in C++ mode on MacOS X.
59307         * lib/string.in.h (strnlen): Use the modern idiom.
59308         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
59309         defining strnlen as a macro already in <config.h>.
59310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59311         REPLACE_STRNLEN.
59312         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
59313         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59315 2010-04-08  James Youngman  <jay@gnu.org>
59317         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
59318         the example.
59320 2010-04-09  Jim Meyering  <meyering@redhat.com>
59322         maint.mk: print better diagnostic when there is no $(_hv_file)
59323         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
59324         announce that when $(_hv_file) (aka help-version) does not exist.
59326         init.sh: run tr in the "C" locale to avoid multibyte interpretation
59327         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
59328         not try to interpret its random input bytes.  Jarno Rajahalme reported
59329         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
59330         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
59331         (mktempd_): Likewise, just in case.
59333         ftruncate: add two years to projected module removal date: 2012
59334         * m4/ftruncate.m4: Adjust comments.
59336         ftruncate: mark module as obsolete; even MinGW provides it, now
59337         * modules/ftruncate (Status): Obsolete.
59338         (Notice): Say that.
59339         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
59340         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
59342 2010-04-08  Bruno Haible  <bruno@clisp.org>
59344         Fix side effects from tests-related modules.
59345         * modules/dprintf-posix (Comment): New section.
59346         * modules/fprintf-posix (Comment): Likewise.
59347         * modules/obstack-printf-posix (Comment): Likewise.
59348         * modules/printf-posix (Comment): Likewise.
59349         * modules/snprintf-posix (Comment): Likewise.
59350         * modules/sprintf-posix (Comment): Likewise.
59351         * modules/vasnprintf-posix (Comment): Likewise.
59352         * modules/vasprintf-posix (Comment): Likewise.
59353         * modules/vdprintf-posix (Comment): Likewise.
59354         * modules/vfprintf-posix (Comment): Likewise.
59355         * modules/vprintf-posix (Comment): Likewise.
59356         * modules/vsnprintf-posix (Comment): Likewise.
59357         * modules/vsprintf-posix (Comment): Likewise.
59358         * modules/xprintf-posix (Comment): Likewise.
59359         * modules/xvasprintf-posix (Comment): Likewise.
59360         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
59361         * modules/floorf-tests (Depends-on): Likewise.
59362         * modules/round-tests (Depends-on): Likewise.
59363         * modules/roundf-tests (Depends-on): Likewise.
59364         * modules/trunc-tests (Depends-on): Likewise.
59365         * modules/truncf-tests (Depends-on): Likewise.
59366         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
59367         'fprintf-posix' module is not present.
59368         * tests/test-floorf2.c (check): Likewise.
59369         * tests/test-trunc2.c (check): Likewise.
59370         * tests/test-truncf2.c (check): Likewise.
59371         * tests/test-round2.c (equal): Likewise.
59372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
59374 2010-04-07  Karl Berry  <karl@gnu.org>
59376         * config/srclist.txt,
59377         * config/srclistvars.sh,
59378         * config/srclist-update: doc fixes.
59380 2010-04-07  Jim Meyering  <meyering@redhat.com>
59382         maint.mk: add a PATH crosschecking syntax-check rule
59383         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
59384         Useful if you use a test like the one in help-version (coreutils,
59385         diffutils, grep, gzip) that ensures $(VERSION) matches what is
59386         printed by prog --version.
59388 2010-04-06  Bruno Haible  <bruno@clisp.org>
59390         Fix link error on mingw.
59391         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
59392         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
59394 2010-04-06  Bruno Haible  <bruno@clisp.org>
59396         Assume rmdir exists.
59397         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
59399 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
59401         doc: update users.txt
59402         * users.txt: Add gcal.
59404 2010-04-06  Jim Meyering  <meyering@redhat.com>
59406         init.sh: simply unset TMPDIR rather than risking env -i
59407         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
59408         although it probably works fine on all Unix-based systems, some
59409         systems (Cygwin?) cannot tolerate a totally cleared environment.
59410         Suggestion from Eric Blake.
59412 2010-04-06  Jim Meyering  <meyering@redhat.com>
59414         init.sh: portability fix: use env's POSIX-specified -i option not -u
59415         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
59416         than unportable env -u.  Solaris 5.11's env lacks support for -u.
59418 2010-04-05  Bruno Haible  <bruno@clisp.org>
59420         btowc: Work around Cygwin 1.7.2 bug.
59421         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
59422         does not map NUL to 0.
59423         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
59425 2010-04-05  Bruno Haible  <bruno@clisp.org>
59427         Make the multithread modules work on Cygwin 1.7.2.
59428         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
59429         imported symbols can be declared weak, so that it returns "no" on
59430         Cygwin 1.7.2.
59432 2010-04-05  Bruno Haible  <bruno@clisp.org>
59434         Use the module 'strncat'.
59435         * modules/unistr/u8-strncat (Depends-on): Add strncat.
59437         Tests for module 'strncat'.
59438         * modules/strncat-tests: New file.
59439         * tests/test-strncat.c: New file.
59441         New module 'strncat'.
59442         * lib/string.in.h (strncat): New declaration.
59443         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
59444         * m4/strncat.m4: New file, based on m4/memchr.m4.
59445         * modules/strncat: New file.
59446         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
59447         is declared.
59448         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
59449         REPLACE_STRNCAT.
59450         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
59451         REPLACE_STRNCAT.
59452         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
59453         module.
59454         * tests/test-string-c++.cc: Check signature of strncat.
59456 2010-04-05  Jim Meyering  <meyering@redhat.com>
59458         xstrtoumax-tests: convert to use init.sh
59459         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
59460         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59461         Use Exit, not exit.
59462         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59464         xstrtoimax-tests: convert to use init.sh
59465         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
59466         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59467         Use Exit, not exit.
59468         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59470 2010-04-05  Bruno Haible  <bruno@clisp.org>
59472         sys_socket: Avoid #define replacements in C++ mode.
59473         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
59474         warning to the function if possible, rather than #defining the symbol
59475         to a dysfunctional alias.
59477 2010-04-05  Bruno Haible  <bruno@clisp.org>
59479         fseeko: Fix C++ test error on mingw.
59480         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
59481         gl_FUNC_FSEEKO.
59482         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
59483         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
59484         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
59485         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
59487 2010-04-05  Bruno Haible  <bruno@clisp.org>
59489         duplocale: Improve test output.
59490         * tests/test-duplocale.c (main): Print reason for skipped test.
59492 2010-04-05  Bruno Haible  <bruno@clisp.org>
59494         Assume rmdir exists.
59495         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
59496         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
59498 2010-04-05  Bruno Haible  <bruno@clisp.org>
59500         Fix link error on Solaris 8 with cc.
59501         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
59503 2010-04-05  Bruno Haible  <bruno@clisp.org>
59505         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
59506         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
59508 2010-04-05  Bruno Haible  <bruno@clisp.org>
59510         vasprintf: Update documentation.
59511         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
59513 2010-04-05  Bruno Haible  <bruno@clisp.org>
59515         ptsname: Improve test.
59516         * tests/test-ptsname.c (main): Also try the various master names of BSD
59517         systems.
59519 2010-04-05  Bruno Haible  <bruno@clisp.org>
59521         memchr: Avoid a possible C++ test error.
59522         * lib/string.in.h (memchr): Provide declaration if function is missing.
59523         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
59524         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
59525         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
59526         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
59528 2010-04-05  Bruno Haible  <bruno@clisp.org>
59530         strtok_r: Improve idiom.
59531         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
59532         AC_LIBOBJ is used.
59534 2010-04-05  Bruno Haible  <bruno@clisp.org>
59536         strdup: Improve idiom.
59537         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
59538         AC_LIBOBJ is used.
59539         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
59540         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
59541         when AC_LIBOBJ is used.
59543 2010-04-05  Bruno Haible  <bruno@clisp.org>
59545         mbsinit, mbrtowc, wcrtomb: Improve idioms.
59546         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
59547         don't set REPLACE_MBSINIT to 1.
59548         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
59549         don't set REPLACE_MBRTOWC to 1.
59550         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
59551         exist, don't set REPLACE_MBSRTOWCS to 1.
59552         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
59553         exist, don't set REPLACE_MBSNRTOWCS to 1.
59554         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
59555         don't set REPLACE_WCRTOMB to 1.
59556         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
59557         exist, don't set REPLACE_WCSRTOMBS to 1.
59558         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
59559         exist, don't set REPLACE_WCSNRTOMBS to 1.
59561 2010-04-05  Bruno Haible  <bruno@clisp.org>
59563         ldexpl: Improve idiom.
59564         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
59565         make sure to set HAVE_DECL_LDEXPL to 0.
59567 2010-04-05  Jim Meyering  <meyering@redhat.com>
59569         xstrtol-tests: convert to use init.sh
59570         * modules/xstrtol-tests (Files): Add tests/init.sh.
59571         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59572         Use Exit, not exit.
59573         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59575         atexit-tests: convert to use init.sh
59576         * modules/atexit-tests (Files): Add tests/init.sh.
59577         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
59578         Use Exit, not exit.
59579         Remove uses of $EXEEXT and "./" to run a program in the current dir.
59581         init.sh: fix typo
59582         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
59584         init.sh: make it easier for a test script to write to the tty, ...
59585         when using automake's parallel-tests mode.
59586         * tests/init.sh (stderr_fileno_): Define overridable variable.
59587         (warn_): New function, to use it.
59588         (fail_, skip_, framework_failure_): Use warn_.
59590 2010-04-04  Bruno Haible  <bruno@clisp.org>
59592         btowc: Avoid warning.
59593         * lib/btowc.c: Include <stdlib.h>.
59594         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
59596 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
59597             Bruno Haible  <bruno@clisp.org>
59599         wchar: Port to NetBSD 1.5.
59600         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
59601         * lib/wctype.in.h (WEOF): Likewise.
59603 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
59604             Bruno Haible  <bruno@clisp.org>
59606         Port extended stdio to NetBSD 1.5.
59607         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
59608         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
59609         older.
59611 2010-04-04  Bruno Haible  <bruno@clisp.org>
59613         string: Remove unused substitution.
59614         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59615         HAVE_DECL_STRERROR.
59616         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
59618 2010-04-04  Bruno Haible  <bruno@clisp.org>
59620         strtod: Avoid a possible C++ test error.
59621         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
59622         set REPLACE_STRTOD.
59624 2010-04-04  Bruno Haible  <bruno@clisp.org>
59626         strerror: Update documentation.
59627         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
59629 2010-04-04  Bruno Haible  <bruno@clisp.org>
59631         stdio: Fix some C++ test errors on Solaris 8 with GCC.
59632         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
59633         _GL_CXXALIAS_SYS_CAST.
59635 2010-04-04  Bruno Haible  <bruno@clisp.org>
59637         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
59638         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
59639         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
59640         REPLACE_FREXPL to 1.
59641         * doc/posix-functions/frexpl.texi: Update documentation.
59643 2010-04-04  Bruno Haible  <bruno@clisp.org>
59645         math: Fix some C++ test errors on Solaris 8 and Cygwin.
59646         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
59648 2010-04-04  Bruno Haible  <bruno@clisp.org>
59650         Implement nanosleep for native Windows.
59651         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
59653 2010-04-04  Bruno Haible  <bruno@clisp.org>
59655         math: Fix some C++ test errors on Solaris 8.
59656         * lib/math.in.h (truncf, trunc): Use simpler idiom.
59658 2010-04-04  Bruno Haible  <bruno@clisp.org>
59660         math: Fix some C++ test errors on Cygwin.
59661         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
59662         truncl): Provide declaration if the system does not have it.
59663         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
59664         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
59665         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
59666         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
59667         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
59668         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
59669         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
59670         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
59671         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
59672         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
59673         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
59674         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
59675         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
59676         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
59677         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
59678         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
59679         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
59680         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
59681         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
59682         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
59683         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
59684         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
59686 2010-04-04  Bruno Haible  <bruno@clisp.org>
59688         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
59689         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
59690         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
59691         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59692         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
59693         * m4/isinf.m4 (gl_ISINF): Likewise.
59694         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
59696 2010-04-04  Bruno Haible  <bruno@clisp.org>
59698         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
59699         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
59701 2010-04-04  Bruno Haible  <bruno@clisp.org>
59703         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
59704         * modules/tmpfile (configure.ac): Update.
59706         tmpfile: Fix C++ test error on mingw.
59707         * lib/stdio.in.h (tmpfile): New declaration.
59708         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
59709         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
59710         * modules/tmpfile (Depends-on): Add stdio.
59711         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59712         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
59713         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
59714         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
59715         REPLACE_TMPFILE.
59716         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
59718 2010-04-04  Bruno Haible  <bruno@clisp.org>
59720         ioctl: Fix C++ test error on mingw.
59721         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
59722         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
59723         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
59725 2010-04-03  Bruno Haible  <bruno@clisp.org>
59727         wcwidth: Fix C++ test error on mingw.
59728         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
59729         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
59730         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
59732 2010-04-03  Bruno Haible  <bruno@clisp.org>
59734         nanosleep: Fix C++ test error on mingw.
59735         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
59736         * lib/time.in.h (nanosleep): Use modern idiom.
59737         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
59738         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
59739         REPLACE_NANOSLEEP to 1.
59740         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
59741         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
59743 2010-04-03  Bruno Haible  <bruno@clisp.org>
59745         strptime: Fix C++ test error on mingw.
59746         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
59747         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
59748         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
59749         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
59750         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
59751         not REPLACE_STRPTIME.
59752         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
59753         REPLACE_STRPTIME.
59755 2010-04-03  Bruno Haible  <bruno@clisp.org>
59757         timegm: Fix C++ test error on mingw.
59758         * lib/time.in.h (timegm): Use modern idiom.
59759         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
59760         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
59761         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
59762         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
59764 2010-04-03  Bruno Haible  <bruno@clisp.org>
59766         timegm: Assume declaration if function exists.
59767         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
59768         if it exists. Don't clobber ac_cv_func_timegm.
59770 2010-04-03  Bruno Haible  <bruno@clisp.org>
59772         time_r: Fix C++ test error on mingw.
59773         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
59774         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
59775         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
59776         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
59777         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
59779 2010-04-03  Bruno Haible  <bruno@clisp.org>
59781         time_r: Minor updates.
59782         * modules/time_r (Description): Mention the provided functions.
59783         * lib/time_r.c: Don't include <string.h>.
59784         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
59785         * doc/posix-functions/localtime_r.texi: Likewise.
59787 2010-04-03  Bruno Haible  <bruno@clisp.org>
59789         time: Fix regression introduced on 2010-03-08.
59790         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
59791         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
59793 2010-04-03  Jim Meyering  <meyering@redhat.com>
59795         maint.mk: don't silently disable project-specific syntax-check rules
59796         * top/maint.mk (_prohibit_regexp): Define, to help people realize
59797         that they need to convert their project-specific syntax-check rules
59798         to use the new _sc_search_regexp.
59800 2010-04-03  Bruno Haible  <bruno@clisp.org>
59802         fchdir: Fix regression introduced on 2010-03-08.
59803         * lib/unistd.in.h (fchdir): Fix declaration.
59804         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
59805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
59806         REPLACE_FCHDIR.
59807         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
59808         REPLACE_FCHDIR.
59810 2010-04-03  Bruno Haible  <bruno@clisp.org>
59812         getpagesize: Fix C++ test error on mingw.
59813         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
59814         system does not declare the function.
59815         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
59816         declared.
59817         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
59818         HAVE_DECL_GETPAGESIZE.
59819         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
59821 2010-04-03  Bruno Haible  <bruno@clisp.org>
59823         stdio: Make C++ tests work on mingw.
59824         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
59825         does not declare the function.
59827 2010-04-03  Bruno Haible  <bruno@clisp.org>
59829         ftello: Fix C++ test error on mingw.
59830         * lib/stdio.in.h (ftello): Use modern idiom.
59831         * lib/ftello.c (ftello): Renamed from rpl_ftello.
59832         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
59833         is missing and that it needs to be replaced.
59834         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
59835         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
59836         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
59838 2010-04-03  Bruno Haible  <bruno@clisp.org>
59840         fseeko: Fix C++ test error on mingw.
59841         * lib/stdio.in.h (fseeko): Use modern idiom.
59842         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
59843         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
59844         is missing and that it needs to be replaced.
59845         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
59846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
59847         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
59849 2010-04-03  Bruno Haible  <bruno@clisp.org>
59851         mkstemp: Fix C++ test error on mingw.
59852         * lib/stdlib.in.h (mkstemp): Use modern idiom.
59853         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
59854         function is missing and that it needs to be replaced.
59855         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
59856         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
59858 2010-04-03  Bruno Haible  <bruno@clisp.org>
59860         stpncpy: Fix C++ test error on mingw.
59861         * lib/string.in.h (stpncpy): Use modern idiom.
59862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
59863         function is missing and that it needs to be replaced.
59864         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59865         REPLACE_STPNCPY.
59866         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
59868 2010-04-03  Bruno Haible  <bruno@clisp.org>
59870         sys_stat: Fix C++ test error on mingw.
59871         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
59872         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
59874 2010-04-03  Bruno Haible  <bruno@clisp.org>
59876         pty: Update doc.
59877         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
59879 2010-04-03  Bruno Haible  <bruno@clisp.org>
59881         unistd: Fix C++ test error on mingw.
59882         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
59884 2010-04-03  Bruno Haible  <bruno@clisp.org>
59886         Update doc regarding mingw.
59887         * doc/glibc-functions/openpty.texi: Update regarding mingw.
59888         * doc/glibc-functions/login_tty.texi: Likewise.
59889         * doc/glibc-functions/forkpty.texi: Likewise.
59891 2010-04-03  Bruno Haible  <bruno@clisp.org>
59893         stdlib: Avoid compilation failure of c-strtold on mingw.
59894         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
59896 2010-04-03  Bruno Haible  <bruno@clisp.org>
59898         locale: Make C++ tests work on Cygwin and mingw.
59899         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
59900         cannot provide the function.
59901         Reported by Simon Josefsson.
59903 2010-04-03  Bruno Haible  <bruno@clisp.org>
59905         localename: Port to MacOS X 10.6.
59906         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
59907         memory layout of the locales in MacOS X 10.6 as well.
59908         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
59910 2010-04-02  Bruno Haible  <bruno@clisp.org>
59912         gnulib-tool: Ensure that long-running tests are executed last.
59913         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
59914         running tests after the one for the other tests.
59916 2010-04-02  Bruno Haible  <bruno@clisp.org>
59918         gnulib-tool: Ensure the tests in the main directory are executed first.
59919         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
59920         start with the current directory.
59922 2010-04-02  Bruno Haible  <bruno@clisp.org>
59924         Tests for module 'havelib', moved here from GNU gettext.
59925         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
59926         modifications.
59927         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
59928         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
59929         with modifications.
59930         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
59931         modifications.
59932         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
59933         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
59934         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
59935         with modifications.
59936         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
59937         with modifications.
59938         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
59939         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
59940         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
59941         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
59942         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
59943         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
59944         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
59945         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
59946         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
59947         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
59948         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
59949         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
59950         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
59951         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
59952         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
59953         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
59954         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
59955         with modifications.
59956         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
59957         with modifications.
59958         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
59959         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
59960         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
59961         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
59962         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
59963         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
59964         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
59965         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
59966         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
59967         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
59968         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
59969         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
59970         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
59971         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
59972         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
59973         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
59974         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
59975         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
59976         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
59977         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
59978         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
59979         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
59980         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
59981         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
59982         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
59983         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
59984         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
59985         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
59986         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
59987         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
59988         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
59989         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
59990         * tests/havelib/rpathx/rpathx.c: New file, from
59991         gettext/autoconf-lib-link.
59992         * tests/havelib/rpathx/Makefile.am: New file, from
59993         gettext/autoconf-lib-link.
59994         * tests/havelib/rpathx/configure.ac: New file, from
59995         gettext/autoconf-lib-link with modifications.
59996         * tests/havelib/rpathy/rpathy.c: New file, from
59997         gettext/autoconf-lib-link.
59998         * tests/havelib/rpathy/Makefile.am: New file, from
59999         gettext/autoconf-lib-link.
60000         * tests/havelib/rpathy/configure.ac: New file, from
60001         gettext/autoconf-lib-link with modifications.
60002         * tests/havelib/rpathz/rpathz.c: New file, from
60003         gettext/autoconf-lib-link.
60004         * tests/havelib/rpathz/Makefile.am: New file, from
60005         gettext/autoconf-lib-link.
60006         * tests/havelib/rpathz/configure.ac: New file, from
60007         gettext/autoconf-lib-link with modifications.
60008         * tests/havelib/rpathlx/usex.c: New file, from
60009         gettext/autoconf-lib-link.
60010         * tests/havelib/rpathlx/Makefile.am: New file, from
60011         gettext/autoconf-lib-link.
60012         * tests/havelib/rpathlx/configure.ac: New file, from
60013         gettext/autoconf-lib-link with modifications.
60014         * tests/havelib/rpathly/usey.c: New file, from
60015         gettext/autoconf-lib-link.
60016         * tests/havelib/rpathly/Makefile.am: New file, from
60017         gettext/autoconf-lib-link.
60018         * tests/havelib/rpathly/configure.ac: New file, from
60019         gettext/autoconf-lib-link with modifications.
60020         * tests/havelib/rpathlz/usez.c: New file, from
60021         gettext/autoconf-lib-link.
60022         * tests/havelib/rpathlz/Makefile.am: New file, from
60023         gettext/autoconf-lib-link.
60024         * tests/havelib/rpathlz/configure.ac: New file, from
60025         gettext/autoconf-lib-link with modifications.
60026         * tests/havelib/rpathlyx/usey.c: New file, from
60027         gettext/autoconf-lib-link.
60028         * tests/havelib/rpathlyx/Makefile.am: New file, from
60029         gettext/autoconf-lib-link.
60030         * tests/havelib/rpathlyx/configure.ac: New file, from
60031         gettext/autoconf-lib-link with modifications.
60032         * tests/havelib/rpathlzyx/usez.c: New file, from
60033         gettext/autoconf-lib-link.
60034         * tests/havelib/rpathlzyx/Makefile.am: New file, from
60035         gettext/autoconf-lib-link.
60036         * tests/havelib/rpathlzyx/configure.ac: New file, from
60037         gettext/autoconf-lib-link with modifications.
60038         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
60039         with modifications.
60041 2010-04-02  Bruno Haible  <bruno@clisp.org>
60043         gnulib-tool: Create distributed built sources also for the tests.
60044         * gnulib-tool (func_create_testdir): Also generate distributed built
60045         sources in the tests directory.
60047 2010-04-02  Bruno Haible  <bruno@clisp.org>
60049         gnulib-tool: Obey user's environment variables.
60050         * gnulib-tool (func_create_testdir): When creating built sources,
60051         respect the environment variables for autoconf, automake, etc. given by
60052         the user.
60054 2010-04-02  Bruno Haible  <bruno@clisp.org>
60056         gnulib-tool: Provide the value of --m4-base to modules.
60057         * gnulib-tool (func_import, func_create_testdir): Emit a definition
60058         of gl_m4_base.
60060 2010-04-02  Eric Blake  <eblake@redhat.com>
60062         maint.mk: fix some fallout
60063         * NEWS: Document the incompatible change, and its effect on cfg.mk.
60064         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
60066 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
60068         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
60069         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
60070         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
60071         (sc_cast_of_x_alloc_return_value): Likewise.
60072         (sc_cast_of_alloca_return_value): Likewise.
60073         (sc_space_tab): Likewise.
60074         (sc_prohibit_atoi_atof): Likewise.
60075         (sc_prohibit_magic_number_exit): Likewise.
60076         (sc_error_exit_success): Likewise.
60077         (sc_file_system): Likewise.
60078         (sc_prohibit_have_config_h): Likewise.
60079         (sc_require_config_h): Likewise.
60080         (sc_prohibit_HAVE_MBRTOWC): Likewise.
60081         (sc_obsolete_symbols): Likewise.
60082         (sc_changelog): Likewise.
60083         (sc_program_name): Likewise.
60084         (sc_the_the): Likewise.
60085         (sc_trailing_blank): Likewise.
60086         (sc_two_space_separator_in_usage): Likewise.
60087         (sc_useless_cpp_parens): Likewise.
60088         (sc_GPL_version): Likewise.
60089         (sc_GFDL_version): Likewise.
60090         (sc_texinfo_acronym): Likewise.
60091         (sc_prohibit_cvs_keyword): Likewise.
60092         (sc_prohibit_stat_st_blocks): Likewise.
60093         (sc_prohibit_S_IS_definition): Likewise.
60094         (sc_redundant_const): Likewise.
60095         (sc_makefile_TAB_only_indentation): Likewise.
60096         (sc_m4_quote_check): Likewise.
60097         (sc_makefile_path_separator_check): Likewise.
60098         (sc_copyright_check): Likewise.
60099         (sc_Wundef_boolean): Likewise.
60100         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
60102         maint.mk: match 0 or more whitespace-before-function-call '('
60103         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
60104         that have zero or two-and-more spaces between the function name
60105         and the open parenthesis.
60106         (sc_error_message_warn_fatal): Likewise.
60107         (sc_error_message_uppercase): Likewise.
60108         (sc_error_message_period): Likewise.
60110 2010-03-31  Eric Blake  <eblake@redhat.com>
60112         maint.mk: check for [ as well as test
60113         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
60114         Based on a libvirt report by Matthias Bolte.
60116         gnumakefile: don't squelch _version output
60117         * top/GNUmakefile (_version): Create one-shot dependency rather
60118         than using $(shell) when version must be regenerated.
60119         (_autoreconf): Run verbosely, by default.
60121         sys_time: avoid compiler warnings
60122         * lib/sys_time.in.h (includes): Ensure gcc pragma is
60123         unconditional, fixing regression from 2010-03-29.
60124         Reported by Simon Josefsson.
60126 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
60128         maint.mk: s/_header_without_use/_sc_header_without_use/
60129         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
60130         (sc_prohibit_assert_without_use): Use the new name.
60131         (sc_prohibit_close_stream_without_use): Likewise.
60132         (sc_prohibit_getopt_without_use): Likewise.
60133         (sc_prohibit_quotearg_without_use): Likewise.
60134         (sc_prohibit_quote_without_use): Likewise.
60135         (sc_prohibit_long_options_without_use): Likewise.
60136         (sc_prohibit_inttostr_without_use): Likewise.
60137         (sc_prohibit_ignore_value_without_use): Likewise.
60138         (sc_prohibit_error_without_use): Likewise.
60139         (sc_prohibit_xalloc_without_use): Likewise.
60140         (sc_prohibit_hash_without_use): Likewise.
60141         (sc_prohibit_hash_pjw_without_use): Likewise.
60142         (sc_prohibit_safe_read_without_use): Likewise.
60143         (sc_prohibit_argmatch_without_use): Likewise.
60144         (sc_prohibit_canonicalize_without_use): Likewise.
60145         (sc_prohibit_root_dev_ino_without_use): Likewise.
60146         (sc_prohibit_openat_without_use): Likewise.
60147         (sc_prohibit_c_ctype_without_use): Likewise.
60148         (sc_prohibit_signal_without_use): Likewise.
60149         (sc_prohibit_intprops_without_use): Likewise.
60151 2010-03-30  Eric Blake  <eblake@redhat.com>
60153         maint: improve module indicators
60154         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
60155         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
60156         columns, and avoid extra macro expansion.
60158         fdopendir: work around FreeBSD bug
60159         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
60160         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
60161         * modules/dirent (Makefile.am): Substitute it.
60162         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
60163         declaration.
60164         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
60165         fix.
60166         Reported by Christian Weisgerber <naddy@mips.inka.de>.
60168 2010-03-29  Bruno Haible  <bruno@clisp.org>
60170         Emit #pragma system_header after the inclusion guard, not before.
60171         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
60172         guard that spans the entire file, not before. This enables an
60173         optimization in GCC's preprocessor.
60174         * lib/ctype.in.h: Likewise.
60175         * lib/dirent.in.h: Likewise.
60176         * lib/errno.in.h: Likewise.
60177         * lib/float.in.h: Likewise.
60178         * lib/getopt.in.h: Likewise.
60179         * lib/iconv.in.h: Likewise.
60180         * lib/langinfo.in.h: Likewise.
60181         * lib/locale.in.h: Likewise.
60182         * lib/math.in.h: Likewise.
60183         * lib/netdb.in.h: Likewise.
60184         * lib/netinet_in.in.h: Likewise.
60185         * lib/pty.in.h: Likewise.
60186         * lib/sched.in.h: Likewise.
60187         * lib/se-selinux.in.h: Likewise.
60188         * lib/search.in.h: Likewise.
60189         * lib/spawn.in.h: Likewise.
60190         * lib/stdarg.in.h: Likewise.
60191         * lib/stdint.in.h: Likewise.
60192         * lib/string.in.h: Likewise.
60193         * lib/strings.in.h: Likewise.
60194         * lib/sys_file.in.h: Likewise.
60195         * lib/sys_ioctl.in.h: Likewise.
60196         * lib/sys_time.in.h: Likewise.
60197         * lib/sys_times.in.h: Likewise.
60198         * lib/sys_utsname.in.h: Likewise.
60199         * lib/sys_wait.in.h: Likewise.
60200         * lib/sysexits.in.h: Likewise.
60201         * lib/wctype.in.h: Likewise.
60203 2010-03-28  James Youngman  <jay@gnu.org>
60205         save-cwd: don't leak a file descriptor when the caller execs.
60206         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
60207         saved file descriptor.
60208         * modules/save-cwd (Depends-on): Depend on cloexec.
60210 2010-03-29  Bruno Haible  <bruno@clisp.org>
60212         Remove vestiges of fts-lgpl module.
60213         * lib/fts_.h: Assume GNULIB_FTS is 1.
60214         * lib/fts.c: Likewise.
60215         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
60217 2010-03-28  Bruno Haible  <bruno@clisp.org>
60219         Fix definition of tests witness macro.
60220         * gnulib-tool (func_import): Fix definition of witness macro.
60222 2010-03-28  Bruno Haible  <bruno@clisp.org>
60224         Fix ioctl's protoype on glibc systems.
60225         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
60226         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
60227         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
60228         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
60229         signature. If not, arrange to replace the ioctl function.
60230         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
60231         REPLACE_IOCTL.
60232         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
60233         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
60234         Reported by Ludovic Courtès <ludo@gnu.org>.
60236 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
60238         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
60239         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
60240         made it so grep -r --include=GLOB* ... did not work.
60242 2010-03-26  Jim Meyering  <meyering@redhat.com>
60243             Eric Blake  <eblake@redhat.com>
60245         maint.mk: prohibit use of test's -o and -a operators
60246         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
60248 2010-03-28  Bruno Haible  <bruno@clisp.org>
60250         Remove unused GNULIB_XYZ macro definitions.
60251         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
60252         invocation.
60254 2010-03-28  Bruno Haible  <bruno@clisp.org>
60256         Mark privileged tests modules.
60257         * modules/idpriv-drop-tests (Status): New section.
60258         * modules/idpriv-droptemp-tests (Status): New section.
60260 2010-03-28  Bruno Haible  <bruno@clisp.org>
60262         Split C++ tests into separate tests modules.
60263         * modules/dirent-c++-tests: New file, extracted from
60264         modules/dirent-tests.
60265         * modules/dirent-tests: Depend on it.
60266         * modules/fcntl-h-c++-tests: New file, extracted from
60267         modules/fcntl-h-tests.
60268         * modules/fcntl-h-tests: Depend on it.
60269         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
60270         * modules/glob-tests: Depend on it.
60271         * modules/iconv-h-c++-tests: New file, extracted from
60272         modules/iconv-h-tests.
60273         * modules/iconv-h-tests: Depend on it.
60274         * modules/langinfo-c++-tests: New file, extracted from
60275         modules/langinfo-tests.
60276         * modules/langinfo-tests: Depend on it.
60277         * modules/locale-c++-tests: New file, extracted from
60278         modules/locale-tests.
60279         * modules/locale-tests: Depend on it.
60280         * modules/math-c++-tests: New file, extracted from modules/math-tests.
60281         * modules/math-tests: Depend on it.
60282         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
60283         * modules/pty-tests: Depend on it.
60284         * modules/search-c++-tests: New file, extracted from
60285         modules/search-tests.
60286         * modules/search-tests: Depend on it.
60287         * modules/signal-c++-tests: New file, extracted from
60288         modules/signal-tests.
60289         * modules/signal-tests: Depend on it.
60290         * modules/spawn-c++-tests: New file, extracted from
60291         modules/spawn-tests.
60292         * modules/spawn-tests: Depend on it.
60293         * modules/stdio-c++-tests: New file, extracted from
60294         modules/stdio-tests.
60295         * modules/stdio-tests: Depend on it.
60296         * modules/stdlib-c++-tests: New file, extracted from
60297         modules/stdlib-tests.
60298         * modules/stdlib-tests: Depend on it.
60299         * modules/string-c++-tests: New file, extracted from
60300         modules/string-tests.
60301         * modules/string-tests: Depend on it.
60302         * modules/sys_ioctl-c++-tests: New file, extracted from
60303         modules/sys_ioctl-tests.
60304         * modules/sys_ioctl-tests: Depend on it.
60305         * modules/sys_select-c++-tests: New file, extracted from
60306         modules/sys_select-tests.
60307         * modules/sys_select-tests: Depend on it.
60308         * modules/sys_socket-c++-tests: New file, extracted from
60309         modules/sys_socket-tests.
60310         * modules/sys_socket-tests: Depend on it.
60311         * modules/sys_stat-c++-tests: New file, extracted from
60312         modules/sys_stat-tests.
60313         * modules/sys_stat-tests: Depend on it.
60314         * modules/sys_time-c++-tests: New file, extracted from
60315         modules/sys_time-tests.
60316         * modules/sys_time-tests: Depend on it.
60317         * modules/time-c++-tests: New file, extracted from modules/time-tests.
60318         * modules/time-tests: Depend on it.
60319         * modules/unistd-c++-tests: New file, extracted from
60320         modules/unistd-tests.
60321         * modules/unistd-tests: Depend on it.
60322         * modules/wchar-c++-tests: New file, extracted from
60323         modules/wchar-tests.
60324         * modules/wchar-tests: Depend on it.
60325         * modules/wctype-c++-tests: New file, extracted from
60326         modules/wctype-tests.
60327         * modules/wctype-tests: Depend on it.
60328         Reported by Simon Josefsson.
60330 2010-03-28  Bruno Haible  <bruno@clisp.org>
60332         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
60333         * gnulib-tool (func_exists_module): New function, extracted from
60334         func_verify_module.
60335         (func_verify_module): Use it.
60336         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
60337         'foo' only if 'foo' exists.
60338         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
60339         module.
60341 2010-03-28  Bruno Haible  <bruno@clisp.org>
60343         gnulib-tool: Add support for special categories of tests.
60344         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
60345         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
60346         (func_usage): Document them.
60347         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
60348         inc_unportable_tests, inc_all_tests): New variables.
60349         (func_acceptable): Consider these variables.
60350         (func_modules_transitive_closure): Make it work when the 'Status' field
60351         consists of multiple words.
60352         (func_import): Store and restore the values of inc_cxx_tests,
60353         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
60354         inc_all_tests in gnulib-comp.m4.
60355         (func_create_testdir): Set inc_all_tests to true.
60356         * doc/gnulib.texi (Extra tests modules): New section.
60357         Suggested by Jim Meyering.
60359 2010-03-28  Bruno Haible  <bruno@clisp.org>
60361         ansi-c++-opt: Allow turning off the C++ build by default.
60362         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
60363         gl_CXX_CHOICE_DEFAULT_NO is defined.
60364         Requested by Eric Blake.
60366 2010-03-28  Bruno Haible  <bruno@clisp.org>
60368         unistd: Avoid #define replacements in C++ mode.
60369         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
60370         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
60371         setsockopt, shutdown, select): In C++, attach a warning to the function
60372         if possible, rather than #defining the symbol to a dysfunctional alias.
60373         Reported by John W. Eaton <jwe@gnu.org>.
60375 2010-03-28  Bruno Haible  <bruno@clisp.org>
60377         Fix link errors on mingw.
60378         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
60379         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
60380         $(LIBSOCKET).
60381         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
60382         $(LIBSOCKET).
60384 2010-03-28  Bruno Haible  <bruno@clisp.org>
60385             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60387         lib-ignore: Determine different options for different compilers.
60388         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
60389         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
60390         Add comments.
60391         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
60392         * NEWS: Mention the change.
60394 2010-03-27  Bruno Haible  <bruno@clisp.org>
60396         Remove unused GNULIB_XYZ macro definitions.
60397         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
60398         * modules/fseek (configure.ac): Likewise.
60399         * modules/ioctl (configure.ac): Likewise.
60400         * modules/open (configure.ac): Likewise.
60401         * modules/stdlib-safer (configure.ac): Likewise.
60403 2010-03-27  Bruno Haible  <bruno@clisp.org>
60405         Add a remark about certain modules.
60406         * modules/malloc (Comment): New section.
60407         * modules/realloc (Comment): Likewise.
60408         * modules/sigpipe (Comment): Likewise.
60410 2010-03-27  Bruno Haible  <bruno@clisp.org>
60412         Resolve conflict between the two kinds of module indicators.
60413         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
60414         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
60415         * modules/canonicalize (configure.ac): Invoke
60416         gl_MODULE_INDICATOR_FOR_TESTS.
60417         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
60418         GNULIB_XYZ.
60419         * tests/test-dirent-c++.cc: Likewise.
60420         * tests/test-dirent-safer.c: Likewise.
60421         * tests/test-dup2.c: Likewise.
60422         * tests/test-fchdir.c: Likewise.
60423         * tests/test-fcntl-h-c++.cc: Likewise.
60424         * tests/test-getopt.c: Likewise.
60425         * tests/test-getopt.h: Likewise.
60426         * tests/test-langinfo-c++.cc: Likewise.
60427         * tests/test-locale-c++.cc: Likewise.
60428         * tests/test-math-c++.cc: Likewise.
60429         * tests/test-pty-c++.cc: Likewise.
60430         * tests/test-search-c++.cc: Likewise.
60431         * tests/test-signal-c++.cc: Likewise.
60432         * tests/test-spawn-c++.cc: Likewise.
60433         * tests/test-stdio-c++.cc: Likewise.
60434         * tests/test-stdlib-c++.cc: Likewise.
60435         * tests/test-string-c++.cc: Likewise.
60436         * tests/test-sys_ioctl-c++.cc: Likewise.
60437         * tests/test-sys_select-c++.cc: Likewise.
60438         * tests/test-sys_socket-c++.cc: Likewise.
60439         * tests/test-sys_stat-c++.cc: Likewise.
60440         * tests/test-sys_time-c++.cc: Likewise.
60441         * tests/test-time-c++.cc: Likewise.
60442         * tests/test-unistd-c++.cc: Likewise.
60443         * tests/test-wchar-c++.cc: Likewise.
60444         * tests/uninorm/test-u8-nfc.c: Likewise.
60445         * tests/uninorm/test-u8-nfd.c: Likewise.
60446         * tests/uninorm/test-u8-nfkc.c: Likewise.
60447         * tests/uninorm/test-u8-nfkd.c: Likewise.
60448         * tests/uninorm/test-u16-nfc.c: Likewise.
60449         * tests/uninorm/test-u16-nfd.c: Likewise.
60450         * tests/uninorm/test-u16-nfkc.c: Likewise.
60451         * tests/uninorm/test-u16-nfkd.c: Likewise.
60452         * tests/uninorm/test-u32-nfc.c: Likewise.
60453         * tests/uninorm/test-u32-nfc-big.c: Likewise.
60454         * tests/uninorm/test-u32-nfd.c: Likewise.
60455         * tests/uninorm/test-u32-nfd-big.c: Likewise.
60456         * tests/uninorm/test-u32-nfkc.c: Likewise.
60457         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
60458         * tests/uninorm/test-u32-nfkd.c: Likewise.
60459         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
60460         * tests/uninorm/test-u32-normalize-big.c: Likewise.
60462 2010-03-27  Bruno Haible  <bruno@clisp.org>
60464         Distinguish two kinds of module indicators.
60465         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
60466         gl_MODULE_INDICATOR.
60467         (gl_MODULE_INDICATOR): New macro.
60468         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
60469         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
60470         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
60471         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
60472         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
60473         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
60474         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
60475         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
60476         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
60477         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
60478         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
60479         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
60480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
60481         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
60482         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
60483         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
60484         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
60485         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
60486         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
60487         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
60488         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
60489         * modules/cloexec (configure.ac): Likewise.
60490         * modules/getopt-gnu (configure.ac): Likewise.
60491         * modules/uninorm/u8-normalize (configure.ac): Likewise.
60492         * modules/uninorm/u16-normalize (configure.ac): Likewise.
60493         * modules/uninorm/u32-normalize (configure.ac): Likewise.
60494         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
60496 2010-03-27  Bruno Haible  <bruno@clisp.org>
60498         New module description field 'Comment'.
60499         * gnulib-tool: New option --extract-comment.
60500         (func_usage): Document it.
60501         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
60502         (func_get_comment): New function.
60503         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
60505 2010-03-27  Bruno Haible  <bruno@clisp.org>
60507         Addendum to 2010-02-07 commit.
60508         * gnulib-tool (func_usage): Document --extract-applicability option.
60510 2010-03-27  Bruno Haible  <bruno@clisp.org>
60512         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
60513         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
60514         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
60515         rather than link errors.
60517 2010-03-27  Bruno Haible  <bruno@clisp.org>
60519         Avoid side effects from tests-related modules on the compilation of lib.
60520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
60521         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
60522         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
60523         parameter. Emit into AM_CPPFLAGS a definition of the designated C
60524         macro.
60525         (func_import): Define a witness macro. Assign it a value that depends
60526         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
60527         tests-related modules.
60528         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
60529         Reported by Jim Meyering.
60531 2010-03-27  Bruno Haible  <bruno@clisp.org>
60533         Factorize common .m4 code.
60534         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
60535         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
60536         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
60537         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
60538         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
60539         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
60540         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
60541         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
60542         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
60543         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
60544         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
60545         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
60546         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
60547         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
60548         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
60549         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
60550         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
60551         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
60552         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
60553         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
60554         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
60555         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
60556         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
60557         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
60558         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
60559         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
60560         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
60561         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
60562         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
60563         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
60564         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
60565         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
60567 2010-03-27  Bruno Haible  <bruno@clisp.org>
60569         Fix a compilation error on Cygwin with g++ >= 4.3.
60570         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
60571         if it is undefined or if we alias it to chmod.
60572         (lstat): Don't warn about the use of this function if it is undefined
60573         or if we alias it to stat.
60574         Reported by Simon Josefsson.
60576 2010-03-27  Bruno Haible  <bruno@clisp.org>
60578         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
60579         * modules/getlogin (configure.ac): Update.
60581         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
60582         * modules/getlogin_r (configure.ac): Update.
60584         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
60585         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
60586         * modules/inet_ntop (configure.ac): Update.
60588         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
60589         * modules/inet_pton (configure.ac): Update.
60591         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
60592         * modules/mbslen (configure.ac): Update.
60594         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
60595         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
60596         * modules/forkpty (configure.ac): Update.
60597         * modules/openpty (configure.ac): Update.
60599 2010-03-26  Simon Josefsson  <simon@josefsson.org>
60601         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
60602         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
60604 2010-03-25  Eric Blake  <eblake@redhat.com>
60606         maint: use pragma consistently across replacement headers
60607         * lib/ctype.in.h (system_header): Hoist for consistent placement.
60608         * lib/dirent.in.h (system_header): Likewise.
60609         * lib/errno.in.h (system_header): Likewise.
60610         * lib/float.in.h (system_header): Likewise.
60611         * lib/getopt.in.h (system_header): Likewise.
60612         * lib/iconv.in.h (system_header): Likewise.
60613         * lib/inttypes.in.h (system_header): Likewise.
60614         * lib/langinfo.in.h (system_header): Likewise.
60615         * lib/locale.in.h (system_header): Likewise.
60616         * lib/math.in.h (system_header): Likewise.
60617         * lib/netdb.in.h (system_header): Likewise.
60618         * lib/netinet_in.in.h (system_header): Likewise.
60619         * lib/pty.in.h (system_header): Likewise.
60620         * lib/sched.in.h (system_header): Likewise.
60621         * lib/se-selinux.in.h (system_header): Likewise.
60622         * lib/search.in.h (system_header): Likewise.
60623         * lib/spawn.in.h (system_header): Likewise.
60624         * lib/stdarg.in.h (system_header): Likewise.
60625         * lib/stdint.in.h (system_header): Likewise.
60626         * lib/string.in.h (system_header): Likewise.
60627         * lib/strings.in.h (system_header): Likewise.
60628         * lib/sys_file.in.h (system_header): Likewise.
60629         * lib/sys_ioctl.in.h (system_header): Likewise.
60630         * lib/sys_socket.in.h (system_header): Likewise.
60631         * lib/sys_times.in.h (system_header): Likewise.
60632         * lib/sys_utsname.in.h (system_header): Likewise.
60633         * lib/sys_wait.in.h (system_header): Likewise.
60634         * lib/sysexits.in.h (system_header): Likewise.
60635         * lib/unistd.in.h (system_header): Likewise.
60636         * lib/wctype.in.h (system_header): Likewise.
60638         arpa/inet: fix mingw compilation warning
60639         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
60640         Reported by Matthew Bolte.
60642 2010-03-25  Bruno Haible  <bruno@clisp.org>
60644         Avoid collision between gnulib wrapper and libintl wrapper.
60645         * lib/printf.c (printf): Don't define if a printf wrapper is already
60646         defined in intl/printf.c.
60647         Reported by Michel Boaventura <michel@michelboaventura.com>.
60649 2010-03-25  Bruno Haible  <bruno@clisp.org>
60651         Use ANSI C.
60652         * lib/readutmp.h (getutent): Provide ANSI C prototype.
60654 2010-03-25  Bruno Haible  <bruno@clisp.org>
60656         Minor formatting changes.
60657         * lib/acosl.c: Insert space before function argument list.
60658         * lib/argz.c: Likewise.
60659         * lib/asinl.c: Likewise.
60660         * lib/expl.c: Likewise.
60661         * lib/gen-uni-tables.c: Likewise.
60662         * lib/gettext.h: Likewise.
60663         * lib/glthread/lock.h: Likewise.
60664         * lib/tanl.c: Likewise.
60665         * lib/uniname/uniname.c: Likewise.
60666         * tests/test-idpriv-drop.c: Likewise.
60667         * tests/test-idpriv-droptemp.c: Likewise.
60668         * tests/test-lock.c: Likewise.
60669         * tests/test-tls.c: Likewise.
60670         * lib/argp-help.c: Insert space before function-like macro argument
60671         list.
60672         * lib/memcmp.c: Likewise.
60673         * tests/test-base64.c: Likewise.
60674         * lib/localename.c: Insert space before sizeof's argument list.
60675         * lib/safe-alloc.h: Likewise.
60676         * lib/file-set.h: Insert space before macro argument list.
60677         * tests/test-argp.c: Likewise.
60678         * lib/argp-namefrob.h: Insert space before function parameter list.
60679         * lib/getaddrinfo.c: Likewise.
60680         * lib/netdb.in.h: Likewise.
60681         * lib/parse-duration.h: Likewise.
60682         * lib/parse-duration.c: Likewise.
60683         * lib/poll.c: Likewise.
60684         * lib/select.c: Likewise.
60685         * lib/trim.h: Likewise.
60686         * tests/test-usleep.c: Likewise.
60687         * lib/ldexpl.c: Insert space before function parameter list and before
60688         function argument list.
60689         * lib/logl.c: Likewise.
60690         * lib/sqrtl.c: Likewise.
60691         * lib/trim.c: Likewise.
60692         * lib/cosl.c: Use GNU style indentation. Insert space before function
60693         argument list.
60694         * lib/sinl.c: Likewise.
60695         * lib/tsearch.c: Insert space after 'for'.
60696         Reported by Jim Meyering.
60698 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
60700         * maint.mk (sc_Wundef_boolean): Check for the presence of the
60701         config header before grepping, as it's not present before
60702         autoreconf/configure are run.  Reported by Simon Josefsson.
60704 2010-03-23  Bruno Haible  <bruno@clisp.org>
60706         pt_chown: Make it work with automake < 1.11.
60707         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
60708         Reported by Simon Josefsson.
60710 2010-03-23  Bruno Haible  <bruno@clisp.org>
60712         pt_chown: Don't depend on GPLed modules.
60713         * lib/pt_chown.c: Don't include idpriv.h.
60714         (main): Don't drop privileges.
60715         * modules/pt_chown (Depends-on): Remove idpriv-drop.
60716         Reported by Simon Josefsson.
60718 2010-03-24  Simon Josefsson  <simon@josefsson.org>
60720         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
60721         suggestions from karl@freefriends.org (Karl Berry).
60723 2010-03-22  Eric Blake  <eblake@redhat.com>
60725         gethostname: further tweaks
60726         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
60727         are overriding gethostname.
60728         Suggested by Bruno Haible.
60730 2010-03-21  Bruno Haible  <bruno@clisp.org>
60732         Fix comments.
60733         * lib/forkpty.c (rpl_forkpty): Fix comment.
60734         * lib/openpty.c (rpl_openpty): Likewise.
60735         Reported by Eric Blake.
60737 2010-03-22  Eric Blake  <eblake@redhat.com>
60739         gethostname: fix build on mingw
60740         * lib/unistd.in.h (includes): Work around fact that mingw
60741         <winsock2.h> re-includes <unistd.h>, by avoiding any
60742         redeclarations if we are being included by <winsock2.h>.
60743         Reported by Matthias Bolte.
60745 2010-03-21  Bruno Haible  <bruno@clisp.org>
60747         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
60748         * lib/forkpty.c (forkpty): New replacement function, from glibc with
60749         modifications.
60750         * lib/pty.in.h (forkpty): Update declaration. Add comments.
60751         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
60752         provide the replacement.
60753         * modules/forkpty (Depends-on): Add openpty, login_tty.
60754         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
60755         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
60756         * doc/glibc-functions/forkpty.texi: More supported platforms.
60757         * config/srclist.txt: Add forkpty.c (commented).
60759 2010-03-21  Bruno Haible  <bruno@clisp.org>
60761         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
60762         (Makefile.am): Verify that PTY_LIB is defined.
60764         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
60766 2010-03-21  Bruno Haible  <bruno@clisp.org>
60768         Tests for module 'login_tty'.
60769         * modules/login_tty-tests: New file.
60770         * tests/test-login_tty.c: New file.
60772         New module 'login_tty'.
60773         * lib/login_tty.c: New file.
60774         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
60775         * modules/login_tty: New file.
60776         * doc/glibc-functions/login_tty.texi: Mention the new module.
60778 2010-03-21  Bruno Haible  <bruno@clisp.org>
60780         login_tty: Documentation.
60781         * doc/glibc-functions/login_tty.texi: New file.
60782         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
60784 2010-03-21  Bruno Haible  <bruno@clisp.org>
60786         pty: Consistent macro naming.
60787         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
60788         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
60789         * modules/pty (configure.ac): Update.
60791 2010-03-21  Bruno Haible  <bruno@clisp.org>
60793         Tests for openpty: Make stricter.
60794         * tests/test-openpty.c (main): Add test of canonical processing and
60795         erase.
60796         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
60798         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
60799         * lib/openpty.c (openpty): New replacement function.
60800         * lib/pty.in.h: Include <termios.h>.
60801         (openpty): Update declaration. Add comments.
60802         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
60803         is not declared, arrange to provide the replacement. Check for _getpty
60804         and posix_openpt.
60805         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
60806         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
60807         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
60808         * modules/pty-tests (test_pty_c___LDADD): New variable.
60809         * doc/glibc-functions/openpty.texi: More supported platforms.
60811 2010-03-21  Bruno Haible  <bruno@clisp.org>
60813         setenv: Tweaks.
60814         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
60815         the test program.
60816         * doc/posix-functions/setenv.texi: Update platforms list.
60818 2010-03-21  Bruno Haible  <bruno@clisp.org>
60820         New module 'unlockpt'.
60821         * lib/unlockpt.c: New file, from glibc with modifications.
60822         * m4/unlockpt.m4: New file.
60823         * modules/unlockpt: New file.
60824         * lib/stdlib.in.h (unlockpt): New declaration.
60825         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
60826         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
60827         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
60828         HAVE_UNLOCKPT.
60829         * doc/posix-functions/unlockpt.texi: Mention the new module.
60830         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
60831         * config/srclist.txt: Add unlockpt.c (commented).
60833 2010-03-21  Jim Meyering  <meyering@redhat.com>
60835         maint.mk: prohibit inclusion of "intprops.h" without use
60836         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
60838 2010-03-21  Bruno Haible  <bruno@clisp.org>
60840         New module 'grantpt'.
60841         * lib/grantpt.c: New file, from glibc with modifications.
60842         * m4/grantpt.m4: New file.
60843         * modules/grantpt: New file.
60844         * lib/stdlib.in.h (grantpt): New declaration.
60845         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
60846         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
60847         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
60848         HAVE_GRANTPT.
60849         * doc/posix-functions/grantpt.texi: Mention the new module.
60850         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
60851         * config/srclist.txt: Add grantpt.c (commented).
60853 2010-03-21  Bruno Haible  <bruno@clisp.org>
60855         New module 'pt_chown'.
60856         * lib/pt_chown.c: New file, from glibc with modifications.
60857         * lib/pty-private.h: New file, from glibc with modifications.
60858         * modules/pt_chown: New file.
60859         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
60861 2010-03-21  Bruno Haible  <bruno@clisp.org>
60863         Tests for module 'ptsname'.
60864         * modules/ptsname-tests: New file.
60865         * tests/test-ptsname.c: New file.
60867         New module 'ptsname'.
60868         * lib/ptsname.c: New file, from glibc with modifications.
60869         * m4/ptsname.m4: New file.
60870         * modules/ptsname: New file.
60871         * lib/stdlib.in.h (ptsname): New declaration.
60872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
60873         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
60874         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
60875         HAVE_PTSNAME.
60876         * doc/posix-functions/ptsname.texi: Mention the new module.
60877         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
60878         * config/srclist.txt: Add ptsname.c (commented).
60880 2010-03-21  Bruno Haible  <bruno@clisp.org>
60882         Tests for module 'ttyname_r'.
60883         * modules/ttyname_r-tests: New file.
60884         * tests/test-ttyname_r.c: New file.
60886         New module 'ttyname_r'.
60887         * lib/ttyname_r.c: New file.
60888         * m4/ttyname_r.m4: New file.
60889         * modules/ttyname_r: New file.
60890         * lib/unistd.in.h (ttyname_r): New declaration.
60891         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
60892         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
60893         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
60894         HAVE_TTYNAME_R.
60895         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
60896         * doc/posix-functions/ttyname_r.texi: Mention the new module.
60898 2010-03-20  Bruno Haible  <bruno@clisp.org>
60900         signal: Undefine macro definitions in C++ mode.
60901         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
60902         sigfillset): Undefine macro definitions from the system header in C++
60903         mode.
60904         Reported by John W. Eaton <jwe@gnu.org>.
60906 2010-03-20  Bruno Haible  <bruno@clisp.org>
60908         Ensure no #include statements inside extern "C" { ... }.
60909         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
60910         contain #include statements.
60911         * lib/time.in.h: Likewise.
60913 2010-03-20  Bruno Haible  <bruno@clisp.org>
60915         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
60916         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
60917         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
60918         Reported by John W. Eaton <jwe@gnu.org>.
60920 2010-03-20  Bruno Haible  <bruno@clisp.org>
60922         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
60923         Reported by Jim Meyering.
60925 2010-03-20  Bruno Haible  <bruno@clisp.org>
60927         pipe: Set errno upon failure.
60928         * lib/pipe.h: Specify that when -1 is returned, errno is set.
60929         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
60930         errno value in error message.
60932 2010-03-20  Bruno Haible  <bruno@clisp.org>
60933             Jim Meyering  <meyering@redhat.com>
60935         lchown: Avoid "unused variable" warning.
60936         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
60938 2010-03-20  Bruno Haible  <bruno@clisp.org>
60940         Work around unlink() bug on MacOS X 10.5.6.
60941         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
60942         attempting to unlink a parent directory.
60943         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
60944         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
60945         activate for the replacement function.
60946         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
60948 2010-03-20  Bruno Haible  <bruno@clisp.org>
60950         Fix link errors on Solaris 8.
60951         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
60952         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
60954 2010-03-19  Jim Meyering  <meyering@redhat.com>
60956         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
60957         The _LIBC implementation of build_range_exp correctly honors the
60958         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
60959         However, the non-_LIBC implementation would ignore that syntax-bit
60960         flag and return REG_ERANGE unconditionally.
60961         This change makes it honor that flag.
60962         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
60963         Make two pointer parameters "const".
60964         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
60965         (parse_bracket_exp): Update caller.
60967         regex.m4: correct the reversed range endpoint ([b-a]) test
60968         * m4/regex.m4: When requiring that [b-a] evoke failure,
60969         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
60970         test pass once again for x86-based systems.
60972 2010-03-19  Bruno Haible  <bruno@clisp.org>
60974         scandir: Fix link error on Solaris 8.
60975         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
60976         macros.
60978 2010-03-19  Bruno Haible  <bruno@clisp.org>
60980         getusershell: Fix documentation.
60981         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
60982         module.
60983         * doc/glibc-functions/setusershell.texi: Likewise.
60985         getusershell: Provide declaration, missing on Solaris 9.
60986         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
60987         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
60988         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
60989         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
60990         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60991         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
60992         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
60993         HAVE_GETUSERSHELL.
60994         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
60996 2010-03-19  Bruno Haible  <bruno@clisp.org>
60998         wctype: Provide iswblank function.
60999         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
61000         exists and is fine.
61001         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
61002         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
61003         * tests/test-wctype.c (main): Re-enable the iswblank tests.
61004         * doc/posix-functions/iswblank.texi: Update.
61006 2010-03-19  Bruno Haible  <bruno@clisp.org>
61008         Tests of module 'pty' in C++ mode.
61009         * modules/pty-tests: New file.
61010         * tests/test-pty-c++.cc: New file.
61011         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
61013 2010-03-19  Eric Blake  <eblake@redhat.com>
61015         logb: fix documentation
61016         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
61017         1.5 declaration bug.
61019         forkpty, openpty: prefer glibc's const-safe prototype
61020         * lib/forkpty.c (rpl_forkpty): New file.
61021         * lib/openpty.c (rpl_openpty): Likewise.
61022         * modules/forkpty (Files): Distribute it.
61023         * modules/openpty (Files): Likewise.
61024         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
61025         check...
61026         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
61027         replacement for non-const BSD signature.
61028         * modules/pty (Makefile.am): Substitute witnesses.
61029         * lib/pty.in.h (forkpty, openpty): Declare replacements.
61030         * tests/test-forkpty.c: Update signature check.
61031         * tests/test-openpty.c: Likewise.
61032         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
61033         * doc/glibc-functions/openpty.texi (openpty): Likewise.
61035         forkpty, openpty: split functions into new modules
61036         * modules/pty (Makefile.am): Substitute new witnesses.
61037         (Libraries): Move library detection...
61038         * modules/forkpty: ...into new module.
61039         * modules/openpty: Another new module.
61040         * modules/pty-tests: Rename and split...
61041         * modules/forkpty-tests: ...to this...
61042         * modules/openpty-tests: ...and this.
61043         * tests/test-pty.c: Rename and split...
61044         * tests/test-forkpty.c: ...to this...
61045         * tests/test-openpty.c: ...and this.
61046         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
61047         (gl_PTY): Split library searching...
61048         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
61049         (gl_FORKPTY, gl_OPENPTY): New macros.
61050         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
61051         * NEWS: Mention the split.
61052         * MODULES.html.sh (Misc): Document the modules.
61053         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
61054         * doc/glibc-functions/openpty.texi (openpty): Likewise.
61056         pty: improve replacement header
61057         * lib/pty.in.h: New file.
61058         * modules/pty (Files): Ship it.
61059         (Makefile.am): Always build replacement.
61060         * m4/pty.m4: Rename...
61061         * m4/pty_h.m4: ...to this.
61062         (gl_PTY): Modernize setting of witness macros; update check of
61063         forkpty to take proper advantage of cache.
61064         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
61066         getopt: avoid compiler warning
61067         * lib/getopt.c (attribute_hidden): Remove unused macro.
61069 2010-03-18  Bruno Haible  <bruno@clisp.org>
61071         Fix link errors on Solaris 8.
61072         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
61073         * modules/search-tests (test_search_c___LDADD): Likewise.
61074         * modules/signal-tests (test_signal_c___LDADD): Likewise.
61075         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
61076         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
61077         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
61078         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
61079         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
61080         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
61082 2010-03-18  Bruno Haible  <bruno@clisp.org>
61084         Fix bug introduced on 2010-03-14.
61085         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
61086         (gl_SPAWN_H): Require it.
61087         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
61088         Reported by Simon Josefsson.
61090 2010-03-18  Bruno Haible  <bruno@clisp.org>
61092         Fix typo introduced on 2009-12-31.
61093         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
61094         posix_spawn_file_actions_adddup2.
61096 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
61097         and Eric Blake  <eblake@redhat.com>
61099         test-vc-list-files-git: make more robust
61100         * tests/test-vc-list-files-git.sh: Unset problematic environment
61101         variables.  Chain commands together.
61103 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
61105         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
61106         `AC_CHECK_DECL' invocation.
61108 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
61110         * lib/inttostr.c (inttostr): Make sure the invocation of verify
61111         appears before executable statements. Suggested by Petr Sumbera
61112         <Petr.Sumbera@Sun.COM>.
61114 2010-03-14  Bruno Haible  <bruno@clisp.org>
61116         * tests/test-flock.c (test_exclusive): Comment out a test that causes
61117         portability problems. Instead use a simpler test.
61118         (main): Check that invalid arguments are rejected only on Linux.
61120 2010-03-14  Bruno Haible  <bruno@clisp.org>
61122         Fix bug introduced on 2009-12-31.
61123         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
61124         gl_PREREQ_SYS_H_WINSOCK2 always.
61125         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
61126         SYS_SOCKET_H variable.
61127         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
61128         Update comments.
61129         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
61130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
61131         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
61132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
61133         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
61135 2010-03-14  Bruno Haible  <bruno@clisp.org>
61137         Fix values returned by sinl, cosl.
61138         * lib/trigl.h: Add specification comments.
61139         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
61140         that combines the values from the precomputed table with the values of
61141         the Chebyshev polynomials.
61143 2010-03-14  Bruno Haible  <bruno@clisp.org>
61145         Fix compilation error when modules 'posix_spawn[p]' are not used.
61146         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
61147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
61149 2010-03-14  Bruno Haible  <bruno@clisp.org>
61151         Fix compilation error on mingw when module 'time_r' is not used.
61152         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
61153         is 1.
61154         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
61155         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
61156         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
61157         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
61159 2010-03-14  Bruno Haible  <bruno@clisp.org>
61161         Fix compilation error with Sun C.
61162         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
61163         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
61164         instead of GCC specific ULONG_LONG_MAX.
61165         * lib/xstrtoll.c: Likewise.
61166         * lib/xstrtoull.c: Likewise.
61168 2010-03-13  Bruno Haible  <bruno@clisp.org>
61170         Allow the user to disable C++ code and tests.
61171         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
61172         (gl_PROG_ANSI_CXX): Require it.
61174 2010-03-13  Bruno Haible  <bruno@clisp.org>
61176         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
61177         cases.
61179 2010-03-13  Bruno Haible  <bruno@clisp.org>
61181         Test that gnulib does not break the standard C++ headers.
61182         * tests/test-locale-c++2.cc: New file.
61183         * modules/locale-tests (Files): Add it.
61184         (Makefile.am): Compile it for test-locale-c++.
61185         * tests/test-math-c++2.cc: New file.
61186         * modules/math-tests (Files): Add it.
61187         (Makefile.am): Compile it for test-math-c++.
61188         * tests/test-signal-c++2.cc: New file.
61189         * modules/signal-tests (Files): Add it.
61190         (Makefile.am): Compile it for test-signal-c++.
61191         * tests/test-stdio-c++2.cc: New file.
61192         * modules/stdio-tests (Files): Add it.
61193         (Makefile.am): Compile it for test-stdio-c++.
61194         * tests/test-stdlib-c++2.cc: New file.
61195         * modules/stdlib-tests (Files): Add it.
61196         (Makefile.am): Compile it for test-stdlib-c++.
61197         * tests/test-string-c++2.cc: New file.
61198         * modules/string-tests (Files): Add it.
61199         (Makefile.am): Compile it for test-string-c++.
61200         * tests/test-time-c++2.cc: New file.
61201         * modules/time-tests (Files): Add it.
61202         (Makefile.am): Compile it for test-time-c++.
61203         Reported by John W. Eaton <jwe@gnu.org>.
61205 2010-03-13  Bruno Haible  <bruno@clisp.org>
61207         * gnulib-tool (func_usage): Clarify which options are available for
61208         --create-testdir and --create-megatestdir.
61210 2010-03-13  Bruno Haible  <bruno@clisp.org>
61212         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
61213         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
61214         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
61215         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
61216         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
61217         when appropriate.
61218         Reported by Jim Meyering.
61220 2010-03-12  Simon Josefsson  <simon@josefsson.org>
61222         * gnulib-tool (func_import): Explain origin of code.
61224 2010-03-12  Bruno Haible  <bruno@clisp.org>
61226         Fix problem with automake's definition of CXXLINK.
61227         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
61228         Reported by Simon Josefsson and Ludovic Courtès.
61230 2010-03-12  Bruno Haible  <bruno@clisp.org>
61232         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
61233         stable releases.
61235 2010-03-11  Bruno Haible  <bruno@clisp.org>
61237         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
61238         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
61239         whether the system provides one variant or multiple variants of the
61240         function.
61241         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
61242         C++ compilers.
61243         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
61244         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
61245         Reported by Jim Meyering.
61247 2010-03-09  Simon Josefsson  <simon@josefsson.org>
61249         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
61251 2010-03-08  Bruno Haible  <bruno@clisp.org>
61253         gnulib-tool: Add support for --libtool in --create-testdir.
61254         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
61255         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
61257 2010-03-08  Eric Blake  <eblake@redhat.com>
61259         gnulib-tool.texi: mention possibility of git submodule
61260         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
61261         submodules.
61262         * doc/.gitignore: Ignore another generated file.
61264 2010-03-08  Karl Berry  <karl@gnu.org>
61266         * doc/gnulib-tool.texi (VCS Issues): Mention third option
61267         of committing gnulib files while skipping others.
61269 2010-03-07  Bruno Haible  <bruno@clisp.org>
61271         Tests of module 'wctype' in C++ mode.
61272         * tests/test-wctype-c++.cc: New file.
61273         * modules/wctype-tests (Files): Add it and tests/signature.h.
61274         (Depends-on): Add ansi-c++-opt.
61275         (Makefile.am): Arrange to compile and run test-wctype-c++.
61277         Tests of module 'wchar' in C++ mode.
61278         * tests/test-wchar-c++.cc: New file.
61279         * modules/wchar-tests (Files): Add it and tests/signature.h.
61280         (Depends-on): Add ansi-c++-opt.
61281         (Makefile.am): Arrange to compile and run test-wchar-c++.
61282         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
61283         gl_MODULE_INDICATOR.
61285         Tests of module 'unistd' in C++ mode.
61286         * tests/test-unistd-c++.cc: New file.
61287         * modules/unistd-tests (Files): Add it and tests/signature.h.
61288         (Depends-on): Add ansi-c++-opt.
61289         (Makefile.am): Arrange to compile and run test-unistd-c++.
61290         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
61291         gl_MODULE_INDICATOR.
61293         Tests of module 'time' in C++ mode.
61294         * tests/test-time-c++.cc: New file.
61295         * modules/time-tests (Files): Add it and tests/signature.h.
61296         (Depends-on): Add ansi-c++-opt.
61297         (Makefile.am): Arrange to compile and run test-time-c++.
61298         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
61300         Tests of module 'sys_time' in C++ mode.
61301         * tests/test-sys_time-c++.cc: New file.
61302         * modules/sys_time-tests (Files): Add it and tests/signature.h.
61303         (Depends-on): Add ansi-c++-opt.
61304         (Makefile.am): Arrange to compile and run test-sys_time-c++.
61305         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
61306         gl_MODULE_INDICATOR.
61308         Tests of module 'sys_stat' in C++ mode.
61309         * tests/test-sys_stat-c++.cc: New file.
61310         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
61311         (Depends-on): Add ansi-c++-opt.
61312         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
61313         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
61314         gl_MODULE_INDICATOR.
61316         Tests of module 'sys_socket' in C++ mode.
61317         * tests/test-sys_socket-c++.cc: New file.
61318         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
61319         (Depends-on): Add ansi-c++-opt.
61320         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
61321         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
61322         gl_MODULE_INDICATOR.
61324         Tests of module 'sys_select' in C++ mode.
61325         * tests/test-sys_select-c++.cc: New file.
61326         * modules/sys_select-tests (Files): Add it and tests/signature.h.
61327         (Depends-on): Add ansi-c++-opt.
61328         (Makefile.am): Arrange to compile and run test-sys_select-c++.
61329         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
61330         gl_MODULE_INDICATOR.
61332         Tests of module 'sys_ioctl' in C++ mode.
61333         * tests/test-sys_ioctl-c++.cc: New file.
61334         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
61335         (Depends-on): Add ansi-c++-opt.
61336         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
61337         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
61338         gl_MODULE_INDICATOR.
61340         Tests of module 'string' in C++ mode.
61341         * tests/test-string-c++.cc: New file.
61342         * modules/string-tests (Files): Add it and tests/signature.h.
61343         (Depends-on): Add ansi-c++-opt.
61344         (Makefile.am): Arrange to compile and run test-string-c++.
61345         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
61346         gl_MODULE_INDICATOR.
61348         Tests of module 'stdlib' in C++ mode.
61349         * tests/test-stdlib-c++.cc: New file.
61350         * modules/stdlib-tests (Files): Add it and tests/signature.h.
61351         (Depends-on): Add ansi-c++-opt.
61352         (Makefile.am): Arrange to compile and run test-stdlib-c++.
61353         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
61354         gl_MODULE_INDICATOR.
61356         Tests of module 'stdio' in C++ mode.
61357         * tests/test-stdio-c++.cc: New file.
61358         * modules/stdio-tests (Files): Add it and tests/signature.h.
61359         (Depends-on): Add ansi-c++-opt.
61360         (Makefile.am): Arrange to compile and run test-stdio-c++.
61361         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
61362         gl_MODULE_INDICATOR.
61364         Tests of module 'spawn' in C++ mode.
61365         * tests/test-spawn-c++.cc: New file.
61366         * modules/spawn-tests (Files): Add it and tests/signature.h.
61367         (Depends-on): Add ansi-c++-opt.
61368         (Makefile.am): Arrange to compile and run test-spawn-c++.
61369         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
61370         gl_MODULE_INDICATOR.
61372         Tests of module 'signal' in C++ mode.
61373         * tests/test-signal-c++.cc: New file.
61374         * modules/signal-tests (Files): Add it and tests/signature.h.
61375         (Depends-on): Add ansi-c++-opt.
61376         (Makefile.am): Arrange to compile and run test-signal-c++.
61377         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
61378         gl_MODULE_INDICATOR.
61380         Tests of module 'search' in C++ mode.
61381         * tests/test-search-c++.cc: New file.
61382         * modules/search-tests (Files): Add it and tests/signature.h.
61383         (Depends-on): Add ansi-c++-opt.
61384         (Makefile.am): Arrange to compile and run test-search-c++.
61385         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
61386         gl_MODULE_INDICATOR.
61388         Tests of module 'math' in C++ mode.
61389         * tests/test-math-c++.cc: New file.
61390         * modules/math-tests (Files): Add it and tests/signature.h.
61391         (Depends-on): Add ansi-c++-opt.
61392         (Makefile.am): Arrange to compile and run test-math-c++.
61393         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
61395         Tests of module 'locale' in C++ mode.
61396         * tests/test-locale-c++.cc: New file.
61397         * modules/locale-tests (Files): Add it and tests/signature.h.
61398         (Depends-on): Add ansi-c++-opt.
61399         (Makefile.am): Arrange to compile and run test-locale-c++.
61400         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
61401         gl_MODULE_INDICATOR.
61403         Tests of module 'langinfo' in C++ mode.
61404         * tests/test-langinfo-c++.cc: New file.
61405         * modules/langinfo-tests (Files): Add it and tests/signature.h.
61406         (Depends-on): Add ansi-c++-opt.
61407         (Makefile.am): Arrange to compile and run test-langinfo-c++.
61408         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
61409         gl_MODULE_INDICATOR.
61411         Tests of module 'iconv-h' in C++ mode.
61412         * tests/test-iconv-h-c++.cc: New file.
61413         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
61414         (Depends-on): Add ansi-c++-opt.
61415         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
61417         Tests of module 'glob' in C++ mode.
61418         * tests/test-glob-c++.cc: New file.
61419         * modules/glob-tests (Files): Add it.
61420         (Depends-on): Add ansi-c++-opt.
61421         (Makefile.am): Arrange to compile and run test-glob-c++.
61423         Tests of module 'fcntl-h' in C++ mode.
61424         * tests/test-fcntl-h-c++.cc: New file.
61425         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
61426         (Depends-on): Add ansi-c++-opt.
61427         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
61428         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
61429         gl_MODULE_INDICATOR.
61431         Tests of module 'dirent' in C++ mode.
61432         * tests/test-dirent-c++.cc: New file.
61433         * modules/dirent-tests (Files): Add it and tests/signature.h.
61434         (Depends-on): Add ansi-c++-opt.
61435         (Makefile.am): Arrange to compile and run test-dirent-c++.
61436         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
61437         gl_MODULE_INDICATOR.
61439         New module 'ansi-c++-opt'.
61440         * modules/ansi-c++-opt: New file.
61441         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
61443         Document C++ namespace mode.
61444         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
61446         wctype: Avoid #define replacements in C++ mode.
61447         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
61448         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
61449         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
61450         In C++, define a namespaced alias symbol.
61451         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
61452         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
61453         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
61454         rule.
61456         wchar: Avoid #define replacements in C++ mode.
61457         * lib/wchar.in.h: Include c++defs.h.
61458         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
61459         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
61460         symbol.
61461         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
61462         * modules/wchar (Depends-on): Add c++defs.
61463         (Makefile.am): Update wchar.h rule.
61465         unistd: Avoid #define replacements in C++ mode.
61466         * lib/unistd.in.h: Include c++defs.h.
61467         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
61468         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
61469         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
61470         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
61471         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
61472         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
61473         symbol.
61474         (environ): Update.
61475         * modules/unistd (Depends-on): Add c++defs.
61476         (Makefile.am): Update unistd.h rule.
61478         time: Avoid #define replacements in C++ mode.
61479         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
61480         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
61481         define a namespaced alias symbol.
61482         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
61483         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
61484         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
61485         * modules/time (Depends-on): Add c++defs, warn-on-use.
61486         (Makefile.am): Update time.h rule.
61487         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
61488         * modules/nanosleep (configure.ac): Likewise.
61489         * modules/strptime (configure.ac): Likewise.
61490         * modules/timegm (configure.ac): Likewise.
61492         sys_time: Avoid #define replacements in C++ mode.
61493         * lib/sys_time.in.h: Include c++defs.h.
61494         (gettimeofday): In C++, define a namespaced alias symbol.
61495         * modules/sys_time (Depends-on): Add c++defs.
61496         (Makefile.am): Update sys/time.h rule.
61498         sys_stat: Avoid #define replacements in C++ mode.
61499         * lib/sys_stat.in.h: Include c++defs.h.
61500         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
61501         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
61502         namespaced alias symbol.
61503         In C++, define a namespaced alias symbol.
61504         * modules/sys_stat (Depends-on): Add c++defs.
61505         (Makefile.am): Update sys/stat.h rule.
61507         sys_socket: Avoid #define replacements in C++ mode.
61508         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
61509         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
61510         definitions also when the system has a <sys/socket.h>.
61511         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
61512         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
61513         In C++, define a namespaced alias symbol.
61514         * modules/sys_socket (Depends-on): Add c++defs.
61515         (Makefile.am): Update sys/socket.h rule.
61517         sys_select: Avoid #define replacements in C++ mode.
61518         * lib/sys_select.in.h: Include c++defs.h. Enable the function
61519         definitions also when the system has a <sys/select.h>.
61520         (select): In C++, define a namespaced alias symbol.
61521         * modules/sys_select (Depends-on): Add c++defs.
61522         (Makefile.am): Update sys/select.h rule.
61524         sys_ioctl: Avoid #define replacements in C++ mode.
61525         * lib/sys_ioctl.in.h: Include c++defs.h.
61526         (ioctl): In C++, define a namespaced alias symbol.
61527         * modules/sys_ioctl (Depends-on): Add c++defs.
61528         (Makefile.am): Update sys/ioctl.h rule.
61530         string: Avoid #define replacements in C++ mode.
61531         * lib/string.in.h: Include c++defs.h.
61532         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
61533         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61534         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61535         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
61536         strsignal, strverscmp): In C++, define a namespaced alias symbol.
61537         * modules/string (Depends-on): Add c++defs.
61538         (Makefile.am): Update string.h rule.
61540         stdlib: Avoid #define replacements in C++ mode.
61541         * lib/stdlib.in.h: Include c++defs.h.
61542         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
61543         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
61544         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
61545         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
61546         symbol.
61547         * modules/stdlib (Depends-on): Add c++defs.
61548         (Makefile.am): Update stdlib.h rule.
61550         stdio: Avoid #define replacements in C++ mode.
61551         * lib/stdio.in.h: Include c++defs.h.
61552         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
61553         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
61554         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
61555         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
61556         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
61557         namespaced alias symbol.
61558         * modules/stdio (Depends-on): Add c++defs.
61559         (Makefile.am): Update stdio.h rule.
61561         spawn: Avoid #define replacements in C++ mode.
61562         * lib/spawn.in.h: Include c++defs.h.
61563         (posix_spawn, posix_spawnp, posix_spawnattr_init,
61564         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
61565         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
61566         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
61567         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
61568         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
61569         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
61570         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
61571         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
61572         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
61573         In C++, define a namespaced alias symbol.
61574         * modules/spawn (Depends-on): Add c++defs.
61575         (Makefile.am): Update spawn.h rule.
61577         signal: Avoid #define replacements in C++ mode.
61578         * lib/signal.in.h: Include c++defs.h.
61579         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
61580         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
61581         namespaced alias symbol.
61582         * modules/signal (Depends-on): Add c++defs.
61583         (Makefile.am): Update signal.h rule.
61585         search: Avoid #define replacements in C++ mode.
61586         * lib/search.in.h: Include c++defs.h.
61587         (_gl_search_compar_fn, _gl_search_action_fn): New types.
61588         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
61589         symbol.
61590         * modules/search (Depends-on): Add c++defs.
61591         (Makefile.am): Update search.h rule.
61593         math: Avoid #define replacements in C++ mode.
61594         * lib/math.in.h: Include c++defs.h.
61595         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
61596         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
61597         trunc, truncl): In C++, define a namespaced alias symbol.
61598         * modules/math (Depends-on): Add c++defs.
61599         (Makefile.am): Update math.h rule.
61601         locale: Avoid #define replacements in C++ mode.
61602         * lib/locale.in.h: Include c++defs.h.
61603         (duplocale): In C++, define a namespaced alias symbol.
61604         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
61605         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
61606         * modules/locale (Depends-on): Add c++defs.
61607         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
61609         langinfo: Avoid #define replacements in C++ mode.
61610         * lib/langinfo.in.h: Include c++defs.h.
61611         (nl_langinfo): In C++, define a namespaced alias symbol.
61612         * modules/langinfo (Depends-on): Add c++defs.
61613         (Makefile.am): Update langinfo.h rule.
61615         iconv-h: Avoid #define replacements in C++ mode.
61616         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
61617         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
61618         symbol.
61619         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
61620         whenever iconv is present.
61621         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
61622         (Makefile.am): Update iconv.h rule.
61624         glob: Avoid #define replacements in C++ mode.
61625         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
61626         (_gl_glob_errfunc_fn): New type.
61627         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
61628         symbol.
61629         * modules/glob (Depends-on): Add c++defs, warn-on-use.
61630         (Makefile.am): Update glob.h rule.
61632         fcntl-h: Avoid #define replacements in C++ mode.
61633         * lib/fcntl.in.h: Include c++defs.h.
61634         (fcntl, open, openat): In C++, define a namespaced alias symbol.
61635         * modules/fcntl-h (Depends-on): Add c++defs.
61636         (Makefile.am): Update fcntl.h rule.
61638         dirent: Avoid #define replacements in C++ mode.
61639         * lib/dirent.in.h: Include c++defs.h.
61640         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
61641         namespaced alias symbol.
61642         (dirfd): Update declaration.
61643         * modules/dirent (Depends-on): Add c++defs.
61644         (Makefile.am): Update dirent.h rule.
61646         ctype: Make it usable in C++ code.
61647         * lib/ctype.in.h: Include c++defs.h.
61648         (isblank): Declare as extern "C".
61649         * modules/ctype (Depends-on): Add c++defs.
61650         (Makefile.am): Update ctype.h rule.
61652         New module 'c++defs'.
61653         * modules/c++defs: New file.
61654         * build-aux/c++defs.h: New file.
61655         Reported by John W. Eaton <jwe@gnu.org>.
61657 2010-03-07  Bruno Haible  <bruno@clisp.org>
61659         logb: Provide missing declaration for Cygwin.
61660         * lib/math.in.h (logb): New declaration.
61661         * m4/logb.m4: New file.
61662         * modules/logb (Files): Add m4/logb.m4.
61663         (Depends-on): Add math.
61664         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
61665         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
61666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
61667         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
61668         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
61670 2010-03-07  Bruno Haible  <bruno@clisp.org>
61672         Fix test-cond link error.
61673         * tests/test-cond.c: Include <stdio.h>.
61675 2010-03-07  Bruno Haible  <bruno@clisp.org>
61677         Fix test-dirent-safer link error.
61678         * modules/dirent-safer-tests (Makefile.am): Define
61679         test_dirent_safer_LDADD.
61681 2010-03-07  Bruno Haible  <bruno@clisp.org>
61683         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
61684         among default module list.
61686 2010-03-07  Bruno Haible  <bruno@clisp.org>
61688         Fix link error on platforms with GNU libiconv.
61689         * modules/unistr/u8-strcoll-tests (Makefile): Define
61690         test_u8_strcoll_LDADD.
61691         * modules/unistr/u16-strcoll-tests (Makefile): Define
61692         test_u16_strcoll_LDADD.
61693         * modules/unistr/u32-strcoll-tests (Makefile): Define
61694         test_u32_strcoll_LDADD.
61696 2010-03-07  Bruno Haible  <bruno@clisp.org>
61698         Use POSIX declarations for socket functions.
61699         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
61700         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
61701         rpl_sendto): Change declaration to match POSIX.
61702         * lib/connect.c (rpl_connect): Likewise.
61703         * lib/accept.c (rpl_accept): Likewise.
61704         * lib/bind.c (rpl_bind): Likewise.
61705         * lib/getpeername.c (rpl_getpeername): Likewise.
61706         * lib/getsockname.c (rpl_getsockname): Likewise.
61707         * lib/recv.c (rpl_recv): Likewise.
61708         * lib/send.c (rpl_send): Likewise.
61709         * lib/recvfrom.c (rpl_recvfrom): Likewise.
61710         * lib/sendto.c (rpl_sendto): Likewise.
61712 2010-03-06  Bruno Haible  <bruno@clisp.org>
61714         Clarify access, euidaccess, faccessat.
61715         * doc/posix-functions/faccessat.texi: Mention security problem under
61716         "Other problems", not "Portability problems".
61717         * doc/posix-functions/access.texi: Likewise. Mention a related security
61718         problem.
61719         * doc/glibc-functions/euidaccess.texi: Mention security problems.
61720         * lib/euidaccess.c: Add comments about platforms.
61721         * lib/unistd.in.h (access, euidaccess): Add warnings.
61723 2010-03-07  Bruno Haible  <bruno@clisp.org>
61725         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
61726         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
61727         (POSIX_SPAWN_SETSCHEDULER): Likewise.
61728         (POSIX_SPAWN_USEVFORK): Define in a way that works when
61729         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
61730         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
61731         declare when POSIX_SPAWN_SETSCHEDULER is zero.
61732         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
61733         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
61734         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
61735         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
61736         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
61737         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
61738         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
61739         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
61740         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
61741         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
61742         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
61743         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
61744         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
61745         Likewise.
61746         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
61747         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
61748         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
61749         Likewise.
61750         * tests/test-spawn.c (main): Make it work when
61751         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
61753 2010-03-07  Bruno Haible  <bruno@clisp.org>
61755         Fix incorrect Makefile.am generation in German locale.
61756         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
61757         Execute sed command with character range in C locale.
61759 2010-03-06  Bruno Haible  <bruno@clisp.org>
61761         Tests for module 'iconv-h'.
61762         * modules/iconv-h-tests: New file.
61763         * tests/test-iconv-h.c: New file.
61765         New module 'iconv-h'.
61766         * modules/iconv-h: New file.
61767         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
61768         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
61769         (configure.ac): Remove gl_ICONV_H.
61770         (Makefile.am): Remove rule for iconv.h.
61772 2010-03-06  Bruno Haible  <bruno@clisp.org>
61774         More consistent naming of *.m4 files.
61775         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
61776         * modules/wctype (Files): Update.
61778         More consistent naming of *.m4 files.
61779         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
61780         * modules/wchar (Files): Update.
61782 2010-03-06  Jim Meyering  <meyering@redhat.com>
61784         euidaccess: relax license to LGPLv2+
61785         * modules/euidaccess (License): Relax to LGPLv2+.
61787 2010-03-06  Bruno Haible  <bruno@clisp.org>
61789         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
61790         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
61791         (Makefile.am): Augment lib_SOURCES instead.
61793 2010-03-04  Jim Meyering  <meyering@redhat.com>
61795         utime: remove obsolete module
61796         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
61797         unnecessary for years, and has been marked as obsolete for 10 months.
61798         * modules/utime: Remove file.
61799         * lib/utime.c: Remove file.
61800         * m4/utime.m4: Remove file.
61801         * m4/utimes-null.m4: Remove file.
61802         * doc/posix-functions/utime.texi (utime): Remove reference to
61803         the module.  Move the sole "fixed by gnulib" item into the
61804         "problems not fixed by Gnulib" list.
61805         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
61807 2010-03-05  Simon Josefsson  <simon@josefsson.org>
61809         * modules/exit (License): Relax license to LGPLv2+.
61810         (Status): Mark as obsolete.
61811         * NEWS: Mention deprecated 'exit' module.
61812         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
61813         of now obsolete 'exit'.
61815 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61817         fts-lgpl: remove unused module
61818         * modules/fts-lgpl: Remove.
61819         * MODULES.html.sh (func_all_modules): Adjust.
61820         * check-module (find_included_lib_files): Adjust.
61821         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
61823 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
61825         copy-acl: enhance Solaris ACL error handling
61826         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
61827         * lib/set-mode-acl.c (qset_acl): Likewise.
61829 2010-03-02  Bruno Haible  <bruno@clisp.org>
61831         spawn: Don't override the system defined values on FreeBSD 8.
61832         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
61833         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
61834         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
61835         if HAVE_POSIX_SPAWN is 1.
61836         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
61838 2010-03-01  Bruno Haible  <bruno@clisp.org>
61840         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
61841         regarding Automake.
61843 2010-02-25  Bruno Haible  <bruno@clisp.org>
61845         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
61846         * gnulib-tool: Define 'echo' as a function only before the ksh alias
61847         setting, not afterwards.
61848         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
61850 2010-02-24  Eric Blake  <eblake@redhat.com>
61852         bootstrap, git-version-gen: use timestamp
61853         * build-aux/git-version-gen (scriptversion): Force UTC.
61854         * build-aux/bootstrap (scriptversion): New variable.
61856         bootstrap: allow older git
61857         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
61858         older than 1.6.4.  Requested by the libvirt project.
61860 2010-02-23  Eric Blake  <eblake@redhat.com>
61862         warn-on-use: work with old autoconf
61863         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
61864         AS_VAR semantics of autoconf 2.60.
61865         Reported by Bruno Haible.
61867         bootstrap: improve some comments
61868         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
61869         clarification comments.
61871         gettimeofday: provide correct function
61872         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
61873         when replacement is declared, otherwise provide gettimeofday.
61874         Reported by Michael Goffioul.
61876 2010-02-23  Jim Meyering  <meyering@redhat.com>
61878         lib-ignore: relax license to "unlimited", not LGPLv2+
61879         * modules/lib-ignore (License): Relax to "unlimited".
61881 2010-02-23  Jim Meyering  <meyering@redhat.com>
61883         lib-ignore: relax license to LGPLv2+
61884         * modules/lib-ignore (License): Relax to LGPLv2+.
61886 2010-02-22  Eric Blake  <eblake@redhat.com>
61888         lseek: avoid bash 3.2 broken pipe bug
61889         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
61890         warning from bash 3.2.
61891         Reported by Ben Pfaff, with analysis from Bruno Haible.
61893         bootstrap: support non-FSF copyright holder
61894         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
61895         bootstrap.conf override of COPYRIGHT_HOLDER.
61896         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
61898         bootstrap: interoperate with gettext 0.14.1
61899         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
61901         bootstrap: allow for alternate submodule location
61902         * build-aux/bootstrap (gnulib_path): New variable; use instead of
61903         hardcoding submodule location.
61904         (gnulib_mk): Allow direct use of Makefile.am.
61906         bootstrap: use GNULIB_SRCDIR to reduce disk usage
61907         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
61908         rather than reconfiguring where the submodule points.
61910         gettimeofday: restore support for platforms that lack function
61911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
61912         replacement if function is missing.
61913         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
61914         * modules/sys_time (Makefile.am): Substitute it.
61915         * lib/sys_time.in.h (gettimeofday): Check it.
61916         Reported by Michael Goffioul.
61918 2010-02-21  Bruno Haible  <bruno@clisp.org>
61920         * lib/stdio.in.h (obstack_printf): Fix typo.
61922 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
61924         vc-list-files: use bzr ls's -R option
61925         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
61926         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
61928 2010-02-21  Jim Meyering  <meyering@redhat.com>
61930         init.sh: fix EXEEXT shims to work also for names like test-prog
61931         * tests/init.sh: Re-exec a better shell, when needed.
61932         If the current shell lacks support for posix $(...), an init.sh-using
61933         test will now try to find a shell that supports that.  If EXEEXT is
61934         nonempty, we also require support for hyphen-in-alias-name and shell
61935         substitutions like ${var#glob}.  Failure to find such a shell results
61936         in a skipped test.
61938 2010-02-21  Bruno Haible  <bruno@clisp.org>
61940         Really work around "broken pipe" error message from bash 3.2.
61941         * gnulib-tool (func_reset_sigpipe): Remove function.
61942         (echo): In bash 3.2, define to a function that uses printf.
61943         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
61945 2010-02-20  Bruno Haible  <bruno@clisp.org>
61947         Restore support for automake 1.9.6 with autoconf 2.61.
61948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
61949         Reported by James Youngman <jay@gnu.org>.
61951 2010-02-20  Bruno Haible  <bruno@clisp.org>
61953         Improve *printf warning condition.
61954         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
61955         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
61956         and the function is overridden due to SIGPIPE emulation.
61958 2010-02-20  Bruno Haible  <bruno@clisp.org>
61960         * lib/stdio.in.h: Tweak comments.
61962 2010-02-19  Bruno Haible  <bruno@clisp.org>
61964         Make it easier to find modules. New gnulib-tool option '--find'.
61965         * gnulib-tool: New option --find.
61966         (func_usage): Document it.
61967         (func_sanitize_modulelist): New function, extracted from
61968         func_all_modules.
61969         (func_all_modules): Invoke it.
61970         * doc/gnulib-tool.texi (Which modules?): New node.
61972 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
61974         * lib/sys_select.in.h: Provide select replacement even if
61975         sys/select.h exists on a system, for Interix.
61977 2010-02-18  Jim Meyering  <meyering@redhat.com>
61979         init.sh: don't use $(...) just yet
61980         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
61981         to accommodate e.g., Solaris' /bin/sh.
61983 2010-02-17  Bruno Haible  <bruno@clisp.org>
61985         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
61986         Reported by Ludovic Courtès <ludo@gnu.org>.
61988 2010-02-16  Simon Josefsson  <simon@josefsson.org>
61990         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
61991         linking with -lintl.
61993 2010-02-17  Simon Josefsson  <simon@josefsson.org>
61995         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
61996         if not provided by the system's netdb.h.  Reported by
61997         ludo@gnu.org (Ludovic Courtès).
61999 2010-02-15  Jim Meyering  <meyering@redhat.com>
62001         init.sh: improve portability and efficiency
62002         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
62003         "dummy" in a for loop.
62004         Use '!', not '^' to select the complement of a character set used
62005         in a "case" statement.
62006         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
62007         Suggestions from Eric Blake.
62009         init.sh: automatically accommodate programs with the .exe suffix
62010         Automatically arrange for an invocation of "prog" to execute the
62011         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
62012         may use the simpler "prog", yet still work when built on a system
62013         that requires specifying the added suffix.
62014         Do this by constructing a function named "prog" that invokes
62015         "prog.exe" for each .exe file in selected directories.
62016         * tests/init.sh (find_exe_basenames_): New function.
62017         (create_exe_shim_functions_): New function.
62018         (path_prepend_): Use it.
62020         maint.mk: mark syntax-check sc_*.m rules as .PHONY
62021         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
62022         "make -t syntax-check" doesn't create a ton of sc_*.m files.
62024 2010-02-14  Jim Meyering  <meyering@redhat.com>
62026         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
62027         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
62028         (sc_prohibit_hash_pjw_without_use): New rule.
62030         maint.mk: allow the default upload destination dir to be overridden
62031         * top/maint.mk (upload_dest_dir_): Define with a default that
62032         preserves the status quo.
62033         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
62034         Reported by Peter Simons.
62036         maint.mk: prohibit inclusion of "hash.h" without_use
62037         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
62039 2010-02-10  Jim Meyering  <meyering@redhat.com>
62041         maint.mk: prohibit inclusion of "ignore-value.h" without_use
62042         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
62044 2010-02-09  Eric Blake  <ebb9@byu.net>
62045         and Bruno Haible  <bruno@clisp.org>
62047         obstack-printf-posix: ensure declaration
62048         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
62049         extracted from gl_FUNC_OBSTACK_PRINTF.
62050         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
62051         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
62052         Likewise.
62053         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
62054         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
62055         0.
62057 2010-02-08  Bruno Haible  <bruno@clisp.org>
62059         gnulib-tool: Fix typo in 2010-02-07 commit.
62060         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
62061         Reported by Eric Blake.
62063 2010-02-07  Bruno Haible  <bruno@clisp.org>
62065         gnulib-tool: Fix up caching patches.
62066         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
62067         option --no-cache. Use associative arrays when supported by the shell.
62068         (sed_comments): New variable.
62069         (modcache): Renamed from do_cache.
62070         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
62071         abbreviate unnecessarily.
62072         (have_associative): New variable.
62073         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
62074         way also for ksh and zsh.
62075         (func_init_sed_convert_to_cache_statements): New function, extracted
62076         from func_cache_lookup_module. Add support for associative arrays.
62077         Don't set the c_MODULE_cached variable here. Ignore all lines before
62078         the first field header. Remove only the final newline, not all trailing
62079         newlines. Support empty fields correctly. Limit the use of 'eval' to
62080         assignments.
62081         (func_get_description, func_get_status, func_get_notice,
62082         func_get_applicability, func_get_filelist, func_get_dependencies,
62083         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
62084         func_get_automake_snippet, func_get_include_directive,
62085         func_get_link_directive, func_get_license, func_get_maintainer):
62086         Update documentation. List the unoptimized code first. Add support for
62087         associative arrays. Limit the use of 'eval' to assignments.
62088         (func_get_applicability): Undo stylistic pessimisations.
62089         (func_get_automake_snippet, func_get_include_directive): Reduce code
62090         duplication.
62091         (func_modules_transitive_closure, func_modules_add_dummy,
62092         func_modules_notice, func_modules_to_filelist, func_add_file,
62093         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
62094         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
62095         func_create_testdir, func_create_megatestdir): Update documentation.
62097 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62099         * gnulib-tool (func_cache_lookup_module): Store the module name
62100         belonging to the cache variable; error out if two different
62101         module names map to the same cache variable name.
62103 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62105         gnulib-tool: Make caching optional.
62106         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
62107         Update matching short versions of --no-changelog.
62108         (func_usage): Update.
62109         (sed_extract_cache_prog): Renamed from ...
62110         (sed_extract_prog): ... this; revert to old extraction script.
62111         (func_get_description, func_get_status)
62112         (func_get_notice, func_get_applicability, func_get_filelist)
62113         (func_get_dependencies, func_get_autoconf_early_snippet)
62114         (func_get_autoconf_snippet, func_get_automake_snippet)
62115         (func_get_include_directive, func_get_link_directive)
62116         (func_get_license, func_get_maintainer): If $do_cache is false,
62117         use old, non-caching extraction scripts.
62118         Suggestion by Bruno Haible.
62120 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62122         gnulib-tool: cache module metainformation.
62123         * gnulib-tool (sed_extract_prog): Match newline before each
62124         header, and rewrite header to a shell variable suffix.
62125         (func_cache_var, func_cache_lookup_module): New functions,
62126         to turn a module name into a cache variable prefix, and to
62127         look up and cache module metainformation.
62128         (func_get_description, func_get_status)
62129         (func_get_notice, func_get_applicability, func_get_filelist)
62130         (func_get_dependencies, func_get_autoconf_early_snippet)
62131         (func_get_autoconf_snippet, func_get_automake_snippet)
62132         (func_get_include_directive, func_get_link_directive)
62133         (func_get_license, func_get_maintainer): Use
62134         func_cache_lookup_module.
62136 2010-02-07  Bruno Haible  <bruno@clisp.org>
62138         fnctl: Fix missing dependency.
62139         * modules/fcntl (Depends-on): Add getdtablesize.
62140         Reported by John W. Eaton <jwe@gnu.org>.
62142 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62144         Argp: fix recognition of short alias options.
62146         * lib/argp-parse.c (convert_options): Fix improper use of
62147         `|' between character values.
62148         * tests/test-argp.c (group1_option): New alias option
62149         --read (-r).
62150         (group1_parser): Special handling for 'r'.
62151         (test15): New test case.
62152         (test_fun): Add test15.
62153         * tests/test-argp-2.sh: Update expected --help and --usage
62154         outputs.
62156 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62158         * tests/test-argp.c: Fix indentation.
62160 2010-02-04  Eric Blake  <ebb9@byu.net>
62162         gettimeofday: expose type of second argument
62163         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
62164         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
62165         * tests/test-gettimeofday.c: Use it to silence warning.
62166         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
62167         the issue.
62169 2010-02-03  Jim Meyering  <meyering@redhat.com>
62171         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
62172         * lib/regcomp.c (TYPE_SIGNED): Define.
62173         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
62175         regcomp.c: avoid a new -Wshadow warning
62176         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
62178 2010-02-01  Jim Meyering  <meyering@redhat.com>
62180         removing useless parentheses in cpp #define directives
62181         For motivation, see commit c0221df4, "define STREQ(a,b)
62182         consistently, removing useless parentheses"
62183         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
62184         * lib/mountlist.c (MNT_IGNORE): Likewise.
62185         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
62187 2010-02-01  Eric Blake  <ebb9@byu.net>
62189         sys_time: use link-warning
62190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
62191         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
62192         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
62193         * modules/sys_time (Depends-on): Add warn-on-use.
62194         (Makefile.am): Always build replacement.
62195         (configure.ac): Update substitutions.
62196         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
62197         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
62198         bother with SYS_TIME_H.
62199         * modules/gettimeofday (configure.ac): Declare indicator.
62200         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
62201         in use.
62203         closein-tests: silence compiler warning
62204         * tests/test-closein.c (main): Ignore fread result.
62205         * modules/closein-tests (Depends-on): Add ignore-value.
62207         tests: silence warning about system return
62208         * tests/test-areadlink-with-size.c (main): Ignore system result.
62209         * tests/test-areadlink.c (main): Likewise.
62210         * tests/test-areadlinkat-with-size.c (main): Likewise.
62211         * tests/test-areadlinkat.c (main): Likewise.
62212         * tests/test-canonicalize-lgpl.c (main): Likewise.
62213         * tests/test-canonicalize.c (main): Likewise.
62214         * tests/test-chown.c (main): Likewise.
62215         * tests/test-fchownat.c (main): Likewise.
62216         * tests/test-fdutimensat.c (main): Likewise.
62217         * tests/test-fstatat.c (main): Likewise.
62218         * tests/test-futimens.c (main): Likewise.
62219         * tests/test-lchown.c (main): Likewise.
62220         * tests/test-link.c (main): Likewise.
62221         * tests/test-linkat.c (main): Likewise.
62222         * tests/test-lstat.c (main): Likewise.
62223         * tests/test-mkdir.c (main): Likewise.
62224         * tests/test-mkdirat.c (main): Likewise.
62225         * tests/test-mkfifo.c (main): Likewise.
62226         * tests/test-mkfifoat.c (main): Likewise.
62227         * tests/test-mknod.c (main): Likewise.
62228         * tests/test-readlink.c (main): Likewise.
62229         * tests/test-remove.c (main): Likewise.
62230         * tests/test-rename.c (main): Likewise.
62231         * tests/test-renameat.c (main): Likewise.
62232         * tests/test-rmdir.c (main): Likewise.
62233         * tests/test-symlink.c (main): Likewise.
62234         * tests/test-symlinkat.c (main): Likewise.
62235         * tests/test-unlink.c (main): Likewise.
62236         * tests/test-unlinkat.c (main): Likewise.
62237         * tests/test-utimens.c (main): Likewise.
62238         * tests/test-utimensat.c (main): Likewise.
62239         * modules/areadlink-tests (Depends-on): Add ignore-value.
62240         * modules/areadlink-with-size-tests (Depends-on): Likewise.
62241         * modules/areadlinkat-tests (Depends-on): Likewise.
62242         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
62243         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
62244         * modules/canonicalize-tests (Depends-on): Likewise.
62245         * modules/chown-tests (Depends-on): Likewise.
62246         * modules/fdutimensat-tests (Depends-on): Likewise.
62247         * modules/futimens-tests (Depends-on): Likewise.
62248         * modules/lchown-tests (Depends-on): Likewise.
62249         * modules/link-tests (Depends-on): Likewise.
62250         * modules/linkat-tests (Depends-on): Likewise.
62251         * modules/lstat-tests (Depends-on): Likewise.
62252         * modules/mkdir-tests (Depends-on): Likewise.
62253         * modules/mkfifo-tests (Depends-on): Likewise.
62254         * modules/mkfifoat-tests (Depends-on): Likewise.
62255         * modules/mknod-tests (Depends-on): Likewise.
62256         * modules/openat-tests (Depends-on): Likewise.
62257         * modules/readlink-tests (Depends-on): Likewise.
62258         * modules/remove-tests (Depends-on): Likewise.
62259         * modules/rename-tests (Depends-on): Likewise.
62260         * modules/renameat-tests (Depends-on): Likewise.
62261         * modules/rmdir-tests (Depends-on): Likewise.
62262         * modules/symlink-tests (Depends-on): Likewise.
62263         * modules/symlinkat-tests (Depends-on): Likewise.
62264         * modules/unlink-tests (Depends-on): Likewise.
62265         * modules/utimens-tests (Depends-on): Likewise.
62266         * modules/utimensat-tests (Depends-on): Likewise.
62268 2010-01-31  Bruno Haible  <bruno@clisp.org>
62270         Perform the same test for many <math.h> functions.
62271         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
62272         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
62273         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
62274         of gl_MATHFUNC.
62275         * modules/acos (configure.ac): Likewise.
62276         * modules/asin (configure.ac): Likewise.
62277         * modules/atan (configure.ac): Likewise.
62278         * modules/atan2 (configure.ac): Likewise.
62279         * modules/cbrt (configure.ac): Likewise.
62280         * modules/copysign (configure.ac): Likewise.
62281         * modules/cos (configure.ac): Likewise.
62282         * modules/cosh (configure.ac): Likewise.
62283         * modules/erf (configure.ac): Likewise.
62284         * modules/erfc (configure.ac): Likewise.
62285         * modules/exp (configure.ac): Likewise.
62286         * modules/fmod (configure.ac): Likewise.
62287         * modules/hypot (configure.ac): Likewise.
62288         * modules/j0 (configure.ac): Likewise.
62289         * modules/j1 (configure.ac): Likewise.
62290         * modules/jn (configure.ac): Likewise.
62291         * modules/lgamma (configure.ac): Likewise.
62292         * modules/log (configure.ac): Likewise.
62293         * modules/log10 (configure.ac): Likewise.
62294         * modules/log1p (configure.ac): Likewise.
62295         * modules/pow (configure.ac): Likewise.
62296         * modules/remainder (configure.ac): Likewise.
62297         * modules/sin (configure.ac): Likewise.
62298         * modules/sinh (configure.ac): Likewise.
62299         * modules/tan (configure.ac): Likewise.
62300         * modules/tanh (configure.ac): Likewise.
62301         * modules/y0 (configure.ac): Likewise.
62302         * modules/y1 (configure.ac): Likewise.
62303         * modules/yn (configure.ac): Likewise.
62304         Suggested by Paolo Bonzini.
62306 2010-01-31  Bruno Haible  <bruno@clisp.org>
62308         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
62310 2010-01-31  Bruno Haible  <bruno@clisp.org>
62312         Work around getdelim() bug on FreeBSD 8.0.
62313         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
62314         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
62315         not work.
62316         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
62317         is 1.
62318         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
62319         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
62320         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
62321         a non-zero size.
62322         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
62324 2010-01-31  Bruno Haible  <bruno@clisp.org>
62326         Work around getline() bug on FreeBSD 8.0.
62327         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
62328         and a non-zero size.
62329         * tests/test-getline.c (main): Likewise.
62330         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
62331         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
62333 2010-01-28  Eric Blake  <ebb9@byu.net>
62335         regex: fix build failure
62336         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
62337         platforms.
62339 2010-01-28  Jim Meyering  <meyering@redhat.com>
62341         regex: do not ignore memory allocation failure
62342         * lib/regex_internal.c (create_cd_newstate): Detect
62343         re_node_set_init_copy failure.   Extracted from glibc commit
62344         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62346         regex: sync more white-space changes from libc
62347         * lib/regex_internal.c: White-space only changes.
62348         * lib/regexec.c: Likewise.
62350         regex: add many uses of __attribute_warn_unused_result__
62351         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
62352         * lib/regexec.c: Likewise.
62353         Extracted from a messy glibc commit.
62355         regcomp.c: spelling and merge-artifact from glibc
62356         * lib/regcomp.c: Merge remainder of glibc's
62357         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62359         regcomp.c: sync white-space changes from glibc
62360         * lib/regcomp.c: Merge to accommodate white space
62361         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
62363         regcomp.c: do not ignore internal return values
62364         * lib/regcomp.c: Do not ignore internal return values.
62365         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
62366         but without its white-space changes and spelling fixes.
62368         regex_internal.h: define __attribute_warn_unused_result__
62369         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
62371         maint: add a syntax-check rule to check for vulnerable Makefile.in
62372         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
62374 2010-01-27  Jim Meyering  <meyering@redhat.com>
62376         ncftpput-ftp: clean up spaces
62377         * build-aux/ncftpput-ftp: Make Copyright line consistent.
62378         Remove trailing blanks.
62380 2010-01-27  Simon Josefsson  <simon@josefsson.org>
62382         * build-aux/git-version-gen: Fix copyright statement.
62383         * build-aux/gnupload: Likewise.
62384         * tests/test-arcfour.c: Likewise.
62385         * tests/test-arctwo.c: Likewise.
62386         * tests/test-count-one-bits.c: Likewise.
62387         * tests/test-crc.c: Likewise.
62388         * tests/test-des.c: Likewise.
62389         * tests/test-gc-arcfour.c: Likewise.
62390         * tests/test-gc-arctwo.c: Likewise.
62391         * tests/test-gc-des.c: Likewise.
62392         * tests/test-gc-hmac-md5.c: Likewise.
62393         * tests/test-gc-hmac-sha1.c: Likewise.
62394         * tests/test-gc-md2.c: Likewise.
62395         * tests/test-gc-md4.c: Likewise.
62396         * tests/test-gc-md5.c: Likewise.
62397         * tests/test-gc-pbkdf2-sha1.c: Likewise.
62398         * tests/test-gc-rijndael.c: Likewise.
62399         * tests/test-gc-sha1.c: Likewise.
62400         * tests/test-gc.c: Likewise.
62401         * tests/test-gethostname.c: Likewise.
62402         * tests/test-gettimeofday.c: Likewise.
62403         * tests/test-hash.c: Likewise.
62404         * tests/test-hmac-md5.c: Likewise.
62405         * tests/test-hmac-sha1.c: Likewise.
62406         * tests/test-md2.c: Likewise.
62407         * tests/test-md4.c: Likewise.
62408         * tests/test-md5.c: Likewise.
62409         * tests/test-memchr.c: Likewise.
62410         * tests/test-memchr2.c: Likewise.
62411         * tests/test-memcmp.c: Likewise.
62412         * tests/test-memmem.c: Likewise.
62413         * tests/test-memrchr.c: Likewise.
62414         * tests/test-rawmemchr.c: Likewise.
62415         * tests/test-read-file.c: Likewise.
62416         * tests/test-rijndael.c: Likewise.
62417         * tests/test-sockets.c: Likewise.
62418         * tests/test-strchrnul.c: Likewise.
62419         * tests/test-strstr.c: Likewise.
62420         * tests/test-strtod.c: Likewise.
62421         * build-aux/ncftpput-ftp: Likewise.
62423 2010-01-26  Eric Blake  <ebb9@byu.net>
62425         ignore-value: update recommended header name
62426         * modules/ignore-value (Include): Only use <> for headers that
62427         exist in glibc.
62429 2010-01-26  Jim Meyering  <meyering@redhat.com>
62431         test-userspec.c: avoid compiler warnings
62432         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
62433         and "initialization discards qualifiers..." warnings.
62434         Put the first "uid" in its own scope, and make char* members "const".
62436 2010-01-25  Bruno Haible  <bruno@clisp.org>
62438         gnulib-tool: Make warning diagnostics consistent.
62439         * gnulib-tool (func_warning): New function.
62440         Use it everywhere where gnulib-tool produces output to stderr and it is
62441         not a fatal error.
62443 2010-01-25  Bruno Haible  <bruno@clisp.org>
62445         Fix test dependencies.
62446         * modules/xstrtol-tests (Depends-on): Add inttypes.
62447         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
62449 2010-01-25  Pádraig Brady  <P@draigBrady.com>
62451         syntax-check: detect incorrect boolean macro values in config.h
62452         * modules/maintainer-makefile (configure.ac): Parameterize the location
62453         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
62454         The logic is from Eric Blake and the location indicated by Jim Meyering.
62455         Note the more natural CONFIG_HEADER name is prohibited by automake
62456         for backwards compatibility reasons.
62457         * top/maint.mk (sc_Wundef_boolean): New rule.
62459 2010-01-25  Jim Meyering  <meyering@redhat.com>
62461         bootstrap: detect MacOS 10.6's shasum, too
62462         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
62463         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
62465 2010-01-23  Jim Meyering  <meyering@redhat.com>
62467         xstrtoll: new module
62468         * modules/xstrtoll: New file.
62469         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
62470         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
62471         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
62472         ./configure fails if you use this module and lack "long long".
62473         * modules/xstrtoll-tests: New module.
62474         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
62475         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
62476         new init.sh-based test framework.
62478 2010-01-24  Bruno Haible  <bruno@clisp.org>
62480         Tests for module 'yn'.
62481         * modules/yn-tests: New file.
62482         * tests/test-yn.c: New file.
62484         Tests for module 'y1'.
62485         * modules/y1-tests: New file.
62486         * tests/test-y1.c: New file.
62488         Tests for module 'y0'.
62489         * modules/y0-tests: New file.
62490         * tests/test-y0.c: New file.
62492         Tests for module 'tanh'.
62493         * modules/tanh-tests: New file.
62494         * tests/test-tanh.c: New file.
62496         Tests for module 'tan'.
62497         * modules/tan-tests: New file.
62498         * tests/test-tan.c: New file.
62500         Tests for module 'sqrt'.
62501         * modules/sqrt-tests: New file.
62502         * tests/test-sqrt.c: New file.
62504         Tests for module 'sinh'.
62505         * modules/sinh-tests: New file.
62506         * tests/test-sinh.c: New file.
62508         Tests for module 'sin'.
62509         * modules/sin-tests: New file.
62510         * tests/test-sin.c: New file.
62512         Tests for module 'rint'.
62513         * modules/rint-tests: New file.
62514         * tests/test-rint.c: New file.
62516         Tests for module 'remainder'.
62517         * modules/remainder-tests: New file.
62518         * tests/test-remainder.c: New file.
62520         Tests for module 'pow'.
62521         * modules/pow-tests: New file.
62522         * tests/test-pow.c: New file.
62524         Tests for module 'nextafter'.
62525         * modules/nextafter-tests: New file.
62526         * tests/test-nextafter.c: New file.
62528         Tests for module 'modf'.
62529         * modules/modf-tests: New file.
62530         * tests/test-modf.c: New file.
62532         Tests for module 'logb'.
62533         * modules/logb-tests: New file.
62534         * tests/test-logb.c: New file.
62536         Tests for module 'log1p'.
62537         * modules/log1p-tests: New file.
62538         * tests/test-log1p.c: New file.
62540         Tests for module 'log10'.
62541         * modules/log10-tests: New file.
62542         * tests/test-log10.c: New file.
62544         Tests for module 'log'.
62545         * modules/log-tests: New file.
62546         * tests/test-log.c: New file.
62548         Tests for module 'lgamma'.
62549         * modules/lgamma-tests: New file.
62550         * tests/test-lgamma.c: New file.
62552         Tests for module 'ldexp'.
62553         * modules/ldexp-tests: New file.
62554         * tests/test-ldexp.c: New file.
62556         Tests for module 'jn'.
62557         * modules/jn-tests: New file.
62558         * tests/test-jn.c: New file.
62560         Tests for module 'j1'.
62561         * modules/j1-tests: New file.
62562         * tests/test-j1.c: New file.
62564         Tests for module 'j0'.
62565         * modules/j0-tests: New file.
62566         * tests/test-j0.c: New file.
62568         Tests for module 'hypot'.
62569         * modules/hypot-tests: New file.
62570         * tests/test-hypot.c: New file.
62572         Tests for module 'fmod'.
62573         * modules/fmod-tests: New file.
62574         * tests/test-fmod.c: New file.
62576         Tests for module 'fabs'.
62577         * modules/fabs-tests: New file.
62578         * tests/test-fabs.c: New file.
62580         Tests for module 'exp'.
62581         * modules/exp-tests: New file.
62582         * tests/test-exp.c: New file.
62584         Tests for module 'erfc'.
62585         * modules/erfc-tests: New file.
62586         * tests/test-erfc.c: New file.
62588         Tests for module 'erf'.
62589         * modules/erf-tests: New file.
62590         * tests/test-erf.c: New file.
62592         Tests for module 'cosh'.
62593         * modules/cosh-tests: New file.
62594         * tests/test-cosh.c: New file.
62596         Tests for module 'cos'.
62597         * modules/cos-tests: New file.
62598         * tests/test-cos.c: New file.
62600         Tests for module 'copysign'.
62601         * modules/copysign-tests: New file.
62602         * tests/test-copysign.c: New file.
62604         Tests for module 'cbrt'.
62605         * modules/cbrt-tests: New file.
62606         * tests/test-cbrt.c: New file.
62608         Tests for module 'atan2'.
62609         * modules/atan2-tests: New file.
62610         * tests/test-atan2.c: New file.
62612         Tests for module 'atan'.
62613         * modules/atan-tests: New file.
62614         * tests/test-atan.c: New file.
62616         Tests for module 'asin'.
62617         * modules/asin-tests: New file.
62618         * tests/test-asin.c: New file.
62620         Tests for module 'acos'.
62621         * modules/acos-tests: New file.
62622         * tests/test-acos.c: New file.
62624 2010-01-24  Bruno Haible  <bruno@clisp.org>
62626         Fix tests for common <math.h> functions.
62627         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
62628         code snippet that references the function pointer, rather than merely
62629         calling the function. Substitute the FUNC_LIBM variable.
62630         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
62631         * modules/acos (configure.ac): Likewise.
62632         * modules/asin (configure.ac): Likewise.
62633         * modules/atan (configure.ac): Likewise.
62634         * modules/atan2 (configure.ac): Likewise.
62635         * modules/cbrt (configure.ac): Likewise.
62636         * modules/copysign (configure.ac): Likewise.
62637         * modules/cos (configure.ac): Likewise.
62638         * modules/cosh (configure.ac): Likewise.
62639         * modules/erf (configure.ac): Likewise.
62640         * modules/erfc (configure.ac): Likewise.
62641         * modules/exp (configure.ac): Likewise.
62642         * modules/fabs (configure.ac): Likewise.
62643         * modules/fmod (configure.ac): Likewise.
62644         * modules/hypot (configure.ac): Likewise.
62645         * modules/j0 (configure.ac): Likewise.
62646         * modules/j1 (configure.ac): Likewise.
62647         * modules/jn (configure.ac): Likewise.
62648         * modules/ldexp (configure.ac): Likewise.
62649         * modules/lgamma (configure.ac): Likewise.
62650         * modules/log (configure.ac): Likewise.
62651         * modules/log10 (configure.ac): Likewise.
62652         * modules/log1p (configure.ac): Likewise.
62653         * modules/logb (configure.ac): Likewise.
62654         * modules/modf (configure.ac): Likewise.
62655         * modules/nextafter (configure.ac): Likewise.
62656         * modules/pow (configure.ac): Likewise.
62657         * modules/remainder (configure.ac): Likewise.
62658         * modules/rint (configure.ac): Likewise.
62659         * modules/sin (configure.ac): Likewise.
62660         * modules/sinh (configure.ac): Likewise.
62661         * modules/tan (configure.ac): Likewise.
62662         * modules/tanh (configure.ac): Likewise.
62663         * modules/y0 (configure.ac): Likewise.
62664         * modules/y1 (configure.ac): Likewise.
62665         * modules/yn (configure.ac): Likewise.
62667 2010-01-24  Bruno Haible  <bruno@clisp.org>
62669         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
62670         * tests/test-acosl.c (x): New variable.
62671         (main): Store argument in x and fetch it from x.
62672         * tests/test-asinl.c (x): New variable.
62673         (main): Store argument in x and fetch it from x.
62674         * tests/test-atanl.c (x): New variable.
62675         (main): Store argument in x and fetch it from x.
62676         * tests/test-cosl.c (x): New variable.
62677         (main): Store argument in x and fetch it from x.
62678         * tests/test-expl.c (x): New variable.
62679         (main): Store argument in x and fetch it from x.
62680         * tests/test-logl.c (x): New variable.
62681         (main): Store argument in x and fetch it from x.
62682         * tests/test-sinl.c (x): New variable.
62683         (main): Store argument in x and fetch it from x.
62684         * tests/test-sqrtl.c (x): New variable.
62685         (main): Store argument in x and fetch it from x.
62686         * tests/test-tanl.c (x): New variable.
62687         (main): Store argument in x and fetch it from x.
62689 2010-01-24  Bruno Haible  <bruno@clisp.org>
62691         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
62692         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
62693         assignments to the initial TESTS_ENVIRONMENT.
62694         * doc/gnulib.texi (Unit test modules): Document it.
62695         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
62696         TESTS_ENVIRONMENT.
62697         * modules/btowc-tests (Makefile.am): Likewise.
62698         * modules/c-stack-tests (Makefile.am): Likewise.
62699         * modules/c-strcase-tests (Makefile.am): Likewise.
62700         * modules/copy-file-tests (Makefile.am): Likewise.
62701         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
62702         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
62703         * modules/mbrtowc-tests (Makefile.am): Likewise.
62704         * modules/mbscasecmp-tests (Makefile.am): Likewise.
62705         * modules/mbscasestr-tests (Makefile.am): Likewise.
62706         * modules/mbschr-tests (Makefile.am): Likewise.
62707         * modules/mbscspn-tests (Makefile.am): Likewise.
62708         * modules/mbsinit-tests (Makefile.am): Likewise.
62709         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
62710         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
62711         * modules/mbspbrk-tests (Makefile.am): Likewise.
62712         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
62713         * modules/mbsrchr-tests (Makefile.am): Likewise.
62714         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
62715         * modules/mbsspn-tests (Makefile.am): Likewise.
62716         * modules/mbsstr-tests (Makefile.am): Likewise.
62717         * modules/nl_langinfo-tests (Makefile.am): Likewise.
62718         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
62719         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
62720         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
62721         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
62722         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
62723         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
62724         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
62725         * modules/wcrtomb-tests (Makefile.am): Likewise.
62726         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
62727         * modules/wcsrtombs-tests (Makefile.am): Likewise.
62728         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
62729         assignments from TESTS_ENVIRONMENT.
62730         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
62731         augmentation.
62732         * modules/argp-version-etc-tests (Makefile.am): Likewise.
62733         * modules/atexit-tests (Makefile.am): Likewise.
62734         * modules/binary-io-tests (Makefile.am): Likewise.
62735         * modules/closein-tests (Makefile.am): Likewise.
62736         * modules/dprintf-posix-tests (Makefile.am): Likewise.
62737         * modules/exclude-tests (Makefile.am): Likewise.
62738         * modules/fflush-tests (Makefile.am): Likewise.
62739         * modules/fpending-tests (Makefile.am): Likewise.
62740         * modules/fprintf-posix-tests (Makefile.am): Likewise.
62741         * modules/freadahead-tests (Makefile.am): Likewise.
62742         * modules/freadptr-tests (Makefile.am): Likewise.
62743         * modules/freadseek-tests (Makefile.am): Likewise.
62744         * modules/fseek-tests (Makefile.am): Likewise.
62745         * modules/fseeko-tests (Makefile.am): Likewise.
62746         * modules/ftell-tests (Makefile.am): Likewise.
62747         * modules/ftello-tests (Makefile.am): Likewise.
62748         * modules/idpriv-drop-tests (Makefile.am): Likewise.
62749         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
62750         * modules/lseek-tests (Makefile.am): Likewise.
62751         * modules/parse-duration-tests (Makefile.am): Likewise.
62752         * modules/perror-tests (Makefile.am): Likewise.
62753         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
62754         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
62755         * modules/pipe-tests (Makefile.am): Likewise.
62756         * modules/pread-tests (Makefile.am): Likewise.
62757         * modules/printf-posix-tests (Makefile.am): Likewise.
62758         * modules/select-tests (Makefile.am): Likewise.
62759         * modules/sigpipe-tests (Makefile.am): Likewise.
62760         * modules/tsearch-tests (Makefile.am): Likewise.
62761         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
62762         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
62763         * modules/uniname/uniname-tests (Makefile.am): Likewise.
62764         * modules/uniwidth/width-tests (Makefile.am): Likewise.
62765         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
62766         * modules/version-etc-tests (Makefile.am): Likewise.
62767         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
62768         * modules/vprintf-posix-tests (Makefile.am): Likewise.
62769         * modules/xalloc-die-tests (Makefile.am): Likewise.
62770         * modules/xprintf-posix-tests (Makefile.am): Likewise.
62771         * modules/xstrtoimax-tests (Makefile.am): Likewise.
62772         * modules/xstrtol-tests (Makefile.am): Likewise.
62773         * modules/xstrtoumax-tests (Makefile.am): Likewise.
62774         * modules/yesno-tests (Makefile.am): Likewise.
62775         Suggested by Jim Meyering.
62777 2010-01-24  Bruno Haible  <bruno@clisp.org>
62779         More documentation.
62780         * doc/gnulib.texi (Writing modules): New chapter.
62781         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
62782         the new chapter.
62784 2010-01-24  Jim Meyering  <meyering@redhat.com>
62786         maint.mk: do not prepend "./" after filtering
62787         * top/maint.mk (_prepend_srcdir_prefix): New variable
62788         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
62789         "./" when $(srcdir) is ".".
62791         define STREQ(a,b) consistently, removing useless parentheses
62792         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
62793         since the only risk is that "a" or "b" contains an unparenthesized
62794         comma, but if either did that, STREQ would have 3 or more arguments.
62795         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
62796         * lib/fts.c (STREQ): Remove unnecessary parentheses.
62797         * lib/hash-triple.c (STREQ): Likewise.
62798         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
62799         * lib/getugroups.c (STREQ): Likewise.
62801 2010-01-23  Jim Meyering  <meyering@redhat.com>
62803         maint.mk: fix syntax-check in a non-srcdir build directory
62804         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
62805         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
62807 2010-01-22  Jim Meyering  <meyering@redhat.com>
62809         userspec: add unit tests
62810         * tests/test-userspec.c: New file.
62811         * modules/userspec-tests: Likewise.
62813 2010-01-21  Jim Meyering  <meyering@redhat.com>
62815         maint.mk: handle source file names containing "." robustly
62816         * top/maint.mk (_dot_escaped_srcdir): Define.
62817         (VC_LIST): Use it in LHS of sed substitution.
62819 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
62821         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
62822         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
62823         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
62824         from a non-srcdir build.
62826 2010-01-20  Eric Blake  <ebb9@byu.net>
62828         warn-on-use: use instead of link-warning
62829         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
62830         * modules/unistd (Depends-on, Makefile.am): Likewise.
62831         * modules/arpa_inet (Depends-on): Replace link-warning with
62832         warn-on-use.
62833         (Makefile.am): Update rules accordingly.
62834         * modules/ctype (Depends-on, Makefile.am): Likewise.
62835         * modules/dirent (Depends-on, Makefile.am): Likewise.
62836         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
62837         * modules/inttypes (Depends-on, Makefile.am): Likewise.
62838         * modules/langinfo (Depends-on, Makefile.am): Likewise.
62839         * modules/locale (Depends-on, Makefile.am): Likewise.
62840         * modules/math (Depends-on, Makefile.am): Likewise.
62841         * modules/search (Depends-on, Makefile.am): Likewise.
62842         * modules/signal (Depends-on, Makefile.am): Likewise.
62843         * modules/spawn (Depends-on, Makefile.am): Likewise.
62844         * modules/stdlib (Depends-on, Makefile.am): Likewise.
62845         * modules/string (Depends-on, Makefile.am): Likewise.
62846         * modules/strings (Depends-on, Makefile.am): Likewise.
62847         * modules/sys_file (Depends-on, Makefile.am): Likewise.
62848         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
62849         * modules/sys_select (Depends-on, Makefile.am): Likewise.
62850         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
62851         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
62852         * modules/sys_times (Depends-on, Makefile.am): Likewise.
62853         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
62854         * modules/wchar (Depends-on, Makefile.am): Likewise.
62855         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
62856         should be poisoned.
62857         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
62858         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
62859         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
62860         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62861         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
62862         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62863         * m4/math_h.m4 (gl_MATH_H): Likewise.
62864         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62865         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62866         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
62867         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62868         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62869         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62870         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
62871         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
62872         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
62873         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62874         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62875         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62876         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
62877         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
62878         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62879         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62880         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
62881         GL_LINK_WARNING.
62882         * lib/ctype.in.h: Likewise.
62883         * lib/dirent.in.h: Likewise.
62884         * lib/fcntl.in.h: Likewise.
62885         * lib/inttypes.in.h: Likewise.
62886         * lib/langinfo.in.h: Likewise.
62887         * lib/locale.in.h: Likewise.
62888         * lib/math.in.h: Likewise.
62889         * lib/search.in.h: Likewise.
62890         * lib/signal.in.h: Likewise.
62891         * lib/spawn.in.h: Likewise.
62892         * lib/stdio.in.h: Likewise.
62893         * lib/stdlib.in.h: Likewise.
62894         * lib/string.in.h: Likewise.
62895         * lib/strings.in.h: Likewise.
62896         * lib/sys_file.in.h: Likewise.
62897         * lib/sys_ioctl.in.h: Likewise.
62898         * lib/sys_select.in.h: Likewise.
62899         * lib/sys_socket.in.h: Likewise.
62900         * lib/sys_stat.in.h: Likewise.
62901         * lib/sys_times.in.h: Likewise.
62902         * lib/sys_utsname.in.h: Likewise.
62903         * lib/unistd.in.h: Likewise.
62904         * lib/wchar.in.h: Likewise.
62906 2010-01-20  Bruno Haible  <bruno@clisp.org>
62908         Avoid duplicate -lm.
62909         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
62910         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
62911         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
62912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
62913         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
62914         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
62915         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
62916         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
62917         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
62918         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
62919         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
62920         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
62921         Reported by Paolo Bonzini.
62923 2010-01-19  Bruno Haible  <bruno@clisp.org>
62925         langinfo, nl_langinfo: Relicense under LGPLv2+.
62926         * modules/langinfo (License): Change to LGPLv2+.
62927         * modules/nl_langinfo (License): Likewise.
62928         Patch by David Lutterkort <lutter@redhat.com>.
62930 2010-01-19  Bruno Haible  <bruno@clisp.org>
62932         Avoid compilation error with cc on OSF/1 5.1.
62933         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
62934         statement, not before.
62935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62937 2010-01-18  Bruno Haible  <bruno@clisp.org>
62939         Avoid a link error due to the __printf__ symbol.
62940         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
62941         and 2.6.x.
62942         (__format__, __printf__): Remove definitions.
62943         * lib/argp-fmtstream.h: Likewise.
62944         * lib/argp.h: Likewise.
62945         * lib/error.h: Likewise.
62946         * lib/vasnprintf.h: Likewise.
62947         * lib/xprintf.h: Likewise.
62948         * lib/xvasprintf.h: Likewise.
62949         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62951 2010-01-18  Bruno Haible  <bruno@clisp.org>
62953         Tests for module 'tanl'.
62954         * modules/tanl-tests: New file.
62955         * tests/test-tanl.c: New file.
62957         Tests for module 'sqrtl'.
62958         * modules/sqrtl-tests: New file.
62959         * tests/test-sqrtl.c: New file.
62961         Tests for module 'sinl'.
62962         * modules/sinl-tests: New file.
62963         * tests/test-sinl.c: New file.
62965         Tests for module 'logl'.
62966         * modules/logl-tests: New file.
62967         * tests/test-logl.c: New file.
62969         Tests for module 'expl'.
62970         * modules/expl-tests: New file.
62971         * tests/test-expl.c: New file.
62973         Tests for module 'cosl'.
62974         * modules/cosl-tests: New file.
62975         * tests/test-cosl.c: New file.
62977         Tests for module 'atanl'.
62978         * modules/atanl-tests: New file.
62979         * tests/test-atanl.c: New file.
62981         Tests for module 'asinl'.
62982         * modules/asinl-tests: New file.
62983         * tests/test-asinl.c: New file.
62985         Tests for module 'acosl'.
62986         * modules/acosl-tests: New file.
62987         * tests/test-acosl.c: New file.
62989         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
62990         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
62991         tanl): Use the standard gnulib idiom.
62992         * lib/cosl.c: Don't include trigl.c and sincosl.c.
62993         * lib/sinl.c: Likewise.
62994         * lib/tanl.c: Don't include trigl.c.
62995         (kernel_tanl): Make static.
62996         * lib/sincosl.c: Include trigl.h first.
62997         * lib/trigl.c: Likewise.
62998         * m4/acosl.m4: New file.
62999         * m4/asinl.m4: New file.
63000         * m4/atanl.m4: New file.
63001         * m4/cosl.m4: New file.
63002         * m4/expl.m4: New file.
63003         * m4/logl.m4: New file.
63004         * m4/sinl.m4: New file.
63005         * m4/sqrtl.m4: New file.
63006         * m4/tanl.m4: New file.
63007         * m4/mathl.m4: Remove file.
63008         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
63009         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
63010         Don't initialize GNULIB_MATHL.
63011         * modules/acosl: New file.
63012         * modules/asinl: New file.
63013         * modules/atanl: New file.
63014         * modules/cosl: New file.
63015         * modules/expl: New file.
63016         * modules/logl: New file.
63017         * modules/sinl: New file.
63018         * modules/sqrtl: New file.
63019         * modules/tanl: New file.
63020         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
63021         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
63022         substitute GNULIB_MATHL.
63023         * modules/mathl: Rewritten.
63024         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
63025         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
63026         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
63027         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
63028         * doc/posix-functions/expl.texi: Mention the 'expl' module.
63029         * doc/posix-functions/logl.texi: Mention the 'logl' module.
63030         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
63031         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
63032         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
63034 2010-01-18  Bruno Haible  <bruno@clisp.org>
63036         sqrt: Make gl_FUNC_SQRT requirable.
63037         * m4/sqrt.m4: New file.
63038         * modules/sqrt (Files): Add it.
63039         (configure.ac): Invoke gl_FUNC_SQRT.
63041 2010-01-18  Bruno Haible  <bruno@clisp.org>
63043         New modules for common <math.h> functions.
63044         * m4/mathfunc.m4: New file.
63045         * modules/acos: New file.
63046         * modules/asin: New file.
63047         * modules/atan: New file.
63048         * modules/atan2: New file.
63049         * modules/cbrt: New file.
63050         * modules/copysign: New file.
63051         * modules/cos: New file.
63052         * modules/cosh: New file.
63053         * modules/erf: New file.
63054         * modules/erfc: New file.
63055         * modules/exp: New file.
63056         * modules/fabs: New file.
63057         * modules/fmod: New file.
63058         * modules/hypot: New file.
63059         * modules/j0: New file.
63060         * modules/j1: New file.
63061         * modules/jn: New file.
63062         * modules/ldexp: New file.
63063         * modules/lgamma: New file.
63064         * modules/log: New file.
63065         * modules/log10: New file.
63066         * modules/log1p: New file.
63067         * modules/logb: New file.
63068         * modules/modf: New file.
63069         * modules/nextafter: New file.
63070         * modules/pow: New file.
63071         * modules/remainder: New file.
63072         * modules/rint: New file.
63073         * modules/sin: New file.
63074         * modules/sinh: New file.
63075         * modules/sqrt: New file.
63076         * modules/tan: New file.
63077         * modules/tanh: New file.
63078         * modules/y0: New file.
63079         * modules/y1: New file.
63080         * modules/yn: New file.
63081         * doc/posix-functions/acos.texi: Mention the 'acos' module.
63082         * doc/posix-functions/asin.texi: Mention the 'asin' module.
63083         * doc/posix-functions/atan.texi: Mention the 'atan' module.
63084         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
63085         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
63086         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
63087         * doc/posix-functions/cos.texi: Mention the 'cos' module.
63088         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
63089         * doc/posix-functions/erf.texi: Mention the 'erf' module.
63090         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
63091         * doc/posix-functions/exp.texi: Mention the 'exp' module.
63092         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
63093         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
63094         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
63095         * doc/posix-functions/j0.texi: Mention the 'j0' module.
63096         * doc/posix-functions/j1.texi: Mention the 'j1' module.
63097         * doc/posix-functions/jn.texi: Mention the 'jn' module.
63098         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
63099         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
63100         * doc/posix-functions/log.texi: Mention the 'log' module.
63101         * doc/posix-functions/log10.texi: Mention the 'log10' module.
63102         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
63103         * doc/posix-functions/logb.texi: Mention the 'logb' module.
63104         * doc/posix-functions/modf.texi: Mention the 'modf' module.
63105         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
63106         * doc/posix-functions/pow.texi: Mention the 'pow' module.
63107         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
63108         * doc/posix-functions/rint.texi: Mention the 'rint' module.
63109         * doc/posix-functions/sin.texi: Mention the 'sin' module.
63110         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
63111         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
63112         * doc/posix-functions/tan.texi: Mention the 'tan' module.
63113         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
63114         * doc/posix-functions/y0.texi: Mention the 'y0' module.
63115         * doc/posix-functions/y1.texi: Mention the 'y1' module.
63116         * doc/posix-functions/yn.texi: Mention the 'yn' module.
63118 2010-01-18  Jim Meyering  <meyering@redhat.com>
63120         ignore-value: relax license to LGPLv2+
63121         * modules/ignore-value (License): Relax to LGPLv2+.
63123         getdate: don't leak when TZ contains two or more '"'s
63124         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
63125         double quote in TZ after the first one.
63127         readtokens: do not leak internal token_lengths buffer
63128         * lib/readtokens.c (readtokens): Free the local, lengths,
63129         when the supplied "token_lengths" parameter is NULL.
63131 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63133         Fix a couple of missing LIBTHREAD link failures on AIX.
63134         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
63135         $(LIBTHREAD).
63136         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
63138         Link test-poll against INET_PTON_LIB.
63139         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
63140         for inet_pton on Solaris 10.
63142 2010-01-17  Bruno Haible  <bruno@clisp.org>
63144         unistdio/*-sprintf: Fix typo in module description.
63145         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
63146         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
63147         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
63148         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
63149         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
63150         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
63151         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
63152         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63154 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63156         gnulib-tool: fix filelist for AIX, HP-UX ksh.
63157         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
63158         variables in shell case patterns, for AIX and HP-UX ksh.
63160         Split large sed scripts, for HP-UX sed.
63161         * modules/stdio: Split sed scripts around 50 sed commands,
63162         to avoid HP-UX limit of 99 commands, in the near future.
63163         * modules/string: Likewise.
63164         * modules/unistd: Likewise.
63166         gnulib-tool: avoid writing in the current directory.
63167         * gnulib-tool (func_emit_lib_Makefile_am)
63168         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
63169         not in the current directory, so concurrent gnulib-tool
63170         instances do not interfere.
63172 2010-01-16  Jim Meyering  <meyering@redhat.com>
63174         doc: update users.txt
63175         * users.txt: Add grep.
63176         (diffutils, gzip): Update URLs.
63178 2010-01-12  Bruno Haible  <bruno@clisp.org>
63180         posix_spawn: Avoid test failure on Cygwin.
63181         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
63182         characters.
63183         Reported by Simon Josefsson.
63185 2010-01-12  Bruno Haible  <bruno@clisp.org>
63187         * tests/test-cond.c (main): When skipping the test, show the reason.
63189 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63191         * lib/striconv.c (str_cd_iconv): Avoid if before free.
63193 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63195         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
63196         VC_LIST_ALWAYS_EXCLUDE_REGEX.
63198 2010-01-12  Eric Blake  <ebb9@byu.net>
63200         build: guarantee AS_VAR_IF
63201         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
63202         (gl_AS_VAR_IF): Move...
63203         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
63204         Reported by Simon Josefsson.
63206 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63208         * lib/stdio.in.h: Fix typo.
63210 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63212         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
63213         libgpg-error.
63215 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63217         * tests/test-xalloc-die.sh: Use $EXEEXT.
63219 2010-01-12  Simon Josefsson  <simon@josefsson.org>
63220             Bruno Haible  <bruno@clisp.org>
63222         getlogin, getlogin_r: Avoid test failure.
63223         * tests/test-getlogin.c: Include <stdio.h>.
63224         (main): Skip the test when the function fails because stdin is not a
63225         tty.
63226         * tests/test-getlogin_r.c: Include <stdio.h>.
63227         (main): Skip the test when the function fails because stdin is not a
63228         tty.
63230 2010-01-11  Eric Blake  <ebb9@byu.net>
63232         tests: avoid more large file warnings
63233         * tests/test-fflush.c: Avoid warning about ftell use.
63234         * tests/test-fseek.c: Avoid warning about fseek use.
63236 2010-01-10  Bruno Haible  <bruno@clisp.org>
63238         nproc: Work better on Linux when /proc and /sys are not mounted.
63239         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
63240         as lower bound when, on glibc/Linux systems,
63241         sysconf (_SC_NPROCESSORS_CONF) returns 1.
63242         Suggested by Pádraig Brady <P@draigbrady.com>.
63243         Reported by Dmitry V. Levin <ldv@altlinux.org>.
63245         nproc: Refactor.
63246         * lib/nproc.c (num_processors_via_affinity_mask): New function,
63247         extracted from num_processors.
63248         (num_processors): Call it.
63250 2010-01-11  Jim Meyering  <meyering@redhat.com>
63252         utimecmp: avoid new warning from upcoming gcc-4.5.0
63253         * lib/utimecmp.c (BILLION): Define using #define rather than an
63254         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
63256 2010-01-11  Eric Blake  <ebb9@byu.net>
63258         math: add portability warnings for classification macros
63259         * modules/math (Depends-on): Add warn-on-use.
63260         (Makefile.am): Provide new substitutions.
63261         * m4/math_h.m4 (gl_MATH_H): Require inline.
63262         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
63263         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
63264         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
63265         implement warnings.
63267         unistd: warn on use of environ without module
63268         * modules/unistd (Depends-on): Add warn-on-use.
63269         (Makefile.am): Provide new substitutions.
63270         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
63271         * lib/unistd.in.h (environ): Wrap with a warning helper function.
63273         stdio: warn on suspicious uses
63274         * modules/stdio (Depends-on): Add warn-on-use.
63275         (Makefile.am): Provide new substitutions.
63276         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
63277         fseeko.
63278         * lib/stdio.in.h (gets): Always warn on use.
63279         (fseek, ftell): Adjust when warnings are issued, and honor
63280         _GL_NO_LARGE_FILES as a way to silence the warning.
63281         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
63282         any warning about large file offsets.
63283         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
63284         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
63285         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
63286         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
63287         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
63288         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
63289         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
63290         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
63292         warn-on-use: new module
63293         * modules/warn-on-use: New file.
63294         * build-aux/warn-on-use.h: Likewise.
63295         * m4/warn-on-use.m4: Likewise.
63296         * MODULES.html.sh (Support for building): Mention it.
63298 2010-01-10  Bruno Haible  <bruno@clisp.org>
63300         Tests for module 'unistr/u32-strdup'.
63301         * modules/unistr/u32-strdup-tests: New file.
63302         * tests/unistr/test-u32-strdup.c: New file.
63304         Tests for module 'unistr/u16-strdup'.
63305         * modules/unistr/u16-strdup-tests: New file.
63306         * tests/unistr/test-u16-strdup.c: New file.
63308         Tests for module 'unistr/u8-strdup'.
63309         * modules/unistr/u8-strdup-tests: New file.
63310         * tests/unistr/test-u8-strdup.c: New file.
63311         * tests/unistr/test-strdup.h: New file.
63313         Tests for module 'unistr/u32-strncmp'.
63314         * modules/unistr/u32-strncmp-tests: New file.
63315         * tests/unistr/test-u32-strncmp.c: New file.
63317         Tests for module 'unistr/u16-strncmp'.
63318         * modules/unistr/u16-strncmp-tests: New file.
63319         * tests/unistr/test-u16-strncmp.c: New file.
63321         Tests for module 'unistr/u8-strncmp'.
63322         * modules/unistr/u8-strncmp-tests: New file.
63323         * tests/unistr/test-u8-strncmp.c: New file.
63324         * tests/unistr/test-strncmp.h: New file.
63326         Tests for module 'unistr/u32-strcoll'.
63327         * modules/unistr/u32-strcoll-tests: New file.
63328         * tests/unistr/test-u32-strcoll.c: New file.
63330         Tests for module 'unistr/u16-strcoll'.
63331         * modules/unistr/u16-strcoll-tests: New file.
63332         * tests/unistr/test-u16-strcoll.c: New file.
63334         Tests for module 'unistr/u8-strcoll'.
63335         * modules/unistr/u8-strcoll-tests: New file.
63336         * tests/unistr/test-u8-strcoll.c: New file.
63338         Tests for module 'unistr/u32-strcmp'.
63339         * modules/unistr/u32-strcmp-tests: New file.
63340         * tests/unistr/test-u32-strcmp.c: New file.
63341         * tests/unistr/test-u32-strcmp.h: New file.
63343         Tests for module 'unistr/u16-strcmp'.
63344         * modules/unistr/u16-strcmp-tests: New file.
63345         * tests/unistr/test-u16-strcmp.c: New file.
63346         * tests/unistr/test-u16-strcmp.h: New file.
63348         Tests for module 'unistr/u8-strcmp'.
63349         * modules/unistr/u8-strcmp-tests: New file.
63350         * tests/unistr/test-u8-strcmp.c: New file.
63351         * tests/unistr/test-u8-strcmp.h: New file.
63352         * tests/unistr/test-strcmp.h: New file.
63354         Tests for module 'unistr/u32-strncat'.
63355         * modules/unistr/u32-strncat-tests: New file.
63356         * tests/unistr/test-u32-strncat.c: New file.
63358         Tests for module 'unistr/u16-strncat'.
63359         * modules/unistr/u16-strncat-tests: New file.
63360         * tests/unistr/test-u16-strncat.c: New file.
63362         Tests for module 'unistr/u8-strncat'.
63363         * modules/unistr/u8-strncat-tests: New file.
63364         * tests/unistr/test-u8-strncat.c: New file.
63365         * tests/unistr/test-strncat.h: New file.
63367         Tests for module 'unistr/u32-strcat'.
63368         * modules/unistr/u32-strcat-tests: New file.
63369         * tests/unistr/test-u32-strcat.c: New file.
63371         Tests for module 'unistr/u16-strcat'.
63372         * modules/unistr/u16-strcat-tests: New file.
63373         * tests/unistr/test-u16-strcat.c: New file.
63375         Tests for module 'unistr/u8-strcat'.
63376         * modules/unistr/u8-strcat-tests: New file.
63377         * tests/unistr/test-u8-strcat.c: New file.
63378         * tests/unistr/test-strcat.h: New file.
63380         Tests for module 'unistr/u32-stpncpy'.
63381         * modules/unistr/u32-stpncpy-tests: New file.
63382         * tests/unistr/test-u32-stpncpy.c: New file.
63384         Tests for module 'unistr/u16-stpncpy'.
63385         * modules/unistr/u16-stpncpy-tests: New file.
63386         * tests/unistr/test-u16-stpncpy.c: New file.
63388         Tests for module 'unistr/u8-stpncpy'.
63389         * modules/unistr/u8-stpncpy-tests: New file.
63390         * tests/unistr/test-u8-stpncpy.c: New file.
63391         * tests/unistr/test-stpncpy.h: New file.
63393         Tests for module 'unistr/u32-strncpy'.
63394         * modules/unistr/u32-strncpy-tests: New file.
63395         * tests/unistr/test-u32-strncpy.c: New file.
63397         Tests for module 'unistr/u16-strncpy'.
63398         * modules/unistr/u16-strncpy-tests: New file.
63399         * tests/unistr/test-u16-strncpy.c: New file.
63401         Tests for module 'unistr/u8-strncpy'.
63402         * modules/unistr/u8-strncpy-tests: New file.
63403         * tests/unistr/test-u8-strncpy.c: New file.
63404         * tests/unistr/test-strncpy.h: New file.
63406         Tests for module 'unistr/u32-stpcpy'.
63407         * modules/unistr/u32-stpcpy-tests: New file.
63408         * tests/unistr/test-u32-stpcpy.c: New file.
63410         Tests for module 'unistr/u16-stpcpy'.
63411         * modules/unistr/u16-stpcpy-tests: New file.
63412         * tests/unistr/test-u16-stpcpy.c: New file.
63414         Tests for module 'unistr/u8-stpcpy'.
63415         * modules/unistr/u8-stpcpy-tests: New file.
63416         * tests/unistr/test-u8-stpcpy.c: New file.
63417         * tests/unistr/test-stpcpy.h: New file.
63419         Tests for module 'unistr/u32-strcpy'.
63420         * modules/unistr/u32-strcpy-tests: New file.
63421         * tests/unistr/test-u32-strcpy.c: New file.
63423         Tests for module 'unistr/u16-strcpy'.
63424         * modules/unistr/u16-strcpy-tests: New file.
63425         * tests/unistr/test-u16-strcpy.c: New file.
63427         Tests for module 'unistr/u8-strcpy'.
63428         * modules/unistr/u8-strcpy-tests: New file.
63429         * tests/unistr/test-u8-strcpy.c: New file.
63430         * tests/unistr/test-strcpy.h: New file.
63432         Tests for module 'unistr/u32-strnlen'.
63433         * modules/unistr/u32-strnlen-tests: New file.
63434         * tests/unistr/test-u32-strnlen.c: New file.
63436         Tests for module 'unistr/u16-strnlen'.
63437         * modules/unistr/u16-strnlen-tests: New file.
63438         * tests/unistr/test-u16-strnlen.c: New file.
63440         Tests for module 'unistr/u8-strnlen'.
63441         * modules/unistr/u8-strnlen-tests: New file.
63442         * tests/unistr/test-u8-strnlen.c: New file.
63443         * tests/unistr/test-strnlen.h: New file.
63445         Tests for module 'unistr/u32-strlen'.
63446         * modules/unistr/u32-strlen-tests: New file.
63447         * tests/unistr/test-u32-strlen.c: New file.
63449         Tests for module 'unistr/u16-strlen'.
63450         * modules/unistr/u16-strlen-tests: New file.
63451         * tests/unistr/test-u16-strlen.c: New file.
63453         Tests for module 'unistr/u8-strlen'.
63454         * modules/unistr/u8-strlen-tests: New file.
63455         * tests/unistr/test-u8-strlen.c: New file.
63457         Tests for module 'unistr/u32-prev'.
63458         * modules/unistr/u32-prev-tests: New file.
63459         * tests/unistr/test-u32-prev.c: New file.
63461         Tests for module 'unistr/u16-prev'.
63462         * modules/unistr/u16-prev-tests: New file.
63463         * tests/unistr/test-u16-prev.c: New file.
63465         Tests for module 'unistr/u8-prev'.
63466         * modules/unistr/u8-prev-tests: New file.
63467         * tests/unistr/test-u8-prev.c: New file.
63469         Tests for module 'unistr/u32-next'.
63470         * modules/unistr/u32-next-tests: New file.
63471         * tests/unistr/test-u32-next.c: New file.
63473         Tests for module 'unistr/u16-next'.
63474         * modules/unistr/u16-next-tests: New file.
63475         * tests/unistr/test-u16-next.c: New file.
63477         Tests for module 'unistr/u8-next'.
63478         * modules/unistr/u8-next-tests: New file.
63479         * tests/unistr/test-u8-next.c: New file.
63481         Tests for module 'unistr/u32-strmbtouc'.
63482         * modules/unistr/u32-strmbtouc-tests: New file.
63483         * tests/unistr/test-u32-strmbtouc.c: New file.
63485         Tests for module 'unistr/u16-strmbtouc'.
63486         * modules/unistr/u16-strmbtouc-tests: New file.
63487         * tests/unistr/test-u16-strmbtouc.c: New file.
63489         Tests for module 'unistr/u8-strmbtouc'.
63490         * modules/unistr/u8-strmbtouc-tests: New file.
63491         * tests/unistr/test-u8-strmbtouc.c: New file.
63493         Tests for module 'unistr/u32-strmblen'.
63494         * modules/unistr/u32-strmblen-tests: New file.
63495         * tests/unistr/test-u32-strmblen.c: New file.
63497         Tests for module 'unistr/u16-strmblen'.
63498         * modules/unistr/u16-strmblen-tests: New file.
63499         * tests/unistr/test-u16-strmblen.c: New file.
63501         Tests for module 'unistr/u8-strmblen'.
63502         * modules/unistr/u8-strmblen-tests: New file.
63503         * tests/unistr/test-u8-strmblen.c: New file.
63505         Tests for module 'unistr/u32-cpy-alloc'.
63506         * modules/unistr/u32-cpy-alloc-tests: New file.
63507         * tests/unistr/test-u32-cpy-alloc.c: New file.
63509         Tests for module 'unistr/u16-cpy-alloc'.
63510         * modules/unistr/u16-cpy-alloc-tests: New file.
63511         * tests/unistr/test-u16-cpy-alloc.c: New file.
63513         Tests for module 'unistr/u8-cpy-alloc'.
63514         * modules/unistr/u8-cpy-alloc-tests: New file.
63515         * tests/unistr/test-u8-cpy-alloc.c: New file.
63516         * tests/unistr/test-cpy-alloc.h: New file.
63518         Tests for module 'unistr/u32-mbsnlen'.
63519         * modules/unistr/u32-mbsnlen-tests: New file.
63520         * tests/unistr/test-u32-mbsnlen.c: New file.
63522         Tests for module 'unistr/u16-mbsnlen'.
63523         * modules/unistr/u16-mbsnlen-tests: New file.
63524         * tests/unistr/test-u16-mbsnlen.c: New file.
63526         Tests for module 'unistr/u8-mbsnlen'.
63527         * modules/unistr/u8-mbsnlen-tests: New file.
63528         * tests/unistr/test-u8-mbsnlen.c: New file.
63530         Tests for module 'unistr/u32-chr'.
63531         * modules/unistr/u32-chr-tests: New file.
63532         * tests/unistr/test-u32-chr.c: New file.
63534         Tests for module 'unistr/u16-chr'.
63535         * modules/unistr/u16-chr-tests: New file.
63536         * tests/unistr/test-u16-chr.c: New file.
63538         Tests for module 'unistr/u8-chr'.
63539         * modules/unistr/u8-chr-tests: New file.
63540         * tests/unistr/test-u8-chr.c: New file.
63541         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
63543         Tests for module 'unistr/u32-cmp2'.
63544         * modules/unistr/u32-cmp2-tests: New file.
63545         * tests/unistr/test-u32-cmp2.c: New file.
63547         Tests for module 'unistr/u16-cmp2'.
63548         * modules/unistr/u16-cmp2-tests: New file.
63549         * tests/unistr/test-u16-cmp2.c: New file.
63551         Tests for module 'unistr/u8-cmp2'.
63552         * modules/unistr/u8-cmp2-tests: New file.
63553         * tests/unistr/test-u8-cmp2.c: New file.
63554         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
63556         Tests for module 'unistr/u32-cmp'.
63557         * modules/unistr/u32-cmp-tests: New file.
63558         * tests/unistr/test-u32-cmp.c: New file.
63560         Tests for module 'unistr/u16-cmp'.
63561         * modules/unistr/u16-cmp-tests: New file.
63562         * tests/unistr/test-u16-cmp.c: New file.
63564         Tests for module 'unistr/u8-cmp'.
63565         * modules/unistr/u8-cmp-tests: New file.
63566         * tests/unistr/test-u8-cmp.c: New file.
63567         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
63569         Tests for module 'unistr/u32-set'.
63570         * modules/unistr/u32-set-tests: New file.
63571         * tests/unistr/test-u32-set.c: New file.
63573         Tests for module 'unistr/u16-set'.
63574         * modules/unistr/u16-set-tests: New file.
63575         * tests/unistr/test-u16-set.c: New file.
63577         Tests for module 'unistr/u8-set'.
63578         * modules/unistr/u8-set-tests: New file.
63579         * tests/unistr/test-u8-set.c: New file.
63580         * tests/unistr/test-set.h: New file.
63582         Tests for module 'unistr/u32-move'.
63583         * modules/unistr/u32-move-tests: New file.
63584         * tests/unistr/test-u32-move.c: New file.
63586         Tests for module 'unistr/u16-move'.
63587         * modules/unistr/u16-move-tests: New file.
63588         * tests/unistr/test-u16-move.c: New file.
63590         Tests for module 'unistr/u8-move'.
63591         * modules/unistr/u8-move-tests: New file.
63592         * tests/unistr/test-u8-move.c: New file.
63593         * tests/unistr/test-move.h: New file.
63595         Tests for module 'unistr/u32-cpy'.
63596         * modules/unistr/u32-cpy-tests: New file.
63597         * tests/unistr/test-u32-cpy.c: New file.
63599         Tests for module 'unistr/u16-cpy'.
63600         * modules/unistr/u16-cpy-tests: New file.
63601         * tests/unistr/test-u16-cpy.c: New file.
63603         Tests for module 'unistr/u8-cpy'.
63604         * modules/unistr/u8-cpy-tests: New file.
63605         * tests/unistr/test-u8-cpy.c: New file.
63606         * tests/unistr/test-cpy.h: New file.
63608 2010-01-09  Bruno Haible  <bruno@clisp.org>
63610         Tests for module 'unistr/u32-uctomb'.
63611         * modules/unistr/u32-uctomb-tests: New file.
63612         * tests/unistr/test-u32-uctomb.c: New file.
63614         Tests for module 'unistr/u16-uctomb'.
63615         * modules/unistr/u16-uctomb-tests: New file.
63616         * tests/unistr/test-u16-uctomb.c: New file.
63618         Tests for module 'unistr/u8-uctomb'.
63619         * modules/unistr/u8-uctomb-tests: New file.
63620         * tests/unistr/test-u8-uctomb.c: New file.
63622         Tests for module 'unistr/u32-mbtoucr'.
63623         * modules/unistr/u32-mbtoucr-tests: New file.
63624         * tests/unistr/test-u32-mbtoucr.c: New file.
63626         Tests for module 'unistr/u16-mbtoucr'.
63627         * modules/unistr/u16-mbtoucr-tests: New file.
63628         * tests/unistr/test-u16-mbtoucr.c: New file.
63630         Tests for module 'unistr/u8-mbtoucr'.
63631         * modules/unistr/u8-mbtoucr-tests: New file.
63632         * tests/unistr/test-u8-mbtoucr.c: New file.
63634         Tests for module 'unistr/u32-mbtouc'.
63635         * modules/unistr/u32-mbtouc-tests: New file.
63636         * tests/unistr/test-u32-mbtouc.c: New file.
63638         Tests for module 'unistr/u16-mbtouc'.
63639         * modules/unistr/u16-mbtouc-tests: New file.
63640         * tests/unistr/test-u16-mbtouc.c: New file.
63642         Tests for module 'unistr/u8-mbtouc'.
63643         * modules/unistr/u8-mbtouc-tests: New file.
63644         * tests/unistr/test-u8-mbtouc.c: New file.
63646         Tests for module 'unistr/u32-mbtouc-unsafe'.
63647         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
63648         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
63649         * tests/unistr/test-u32-mbtouc.h: New file.
63651         Tests for module 'unistr/u16-mbtouc-unsafe'.
63652         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
63653         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
63654         * tests/unistr/test-u16-mbtouc.h: New file.
63656         Tests for module 'unistr/u8-mbtouc-unsafe'.
63657         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
63658         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
63659         * tests/unistr/test-u8-mbtouc.h: New file.
63661         Tests for module 'unistr/u32-mblen'.
63662         * modules/unistr/u32-mblen-tests: New file.
63663         * tests/unistr/test-u32-mblen.c: New file.
63665         Tests for module 'unistr/u16-mblen'.
63666         * modules/unistr/u16-mblen-tests: New file.
63667         * tests/unistr/test-u16-mblen.c: New file.
63669         Tests for module 'unistr/u8-mblen'.
63670         * modules/unistr/u8-mblen-tests: New file.
63671         * tests/unistr/test-u8-mblen.c: New file.
63673         Tests for module 'unistr/u32-to-u16'.
63674         * modules/unistr/u32-to-u16-tests: New file.
63675         * tests/unistr/test-u32-to-u16.c: New file.
63677         Tests for module 'unistr/u32-to-u8'.
63678         * modules/unistr/u32-to-u8-tests: New file.
63679         * tests/unistr/test-u32-to-u8.c: New file.
63681         Tests for module 'unistr/u16-to-u32'.
63682         * modules/unistr/u16-to-u32-tests: New file.
63683         * tests/unistr/test-u16-to-u32.c: New file.
63685         Tests for module 'unistr/u16-to-u8'.
63686         * modules/unistr/u16-to-u8-tests: New file.
63687         * tests/unistr/test-u16-to-u8.c: New file.
63689         Tests for module 'unistr/u8-to-u32'.
63690         * modules/unistr/u8-to-u32-tests: New file.
63691         * tests/unistr/test-u8-to-u32.c: New file.
63693         Tests for module 'unistr/u8-to-u16'.
63694         * modules/unistr/u8-to-u16-tests: New file.
63695         * tests/unistr/test-u8-to-u16.c: New file.
63697         Tests for module 'unistr/u32-check'.
63698         * modules/unistr/u32-check-tests: New file.
63699         * tests/unistr/test-u32-check.c: New file.
63701         Tests for module 'unistr/u16-check'.
63702         * modules/unistr/u16-check-tests: New file.
63703         * tests/unistr/test-u16-check.c: New file.
63705         Tests for module 'unistr/u8-check'.
63706         * modules/unistr/u8-check-tests: New file.
63707         * tests/unistr/test-u8-check.c: New file.
63709         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
63710         (category_equals): New function.
63711         (main): Add more tests.
63712         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
63714         * tests/unictype/test-bidi_byname.c (main): Add more tests.
63716 2010-01-10  Bruno Haible  <bruno@clisp.org>
63718         unistr/u*-strcoll: Try harder to distinguish different strings.
63719         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
63720         compare s1 and s2 to see if they are different.
63722 2010-01-10  Bruno Haible  <bruno@clisp.org>
63724         unistr/u*-stpncpy: Fix the return value.
63725         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
63726         description of the return value consistent with stpncpy in glibc.
63727         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
63728         written non-NUL unit.
63730 2010-01-10  Bruno Haible  <bruno@clisp.org>
63732         unistr/u*-next: Add missing dependencies.
63733         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
63734         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
63735         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
63737 2010-01-10  Bruno Haible  <bruno@clisp.org>
63739         unistr/u8-mbsnlen: Fix return value for incomplete character.
63740         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
63741         u8_mblen.
63742         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
63743         Remove unistr/u8-mblen.
63744         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
63745         u16_mblen.
63746         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
63747         Remove unistr/u16-mblen.
63749 2010-01-10  Bruno Haible  <bruno@clisp.org>
63751         wchar: Fix compilation error when <wchar.h> is used from coreutils.
63752         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
63753         Reported by Brian Gough <bjg@gnu.org> and
63754         Chris Clayton <chris2553@googlemail.com> via
63755         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
63757 2010-01-09  Bruno Haible  <bruno@clisp.org>
63759         unistr/u16-to-u32: Reject invalid input.
63760         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
63761         u16_mbtouc.
63762         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
63763         Remove unistr/u16-mbtouc.
63765         unistr/u16-to-u8: Reject invalid input.
63766         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
63767         u16_mbtouc.
63768         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
63769         Remove unistr/u16-mbtouc.
63771         unistr/u8-to-u32: Reject invalid input.
63772         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
63773         u8_mbtouc.
63774         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
63775         Remove unistr/u8-mbtouc.
63777         unistr/u8-to-u16: Reject invalid input.
63778         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
63779         u8_mbtouc.
63780         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
63781         Remove unistr/u8-mbtouc.
63783 2010-01-09  Bruno Haible  <bruno@clisp.org>
63785         Tests for module 'getlogin'.
63786         * modules/getlogin-tests: New file.
63787         * tests/test-getlogin.c: New file.
63789         New module 'getlogin'.
63790         * lib/unistd.in.h (getlogin): New declaration.
63791         * lib/getlogin.c: New file.
63792         * m4/getlogin.m4: New file.
63793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
63794         HAVE_GETLOGIN.
63795         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
63796         HAVE_GETLOGIN.
63797         * modules/getlogin: New file.
63798         * doc/posix-functions/getlogin.texi: Mention the new module.
63799         Reported by John W. Eaton <jwe@gnu.org>.
63801 2010-01-09  Bruno Haible  <bruno@clisp.org>
63803         getlogin_r: Support for native Windows.
63804         * lib/getlogin_r.c: Include <windows.h>
63805         (getlogin_r): Implement for native Windows.
63806         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
63807         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
63808         via John W. Eaton <jwe@gnu.org>.
63810 2010-01-09  Bruno Haible  <bruno@clisp.org>
63812         getlogin_r: Small fixes.
63813         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
63814         succeeds.
63815         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
63816         before testing whether getlogin_r is declared. No need to set
63817         HAVE_DECL_GETLOGIN_R to 1.
63818         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
63820 2010-01-09  Bruno Haible  <bruno@clisp.org>
63822         * lib/unistd.in.h (getlogin_r): Add comment.
63824 2010-01-09  Bruno Haible  <bruno@clisp.org>
63826         Tests for module 'getlogin_r'.
63827         * modules/getlogin_r-tests: New file.
63828         * tests/test-getlogin_r.c: New file.
63830 2010-01-09  Jim Meyering  <meyering@redhat.com>
63832         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
63833         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
63834         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
63836 2010-01-08  Simon Josefsson  <simon@josefsson.org>
63838         * lib/dup2.c (rpl_dup2): Improve comment.
63840 2010-01-08  Eric Blake  <ebb9@byu.net>
63842         maint.mk: allow packages to add makefile @@ exceptions
63843         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
63844         (sc_makefile_check): Rename...
63845         (sc_makefile_at_at_check): ...to this, and use hook.
63847         dup2: work around mingw bug
63848         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
63849         Reported by Simon Josefsson.
63851 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
63853         glob: Fix C++ compilation.
63854         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
63855         C++.
63857 2010-01-07  Bruno Haible  <bruno@clisp.org>
63859         Fix indentation of wctype.in.h, broken since 2007-01-06.
63860         * lib/wctype.in.h: Fix indentation of preprocessor directives.
63862 2010-01-07  Bruno Haible  <bruno@clisp.org>
63864         mbslen: Avoid collision with system function.
63865         * lib/string.in.h [MirBSD]: Include <wchar.h>.
63866         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
63867         * m4/mbslen.m4: New file.
63868         * modules/mbslen (Files): Add it.
63869         (configure.ac): Invoke gl_MBSLEN.
63870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
63871         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
63872         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
63873         via Ian Beckwith <ianb@erislabs.net>.
63875 2010-01-07  Bruno Haible  <bruno@clisp.org>
63877         dirent: Document the last fix.
63878         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
63880 2010-01-07  Bruno Haible  <bruno@clisp.org>
63882         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
63883         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
63884         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
63885         va_list are defined.
63886         * doc/posix-headers/stdio.texi: Document the bug of missing types.
63887         Reported by Eric Blake.
63889 2010-01-07  Bruno Haible  <bruno@clisp.org>
63891         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
63892         * modules/xlist (Depends-on): Add 'list',
63893         * modules/xoset (Depends-on): Add 'oset'.
63894         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63896 2010-01-07  Bruno Haible  <bruno@clisp.org>
63898         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
63899         * doc/posix-functions/strncasecmp.texi: Likewise.
63901 2010-01-07  Bruno Haible  <bruno@clisp.org>
63903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
63905 2010-01-07  John W. Eaton  <jwe@octave.org>
63907         wctype: allow C++ use
63908         * lib/wctype.in.h: Add extern "C" block for C++.
63910 2010-01-06  Eric Blake  <ebb9@byu.net>
63912         maint.mk: detect incorrect GFDL usage
63913         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
63915 2010-01-06  Jim Meyering  <meyering@redhat.com>
63916         and Eric Blake  <ebb9@byu.net>
63918         maint.mk: ignore multi-line copyright in NEWS
63919         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
63921 2010-01-06  Eric Blake  <ebb9@byu.net>
63923         select: add missing dependency
63924         * modules/select-tests (Depends-on): Move sockets dependency...
63925         * modules/select (Depends-on): ...here.
63926         Reported by Ian Beckwith.
63928         doc: regenerate INSTALL
63929         * doc/INSTALL: Reflect recent autoconf update.
63930         * doc/INSTALL.ISO: Likewise.
63931         * doc/INSTALL.UTF-8: Likewise.
63933         pread: fix compilation on glibc
63934         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
63935         Reported by Ralf Wildenhues.
63937         dirent: fix test failure
63938         * lib/dirent.in.h (includes): Guarantee ino_t.
63939         Reported by Ralf Wildenhues.
63941 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
63943         linkat, renameat: avoid bad free
63944         * lib/at-func2.c (at_func2): Fix typo.
63945         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
63947 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63949         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
63950         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
63951         to avoid failure of symlink test later.
63953 2010-01-06  Eric Blake  <ebb9@byu.net>
63955         stdio, unistd: guarantee ssize_t
63956         * lib/unistd.in.h (includes): Ensure that types required by POSIX
63957         2008 are exposed when needed.
63958         * lib/stdio.in.h (includes): Likewise.
63959         Reported by Ralf Wildenhues.
63961 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
63963         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
63964         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
63965         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
63967 2010-01-06  Jim Meyering  <meyering@redhat.com>
63969         readtokens: this module *does* require xalloc.h
63970         It uses only functions that were omitted by the old syntax-check rule.
63971         * lib/readtokens.c: Include "xalloc.h" once again.
63972         * modules/readtokens (Depends-on): Add xalloc.
63973         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
63975 2010-01-05  Eric Blake  <ebb9@byu.net>
63977         maint: support 'make announcement' from a VPATH build
63978         * top/maint.mk (announcement): Look for correct NEWS file.
63980 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
63982         utimens (fdutimens): ignore a negative FD, per contract
63983         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
63984         when we have a valid file descriptor.  Otherwise, using a brand
63985         new glibc (with just-patched futimens that now fails with EBADF)
63986         would cause this function to fail with ENOSYS.
63987         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
63988         See also http://bugzilla.redhat.com/552320.
63990 2010-01-05  Eric Blake  <ebb9@byu.net>
63992         strcase: document what it provides
63993         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
63994         gnulib module.
63995         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
63996         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
63998 2010-01-05  Jim Meyering  <meyering@redhat.com>
64000         maint: remove useless inclusions of "xalloc.h"
64001         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
64002         * lib/readtokens.c: Likewise.
64003         * lib/same.c: Likewise.
64004         * modules/getloadavg (Depends-on): Remove xalloc.
64005         * modules/readtokens: Likewise.
64006         * modules/same: Likewise.
64008         maint.mk: include 4 more function names in alloca.h-checking regexp
64009         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
64010         regexp.  Before, we would give a false-positive (saying alloca.h
64011         is included unnecessarily) when the only uses involved omitted symbols.
64013         xalloc.h: use consistent formatting
64014         * lib/xalloc.h: Move declarations to start in the first column.
64016 2010-01-05  Eric Blake  <ebb9@byu.net>
64018         mkdir: avoid xalloc
64019         * lib/mkdir.c (includes): Drop unused header.
64020         Reported by John W. Eaton.
64022 2010-01-04  Jim Meyering  <meyering@redhat.com>
64024         nl_langinfo: avoid configure-time syntax error
64025         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
64026         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
64027         the empty string.  Don't let that provoke a shell syntax error.
64029         regcomp, regexec, fnmatch: avoid array bounds read error
64030         * lib/regcomp.c (build_equiv_class): From glibc:
64031         Use only the low 24 bits of a findidx return value as an index
64032         into the weights array.  Patch by Ulrich Drepper:
64033         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
64034         * lib/regexec.c (check_node_accept_bytes): Likewise.
64035         * lib/fnmatch_loop.c (FCT): Likewise.
64037         regcomp: skip collseq lookup when there are no rules
64038         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
64039         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
64041         regcomp: recognize ill-formed { } expressions
64042         * lib/regcomp.c (parse_dup_op): From glibc:
64043         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
64045         regcomp: fix typo in comment
64046         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
64047         s/satisfy/satisfies/.
64049         regcomp: sync from glibc: remove dead store
64050         * lib/regcomp.c (duplicate_node_closure): Remove useless
64051         search_duplicated_node call and dead store.
64053         regcomp: sync from glibc; always use nl_langinfo
64054         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
64055         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
64056         * modules/regex (Depends-on): Add nl_langinfo.
64058 2010-01-04  Eric Blake  <ebb9@byu.net>
64060         fdopendir: fix configure test
64061         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
64063 2010-01-01  Bruno Haible  <bruno@clisp.org>
64065         wchar: Remove unused configure check.
64066         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
64068 2010-01-01  Eric Blake  <ebb9@byu.net>
64070         headers: make check of system header explicit
64071         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
64072         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
64073         ourselves.
64074         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
64075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
64077         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
64078         internals.
64079         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
64080         missing.
64081         Suggested by Bruno Haible.
64083 2010-01-01  Jim Meyering  <meyering@redhat.com>
64085         ChangeLog: tweak to eliminate unnecessary copyright line
64086         * ChangeLog: Remove a copyright line that was mistakenly updated
64087         by today's update-copyright run.  Reported by Eric Blake.
64089         test-update-copyright: don't let envvar setting cause test failure
64090         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
64092 2010-01-01  Bruno Haible  <bruno@clisp.org>
64094         localename: Avoid gcc warning.
64095         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
64096         function if it is not used.
64098 2010-01-01  Jim Meyering  <meyering@redhat.com>
64100         update nearly all FSF copyright year lists to include 2010
64101         Use the same procedure as for 2009, outlined in
64102         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
64104         version-etc: set COPYRIGHT_YEAR to 2010
64105         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
64107 2009-12-31  Eric Blake  <ebb9@byu.net>
64109         doc: correct availability of cygwin 1.5.x getopt
64110         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
64111         variables.
64112         * doc/posix-functions/opterr.texi (opterr): Likewise.
64113         * doc/posix-functions/optind.texi (optind): Likewise.
64114         * doc/posix-functions/optopt.texi (optopt): Likewise.
64115         * doc/posix-functions/tzname.texi (tzname): Likewise.
64117         openat: update maintainer
64118         * modules/openat (Maintainer): Add myself.
64120         utimens: avoid shadowing warning
64121         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
64122         buffers into one, to avoid shadowing, as well as avoiding a
64123         redundant stat.
64124         Reported by Jim Meyering.
64126         test-dup2: avoid compiler warning
64127         * tests/test-dup2.c (is_inheritable): Only define if used.
64129 2010-01-01  Bruno Haible  <bruno@clisp.org>
64131         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
64132         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
64133         defined, use wctomb instead of wcrtomb.
64135 2010-01-01  Bruno Haible  <bruno@clisp.org>
64137         iconv: Reject native Solaris iconv.
64138         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
64139         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
64141 2009-12-31  Bruno Haible  <bruno@clisp.org>
64143         * tests/test-signal.c (main): Remove test of 'SIG'.
64145 2009-12-31  Bruno Haible  <bruno@clisp.org>
64147         spawn: Fix incomplete fix.
64148         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
64149         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
64150         warnings for GNULIB_POSIXCHECK again.
64151         Reported by Eric Blake.
64153 2009-12-31  Bruno Haible  <bruno@clisp.org>
64155         Avoid namespace pollution on glibc systems.
64156         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
64157         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
64158         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
64159         glibc systems.
64161 2009-12-31  Bruno Haible  <bruno@clisp.org>
64163         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
64164         (gl_REPLACE_WCHAR_H): Turn into a no-op.
64165         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
64166         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
64167         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
64168         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
64169         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
64171 2009-12-31  Bruno Haible  <bruno@clisp.org>
64173         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
64174         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
64175         afterwards.
64177 2009-12-31  Bruno Haible  <bruno@clisp.org>
64179         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
64180         SYS_UTSNAME_H.
64182 2009-12-31  Bruno Haible  <bruno@clisp.org>
64184         spawn: Fix misapplied patch.
64185         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
64186         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
64187         warnings for GNULIB_POSIXCHECK.
64189 2009-12-31  Bruno Haible  <bruno@clisp.org>
64191         times: Update after sys_times changed.
64192         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
64193         * modules/times (Files): Add it.
64194         (configure.ac): Invoke gl_FUNC_TIMES.
64196 2009-12-31  Bruno Haible  <bruno@clisp.org>
64198         Use AC_C_INLINE where necessary.
64199         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
64200         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
64201         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
64202         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64203         * m4/mbfile.m4 (gl_MBFILE): Likewise.
64204         * m4/mbiter.m4 (gl_MBITER): Likewise.
64205         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64206         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64207         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
64208         * modules/u64 (configure.ac): Likewise.
64210 2009-12-31  Bruno Haible  <bruno@clisp.org>
64212         Use AC_C_INLINE instead of module 'inline' where possible.
64213         * modules/inline (Description): Clarify purpose.
64214         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
64215         * modules/count-one-bits (Depends-on): Remove inline.
64216         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
64217         * modules/openat (Depends-on): Remove inline.
64218         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
64219         instead of depending on module 'inline'.
64220         * modules/filevercmp (Depends-on, configure.ac): Likewise.
64221         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
64222         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
64223         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
64224         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
64225         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
64226         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
64227         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
64228         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
64229         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
64230         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
64231         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
64232         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
64233         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
64234         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
64235         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
64236         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
64237         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
64238         Likewise.
64239         * modules/unictype/property-ascii-hex-digit (Depends-on,
64240         configure.ac): Likewise.
64241         * modules/unictype/property-bidi-arabic-digit (Depends-on,
64242         configure.ac): Likewise.
64243         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
64244         configure.ac): Likewise.
64245         * modules/unictype/property-bidi-block-separator (Depends-on,
64246         configure.ac): Likewise.
64247         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
64248         configure.ac): Likewise.
64249         * modules/unictype/property-bidi-common-separator (Depends-on,
64250         configure.ac): Likewise.
64251         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
64252         Likewise.
64253         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
64254         configure.ac): Likewise.
64255         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
64256         configure.ac): Likewise.
64257         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
64258         configure.ac): Likewise.
64259         * modules/unictype/property-bidi-european-digit (Depends-on,
64260         configure.ac): Likewise.
64261         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
64262         configure.ac): Likewise.
64263         * modules/unictype/property-bidi-left-to-right (Depends-on,
64264         configure.ac): Likewise.
64265         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
64266         configure.ac): Likewise.
64267         * modules/unictype/property-bidi-other-neutral (Depends-on,
64268         configure.ac): Likewise.
64269         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
64270         Likewise.
64271         * modules/unictype/property-bidi-segment-separator (Depends-on,
64272         configure.ac): Likewise.
64273         * modules/unictype/property-bidi-whitespace (Depends-on,
64274         configure.ac): Likewise.
64275         * modules/unictype/property-combining (Depends-on, configure.ac):
64276         Likewise.
64277         * modules/unictype/property-composite (Depends-on, configure.ac):
64278         Likewise.
64279         * modules/unictype/property-currency-symbol (Depends-on,
64280         configure.ac): Likewise.
64281         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
64282         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
64283         Likewise.
64284         * modules/unictype/property-default-ignorable-code-point (Depends-on,
64285         configure.ac): Likewise.
64286         * modules/unictype/property-deprecated (Depends-on, configure.ac):
64287         Likewise.
64288         * modules/unictype/property-diacritic (Depends-on, configure.ac):
64289         Likewise.
64290         * modules/unictype/property-extender (Depends-on, configure.ac):
64291         Likewise.
64292         * modules/unictype/property-format-control (Depends-on, configure.ac):
64293         Likewise.
64294         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
64295         Likewise.
64296         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
64297         Likewise.
64298         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
64299         Likewise.
64300         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
64301         Likewise.
64302         * modules/unictype/property-hyphen (Depends-on, configure.ac):
64303         Likewise.
64304         * modules/unictype/property-id-continue (Depends-on, configure.ac):
64305         Likewise.
64306         * modules/unictype/property-id-start (Depends-on, configure.ac):
64307         Likewise.
64308         * modules/unictype/property-ideographic (Depends-on, configure.ac):
64309         Likewise.
64310         * modules/unictype/property-ids-binary-operator (Depends-on,
64311         configure.ac): Likewise.
64312         * modules/unictype/property-ids-trinary-operator (Depends-on,
64313         configure.ac): Likewise.
64314         * modules/unictype/property-ignorable-control (Depends-on,
64315         configure.ac): Likewise.
64316         * modules/unictype/property-iso-control (Depends-on, configure.ac):
64317         Likewise.
64318         * modules/unictype/property-join-control (Depends-on, configure.ac):
64319         Likewise.
64320         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
64321         Likewise.
64322         * modules/unictype/property-line-separator (Depends-on, configure.ac):
64323         Likewise.
64324         * modules/unictype/property-logical-order-exception (Depends-on,
64325         configure.ac): Likewise.
64326         * modules/unictype/property-lowercase (Depends-on, configure.ac):
64327         Likewise.
64328         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
64329         * modules/unictype/property-non-break (Depends-on, configure.ac):
64330         Likewise.
64331         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
64332         Likewise.
64333         * modules/unictype/property-numeric (Depends-on, configure.ac):
64334         Likewise.
64335         * modules/unictype/property-other-alphabetic (Depends-on,
64336         configure.ac): Likewise.
64337         * modules/unictype/property-other-default-ignorable-code-point
64338         (Depends-on, configure.ac): Likewise.
64339         * modules/unictype/property-other-grapheme-extend (Depends-on,
64340         configure.ac): Likewise.
64341         * modules/unictype/property-other-id-continue (Depends-on,
64342         configure.ac): Likewise.
64343         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
64344         Likewise.
64345         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
64346         Likewise.
64347         * modules/unictype/property-other-math (Depends-on, configure.ac):
64348         Likewise.
64349         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
64350         Likewise.
64351         * modules/unictype/property-paired-punctuation (Depends-on,
64352         configure.ac): Likewise.
64353         * modules/unictype/property-paragraph-separator (Depends-on,
64354         configure.ac): Likewise.
64355         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
64356         Likewise.
64357         * modules/unictype/property-pattern-white-space (Depends-on,
64358         configure.ac): Likewise.
64359         * modules/unictype/property-private-use (Depends-on, configure.ac):
64360         Likewise.
64361         * modules/unictype/property-punctuation (Depends-on, configure.ac):
64362         Likewise.
64363         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
64364         Likewise.
64365         * modules/unictype/property-radical (Depends-on, configure.ac):
64366         Likewise.
64367         * modules/unictype/property-sentence-terminal (Depends-on,
64368         configure.ac): Likewise.
64369         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
64370         Likewise.
64371         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
64372         * modules/unictype/property-terminal-punctuation (Depends-on,
64373         configure.ac): Likewise.
64374         * modules/unictype/property-titlecase (Depends-on, configure.ac):
64375         Likewise.
64376         * modules/unictype/property-unassigned-code-value (Depends-on,
64377         configure.ac): Likewise.
64378         * modules/unictype/property-unified-ideograph (Depends-on,
64379         configure.ac): Likewise.
64380         * modules/unictype/property-uppercase (Depends-on, configure.ac):
64381         Likewise.
64382         * modules/unictype/property-variation-selector (Depends-on,
64383         configure.ac): Likewise.
64384         * modules/unictype/property-white-space (Depends-on, configure.ac):
64385         Likewise.
64386         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
64387         Likewise.
64388         * modules/unictype/property-xid-start (Depends-on, configure.ac):
64389         Likewise.
64390         * modules/unictype/property-zero-width (Depends-on, configure.ac):
64391         Likewise.
64392         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
64393         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
64394         Likewise.
64396 2009-12-31  Bruno Haible  <bruno@clisp.org>
64398         Remove unnecessary AC_C_INLINE invocation.
64399         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
64400         since 2009-08-21.
64402 2009-12-31  Jim Meyering  <meyering@redhat.com>
64404         maint.mk: don't require explicit gpg_key_ID in cfg.mk
64405         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
64406         With this change, we can all remove the gpg_key_ID = ... definition
64407         from our respective cfg.mk files.
64409         maint.mk: create announcement template in ~/, not in /tmp
64410         * top/maint.mk (emit_upload_commands): Adjust.
64411         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
64412         Remove temporary file, .ci-msg.
64414 2009-12-31  Eric Blake  <ebb9@byu.net>
64416         link-warning: always build headers with link warnings
64417         * modules/arpa_inet (Makefile.am): Always build replacement
64418         header.
64419         * modules/ctype (Makefile.am): Likewise.
64420         * modules/dirent (Makefile.am): Likewise.
64421         * modules/inttypes (Makefile.am): Likewise.
64422         * modules/langinfo (Makefile.am): Likewise.
64423         * modules/locale (Makefile.am): Likewise.
64424         * modules/spawn (Makefile.am): Likewise.
64425         * modules/sys_file (Makefile.am): Likewise.
64426         * modules/sys_ioctl (Makefile.am): Likewise.
64427         * modules/sys_select (Makefile.am): Likewise.
64428         * modules/sys_socket (Makefile.am): Likewise.
64429         * modules/sys_times (Makefile.am): Likewise.
64430         * modules/sys_utsname (Makefile.am): Likewise.
64431         * modules/sys_wait (Makefile.am): Likewise.
64432         * modules/wchar (Makefile.am): Likewise.
64433         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
64434         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
64435         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
64436         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
64437         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
64438         Likewise.
64439         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
64440         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
64441         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
64442         Likewise.
64443         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
64444         Likewise.
64445         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
64446         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
64447         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
64448         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
64449         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
64450         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
64451         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
64452         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
64453         (gl_WCHAR_H_DEFAULTS): Likewise.
64455 2009-12-31  Eric Blake  <ebb9@byu.net>
64457         signal, spawn: use link warnings
64458         * lib/signal.in.h (sigset_t): Make unconditional.
64459         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
64460         (sigpending, sigprocmask, sigaction): Add link warnings.
64461         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
64462         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
64463         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
64464         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
64465         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
64466         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
64467         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
64468         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
64469         (posix_spawn_file_actions_destroy)
64470         (posix_spawn_file_actions_addopen)
64471         (posix_spawn_file_actions_addclose)
64472         (posix_spawn_file_actions_adddup2): Likewise.
64473         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
64474         * tests/test-signal.c (main): Enhance test.
64476         spawn: improve wrapper support
64477         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
64478         (gl_SPAWN_H_DEFAULTS): New defaults.
64479         * modules/spawn (Makefile.am): Substitute them.
64480         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
64481         Only declare if missing or broken.
64483         sys_times, sys_utsname: use include_next
64484         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
64485         header.
64486         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
64487         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
64488         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
64489         * modules/sys_times (Depends-on): Add include_next.
64490         (Makefile.am): Substitute additional values.
64491         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
64492         * lib/sys_times.in.h (includes): Include native header, if
64493         available.
64494         * lib/sys_utsname.in.h (includes): Likewise.
64495         * tests/test-sys_times.c (main): Enhance test.
64497         fdutimensat: revert prior patch
64498         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
64499         utimens.h.
64500         Reported by Bruno Haible.
64502 2009-12-30  Eric Blake  <ebb9@byu.net>
64504         sys_wait: drop link-warning dependency
64505         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
64506         link-warning efforts.
64507         * lib/sys_wait.in.h: Likewise.
64509         fdutimensat: remove bogus dependency
64510         * modules/fdutimensat (Depends-on): Drop inline.
64512         unistd: fix typo
64513         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
64515 2009-12-30  Bruno Haible  <bruno@clisp.org>
64517         Fix compilation error with Solaris cc.
64518         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
64519         * lib/unicase/u16-is-invariant.c: Likewise.
64520         * lib/unicase/u32-is-invariant.c: Likewise.
64521         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
64523 2009-12-30  Bruno Haible  <bruno@clisp.org>
64525         Fix test crash.
64526         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
64527         locales.
64528         Reported by Simon Josefsson <simon@josefsson.org>.
64530 2009-12-30  Bruno Haible  <bruno@clisp.org>
64532         Fix compilation error on most platforms.
64533         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
64534         Reported by Simon Josefsson <simon@josefsson.org>
64535         and Nelson H. F. Beebe <beebe@math.utah.edu>.
64537 2009-12-30  Eric Blake  <ebb9@byu.net>
64539         futimens, utimensat: work around ntfs-3g bug
64540         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
64541         a ctime bug is present, and expand workaround to cover ntfs-3g.
64542         * lib/utimens.c (fdutimens, lutimens): Likewise.
64543         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
64544         (validate_timespec): Adjust return value.
64545         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
64546         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
64547         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
64549 2009-12-29  Eric Blake  <ebb9@byu.net>
64551         link-warning: make usage consistent
64552         * modules/ctype (Depends-on): Add link-warning.
64553         (Makefile.am): Update rules accordingly.
64554         * modules/langinfo (Depends-on, Makefile.am): Likewise.
64555         * modules/locale (Depends-on, Makefile.am): Likewise.
64556         * modules/sys_file (Makefile.am): Likewise.
64557         * modules/getopt-posix (Makefile.am): Delete unused link warning
64558         efforts.
64559         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
64560         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
64561         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
64562         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
64564         stdio: remove unused variables
64565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
64566         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
64567         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
64569         tests: test more substitute headers
64570         * modules/ctype-tests: New file.
64571         * modules/dirent-tests: Likewise.
64572         * modules/spawn-tests: Likewise.
64573         * modules/sys_file-tests: Likewise.
64574         * modules/sys_ioctl-tests: Likewise.
64575         * modules/sys_wait-tests: Likewise.
64576         * tests/test-ctype.c: Likewise.
64577         * tests/test-dirent.c: Likewise.
64578         * tests/test-spawn.c: Likewise.
64579         * tests/test-sys_file.c: Likewise.
64580         * tests/test-sys_ioctl.c: Likewise.
64581         * tests/test-sys_wait.c: Likewise.
64582         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
64583         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
64584         whether or not flock is in use.
64586         tests: remove License section from module
64587         * modules/arpa_inet-tests: Remove unneeded section.
64588         * modules/byteswap-tests: Likewise.
64589         * modules/ceilf-tests: Likewise.
64590         * modules/ceill-tests: Likewise.
64591         * modules/crypto/des-tests: Likewise.
64592         * modules/crypto/gc-arcfour-tests: Likewise.
64593         * modules/crypto/gc-arctwo-tests: Likewise.
64594         * modules/crypto/gc-des-tests: Likewise.
64595         * modules/crypto/gc-hmac-md5-tests: Likewise.
64596         * modules/crypto/gc-hmac-sha1-tests: Likewise.
64597         * modules/crypto/gc-md2-tests: Likewise.
64598         * modules/crypto/gc-md4-tests: Likewise.
64599         * modules/crypto/gc-md5-tests: Likewise.
64600         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
64601         * modules/crypto/gc-rijndael-tests: Likewise.
64602         * modules/crypto/gc-sha1-tests: Likewise.
64603         * modules/crypto/gc-tests: Likewise.
64604         * modules/crypto/md2-tests: Likewise.
64605         * modules/crypto/md4-tests: Likewise.
64606         * modules/fcntl-h-tests: Likewise.
64607         * modules/floorf-tests: Likewise.
64608         * modules/floorl-tests: Likewise.
64609         * modules/frexp-nolibm-tests: Likewise.
64610         * modules/frexp-tests: Likewise.
64611         * modules/frexpl-nolibm-tests: Likewise.
64612         * modules/frexpl-tests: Likewise.
64613         * modules/getaddrinfo-tests: Likewise.
64614         * modules/inttypes-tests: Likewise.
64615         * modules/isfinite-tests: Likewise.
64616         * modules/isinf-tests: Likewise.
64617         * modules/ldexpl-tests: Likewise.
64618         * modules/locale-tests: Likewise.
64619         * modules/math-tests: Likewise.
64620         * modules/netdb-tests: Likewise.
64621         * modules/netinet_in-tests: Likewise.
64622         * modules/printf-frexp-tests: Likewise.
64623         * modules/printf-frexpl-tests: Likewise.
64624         * modules/priv-set-tests: Likewise.
64625         * modules/random_r-tests: Likewise.
64626         * modules/round-tests: Likewise.
64627         * modules/roundf-tests: Likewise.
64628         * modules/roundl-tests: Likewise.
64629         * modules/search-tests: Likewise.
64630         * modules/select-tests: Likewise.
64631         * modules/signal-tests: Likewise.
64632         * modules/stdbool-tests: Likewise.
64633         * modules/stddef-tests: Likewise.
64634         * modules/stdint-tests: Likewise.
64635         * modules/stdio-tests: Likewise.
64636         * modules/stdlib-tests: Likewise.
64637         * modules/string-tests: Likewise.
64638         * modules/strings-tests: Likewise.
64639         * modules/sys_select-tests: Likewise.
64640         * modules/sys_socket-tests: Likewise.
64641         * modules/sys_stat-tests: Likewise.
64642         * modules/sys_time-tests: Likewise.
64643         * modules/sys_utsname-tests: Likewise.
64644         * modules/sysexits-tests: Likewise.
64645         * modules/time-tests: Likewise.
64646         * modules/trunc-tests: Likewise.
64647         * modules/truncf-tests: Likewise.
64648         * modules/truncl-tests: Likewise.
64649         * modules/tsearch-tests: Likewise.
64650         * modules/unistd-tests: Likewise.
64651         * modules/wchar-tests: Likewise.
64652         * modules/wctype-tests: Likewise.
64654         tests: fix license on several tests
64655         * tests/test-des.c: Update to GPLv3+.
64656         * tests/test-flock.c: Likewise.
64657         * tests/test-fsync.c: Likewise.
64658         * tests/test-futimens.h: Likewise.
64659         * tests/test-gc-arcfour.c: Likewise.
64660         * tests/test-gc-arctwo.c: Likewise.
64661         * tests/test-gc-des.c: Likewise.
64662         * tests/test-gc-hmac-md5.c: Likewise.
64663         * tests/test-gc-hmac-sha1.c: Likewise.
64664         * tests/test-gc-md2.c: Likewise.
64665         * tests/test-gc-md4.c: Likewise.
64666         * tests/test-gc-md5.c: Likewise.
64667         * tests/test-gc-pbkdf2-sha1.c: Likewise.
64668         * tests/test-gc-rijndael.c: Likewise.
64669         * tests/test-gc-sha1.c: Likewise.
64670         * tests/test-gc.c: Likewise.
64671         * tests/test-getcwd.c: Likewise.
64672         * tests/test-link.c: Likewise.
64673         * tests/test-link.h: Likewise.
64674         * tests/test-lutimens.h: Likewise.
64675         * tests/test-md2.c: Likewise.
64676         * tests/test-md4.c: Likewise.
64677         * tests/test-mkdir.h: Likewise.
64678         * tests/test-rename.c: Likewise.
64679         * tests/test-rename.h: Likewise.
64680         * tests/test-safe-alloc.c: Likewise.
64681         * tests/test-utimens-common.h: Likewise.
64682         * tests/test-utimens.h: Likewise.
64684         maint: sync license texts
64685         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
64686         * doc/gpl-3.0.texi: Revert copyright year update.
64687         * doc/lgpl-3.0.texi: Likewise.
64689 2009-12-29  Jim Meyering  <meyering@redhat.com>
64691         update nearly all FSF copyright year lists to include 2009
64692         The files named by the following are exempted:
64693             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
64694               test -f "$dst" && { echo "$dst"; continue; }
64695               test -d "$dst" || continue
64696               echo "$dst"/$(basename "$src")
64697             done > exempt
64698             git ls-files tests/unictype >> exempt
64699         In the remaining files, convert to all-interval notation if
64700         - there is already at least one year interval like 2000-2003
64701         - the file is maintained by me
64702         - the file is in lib/uni*/, where that style already prevails
64703         Otherwise, use update-copyright's default.
64705 2009-12-29  Simon Josefsson  <simon@josefsson.org>
64706         and Eric Blake  <ebb9@byu.net>
64708         tests: don't require debug system() to pass
64709         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
64710         * tests/test-rmdir.h (test_rmdir_func): Likewise.
64711         * tests/test-unlink.h (test_unlink_func): Likewise.
64712         * tests/test-fstatat.c (main): ...into callers.
64713         * tests/test-lstat.c (main): Likewise.
64714         * tests/test-rmdir.c (main): Likewise.
64715         * tests/test-unlink.c (main): Likewise.
64716         * tests/test-unlinkat.c (main): Likewise.
64717         * tests/test-areadlink-with-size.c (main): Don't require a
64718         debug-only system call to pass, aiding cross-testing to mingw.
64719         * tests/test-areadlink.c (main): Likewise.
64720         * tests/test-areadlinkat-with-size.c (main): Likewise.
64721         * tests/test-areadlinkat.c (main): Likewise.
64722         * tests/test-canonicalize-lgpl.c (main): Likewise.
64723         * tests/test-canonicalize.c (main): Likewise.
64724         * tests/test-chown.c (main): Likewise.
64725         * tests/test-fchownat.c (main): Likewise.
64726         * tests/test-lchown.c (main): Likewise.
64727         * tests/test-fdutimensat.c (main): Likewise.
64728         * tests/test-futimens.c (main): Likewise.
64729         * tests/test-link.c (main): Likewise.
64730         * tests/test-linkat.c (main): Likewise.
64731         * tests/test-mkdir.c (main): Likewise.
64732         * tests/test-mkdirat.c (main): Likewise.
64733         * tests/test-mkfifo.c (main): Likewise.
64734         * tests/test-mkfifoat.c (main): Likewise.
64735         * tests/test-mknod.c (main): Likewise.
64736         * tests/test-readlink.c (main): Likewise.
64737         * tests/test-remove.c (main): Likewise.
64738         * tests/test-rename.c (main): Likewise.
64739         * tests/test-renameat.c (main): Likewise.
64740         * tests/test-symlink.c (main): Likewise.
64741         * tests/test-symlinkat.c (main): Likewise.
64742         * tests/test-utimens.c (main): Likewise.
64743         * tests/test-utimensat.c (main): Likewise.
64745 2009-12-29  Simon Josefsson  <simon@josefsson.org>
64747         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
64748         on $(UNUSED_PARAMETER_H) to avoid build failure.
64750 2009-12-28  Jim Meyering  <meyering@redhat.com>
64752         update-copyright: you may specify a max. line length other than 72
64753         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
64755         maint: use consistent FSF copyright line syntax
64756         * lib/posixtm.c: Add missing comma in FSF copyright line.
64757         * lib/posixtm.h: Likewise.
64758         * lib/getugroups.c: Add missing ", Inc.".
64760         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
64761         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
64762         FSF copyright line.  Remove trailing blanks.
64764 2009-12-28  Eric Blake  <ebb9@byu.net>
64766         test-dup2: reduce dependencies
64767         * modules/cloexec (Configure.ac): Set witness.
64768         * modules/dup2-tests (Depends-on): Drop cloexec.
64769         * tests/test-dup2.c (main): Skip portion of test if cloexec module
64770         not present.
64771         Suggested by Bruno Haible.
64773 2009-12-26  Bruno Haible  <bruno@clisp.org>
64775         Remove an unneeded dependency.
64776         * modules/fseterr (Depends-on): Remove dup2.
64778 2009-12-26  Eric Blake  <ebb9@byu.net>
64780         tests: use macros.h in more places
64781         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
64782         (ASSERT_STREAM): Provide default of stderr.
64783         * tests/test-dirent-safer.c: Include macros.h, using alternate
64784         stream for assertions.
64785         * tests/test-dup-safer.c: Likewise.
64786         * tests/test-freopen-safer.c: Likewise.
64787         * tests/test-getopt.c: Likewise.
64788         * tests/test-openat-safer.c: Likewise.
64789         * tests/test-pipe.c: Likewise.
64790         * tests/test-popen-safer.c: Likewise.
64791         * modules/dirent-safer-tests (Files): Include macros.h.
64792         * modules/unistd-safer-tests (Files): Likewise.
64793         * modules/freopen-safer-tests (Files): Likewise.
64794         * modules/getopt-posix-tests (Files): Likewise.
64795         * modules/openat-safer-tests (Files): Likewise.
64796         * modules/pipe-tests (Files): Likewise.
64798 2009-12-26  Bruno Haible  <bruno@clisp.org>
64800         javacomp-script: Portability fix.
64801         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
64802         that it also works on Solaris.
64804 2009-12-26  Bruno Haible  <bruno@clisp.org>
64806         localename: Fix storage allocation of gl_locale_name_thread's result.
64807         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
64808         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
64809         all platforms that have 'uselocale'.
64810         (gl_locale_name_thread_unsafe): New function, extracted from
64811         gl_locale_name_thread.
64812         (gl_locale_name_thread): Call struniq on all platforms that have
64813         'uselocale'.
64814         * tests/test-localename.c (test_locale_name_thread): Check that the
64815         resulting strings are permanently allocated.
64816         * modules/localename-tests (Depends-on): Add strdup.
64818 2009-12-26  Bruno Haible  <bruno@clisp.org>
64820         * tests/test-localename.c (categories): Fill in the strings.
64822 2009-12-26  Jim Meyering  <meyering@redhat.com>
64824         isdir: complete the removal of m4/isdir.m4
64825         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
64827         isdir: clean up, since at least grep still uses it
64828         * lib/isdir.c: Include "isdir.h".
64829         (S_ISDIR): Remove now-unneeded definition.
64830         * modules/isdir (Files): Add lib/isdir.h.
64831         * lib/isdir.h: New file, with declaration.
64832         * m4/isdir.m4: Remove file -- unneeded.
64834 2009-12-25  Bruno Haible  <bruno@clisp.org>
64836         selinux-h: Make generated .h files standalone.
64837         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
64838         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
64839         * lib/se-selinux.in.h: Likewise.
64840         * modules/selinux-h (Depends-on): Add unused-parameter.
64841         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
64842         selinux/selinux.h and selinux/context.h.
64843         Suggested by Eric Blake.
64845 2009-12-25  Bruno Haible  <bruno@clisp.org>
64847         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
64848         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
64849         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
64850         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
64851         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
64853 2009-12-24  Bruno Haible  <bruno@clisp.org>
64855         openat: Fix warning.
64856         * lib/openat-proc.c: Include <unistd.h>.
64858 2009-12-24  Bruno Haible  <bruno@clisp.org>
64860         New module 'unused-parameter'.
64861         * build-aux/unused-parameter.h: New file, extracted from earlier
64862         gnulib-common.m4.
64863         * modules/unused-parameter: New file.
64864         * lib/unistr.h: Include unused-parameter.h.
64865         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
64866         _GL_UNUSED.
64867         * modules/unistr/base (Depends-on): Add unused-parameter.
64869 2009-12-24  Bruno Haible  <bruno@clisp.org>
64871         Add missing dependencies to 'extensions' module.
64872         * m4/extensions.m4: Add comment.
64873         * modules/accept4 (Depends-on): Add extensions.
64874         * modules/dup3 (Depends-on): Likewise.
64875         * modules/fcntl (Depends-on): Likewise.
64876         * modules/futimens (Depends-on): Likewise.
64877         * modules/mknod (Depends-on): Likewise.
64878         * modules/pipe2 (Depends-on): Likewise.
64879         * modules/stat-time (Depends-on): Likewise.
64880         * modules/strcasestr-simple (Depends-on): Likewise.
64881         * modules/strsignal (Depends-on): Likewise.
64882         * modules/utimensat (Depends-on): Likewise.
64883         * modules/localcharset (Depends-on): Likewise. Needed because of
64884         gl_FCNTL_O_FLAGS.
64885         * modules/wcrtomb (Depends-on): Likewise. Needed because of
64886         AC_TYPE_MBSTATE_T.
64887         * modules/wcsnrtombs (Depends-on): Likewise.
64888         * modules/wcsrtombs (Depends-on): Likewise.
64890 2009-12-24  Bruno Haible  <bruno@clisp.org>
64892         binary-io: Avoid gcc warning due to SET_BINARY.
64893         * lib/binary-io.h (SET_BINARY): Cast the result to void.
64894         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
64896 2009-12-24  Bruno Haible  <bruno@clisp.org>
64898         Avoid future namespace pollution on glibc systems.
64899         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
64900         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
64901         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
64902         glibc systems.
64904 2009-12-24  Bruno Haible  <bruno@clisp.org>
64906         Refactor common macros used in tests.
64907         * tests/macros.h: New file.
64908         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
64909         and/or <stdlib.h>, if appropriate.
64910         (ASSERT, SIZEOF): Remove macros.
64911         * tests/test-areadlink-with-size.c: Likewise.
64912         * tests/test-areadlinkat.c: Likewise.
64913         * tests/test-areadlinkat-with-size.c: Likewise.
64914         * tests/test-argmatch.c: Likewise.
64915         * tests/test-argv-iter.c: Likewise.
64916         * tests/test-array-mergesort.c: Likewise.
64917         * tests/test-array_list.c: Likewise.
64918         * tests/test-array_oset.c: Likewise.
64919         * tests/test-avltree_list.c: Likewise.
64920         * tests/test-avltree_oset.c: Likewise.
64921         * tests/test-avltreehash_list.c: Likewise.
64922         * tests/test-base64.c: Likewise.
64923         * tests/test-binary-io.c: Likewise.
64924         * tests/test-bitrotate.c: Likewise.
64925         * tests/test-btowc.c: Likewise.
64926         * tests/test-byteswap.c: Likewise.
64927         * tests/test-c-ctype.c: Likewise.
64928         * tests/test-c-stack.c: Likewise.
64929         * tests/test-c-strcasecmp.c: Likewise.
64930         * tests/test-c-strcasestr.c: Likewise.
64931         * tests/test-c-strncasecmp.c: Likewise.
64932         * tests/test-c-strstr.c: Likewise.
64933         * tests/test-canonicalize-lgpl.c: Likewise.
64934         * tests/test-canonicalize.c: Likewise.
64935         * tests/test-carray_list.c: Likewise.
64936         * tests/test-ceilf1.c: Likewise.
64937         * tests/test-ceilf2.c: Likewise.
64938         * tests/test-ceill.c: Likewise.
64939         * tests/test-chown.c: Likewise.
64940         * tests/test-cloexec.c: Likewise.
64941         * tests/test-copy-acl.c: Likewise.
64942         * tests/test-copy-file.c: Likewise.
64943         * tests/test-count-one-bits.c: Likewise.
64944         * tests/test-dprintf-posix.c: Likewise.
64945         * tests/test-dup2.c: Likewise.
64946         * tests/test-dup3.c: Likewise.
64947         * tests/test-duplocale.c: Likewise.
64948         * tests/test-fbufmode.c: Likewise.
64949         * tests/test-fchdir.c: Likewise.
64950         * tests/test-fchownat.c: Likewise.
64951         * tests/test-fcntl-safer.c: Likewise.
64952         * tests/test-fcntl.c: Likewise.
64953         * tests/test-fdopendir.c: Likewise.
64954         * tests/test-fdutimensat.c: Likewise.
64955         * tests/test-fflush2.c: Likewise.
64956         * tests/test-file-has-acl.c: Likewise.
64957         * tests/test-filevercmp.c: Likewise.
64958         * tests/test-flock.c: Likewise.
64959         * tests/test-floorf1.c: Likewise.
64960         * tests/test-floorf2.c: Likewise.
64961         * tests/test-floorl.c: Likewise.
64962         * tests/test-fnmatch.c: Likewise.
64963         * tests/test-fopen.h: Likewise.
64964         * tests/test-fpending.c: Likewise.
64965         * tests/test-fprintf-posix.c: Likewise.
64966         * tests/test-fpurge.c: Likewise.
64967         * tests/test-freadable.c: Likewise.
64968         * tests/test-freadahead.c: Likewise.
64969         * tests/test-freading.c: Likewise.
64970         * tests/test-freadptr.c: Likewise.
64971         * tests/test-freadptr2.c: Likewise.
64972         * tests/test-freadseek.c: Likewise.
64973         * tests/test-freopen.c: Likewise.
64974         * tests/test-frexp.c: Likewise.
64975         * tests/test-frexpl.c: Likewise.
64976         * tests/test-fseek.c: Likewise.
64977         * tests/test-fseeko.c: Likewise.
64978         * tests/test-fstatat.c: Likewise.
64979         * tests/test-fstrcmp.c: Likewise.
64980         * tests/test-fsync.c: Likewise.
64981         * tests/test-ftell.c: Likewise.
64982         * tests/test-ftello.c: Likewise.
64983         * tests/test-func.c: Likewise.
64984         * tests/test-futimens.c: Likewise.
64985         * tests/test-fwritable.c: Likewise.
64986         * tests/test-fwriting.c: Likewise.
64987         * tests/test-getcwd.c: Likewise.
64988         * tests/test-getdate.c: Likewise.
64989         * tests/test-getdelim.c: Likewise.
64990         * tests/test-getdtablesize.c: Likewise.
64991         * tests/test-getgroups.c: Likewise.
64992         * tests/test-getline.c: Likewise.
64993         * tests/test-getndelim2.c: Likewise.
64994         * tests/test-glob.c: Likewise.
64995         * tests/test-hash.c: Likewise.
64996         * tests/test-i-ring.c: Likewise.
64997         * tests/test-iconv-utf.c: Likewise.
64998         * tests/test-iconv.c: Likewise.
64999         * tests/test-idpriv-drop.c: Likewise.
65000         * tests/test-idpriv-droptemp.c: Likewise.
65001         * tests/test-inet_ntop.c: Likewise.
65002         * tests/test-inet_pton.c: Likewise.
65003         * tests/test-isblank.c: Likewise.
65004         * tests/test-isfinite.c: Likewise.
65005         * tests/test-isinf.c: Likewise.
65006         * tests/test-isnan.c: Likewise.
65007         * tests/test-isnand.h: Likewise.
65008         * tests/test-isnanf.h: Likewise.
65009         * tests/test-isnanl.h: Likewise.
65010         * tests/test-lchown.c: Likewise.
65011         * tests/test-ldexpl.c: Likewise.
65012         * tests/test-link.c: Likewise.
65013         * tests/test-linkat.c: Likewise.
65014         * tests/test-linked_list.c: Likewise.
65015         * tests/test-linkedhash_list.c: Likewise.
65016         * tests/test-localename.c: Likewise.
65017         * tests/test-lseek.c: Likewise.
65018         * tests/test-lstat.c: Likewise.
65019         * tests/test-mbmemcasecmp.c: Likewise.
65020         * tests/test-mbmemcasecoll.c: Likewise.
65021         * tests/test-mbrtowc.c: Likewise.
65022         * tests/test-mbscasecmp.c: Likewise.
65023         * tests/test-mbscasestr1.c: Likewise.
65024         * tests/test-mbscasestr2.c: Likewise.
65025         * tests/test-mbscasestr3.c: Likewise.
65026         * tests/test-mbscasestr4.c: Likewise.
65027         * tests/test-mbschr.c: Likewise.
65028         * tests/test-mbscspn.c: Likewise.
65029         * tests/test-mbsinit.c: Likewise.
65030         * tests/test-mbsncasecmp.c: Likewise.
65031         * tests/test-mbsnrtowcs.c: Likewise.
65032         * tests/test-mbspbrk.c: Likewise.
65033         * tests/test-mbspcasecmp.c: Likewise.
65034         * tests/test-mbsrchr.c: Likewise.
65035         * tests/test-mbsrtowcs.c: Likewise.
65036         * tests/test-mbsspn.c: Likewise.
65037         * tests/test-mbsstr1.c: Likewise.
65038         * tests/test-mbsstr2.c: Likewise.
65039         * tests/test-mbsstr3.c: Likewise.
65040         * tests/test-memchr.c: Likewise.
65041         * tests/test-memchr2.c: Likewise.
65042         * tests/test-memcmp.c: Likewise.
65043         * tests/test-memmem.c: Likewise.
65044         * tests/test-memrchr.c: Likewise.
65045         * tests/test-mkdir.c: Likewise.
65046         * tests/test-mkdirat.c: Likewise.
65047         * tests/test-mkfifo.c: Likewise.
65048         * tests/test-mkfifoat.c: Likewise.
65049         * tests/test-mknod.c: Likewise.
65050         * tests/test-nanosleep.c: Likewise.
65051         * tests/test-nl_langinfo.c: Likewise.
65052         * tests/test-obstack-printf.c: Likewise.
65053         * tests/test-open.c: Likewise.
65054         * tests/test-openat.c: Likewise.
65055         * tests/test-pipe-filter-gi1.c: Likewise.
65056         * tests/test-pipe-filter-gi2-main.c: Likewise.
65057         * tests/test-pipe-filter-ii1.c: Likewise.
65058         * tests/test-pipe-filter-ii2-main.c: Likewise.
65059         * tests/test-pipe2.c: Likewise.
65060         * tests/test-popen.h: Likewise.
65061         * tests/test-posixtm.c: Likewise.
65062         * tests/test-pread.c: Likewise.
65063         * tests/test-printf-frexp.c: Likewise.
65064         * tests/test-printf-frexpl.c: Likewise.
65065         * tests/test-printf-posix.c: Likewise.
65066         * tests/test-priv-set.c: Likewise.
65067         * tests/test-quotearg.c: Likewise.
65068         * tests/test-random_r.c: Likewise.
65069         * tests/test-rawmemchr.c: Likewise.
65070         * tests/test-rbtree_list.c: Likewise.
65071         * tests/test-rbtree_oset.c: Likewise.
65072         * tests/test-rbtreehash_list.c: Likewise.
65073         * tests/test-readlink.c: Likewise.
65074         * tests/test-remove.c: Likewise.
65075         * tests/test-rename.c: Likewise.
65076         * tests/test-renameat.c: Likewise.
65077         * tests/test-rmdir.c: Likewise.
65078         * tests/test-round1.c: Likewise.
65079         * tests/test-roundf1.c: Likewise.
65080         * tests/test-roundl.c: Likewise.
65081         * tests/test-safe-alloc.c: Likewise.
65082         * tests/test-sameacls.c: Likewise.
65083         * tests/test-set-mode-acl.c: Likewise.
65084         * tests/test-setenv.c: Likewise.
65085         * tests/test-sigaction.c: Likewise.
65086         * tests/test-signbit.c: Likewise.
65087         * tests/test-sleep.c: Likewise.
65088         * tests/test-snprintf-posix.c: Likewise.
65089         * tests/test-snprintf.c: Likewise.
65090         * tests/test-sprintf-posix.c: Likewise.
65091         * tests/test-stat-time.c: Likewise.
65092         * tests/test-stat.c: Likewise.
65093         * tests/test-strcasestr.c: Likewise.
65094         * tests/test-strchrnul.c: Likewise.
65095         * tests/test-strerror.c: Likewise.
65096         * tests/test-striconv.c: Likewise.
65097         * tests/test-striconveh.c: Likewise.
65098         * tests/test-striconveha.c: Likewise.
65099         * tests/test-strsignal.c: Likewise.
65100         * tests/test-strstr.c: Likewise.
65101         * tests/test-strtod.c: Likewise.
65102         * tests/test-strverscmp.c: Likewise.
65103         * tests/test-symlink.c: Likewise.
65104         * tests/test-symlinkat.c: Likewise.
65105         * tests/test-trunc1.c: Likewise.
65106         * tests/test-trunc2.c: Likewise.
65107         * tests/test-truncf1.c: Likewise.
65108         * tests/test-truncf2.c: Likewise.
65109         * tests/test-truncl.c: Likewise.
65110         * tests/test-uname.c: Likewise.
65111         * tests/test-unlink.c: Likewise.
65112         * tests/test-unlinkat.c: Likewise.
65113         * tests/test-unsetenv.c: Likewise.
65114         * tests/test-usleep.c: Likewise.
65115         * tests/test-utimens.c: Likewise.
65116         * tests/test-utimensat.c: Likewise.
65117         * tests/test-vasnprintf-posix.c: Likewise.
65118         * tests/test-vasnprintf-posix2.c: Likewise.
65119         * tests/test-vasnprintf.c: Likewise.
65120         * tests/test-vasprintf-posix.c: Likewise.
65121         * tests/test-vasprintf.c: Likewise.
65122         * tests/test-vdprintf-posix.c: Likewise.
65123         * tests/test-vfprintf-posix.c: Likewise.
65124         * tests/test-vprintf-posix.c: Likewise.
65125         * tests/test-vsnprintf-posix.c: Likewise.
65126         * tests/test-vsnprintf.c: Likewise.
65127         * tests/test-vsprintf-posix.c: Likewise.
65128         * tests/test-wcrtomb.c: Likewise.
65129         * tests/test-wcsnrtombs.c: Likewise.
65130         * tests/test-wcsrtombs.c: Likewise.
65131         * tests/test-wctype.c: Likewise.
65132         * tests/test-wcwidth.c: Likewise.
65133         * tests/test-xfprintf-posix.c: Likewise.
65134         * tests/test-xmemdup0.c: Likewise.
65135         * tests/test-xprintf-posix.c: Likewise.
65136         * tests/test-xvasprintf.c: Likewise.
65137         * tests/unicase/test-locale-language.c: Likewise.
65138         * tests/unicase/test-mapping-part1.h: Likewise.
65139         * tests/unicase/test-predicate-part1.h: Likewise.
65140         * tests/unicase/test-u8-casecmp.c: Likewise.
65141         * tests/unicase/test-u8-casecoll.c: Likewise.
65142         * tests/unicase/test-u8-casefold.c: Likewise.
65143         * tests/unicase/test-u8-is-cased.c: Likewise.
65144         * tests/unicase/test-u8-is-casefolded.c: Likewise.
65145         * tests/unicase/test-u8-is-lowercase.c: Likewise.
65146         * tests/unicase/test-u8-is-titlecase.c: Likewise.
65147         * tests/unicase/test-u8-is-uppercase.c: Likewise.
65148         * tests/unicase/test-u8-tolower.c: Likewise.
65149         * tests/unicase/test-u8-totitle.c: Likewise.
65150         * tests/unicase/test-u8-toupper.c: Likewise.
65151         * tests/unicase/test-u16-casecmp.c: Likewise.
65152         * tests/unicase/test-u16-casecoll.c: Likewise.
65153         * tests/unicase/test-u16-casefold.c: Likewise.
65154         * tests/unicase/test-u16-is-cased.c: Likewise.
65155         * tests/unicase/test-u16-is-casefolded.c: Likewise.
65156         * tests/unicase/test-u16-is-lowercase.c: Likewise.
65157         * tests/unicase/test-u16-is-titlecase.c: Likewise.
65158         * tests/unicase/test-u16-is-uppercase.c: Likewise.
65159         * tests/unicase/test-u16-tolower.c: Likewise.
65160         * tests/unicase/test-u16-totitle.c: Likewise.
65161         * tests/unicase/test-u16-toupper.c: Likewise.
65162         * tests/unicase/test-u32-casecmp.c: Likewise.
65163         * tests/unicase/test-u32-casecoll.c: Likewise.
65164         * tests/unicase/test-u32-casefold.c: Likewise.
65165         * tests/unicase/test-u32-is-cased.c: Likewise.
65166         * tests/unicase/test-u32-is-casefolded.c: Likewise.
65167         * tests/unicase/test-u32-is-lowercase.c: Likewise.
65168         * tests/unicase/test-u32-is-titlecase.c: Likewise.
65169         * tests/unicase/test-u32-is-uppercase.c: Likewise.
65170         * tests/unicase/test-u32-tolower.c: Likewise.
65171         * tests/unicase/test-u32-totitle.c: Likewise.
65172         * tests/unicase/test-u32-toupper.c: Likewise.
65173         * tests/unicase/test-ulc-casecmp.c: Likewise.
65174         * tests/unicase/test-ulc-casecoll.c: Likewise.
65175         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65176         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65177         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65178         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65179         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65180         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65181         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65182         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65183         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65184         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65185         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65186         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65187         * tests/unictype/test-bidi_byname.c: Likewise.
65188         * tests/unictype/test-bidi_name.c: Likewise.
65189         * tests/unictype/test-bidi_of.c: Likewise.
65190         * tests/unictype/test-bidi_test.c: Likewise.
65191         * tests/unictype/test-block_list.c: Likewise.
65192         * tests/unictype/test-block_of.c: Likewise.
65193         * tests/unictype/test-block_test.c: Likewise.
65194         * tests/unictype/test-categ_and.c: Likewise.
65195         * tests/unictype/test-categ_and_not.c: Likewise.
65196         * tests/unictype/test-categ_byname.c: Likewise.
65197         * tests/unictype/test-categ_name.c: Likewise.
65198         * tests/unictype/test-categ_none.c: Likewise.
65199         * tests/unictype/test-categ_of.c: Likewise.
65200         * tests/unictype/test-categ_or.c: Likewise.
65201         * tests/unictype/test-categ_test_withtable.c: Likewise.
65202         * tests/unictype/test-combining.c: Likewise.
65203         * tests/unictype/test-decdigit.c: Likewise.
65204         * tests/unictype/test-digit.c: Likewise.
65205         * tests/unictype/test-mirror.c: Likewise.
65206         * tests/unictype/test-numeric.c: Likewise.
65207         * tests/unictype/test-pr_byname.c: Likewise.
65208         * tests/unictype/test-pr_test.c: Likewise.
65209         * tests/unictype/test-predicate-part1.h: Likewise.
65210         * tests/unictype/test-scripts.c: Likewise.
65211         * tests/unictype/test-sy_c_ident.c: Likewise.
65212         * tests/unictype/test-sy_java_ident.c: Likewise.
65213         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
65214         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
65215         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
65216         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
65217         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
65218         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
65219         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
65220         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
65221         * tests/uninorm/test-canonical-decomposition.c: Likewise.
65222         * tests/uninorm/test-compat-decomposition.c: Likewise.
65223         * tests/uninorm/test-composition.c: Likewise.
65224         * tests/uninorm/test-decomposing-form.c: Likewise.
65225         * tests/uninorm/test-decomposition.c: Likewise.
65226         * tests/uninorm/test-u8-nfc.c: Likewise.
65227         * tests/uninorm/test-u8-nfd.c: Likewise.
65228         * tests/uninorm/test-u8-nfkc.c: Likewise.
65229         * tests/uninorm/test-u8-nfkd.c: Likewise.
65230         * tests/uninorm/test-u8-normcmp.c: Likewise.
65231         * tests/uninorm/test-u8-normcoll.c: Likewise.
65232         * tests/uninorm/test-u16-nfc.c: Likewise.
65233         * tests/uninorm/test-u16-nfd.c: Likewise.
65234         * tests/uninorm/test-u16-nfkc.c: Likewise.
65235         * tests/uninorm/test-u16-nfkd.c: Likewise.
65236         * tests/uninorm/test-u16-normcmp.c: Likewise.
65237         * tests/uninorm/test-u16-normcoll.c: Likewise.
65238         * tests/uninorm/test-u32-nfc.c: Likewise.
65239         * tests/uninorm/test-u32-nfd.c: Likewise.
65240         * tests/uninorm/test-u32-nfkc.c: Likewise.
65241         * tests/uninorm/test-u32-nfkd.c: Likewise.
65242         * tests/uninorm/test-u32-normalize-big.c: Likewise.
65243         * tests/uninorm/test-u32-normcmp.c: Likewise.
65244         * tests/uninorm/test-u32-normcoll.c: Likewise.
65245         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
65246         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65247         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65248         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65249         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65250         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65251         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65252         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65253         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65254         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65255         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65256         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65257         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65258         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65259         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65260         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65261         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65262         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65263         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65264         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65265         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65266         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65267         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65268         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65269         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65270         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65271         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65272         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65273         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65274         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
65275         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
65276         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
65277         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
65278         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65279         * tests/uniwidth/test-u8-width.c: Likewise.
65280         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65281         * tests/uniwidth/test-u16-width.c: Likewise.
65282         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65283         * tests/uniwidth/test-u32-width.c: Likewise.
65284         * tests/uniwidth/test-uc_width.c: Likewise.
65285         * tests/uniwidth/test-uc_width2.c: Likewise.
65286         * modules/acl-tests (Files): Add tests/macros.h.
65287         * modules/areadlink-tests (Files): Likewise.
65288         * modules/areadlink-with-size-tests (Files): Likewise.
65289         * modules/areadlinkat-tests (Files): Likewise.
65290         * modules/areadlinkat-with-size-tests (Files): Likewise.
65291         * modules/argmatch-tests (Files): Likewise.
65292         * modules/argv-iter-tests (Files): Likewise.
65293         * modules/array-list-tests (Files): Likewise.
65294         * modules/array-mergesort-tests (Files): Likewise.
65295         * modules/array-oset-tests (Files): Likewise.
65296         * modules/avltree-list-tests (Files): Likewise.
65297         * modules/avltree-oset-tests (Files): Likewise.
65298         * modules/avltreehash-list-tests (Files): Likewise.
65299         * modules/base64-tests (Files): Likewise.
65300         * modules/binary-io-tests (Files): Likewise.
65301         * modules/bitrotate-tests (Files): Likewise.
65302         * modules/btowc-tests (Files): Likewise.
65303         * modules/byteswap-tests (Files): Likewise.
65304         * modules/c-ctype-tests (Files): Likewise.
65305         * modules/c-stack-tests (Files): Likewise.
65306         * modules/c-strcase-tests (Files): Likewise.
65307         * modules/c-strcasestr-tests (Files): Likewise.
65308         * modules/c-strstr-tests (Files): Likewise.
65309         * modules/canonicalize-lgpl-tests (Files): Likewise.
65310         * modules/canonicalize-tests (Files): Likewise.
65311         * modules/carray-list-tests (Files): Likewise.
65312         * modules/ceilf-tests (Files): Likewise.
65313         * modules/ceill-tests (Files): Likewise.
65314         * modules/chown-tests (Files): Likewise.
65315         * modules/cloexec-tests (Files): Likewise.
65316         * modules/copy-file-tests (Files): Likewise.
65317         * modules/count-one-bits-tests (Files): Likewise.
65318         * modules/dprintf-posix-tests (Files): Likewise.
65319         * modules/dup2-tests (Files): Likewise.
65320         * modules/dup3-tests (Files): Likewise.
65321         * modules/duplocale-tests (Files): Likewise.
65322         * modules/fbufmode-tests (Files): Likewise.
65323         * modules/fchdir-tests (Files): Likewise.
65324         * modules/fcntl-safer-tests (Files): Likewise.
65325         * modules/fcntl-tests (Files): Likewise.
65326         * modules/fdopendir-tests (Files): Likewise.
65327         * modules/fdutimensat-tests (Files): Likewise.
65328         * modules/fflush-tests (Files): Likewise.
65329         * modules/filevercmp-tests (Files): Likewise.
65330         * modules/flock-tests (Files): Likewise.
65331         * modules/floorf-tests (Files): Likewise.
65332         * modules/floorl-tests (Files): Likewise.
65333         * modules/fnmatch-tests (Files): Likewise.
65334         * modules/fopen-safer-tests (Files): Likewise.
65335         * modules/fopen-tests (Files): Likewise.
65336         * modules/fpending-tests (Files): Likewise.
65337         * modules/fprintf-posix-tests (Files): Likewise.
65338         * modules/fpurge-tests (Files): Likewise.
65339         * modules/freadable-tests (Files): Likewise.
65340         * modules/freadahead-tests (Files): Likewise.
65341         * modules/freading-tests (Files): Likewise.
65342         * modules/freadptr-tests (Files): Likewise.
65343         * modules/freadseek-tests (Files): Likewise.
65344         * modules/freopen-tests (Files): Likewise.
65345         * modules/frexp-nolibm-tests (Files): Likewise.
65346         * modules/frexp-tests (Files): Likewise.
65347         * modules/frexpl-nolibm-tests (Files): Likewise.
65348         * modules/frexpl-tests (Files): Likewise.
65349         * modules/fseek-tests (Files): Likewise.
65350         * modules/fseeko-tests (Files): Likewise.
65351         * modules/fstrcmp-tests (Files): Likewise.
65352         * modules/fsync-tests (Files): Likewise.
65353         * modules/ftell-tests (Files): Likewise.
65354         * modules/ftello-tests (Files): Likewise.
65355         * modules/func-tests (Files): Likewise.
65356         * modules/futimens-tests (Files): Likewise.
65357         * modules/fwritable-tests (Files): Likewise.
65358         * modules/fwriting-tests (Files): Likewise.
65359         * modules/getcwd-tests (Files): Likewise.
65360         * modules/getdate-tests (Files): Likewise.
65361         * modules/getdelim-tests (Files): Likewise.
65362         * modules/getdtablesize-tests (Files): Likewise.
65363         * modules/getgroups-tests (Files): Likewise.
65364         * modules/getline-tests (Files): Likewise.
65365         * modules/getndelim2-tests (Files): Likewise.
65366         * modules/glob-tests (Files): Likewise.
65367         * modules/hash-tests (Files): Likewise.
65368         * modules/i-ring-tests (Files): Likewise.
65369         * modules/iconv-tests (Files): Likewise.
65370         * modules/iconv_open-utf-tests (Files): Likewise.
65371         * modules/idpriv-drop-tests (Files): Likewise.
65372         * modules/idpriv-droptemp-tests (Files): Likewise.
65373         * modules/inet_ntop-tests (Files): Likewise.
65374         * modules/inet_pton-tests (Files): Likewise.
65375         * modules/isblank-tests (Files): Likewise.
65376         * modules/isfinite-tests (Files): Likewise.
65377         * modules/isinf-tests (Files): Likewise.
65378         * modules/isnan-tests (Files): Likewise.
65379         * modules/isnand-nolibm-tests (Files): Likewise.
65380         * modules/isnand-tests (Files): Likewise.
65381         * modules/isnanf-nolibm-tests (Files): Likewise.
65382         * modules/isnanf-tests (Files): Likewise.
65383         * modules/isnanl-nolibm-tests (Files): Likewise.
65384         * modules/isnanl-tests (Files): Likewise.
65385         * modules/lchown-tests (Files): Likewise.
65386         * modules/ldexpl-tests (Files): Likewise.
65387         * modules/link-tests (Files): Likewise.
65388         * modules/linkat-tests (Files): Likewise.
65389         * modules/linked-list-tests (Files): Likewise.
65390         * modules/linkedhash-list-tests (Files): Likewise.
65391         * modules/localename-tests (Files): Likewise.
65392         * modules/lseek-tests (Files): Likewise.
65393         * modules/lstat-tests (Files): Likewise.
65394         * modules/mbmemcasecmp-tests (Files): Likewise.
65395         * modules/mbmemcasecoll-tests (Files): Likewise.
65396         * modules/mbrtowc-tests (Files): Likewise.
65397         * modules/mbscasecmp-tests (Files): Likewise.
65398         * modules/mbscasestr-tests (Files): Likewise.
65399         * modules/mbschr-tests (Files): Likewise.
65400         * modules/mbscspn-tests (Files): Likewise.
65401         * modules/mbsinit-tests (Files): Likewise.
65402         * modules/mbsncasecmp-tests (Files): Likewise.
65403         * modules/mbsnrtowcs-tests (Files): Likewise.
65404         * modules/mbspbrk-tests (Files): Likewise.
65405         * modules/mbspcasecmp-tests (Files): Likewise.
65406         * modules/mbsrchr-tests (Files): Likewise.
65407         * modules/mbsrtowcs-tests (Files): Likewise.
65408         * modules/mbsspn-tests (Files): Likewise.
65409         * modules/mbsstr-tests (Files): Likewise.
65410         * modules/memchr-tests (Files): Likewise.
65411         * modules/memchr2-tests (Files): Likewise.
65412         * modules/memcmp-tests (Files): Likewise.
65413         * modules/memmem-tests (Files): Likewise.
65414         * modules/memrchr-tests (Files): Likewise.
65415         * modules/mkdir-tests (Files): Likewise.
65416         * modules/mkfifo-tests (Files): Likewise.
65417         * modules/mkfifoat-tests (Files): Likewise.
65418         * modules/mknod-tests (Files): Likewise.
65419         * modules/nanosleep-tests (Files): Likewise.
65420         * modules/nl_langinfo-tests (Files): Likewise.
65421         * modules/obstack-printf-tests (Files): Likewise.
65422         * modules/open-tests (Files): Likewise.
65423         * modules/openat-tests (Files): Likewise.
65424         * modules/pipe-filter-gi-tests (Files): Likewise.
65425         * modules/pipe-filter-ii-tests (Files): Likewise.
65426         * modules/pipe2-tests (Files): Likewise.
65427         * modules/popen-safer-tests (Files): Likewise.
65428         * modules/popen-tests (Files): Likewise.
65429         * modules/posixtm-tests (Files): Likewise.
65430         * modules/pread-tests (Files): Likewise.
65431         * modules/printf-frexp-tests (Files): Likewise.
65432         * modules/printf-frexpl-tests (Files): Likewise.
65433         * modules/printf-posix-tests (Files): Likewise.
65434         * modules/priv-set-tests (Files): Likewise.
65435         * modules/quotearg-tests (Files): Likewise.
65436         * modules/random_r-tests (Files): Likewise.
65437         * modules/rawmemchr-tests (Files): Likewise.
65438         * modules/rbtree-list-tests (Files): Likewise.
65439         * modules/rbtree-oset-tests (Files): Likewise.
65440         * modules/rbtreehash-list-tests (Files): Likewise.
65441         * modules/readlink-tests (Files): Likewise.
65442         * modules/remove-tests (Files): Likewise.
65443         * modules/rename-tests (Files): Likewise.
65444         * modules/renameat-tests (Files): Likewise.
65445         * modules/rmdir-tests (Files): Likewise.
65446         * modules/round-tests (Files): Likewise.
65447         * modules/roundf-tests (Files): Likewise.
65448         * modules/roundl-tests (Files): Likewise.
65449         * modules/safe-alloc-tests (Files): Likewise.
65450         * modules/setenv-tests (Files): Likewise.
65451         * modules/sigaction-tests (Files): Likewise.
65452         * modules/signbit-tests (Files): Likewise.
65453         * modules/sleep-tests (Files): Likewise.
65454         * modules/snprintf-posix-tests (Files): Likewise.
65455         * modules/snprintf-tests (Files): Likewise.
65456         * modules/sprintf-posix-tests (Files): Likewise.
65457         * modules/stat-tests (Files): Likewise.
65458         * modules/stat-time-tests (Files): Likewise.
65459         * modules/strcasestr-tests (Files): Likewise.
65460         * modules/strchrnul-tests (Files): Likewise.
65461         * modules/strerror-tests (Files): Likewise.
65462         * modules/striconv-tests (Files): Likewise.
65463         * modules/striconveh-tests (Files): Likewise.
65464         * modules/striconveha-tests (Files): Likewise.
65465         * modules/strsignal-tests (Files): Likewise.
65466         * modules/strstr-tests (Files): Likewise.
65467         * modules/strtod-tests (Files): Likewise.
65468         * modules/strverscmp-tests (Files): Likewise.
65469         * modules/symlink-tests (Files): Likewise.
65470         * modules/symlinkat-tests (Files): Likewise.
65471         * modules/trunc-tests (Files): Likewise.
65472         * modules/truncf-tests (Files): Likewise.
65473         * modules/truncl-tests (Files): Likewise.
65474         * modules/uname-tests (Files): Likewise.
65475         * modules/unicase/cased-tests (Files): Likewise.
65476         * modules/unicase/ignorable-tests (Files): Likewise.
65477         * modules/unicase/locale-language-tests (Files): Likewise.
65478         * modules/unicase/tolower-tests (Files): Likewise.
65479         * modules/unicase/totitle-tests (Files): Likewise.
65480         * modules/unicase/toupper-tests (Files): Likewise.
65481         * modules/unicase/u8-casecmp-tests (Files): Likewise.
65482         * modules/unicase/u8-casecoll-tests (Files): Likewise.
65483         * modules/unicase/u8-casefold-tests (Files): Likewise.
65484         * modules/unicase/u8-is-cased-tests (Files): Likewise.
65485         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
65486         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
65487         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
65488         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
65489         * modules/unicase/u8-tolower-tests (Files): Likewise.
65490         * modules/unicase/u8-totitle-tests (Files): Likewise.
65491         * modules/unicase/u8-toupper-tests (Files): Likewise.
65492         * modules/unicase/u16-casecmp-tests (Files): Likewise.
65493         * modules/unicase/u16-casecoll-tests (Files): Likewise.
65494         * modules/unicase/u16-casefold-tests (Files): Likewise.
65495         * modules/unicase/u16-is-cased-tests (Files): Likewise.
65496         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
65497         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
65498         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
65499         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
65500         * modules/unicase/u16-tolower-tests (Files): Likewise.
65501         * modules/unicase/u16-totitle-tests (Files): Likewise.
65502         * modules/unicase/u16-toupper-tests (Files): Likewise.
65503         * modules/unicase/u32-casecmp-tests (Files): Likewise.
65504         * modules/unicase/u32-casecoll-tests (Files): Likewise.
65505         * modules/unicase/u32-casefold-tests (Files): Likewise.
65506         * modules/unicase/u32-is-cased-tests (Files): Likewise.
65507         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
65508         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
65509         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
65510         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
65511         * modules/unicase/u32-tolower-tests (Files): Likewise.
65512         * modules/unicase/u32-totitle-tests (Files): Likewise.
65513         * modules/unicase/u32-toupper-tests (Files): Likewise.
65514         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
65515         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
65516         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
65517         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
65518         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
65519         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
65520         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
65521         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
65522         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
65523         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
65524         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
65525         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
65526         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
65527         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
65528         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
65529         * modules/unictype/bidicategory-name-tests (Files): Likewise.
65530         * modules/unictype/bidicategory-of-tests (Files): Likewise.
65531         * modules/unictype/bidicategory-test-tests (Files): Likewise.
65532         * modules/unictype/block-list-tests (Files): Likewise.
65533         * modules/unictype/block-of-tests (Files): Likewise.
65534         * modules/unictype/block-test-tests (Files): Likewise.
65535         * modules/unictype/category-C-tests (Files): Likewise.
65536         * modules/unictype/category-Cc-tests (Files): Likewise.
65537         * modules/unictype/category-Cf-tests (Files): Likewise.
65538         * modules/unictype/category-Cn-tests (Files): Likewise.
65539         * modules/unictype/category-Co-tests (Files): Likewise.
65540         * modules/unictype/category-Cs-tests (Files): Likewise.
65541         * modules/unictype/category-L-tests (Files): Likewise.
65542         * modules/unictype/category-Ll-tests (Files): Likewise.
65543         * modules/unictype/category-Lm-tests (Files): Likewise.
65544         * modules/unictype/category-Lo-tests (Files): Likewise.
65545         * modules/unictype/category-Lt-tests (Files): Likewise.
65546         * modules/unictype/category-Lu-tests (Files): Likewise.
65547         * modules/unictype/category-M-tests (Files): Likewise.
65548         * modules/unictype/category-Mc-tests (Files): Likewise.
65549         * modules/unictype/category-Me-tests (Files): Likewise.
65550         * modules/unictype/category-Mn-tests (Files): Likewise.
65551         * modules/unictype/category-N-tests (Files): Likewise.
65552         * modules/unictype/category-Nd-tests (Files): Likewise.
65553         * modules/unictype/category-Nl-tests (Files): Likewise.
65554         * modules/unictype/category-No-tests (Files): Likewise.
65555         * modules/unictype/category-P-tests (Files): Likewise.
65556         * modules/unictype/category-Pc-tests (Files): Likewise.
65557         * modules/unictype/category-Pd-tests (Files): Likewise.
65558         * modules/unictype/category-Pe-tests (Files): Likewise.
65559         * modules/unictype/category-Pf-tests (Files): Likewise.
65560         * modules/unictype/category-Pi-tests (Files): Likewise.
65561         * modules/unictype/category-Po-tests (Files): Likewise.
65562         * modules/unictype/category-Ps-tests (Files): Likewise.
65563         * modules/unictype/category-S-tests (Files): Likewise.
65564         * modules/unictype/category-Sc-tests (Files): Likewise.
65565         * modules/unictype/category-Sk-tests (Files): Likewise.
65566         * modules/unictype/category-Sm-tests (Files): Likewise.
65567         * modules/unictype/category-So-tests (Files): Likewise.
65568         * modules/unictype/category-Z-tests (Files): Likewise.
65569         * modules/unictype/category-Zl-tests (Files): Likewise.
65570         * modules/unictype/category-Zp-tests (Files): Likewise.
65571         * modules/unictype/category-Zs-tests (Files): Likewise.
65572         * modules/unictype/category-and-not-tests (Files): Likewise.
65573         * modules/unictype/category-and-tests (Files): Likewise.
65574         * modules/unictype/category-byname-tests (Files): Likewise.
65575         * modules/unictype/category-name-tests (Files): Likewise.
65576         * modules/unictype/category-none-tests (Files): Likewise.
65577         * modules/unictype/category-of-tests (Files): Likewise.
65578         * modules/unictype/category-or-tests (Files): Likewise.
65579         * modules/unictype/category-test-withtable-tests (Files): Likewise.
65580         * modules/unictype/combining-class-tests (Files): Likewise.
65581         * modules/unictype/ctype-alnum-tests (Files): Likewise.
65582         * modules/unictype/ctype-alpha-tests (Files): Likewise.
65583         * modules/unictype/ctype-blank-tests (Files): Likewise.
65584         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
65585         * modules/unictype/ctype-digit-tests (Files): Likewise.
65586         * modules/unictype/ctype-graph-tests (Files): Likewise.
65587         * modules/unictype/ctype-lower-tests (Files): Likewise.
65588         * modules/unictype/ctype-print-tests (Files): Likewise.
65589         * modules/unictype/ctype-punct-tests (Files): Likewise.
65590         * modules/unictype/ctype-space-tests (Files): Likewise.
65591         * modules/unictype/ctype-upper-tests (Files): Likewise.
65592         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
65593         * modules/unictype/decimal-digit-tests (Files): Likewise.
65594         * modules/unictype/digit-tests (Files): Likewise.
65595         * modules/unictype/mirror-tests (Files): Likewise.
65596         * modules/unictype/numeric-tests (Files): Likewise.
65597         * modules/unictype/property-alphabetic-tests (Files): Likewise.
65598         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
65599         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
65600         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
65601         Likewise.
65602         * modules/unictype/property-bidi-block-separator-tests (Files):
65603         Likewise.
65604         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
65605         Likewise.
65606         * modules/unictype/property-bidi-common-separator-tests (Files):
65607         Likewise.
65608         * modules/unictype/property-bidi-control-tests (Files): Likewise.
65609         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
65610         Likewise.
65611         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
65612         Likewise.
65613         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
65614         Likewise.
65615         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
65616         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
65617         Likewise.
65618         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
65619         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
65620         Likewise.
65621         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
65622         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
65623         * modules/unictype/property-bidi-segment-separator-tests (Files):
65624         Likewise.
65625         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
65626         * modules/unictype/property-byname-tests (Files): Likewise.
65627         * modules/unictype/property-combining-tests (Files): Likewise.
65628         * modules/unictype/property-composite-tests (Files): Likewise.
65629         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
65630         * modules/unictype/property-dash-tests (Files): Likewise.
65631         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
65632         * modules/unictype/property-default-ignorable-code-point-tests (Files):
65633         Likewise.
65634         * modules/unictype/property-deprecated-tests (Files): Likewise.
65635         * modules/unictype/property-diacritic-tests (Files): Likewise.
65636         * modules/unictype/property-extender-tests (Files): Likewise.
65637         * modules/unictype/property-format-control-tests (Files): Likewise.
65638         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
65639         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
65640         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
65641         * modules/unictype/property-hex-digit-tests (Files): Likewise.
65642         * modules/unictype/property-hyphen-tests (Files): Likewise.
65643         * modules/unictype/property-id-continue-tests (Files): Likewise.
65644         * modules/unictype/property-id-start-tests (Files): Likewise.
65645         * modules/unictype/property-ideographic-tests (Files): Likewise.
65646         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
65647         * modules/unictype/property-ids-trinary-operator-tests (Files):
65648         Likewise.
65649         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
65650         * modules/unictype/property-iso-control-tests (Files): Likewise.
65651         * modules/unictype/property-join-control-tests (Files): Likewise.
65652         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
65653         * modules/unictype/property-line-separator-tests (Files): Likewise.
65654         * modules/unictype/property-logical-order-exception-tests (Files):
65655         Likewise.
65656         * modules/unictype/property-lowercase-tests (Files): Likewise.
65657         * modules/unictype/property-math-tests (Files): Likewise.
65658         * modules/unictype/property-non-break-tests (Files): Likewise.
65659         * modules/unictype/property-not-a-character-tests (Files): Likewise.
65660         * modules/unictype/property-numeric-tests (Files): Likewise.
65661         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
65662         * modules/unictype/property-other-default-ignorable-code-point-tests
65663         (Files): Likewise.
65664         * modules/unictype/property-other-grapheme-extend-tests (Files):
65665         Likewise.
65666         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
65667         * modules/unictype/property-other-id-start-tests (Files): Likewise.
65668         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
65669         * modules/unictype/property-other-math-tests (Files): Likewise.
65670         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
65671         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
65672         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
65673         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
65674         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
65675         * modules/unictype/property-private-use-tests (Files): Likewise.
65676         * modules/unictype/property-punctuation-tests (Files): Likewise.
65677         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
65678         * modules/unictype/property-radical-tests (Files): Likewise.
65679         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
65680         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
65681         * modules/unictype/property-space-tests (Files): Likewise.
65682         * modules/unictype/property-terminal-punctuation-tests (Files):
65683         Likewise.
65684         * modules/unictype/property-test-tests (Files): Likewise.
65685         * modules/unictype/property-titlecase-tests (Files): Likewise.
65686         * modules/unictype/property-unassigned-code-value-tests (Files):
65687         Likewise.
65688         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
65689         * modules/unictype/property-uppercase-tests (Files): Likewise.
65690         * modules/unictype/property-variation-selector-tests (Files): Likewise.
65691         * modules/unictype/property-white-space-tests (Files): Likewise.
65692         * modules/unictype/property-xid-continue-tests (Files): Likewise.
65693         * modules/unictype/property-xid-start-tests (Files): Likewise.
65694         * modules/unictype/property-zero-width-tests (Files): Likewise.
65695         * modules/unictype/scripts-tests (Files): Likewise.
65696         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
65697         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
65698         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
65699         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
65700         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
65701         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
65702         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
65703         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
65704         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
65705         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
65706         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
65707         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
65708         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
65709         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
65710         * modules/uninorm/composition-tests (Files): Likewise.
65711         * modules/uninorm/decomposing-form-tests (Files): Likewise.
65712         * modules/uninorm/decomposition-tests (Files): Likewise.
65713         * modules/uninorm/filter-tests (Files): Likewise.
65714         * modules/uninorm/nfc-tests (Files): Likewise.
65715         * modules/uninorm/nfd-tests (Files): Likewise.
65716         * modules/uninorm/nfkc-tests (Files): Likewise.
65717         * modules/uninorm/nfkd-tests (Files): Likewise.
65718         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
65719         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
65720         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
65721         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
65722         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
65723         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
65724         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
65725         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
65726         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
65727         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
65728         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
65729         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
65730         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
65731         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
65732         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
65733         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
65734         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
65735         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
65736         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
65737         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
65738         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
65739         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
65740         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
65741         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
65742         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
65743         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
65744         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
65745         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
65746         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
65747         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
65748         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
65749         * modules/uniwidth/u8-width-tests (Files): Likewise.
65750         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
65751         * modules/uniwidth/u16-width-tests (Files): Likewise.
65752         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
65753         * modules/uniwidth/u32-width-tests (Files): Likewise.
65754         * modules/uniwidth/width-tests (Files): Likewise.
65755         * modules/unlink-tests (Files): Likewise.
65756         * modules/unsetenv-tests (Files): Likewise.
65757         * modules/usleep-tests (Files): Likewise.
65758         * modules/utimens-tests (Files): Likewise.
65759         * modules/utimensat-tests (Files): Likewise.
65760         * modules/vasnprintf-posix-tests (Files): Likewise.
65761         * modules/vasnprintf-tests (Files): Likewise.
65762         * modules/vasprintf-posix-tests (Files): Likewise.
65763         * modules/vasprintf-tests (Files): Likewise.
65764         * modules/vdprintf-posix-tests (Files): Likewise.
65765         * modules/vfprintf-posix-tests (Files): Likewise.
65766         * modules/vprintf-posix-tests (Files): Likewise.
65767         * modules/vsnprintf-posix-tests (Files): Likewise.
65768         * modules/vsnprintf-tests (Files): Likewise.
65769         * modules/vsprintf-posix-tests (Files): Likewise.
65770         * modules/wcrtomb-tests (Files): Likewise.
65771         * modules/wcsnrtombs-tests (Files): Likewise.
65772         * modules/wcsrtombs-tests (Files): Likewise.
65773         * modules/wctype-tests (Files): Likewise.
65774         * modules/wcwidth-tests (Files): Likewise.
65775         * modules/xmemdup0-tests (Files): Likewise.
65776         * modules/xprintf-posix-tests (Files): Likewise.
65777         * modules/xvasprintf-tests (Files): Likewise.
65779 2009-12-24  Eric Blake  <ebb9@byu.net>
65781         test-nanosleep: fix typo
65782         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
65783         patch.
65784         Reported by Bruno Haible.
65786 2009-12-24  Bruno Haible  <bruno@clisp.org>
65788         Reduce namespace pollution on glibc systems.
65789         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
65790         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
65791         systems.
65792         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
65793         <getopt.h> on glibc systems.
65794         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
65795         systems.
65796         * lib/fcntl.c: Include <unistd.h> here instead.
65798 2009-12-24  Bruno Haible  <bruno@clisp.org>
65800         * lib/stdlib.in.h (includes): Fix typo in today's commit.
65802 2009-12-24  Eric Blake  <ebb9@byu.net>
65804         tests: add signature checks
65805         * tests/signature.h (SIGNATURE_CHECK): New file.
65806         * modules/atexit-tests (Files): Use it.
65807         * modules/btowc-tests (Files): Likewise.
65808         * modules/canonicalize-lgpl-tests (Files): Likewise.
65809         * modules/ceilf-tests (Files): Likewise.
65810         * modules/ceill-tests (Files): Likewise.
65811         * modules/chown-tests (Files): Likewise.
65812         * modules/dprintf-posix-tests (Files): Likewise.
65813         * modules/dup2-tests (Files): Likewise.
65814         * modules/dup3-tests (Files): Likewise.
65815         * modules/duplocale-tests (Files): Likewise.
65816         * modules/fchdir-tests (Files): Likewise.
65817         * modules/fcntl-tests (Files): Likewise.
65818         * modules/fdopendir-tests (Files): Likewise.
65819         * modules/fflush-tests (Files): Likewise.
65820         * modules/flock-tests (Files): Likewise.
65821         * modules/floorf-tests (Files): Likewise.
65822         * modules/floorl-tests (Files): Likewise.
65823         * modules/fnmatch-tests (Files): Likewise.
65824         * modules/fopen-tests (Files): Likewise.
65825         * modules/fprintf-posix-tests (Files): Likewise.
65826         * modules/freopen-tests (Files): Likewise.
65827         * modules/frexp-nolibm-tests (Files): Likewise.
65828         * modules/frexp-tests (Files): Likewise.
65829         * modules/frexpl-nolibm-tests (Files): Likewise.
65830         * modules/frexpl-tests (Files): Likewise.
65831         * modules/fseek-tests (Files): Likewise.
65832         * modules/fseeko-tests (Files): Likewise.
65833         * modules/fsync-tests (Files): Likewise.
65834         * modules/ftell-tests (Files): Likewise.
65835         * modules/ftello-tests (Files): Likewise.
65836         * modules/futimens-tests (Files): Likewise.
65837         * modules/getaddrinfo-tests (Files): Likewise.
65838         * modules/getcwd-tests (Files): Likewise.
65839         * modules/getdelim-tests (Files): Likewise.
65840         * modules/getdtablesize-tests (Files): Likewise.
65841         * modules/getgroups-tests (Files): Likewise.
65842         * modules/gethostname-tests (Files): Likewise.
65843         * modules/getline-tests (Files): Likewise.
65844         * modules/getopt-posix-tests (Files): Likewise.
65845         * modules/gettimeofday-tests (Files): Likewise.
65846         * modules/glob-tests (Files): Likewise.
65847         * modules/iconv-tests (Files): Likewise.
65848         * modules/inet_ntop-tests (Files): Likewise.
65849         * modules/inet_pton-tests (Files): Likewise.
65850         * modules/isblank-tests (Files): Likewise.
65851         * modules/lchown-tests (Files): Likewise.
65852         * modules/ldexpl-tests (Files): Likewise.
65853         * modules/link-tests (Files): Likewise.
65854         * modules/linkat-tests (Files): Likewise.
65855         * modules/lseek-tests (Files): Likewise.
65856         * modules/lstat-tests (Files): Likewise.
65857         * modules/mbrtowc-tests (Files): Likewise.
65858         * modules/mbsinit-tests (Files): Likewise.
65859         * modules/mbsnrtowcs-tests (Files): Likewise.
65860         * modules/mbsrtowcs-tests (Files): Likewise.
65861         * modules/memchr-tests (Files): Likewise.
65862         * modules/memcmp-tests (Files): Likewise.
65863         * modules/memmem-tests (Files): Likewise.
65864         * modules/memrchr-tests (Files): Likewise.
65865         * modules/mkdir-tests (Files): Likewise.
65866         * modules/mkfifo-tests (Files): Likewise.
65867         * modules/mkfifoat-tests (Files): Likewise.
65868         * modules/mknod-tests (Files): Likewise.
65869         * modules/nanosleep-tests (Files): Likewise.
65870         * modules/nl_langinfo-tests (Files): Likewise.
65871         * modules/obstack-printf-tests (Files): Likewise.
65872         * modules/open-tests (Files): Likewise.
65873         * modules/openat-tests (Files): Likewise.
65874         * modules/perror-tests (Files): Likewise.
65875         * modules/pipe2-tests (Files): Likewise.
65876         * modules/poll-tests (Files): Likewise.
65877         * modules/popen-tests (Files): Likewise.
65878         * modules/posix_spawn-tests (Files): Likewise.
65879         * modules/posix_spawnp-tests (Files): Likewise.
65880         * modules/pread-tests (Files): Likewise.
65881         * modules/printf-posix-tests (Files): Likewise.
65882         * modules/pty-tests (Files): Likewise.
65883         * modules/random_r-tests (Files): Likewise.
65884         * modules/rawmemchr-tests (Files): Likewise.
65885         * modules/readlink-tests (Files): Likewise.
65886         * modules/remove-tests (Files): Likewise.
65887         * modules/rename-tests (Files): Likewise.
65888         * modules/renameat-tests (Files): Likewise.
65889         * modules/rmdir-tests (Files): Likewise.
65890         * modules/round-tests (Files): Likewise.
65891         * modules/roundf-tests (Files): Likewise.
65892         * modules/roundl-tests (Files): Likewise.
65893         * modules/select-tests (Files): Likewise.
65894         * modules/setenv-tests (Files): Likewise.
65895         * modules/sigaction-tests (Files): Likewise.
65896         * modules/sleep-tests (Files): Likewise.
65897         * modules/snprintf-posix-tests (Files): Likewise.
65898         * modules/snprintf-tests (Files): Likewise.
65899         * modules/sprintf-posix-tests (Files): Likewise.
65900         * modules/stat-tests (Files): Likewise.
65901         * modules/strcasestr-tests (Files): Likewise.
65902         * modules/strchrnul-tests (Files): Likewise.
65903         * modules/strerror-tests (Files): Likewise.
65904         * modules/strsignal-tests (Files): Likewise.
65905         * modules/strstr-tests (Files): Likewise.
65906         * modules/strtod-tests (Files): Likewise.
65907         * modules/strverscmp-tests (Files): Likewise.
65908         * modules/symlink-tests (Files): Likewise.
65909         * modules/symlinkat-tests (Files): Likewise.
65910         * modules/times-tests (Files): Likewise.
65911         * modules/trunc-tests (Files): Likewise.
65912         * modules/truncf-tests (Files): Likewise.
65913         * modules/truncl-tests (Files): Likewise.
65914         * modules/tsearch-tests (Files): Likewise.
65915         * modules/uname-tests (Files): Likewise.
65916         * modules/unlink-tests (Files): Likewise.
65917         * modules/unsetenv-tests (Files): Likewise.
65918         * modules/usleep-tests (Files): Likewise.
65919         * modules/utimensat-tests (Files): Likewise.
65920         * modules/vasprintf-tests (Files): Likewise.
65921         * modules/vdprintf-posix-tests (Files): Likewise.
65922         * modules/vfprintf-posix-tests (Files): Likewise.
65923         * modules/vprintf-posix-tests (Files): Likewise.
65924         * modules/vsnprintf-posix-tests (Files): Likewise.
65925         * modules/vsnprintf-tests (Files): Likewise.
65926         * modules/vsprintf-posix-tests (Files): Likewise.
65927         * modules/wcrtomb-tests (Files): Likewise.
65928         * modules/wcsnrtombs-tests (Files): Likewise.
65929         * modules/wcsrtombs-tests (Files): Likewise.
65930         * modules/wcwidth-tests (Files): Likewise.
65931         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
65932         * tests/test-isinf.c (isinf): Likewise.
65933         * tests/test-isnan.c (isnan): Likewise.
65934         * tests/test-signbit.c (signbit): Likewise.
65935         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
65936         declaration, either as macro or with correct signature.
65937         (select): Ensure function under test is declared with correct
65938         signature in correct header.
65939         * tests/test-atexit.c (atexit): Likewise.
65940         * tests/test-btowc.c (btowc): Likewise.
65941         * tests/test-canonicalize-lgpl.c (realpath)
65942         (canonicalize_file_name): Likewise.
65943         * tests/test-ceilf1.c (ceilf): Likewise.
65944         * tests/test-ceill.c (ceill): Likewise.
65945         * tests/test-chown.c (chown): Likewise.
65946         * tests/test-dprintf-posix.c (dprintf): Likewise.
65947         * tests/test-dup2.c (dup2): Likewise.
65948         * tests/test-dup3.c (dup3): Likewise.
65949         * tests/test-duplocale.c (duplocale): Likewise.
65950         * tests/test-fchdir.c (fchdir): Likewise.
65951         * tests/test-fchownat.c (fchownat): Likewise.
65952         * tests/test-fcntl.c (fcntl): Likewise.
65953         * tests/test-fdopendir.c (fdopendir): Likewise.
65954         * tests/test-fflush.c (fflush): Likewise.
65955         * tests/test-flock.c (flock): Likewise.
65956         * tests/test-floorf1.c (floorf): Likewise.
65957         * tests/test-floorl.c (floorl): Likewise.
65958         * tests/test-fnmatch.c (fnmatch): Likewise.
65959         * tests/test-fopen.c (fopen): Likewise.
65960         * tests/test-fprintf-posix.c (fprintf): Likewise.
65961         * tests/test-freopen.c (freopen): Likewise.
65962         * tests/test-frexp.c (frexp): Likewise.
65963         * tests/test-frexpl.c (frexpl): Likewise.
65964         * tests/test-fseek.c (fseek): Likewise.
65965         * tests/test-fseeko.c (fseeko): Likewise.
65966         * tests/test-fstatat.c (fstatat): Likewise.
65967         * tests/test-fsync.c (fsync): Likewise.
65968         * tests/test-ftell.c (ftell): Likewise.
65969         * tests/test-ftello.c (ftello): Likewise.
65970         * tests/test-futimens.c (futimens): Likewise.
65971         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
65972         (gai_strerror): Likewise.
65973         * tests/test-getcwd.c (getcwd): Likewise.
65974         * tests/test-getdelim.c (getdelim): Likewise.
65975         * tests/test-getdtablesize.c (getdtablesize): Likewise.
65976         * tests/test-getgroups.c (getgroups): Likewise.
65977         * tests/test-gethostname.c (gethostname): Likewise.
65978         * tests/test-getline.c (getline): Likewise.
65979         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
65980         Likewise.
65981         * tests/test-gettimeofday.c (gettimeofday): Likewise.
65982         * tests/test-glob.c (glob, globfree): Likewise.
65983         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
65984         * tests/test-inet_ntop.c (inet_ntop): Likewise.
65985         * tests/test-inet_pton.c (inet_pton): Likewise.
65986         * tests/test-isblank.c (isblank): Likewise.
65987         * tests/test-lchown.c (lchown): Likewise.
65988         * tests/test-ldexpl.c (ldexpl): Likewise.
65989         * tests/test-link.c (link): Likewise.
65990         * tests/test-linkat.c (linkat): Likewise.
65991         * tests/test-lseek.c (lseek): Likewise.
65992         * tests/test-lstat.c (lstat): Likewise.
65993         * tests/test-mbrtowc.c (mbrtowc): Likewise.
65994         * tests/test-mbsinit.c (mbsinit): Likewise.
65995         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
65996         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
65997         * tests/test-memchr.c (memchr): Likewise.
65998         * tests/test-memcmp.c (memcmp): Likewise.
65999         * tests/test-memmem.c (memmem): Likewise.
66000         * tests/test-memrchr.c (memrchr): Likewise.
66001         * tests/test-mkdir.c (mkdir): Likewise.
66002         * tests/test-mkdirat.c (mkdirat): Likewise.
66003         * tests/test-mkfifo.c (mkfifo): Likewise.
66004         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
66005         * tests/test-mknod.c (mknod): Likewise.
66006         * tests/test-nanosleep.c (nanosleep): Likewise.
66007         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
66008         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
66009         Likewise.
66010         * tests/test-open.c (open): Likewise.
66011         * tests/test-openat.c (openat): Likewise.
66012         * tests/test-perror.c (perror): Likewise.
66013         * tests/test-pipe2.c (pipe2): Likewise.
66014         * tests/test-poll.c (poll): Likewise.
66015         * tests/test-popen.c (popen, pclose): Likewise.
66016         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
66017         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
66018         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
66019         (posix_spawn_file_actions_destroy)
66020         (posix_spawn_file_actions_addclose)
66021         (posix_spawn_file_actions_addopen)
66022         (posix_spawn_file_actions_adddup2): Likewise.
66023         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
66024         * tests/test-pread.c (pread): Likewise.
66025         * tests/test-printf-posix.c (printf): Likewise.
66026         * tests/test-pty.c (openpty, forkpty): Likewise.
66027         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
66028         (random_r): Likewise.
66029         * tests/test-rawmemchr.c (rawmemchr): Likewise.
66030         * tests/test-readlink.c (readlink): Likewise.
66031         * tests/test-remove.c (remove): Likewise.
66032         * tests/test-rename.c (rename): Likewise.
66033         * tests/test-renameat.c (renameat): Likewise.
66034         * tests/test-rmdir.c (rmdir): Likewise.
66035         * tests/test-round1.c (round): Likewise.
66036         * tests/test-roundf1.c (roundf): Likewise.
66037         * tests/test-roundl.c (roundl): Likewise.
66038         * tests/test-setenv.c (setenv): Likewise.
66039         * tests/test-sigaction.c (sigaction): Likewise.
66040         * tests/test-sleep.c (sleep): Likewise.
66041         * tests/test-snprintf.c (snprintf): Likewise.
66042         * tests/test-sprintf-posix.c (sprintf): Likewise.
66043         * tests/test-stat.c (stat): Likewise.
66044         * tests/test-stpncpy.c (stpncpy): Likewise.
66045         * tests/test-strcasestr.c (strcasestr): Likewise.
66046         * tests/test-strchrnul.c (strchrnul): Likewise.
66047         * tests/test-strerror.c (strerror): Likewise.
66048         * tests/test-strsignal.c (strsignal): Likewise.
66049         * tests/test-strstr.c (strstr): Likewise.
66050         * tests/test-strtod.c (strtod): Likewise.
66051         * tests/test-strverscmp.c (strverscmp): Likewise.
66052         * tests/test-symlink.c (symlink): Likewise.
66053         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
66054         * tests/test-times.c (times): Likewise.
66055         * tests/test-trunc1.c (trunc): Likewise.
66056         * tests/test-truncf1.c (truncf): Likewise.
66057         * tests/test-truncl.c (truncl): Likewise.
66058         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
66059         Likewise.
66060         * tests/test-uname.c (uname): Likewise.
66061         * tests/test-unlink.c (unlink): Likewise.
66062         * tests/test-unlinkat.c (unlinkat): Likewise.
66063         * tests/test-unsetenv.c (unsetenv): Likewise.
66064         * tests/test-usleep.c (usleep): Likewise.
66065         * tests/test-utimensat.c (utimensat): Likewise.
66066         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
66067         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
66068         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
66069         * tests/test-vprintf-posix.c (vprintf): Likewise.
66070         * tests/test-vsnprintf.c (vsnprintf): Likewise.
66071         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
66072         * tests/test-wcrtomb.c (wcrtomb): Likewise.
66073         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
66074         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
66075         * tests/test-wcwidth.c (wcwidth): Likewise.
66077         build: pull in conditional headers during GNULIB_POSIXCHECK
66078         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
66079         definitions from any conditionally-included headers.
66080         * lib/stdlib.in.h (includes): Likewise.
66081         * lib/unistd.in.h (includes): Likewise.
66083 2009-12-24  Bruno Haible  <bruno@clisp.org>
66085         * tests/test-argv-iter.c: Include header file being tested immediately
66086         after config.h.
66087         * tests/test-base64.c: Likewise.
66088         * tests/test-flock.c: Likewise.
66089         * tests/test-fsync.c: Likewise.
66090         * tests/test-getdate.c: Likewise.
66091         * tests/test-getndelim2.c: Likewise.
66092         * tests/test-isfinite.c: Likewise.
66093         * tests/test-isinf.c: Likewise.
66094         * tests/test-strerror.c: Likewise.
66095         * tests/test-strsignal.c: Likewise.
66097 2009-12-23  Eric Blake  <ebb9@byu.net>
66099         unistd: work around cygwin bug
66100         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
66101         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
66102         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
66104 2009-12-23  Bruno Haible  <bruno@clisp.org>
66106         localename: More tests.
66107         * tests/test-localename.c (SIZEOF): New macro.
66108         (categories): New variable.
66109         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
66110         test_locale_name_default): Add test w.r.t. thread locale.
66111         (test_locale_name_thread): New function.
66112         (main): Invoke it.
66114         localename: Make aware of thread locale.
66115         * lib/localename.h (gl_locale_name_thread): New declaration.
66116         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
66117         behaviour with respect to thread locale.
66118         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
66119         <langinfo.h>, glthread/lock.h.
66120         (SIZE_BITS): New macro.
66121         (string_hash): New function.
66122         (struct hash_node): New type.
66123         (HASH_TABLE_SIZE): New macro.
66124         (struniq_hash_table, struniq_lock): New variables.
66125         (struniq): New function.
66126         (gl_locale_name_thread): New function.
66127         (gl_locale_name): Invoke it.
66128         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
66129         * modules/localename (Depends-on): Add lock.
66130         Reported by Mike Gran <spk121@yahoo.com>.
66132 2009-12-23  Eric Blake  <ebb9@byu.net>
66134         va-args: new module
66135         * modules/va-args: New file.
66136         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
66137         * MODULES.html.sh (Core language properties): Mention it.
66139         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
66140         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
66141         named alias for __attribute__((__unused__)).
66142         * lib/chown.c: Update client.
66143         * lib/fchmodat.c: Likewise.
66144         * lib/fts.c: Likewise.
66145         * lib/getdate.y: Likewise.
66146         * lib/getgroups.c: Likewise.
66147         * lib/getopt.c: Likewise.
66148         * lib/getugroups.c: Likewise.
66149         * lib/mkdir.c: Likewise.
66150         * lib/mkfifo.c: Likewise.
66151         * lib/mkfifoat.c: Likewise.
66152         * lib/mknod.c: Likewise.
66153         * lib/mknodat.c: Likewise.
66154         * lib/readlink.c: Likewise.
66155         * lib/se-context.in.h: Likewise.
66156         * lib/se-selinux.in.h: Likewise.
66157         * lib/sockets.c: Likewise.
66158         * lib/symlink.c: Likewise.
66159         * lib/symlinkat.c: Likewise.
66160         * lib/unicodeio.c: Likewise.
66161         * lib/unistr.h: Likewise.
66162         * tests/test-areadlink.c: Likewise.
66163         * tests/test-areadlinkat.c: Likewise.
66164         * tests/test-filenamecat.c: Likewise.
66165         * tests/test-fseeko.c: Likewise.
66166         * tests/test-ftello.c: Likewise.
66167         * tests/test-getdate.c: Likewise.
66168         * tests/test-getgroups.c: Likewise.
66169         * tests/test-gethostname.c: Likewise.
66170         * tests/test-quotearg.c: Likewise.
66171         * tests/test-version-etc.c: Likewise.
66172         * tests/test-xalloc-die.c: Likewise.
66173         * tests/test-xfprintf-posix.c: Likewise.
66174         * tests/test-xprintf-posix.c: Likewise.
66175         * tests/test-xvasprintf.c: Likewise.
66177         tests: avoid compiler warnings
66178         * tests/test-fcntl.c (main): Delete unused parameters.
66179         * tests/test-freopen-safer.c (main): Likewise.
66180         * tests/test-xalloc-die.c (main): Mark unused parameters.
66181         * tests/test-fseeko.c (main): Likewise.
66182         * tests/test-ftello.c (main): Likewise.
66183         * tests/test-nanosleep.c (main): Avoid declaration warning.
66184         * tests/test-sleep.c (main): Likewise.
66185         * tests/test-unsetenv.c (main): Silence warning about string
66186         literal.
66187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66189 2009-12-23  Bruno Haible  <bruno@clisp.org>
66191         * tests/test-localename.c (test_locale_name): New function, extracted
66192         from main. Also test mixed situations.
66193         (test_locale_name_posix, test_locale_name_environ,
66194         test_locale_name_default): New functions.
66195         (main): Invoke them all.
66196         * modules/localename-tests (configure.ac): Test for newlocale.
66198 2009-12-23  Bruno Haible  <bruno@clisp.org>
66200         unistd: Ensure getcwd gets declared before being overridden.
66201         * lib/unistd.in.h: Conditionally include <io.h>.
66203 2009-12-22  Bruno Haible  <bruno@clisp.org>
66205         wchar: Diagnose broken combination of glibc and gcc versions and flags.
66206         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
66207         (gl_WCHAR_H): Invoke it.
66208         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
66209         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
66210         Reported by Karl Berry <karl@freefriends.org>.
66212 2009-12-22  Eric Blake  <ebb9@byu.net>
66214         math, unistd: avoid redundant includes
66215         * lib/math.in.h (isnan): No need to re-include <math.h>.
66216         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
66218         getsubopt: work around cygwin bug
66219         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
66220         avoid conflicting with system getsubopt.
66221         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
66222         bug.
66224         getopt: synchronize from glibc
66225         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
66226         parameter order.  Adjust all callers.
66227         (_getopt_internal_r, main): Adjust quoting in error messages.
66228         Drop considerations for outdated POSIX 1003.2 error message.
66229         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
66230         callers.
66231         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
66233         test-getopt: test stderr behavior
66234         * modules/getopt-posix-tests (Depends-on): Add dup2.
66235         * tests/test-getopt.c (ASSERT): Avoid stderr.
66236         (main): Move stderr to a temporary file.
66237         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
66238         Instead, add parameter to inform caller if output occurred.
66239         (test_getopt): Adjust all existing tests to expect silence, and
66240         add new tests of leading ":".
66241         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
66242         glibc shortcomings with leading "-:" or "+:" in optstring.
66243         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66244         Likewise.
66245         * doc/posix-functions/getopt.texi (getopt): Likewise.
66247         test-getopt: enhance test
66248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
66249         supports optind=0.
66250         * tests/test-getopt.c (OPTIND_MIN): Move...
66251         * tests/test-getopt.h (OPTIND_MIN): ...here.
66252         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
66253         Require that optind=0 works, since modern BSD supports it in
66254         addition to optreset, and since coreutils expects it.
66255         (test_getopt_long_only): New test.
66256         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
66257         glibc shortcomings with 'W;', and enforcement of optind=0.
66258         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
66259         Likewise.
66261 2009-12-21  Bruno Haible  <bruno@clisp.org>
66263         localename: Improvements for MacOS X and Cygwin.
66264         * lib/localename.h (gl_locale_name_environ): New declaration.
66265         * lib/localename.c (gl_locale_name_environ): New function, extracted from
66266         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
66267         (gl_locale_name_posix): Invoke it.
66268         (gl_locale_name_default): Add comments. Use Windows native API also on
66269         Cygwin.
66271 2009-12-21  Bruno Haible  <bruno@clisp.org>
66273         Update list of Win32 locale ids.
66274         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
66275         (LANG_SAMI): Renamed from LANG_SAAMI.
66276         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
66277         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
66278         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
66279         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
66280         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
66281         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
66282         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
66283         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
66284         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
66285         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
66286         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
66287         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
66288         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
66289         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
66290         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
66291         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
66292         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
66293         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
66294         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
66295         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
66296         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
66297         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
66298         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
66299         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
66300         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
66301         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
66302         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
66303         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
66304         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
66305         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
66306         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
66307         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
66308         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
66309         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
66310         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
66311         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
66312         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
66313         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
66314         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
66315         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
66316         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
66317         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
66318         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
66319         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
66320         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
66321         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
66322         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
66323         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
66324         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
66325         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
66326         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
66327         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
66328         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
66329         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
66330         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
66331         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
66332         Add more languages and countries for Sami, Sorbian. Add more countries
66333         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
66334         for Pashto. Change country for Syriac, Tswana.
66336 2009-12-21  Eric Blake  <ebb9@byu.net>
66338         test-utimens: avoid spurious failure
66339         * tests/test-chown.h (nap): Factor...
66340         * tests/nap.h: ...into new file.
66341         * tests/test-lchown.h (nap): Avoid duplication.
66342         * tests/test-utimens-common.h (nap): Use shared implementation,
66343         necessary on file systems with 1-second resolution.
66344         * modules/chown-tests (Files): Include new file.
66345         * modules/fdutimensat-tests (Files): Likewise.
66346         * modules/futimens-tests (Files): Likewise.
66347         * modules/lchown-tests (Files): Likewise.
66348         * modules/openat-tests (Files): Likewise.
66349         * modules/utimens-tests (Files): Likewise.
66350         * modules/utimensat-tests (Files): Likewise.
66352 2009-12-19  Eric Blake  <ebb9@byu.net>
66354         futimens, utimensat: work around Linux bug
66355         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
66356         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
66357         * lib/utimensat.c (rpl_utimensat): Work around it.
66358         * lib/futimens.c (rpl_futimens): Adjust comment.
66360         utimens: work around Linux ctime bug
66361         * lib/utimens.c (detect_ctime_bug): New helper function.
66362         (update_timespec): Differentiate between workaround needed for
66363         this bug vs. what is needed for systems that lack utimensat.
66364         (fdutimens, lutimens): Work around bug.
66366         utimens: check for ctime update
66367         * tests/test-utimens-common.h (check_ctime): Define.
66368         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
66369         * tests/test-futimens.h (test_futimens): Likewise.
66370         * tests/test-lutimens.h (test_lutimens): Likewise.
66371         * doc/posix-functions/futimens.texi (futimens): Document the bug.
66372         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
66374 2009-12-19  Bruno Haible  <bruno@clisp.org>
66376         dprintf-posix: Check against memory leak fixed on 2009-12-15.
66377         * tests/test-dprintf-posix2.sh: New file.
66378         * tests/test-dprintf-posix2.c: New file.
66379         * modules/dprintf-posix-tests (Files): Add them.
66380         (configure.ac): Check for getrlimit and setrlimit.
66381         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
66383 2009-12-19  Bruno Haible  <bruno@clisp.org>
66385         fprintf-posix: Check against memory leak fixed on 2009-12-15.
66386         * tests/test-fprintf-posix3.sh: New file.
66387         * tests/test-fprintf-posix3.c: New file.
66388         * modules/fprintf-posix-tests (Files): Add them.
66389         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
66391 2009-12-19  Eric Blake  <ebb9@byu.net>
66393         dirfd: fix prototype
66394         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
66395         * lib/dirfd.c (dirfd): Likewise.
66397         canonicalize: reduce memory usage
66398         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
66399         allocation to size.
66400         Reported by Solar Designer <solar@openwall.com>.
66402 2009-12-19  Bruno Haible  <bruno@clisp.org>
66404         New module attribute 'Applicability'.
66405         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
66406         * gnulib-tool: New option --extract-applicability.
66407         (func_usage): Document it.
66408         (sed_extract_prog): Recognize it.
66409         (func_get_applicability): New function.
66410         (func_import): Generalize handling of 'link-warning' module.
66411         * modules/link-warning (Applicability): New section.
66412         * modules/arg-nonnull (Applicability): New section.
66413         Repoted by Simon Josefsson <simon@josefsson.org>.
66415 2009-12-19  Bruno Haible  <bruno@clisp.org>
66417         fflush: tweak
66418         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
66419         * lib/fseeko.c (rpl_fseeko): Likewise.
66421 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
66423         * lib/gl_list.h: Fix typo in comment.
66425 2009-12-16  Eric Blake  <ebb9@byu.net>
66427         fcntl: use to simplify other modules
66428         * modules/cloexec (Depends-on): Add fcntl.
66429         * modules/fchdir (Depends-on): Likewise.
66430         * modules/fd-safer-flag (Depends-on): Likewise.
66431         * modules/unistd-safer (Depends-on): Likewise.
66432         * modules/dup3 (configure.ac): Set module indicator.
66433         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
66434         missing.
66435         * lib/fchdir.c (_gl_register_dup): Fix comment.
66436         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
66437         * lib/dup-safer.c (dup_safer): Likewise.
66438         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
66439         * lib/dup3.c (dup3): Likewise.
66440         * tests/test-fchdir.c (main): Enhance test.
66441         Fixes a dup_cloexec bug reported by Ondřej Vašík.
66443         fcntl: port portions of fcntl to mingw
66444         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
66445         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
66446         replacement for mingw.
66447         * modules/fcntl (Description): Update.
66448         (Depends-on): Add dup2.
66449         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
66450         * modules/fcntl-h (Makefile.am): Substitute it.
66451         * lib/fcntl.in.h (fcntl): Update declaration.
66452         (F_DUPFD, F_GETFD): New macros, when needed.
66453         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
66454         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
66455         * tests/test-fcntl.c (check_flags, main): Enhance test for items
66456         we now guarantee.
66458         fcntl: work around cygwin bug in F_DUPFD
66459         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
66460         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
66461         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
66462         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
66463         * doc/posix-functions/fcntl.texi (fcntl): Document it.
66465         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
66466         * modules/fcntl (Files): List new files.
66467         (configure.ac): Run a test.
66468         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
66469         * lib/fcntl.c (rpl_fcntl): Likewise.
66470         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
66471         (gl_FCNTL_H): Always replace fcntl.h.
66472         * modules/fcntl-h (Makefile.am): Substitute witnesses.
66473         * lib/fcntl.in.h (fcntl): Declare replacement.
66474         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
66475         needed, plus a witness.
66476         * doc/posix-functions/fcntl.texi (fcntl): Document this.
66477         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
66478         * tests/test-fcntl.c: New file.
66479         * modules/fcntl-tests: Likewise.
66481         binary-io: avoid potential compilation warning
66482         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
66483         directives.
66485         fflush: avoid compilation error on NetBSD
66486         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
66487         between off_t and fpos_t, since the latter is sometimes a struct.
66488         * lib/fseeko.c (rpl_fseeko): Likewise.
66489         Reported by Alexander Nasonov <alnsn@yandex.ru>.
66491 2009-12-15  Eric Blake  <ebb9@byu.net>
66493         fcntl-h, stdio, sys_ioctl: fix declarations
66494         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
66495         function must not take arguments.
66496         * lib/sys_ioctl.in.h (ioctl): Likewise.
66497         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
66498         (open): Add a link warning.
66500 2009-12-15  Jim Meyering  <meyering@redhat.com>
66502         areadlink, areadlink-with-size: relax license to LGPLv2+
66503         * modules/areadlink (License): Relax to LGPLv2+.
66504         * modules/areadlink-with-size (License): Likewise.
66506 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
66507             Bruno Haible  <bruno@clisp.org>
66509         *printf: Fix memory leak.
66510         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
66511         * lib/vfprintf.c (vfprintf): Likewise.
66512         * lib/dprintf.c (dprintf): Likewise.
66513         * lib/vdprintf.c (vdprintf): Likewise.
66515 2009-12-14  Eric Blake  <ebb9@byu.net>
66517         accept4: adjust module dependencies
66518         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
66520         utimens: one more try at avoiding compiler warning
66521         * lib/utimens.c (lutimens): Lower scope of result.
66523 2009-12-13  Bruno Haible  <bruno@clisp.org>
66525         Move the malloc checking from module 'list' to new module 'xlist'.
66526         * modules/xlist: New file.
66527         * lib/gl_xlist.h: New file.
66528         * lib/gl_xlist.c: New file.
66529         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
66530         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
66531         gl_list_add_last, gl_list_add_before, gl_list_add_after,
66532         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
66533         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
66534         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
66535         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
66536         gl_sortedlist_nx_add): New declarations.
66537         (struct gl_list_implementation): Rename and change methods accordingly.
66538         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
66539         (gl_list_nx_create): Renamed from gl_list_create.
66540         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
66541         (gl_list_nx_set_at): Renamed from gl_list_set_at.
66542         (gl_list_nx_add_first): Renamed from gl_list_add_first.
66543         (gl_list_nx_add_last): Renamed from gl_list_add_last.
66544         (gl_list_nx_add_before): Renamed from gl_list_add_before.
66545         (gl_list_nx_add_after): Renamed from gl_list_add_after.
66546         (gl_list_nx_add_at): Renamed from gl_list_add_at.
66547         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
66548         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
66549         gl_list_create_empty.
66550         (gl_list_nx_create): Renamed from gl_list_create.
66551         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
66552         (gl_list_nx_set_at): Renamed from gl_list_set_at.
66553         (gl_list_nx_add_first): Renamed from gl_list_add_first.
66554         (gl_list_nx_add_last): Renamed from gl_list_add_last.
66555         (gl_list_nx_add_before): Renamed from gl_list_add_before.
66556         (gl_list_nx_add_after): Renamed from gl_list_add_after.
66557         (gl_list_nx_add_at): Renamed from gl_list_add_at.
66558         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
66559         * lib/gl_array_list.c: Don't include xalloc.h.
66560         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
66561         NULL upon out-of-memory.
66562         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
66563         out-of-memory.
66564         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
66565         Change return type to 'int'.
66566         (gl_array_nx_set_at): Renamed from gl_array_set_at.
66567         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
66568         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
66569         upon out-of-memory.
66570         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
66571         upon out-of-memory.
66572         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
66573         upon out-of-memory.
66574         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
66575         upon out-of-memory.
66576         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
66577         out-of-memory.
66578         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
66579         Update.
66580         (gl_array_list_implementation): Update.
66581         * lib/gl_carray_list.c: Don't include xalloc.h.
66582         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
66583         Return NULL upon out-of-memory.
66584         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
66585         out-of-memory.
66586         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
66587         Change return type to 'int'.
66588         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
66589         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
66590         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
66591         upon out-of-memory.
66592         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
66593         upon out-of-memory.
66594         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
66595         out-of-memory.
66596         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
66597         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
66598         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
66599         Update.
66600         (gl_carray_list_implementation): Update.
66601         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
66602         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
66603         gl_linked_create_empty. Return NULL upon out-of-memory.
66604         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
66605         out-of-memory.
66606         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
66607         Change return type to 'int'. Return -1 upon out-of-memory.
66608         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
66609         out-of-memory.
66610         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
66611         upon out-of-memory.
66612         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
66613         upon out-of-memory.
66614         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
66615         NULL upon out-of-memory.
66616         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
66617         upon out-of-memory.
66618         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
66619         out-of-memory.
66620         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
66621         Update.
66622         * lib/gl_linked_list.c: Don't include xalloc.h.
66623         (gl_linked_list_implementation): Update.
66624         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
66625         (add_to_bucket): Change return type to 'int'.
66626         (gl_linkedhash_list_implementation): Update.
66627         * lib/gl_anytree_list1.h (free_subtree): New function.
66628         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
66629         gl_tree_create_empty. Return NULL upon out-of-memory.
66630         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
66631         Change return type to 'int'. Return -1 upon out-of-memory.
66632         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
66633         out-of-memory.
66634         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
66635         (gl_tree_remove_node): New function, moved here from
66636         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
66637         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
66638         Update.
66639         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
66640         malloc, not xmalloc. Return NULL upon out-of-memory.
66641         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
66642         out-of-memory.
66643         (gl_tree_remove_node_from_tree): New function, extracted from
66644         gl_tree_remove_node.
66645         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
66646         upon out-of-memory.
66647         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
66648         out-of-memory.
66649         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
66650         upon out-of-memory.
66651         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
66652         upon out-of-memory.
66653         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
66654         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
66655         not xmalloc. Return NULL upon out-of-memory.
66656         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
66657         out-of-memory.
66658         (gl_tree_remove_node_from_tree): New function, extracted from
66659         gl_tree_remove_node.
66660         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
66661         upon out-of-memory.
66662         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
66663         out-of-memory.
66664         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
66665         upon out-of-memory.
66666         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
66667         upon out-of-memory.
66668         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
66669         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
66670         gl_anytree_list1.h before gl_anyavltree_list2.h.
66671         (gl_avltree_list_implementation): Update.
66672         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
66673         gl_anytree_list1.h before gl_anyavltree_list2.h.
66674         (gl_rbtree_list_implementation): Update.
66675         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
66676         Change return type to 'int'. Return -1 upon out-of-memory. Use
66677         __builtin_expect.
66678         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
66679         (gl_avltreehash_list_implementation): Update.
66680         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
66681         (gl_rbtreehash_list_implementation): Update.
66682         * modules/array-list (Depends-on): Remove xalloc.
66683         * modules/carray-list (Depends-on): Likewise.
66684         * modules/linked-list (Depends-on): Likewise.
66685         * modules/linkedhash-list (Depends-on): Likewise.
66686         * modules/avltree-list (Depends-on): Likewise.
66687         * modules/rbtree-list (Depends-on): Likewise.
66688         * modules/avltreehash-list (Depends-on): Likewise.
66689         * modules/rbtreehash-list (Depends-on): Likewise.
66691         * modules/xsublist: New file.
66692         * lib/gl_xsublist.h: New file.
66693         * lib/gl_xsublist.c: New file.
66694         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
66695         (gl_sublist_nx_create): New declaration.
66696         * lib/gl_sublist.c: Don't include xalloc.h.
66697         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
66698         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
66699         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
66700         Change return type to 'int'. Return -1 upon out-of-memory.
66701         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
66702         upon out-of-memory.
66703         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
66704         NULL upon out-of-memory.
66705         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
66706         upon out-of-memory.
66707         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
66708         NULL upon out-of-memory.
66709         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
66710         NULL upon out-of-memory.
66711         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
66712         upon out-of-memory.
66713         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
66714         (gl_sublist_list_implementation): Update.
66715         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
66716         upon out-of-memory.
66717         * modules/sublist (Depends-on): Remove xalloc.
66719         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
66720         * tests/test-carray_list.c: Likewise.
66721         * tests/test-linked_list.c: Likewise.
66722         * tests/test-linkedhash_list.c: Likewise.
66723         * tests/test-avltree_list.c: Likewise.
66724         * tests/test-rbtree_list.c: Likewise.
66725         * tests/test-avltreehash_list.c: Likewise.
66726         * tests/test-rbtreehash_list.c: Likewise.
66727         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
66728         * modules/carray-list-tests (Makefile.am): Likewise.
66729         * modules/linked-list-tests (Makefile.am): Likewise.
66730         * modules/linkedhash-list-tests (Makefile.am): Likewise.
66731         * modules/avltree-list-tests (Makefile.am): Likewise.
66732         * modules/rbtree-list-tests (Makefile.am): Likewise.
66733         * modules/avltreehash-list-tests (Makefile.am): Likewise.
66734         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
66736         * NEWS: Mention the changes.
66738         * lib/clean-temp.c: Include gl_xlist.h.
66739         * modules/clean-temp (Depends-on): Add xlist.
66741         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
66742         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
66744         * tests/test-array_oset.c: Include gl_xlist.h.
66745         * modules/array-oset-tests (Depends-on): Add xlist.
66747         Reported by José E. Marchesi <jemarch@gnu.org>.
66749 2009-12-13  Bruno Haible  <bruno@clisp.org>
66751         Move the malloc checking from module 'oset' to new module 'xoset'.
66752         * modules/xoset: New file.
66753         * lib/gl_xoset.h: New file.
66754         * lib/gl_xoset.c: New file.
66755         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
66756         declarations.
66757         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
66758         (struct gl_oset_implementation): Rename and change methods accordingly.
66759         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
66760         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
66761         'int'. Mark as __warn_unused_result__.
66762         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
66763         gl_oset_create_empty.
66764         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
66765         'int'.
66766         * lib/gl_array_oset.c: Don't include xalloc.h.
66767         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
66768         malloc, not xmalloc.
66769         (grow): Change return type to 'int'. Don't call xalloc_die.
66770         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
66771         to 'int'.
66772         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
66773         'int'.
66774         (gl_array_oset_implementation): Update.
66775         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
66776         gl_tree_create_empty.
66777         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
66778         'int'.
66779         * lib/gl_avltree_oset.c: Don't include xalloc.h.
66780         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
66781         xmalloc.
66782         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
66783         not xmalloc.
66784         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
66785         xmalloc.
66786         (gl_avltree_oset_implementation): Update.
66787         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
66788         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
66789         xmalloc.
66790         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
66791         not xmalloc.
66792         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
66793         xmalloc.
66794         (gl_rbtree_oset_implementation): Update.
66795         * modules/array-oset (Depends-on): Remove xalloc.
66796         * modules/avltree-oset (Depends-on): Likewise.
66797         * modules/rbtree-oset (Depends-on): Likewise.
66798         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
66799         * tests/test-avltree_oset.c: Likewise.
66800         * tests/test-rbtree_oset.c: Likewise.
66801         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
66802         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
66803         * modules/rbtree-oset-tests (Makefile.am): Likewise.
66804         * NEWS: Mention the change.
66806 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
66808         maint.mk: allow a project to override release-prep commands
66809         * top/maint.mk (alpha, beta, stable): Move release-preparatory
66810         commands into a new rule.
66811         (release-prep): New rule.
66812         (release-prep-hook): New overridable variable.
66814 2009-12-13  Bruno Haible  <bruno@clisp.org>
66816         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
66818 2009-12-13  Jim Meyering  <meyering@redhat.com>
66820         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
66821         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
66823 2009-12-12  Bruno Haible  <bruno@clisp.org>
66825         duplocale: Tweak.
66826         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
66828 2009-12-12  Karl Berry  <karl@gnu.org>
66830         * config/srclist.txt (strtoll.c): tab changes, no more sync.
66832 2009-12-12  Bruno Haible  <bruno@clisp.org>
66834         * m4/po.m4: Undo incorrect untabification.
66836 2009-12-12  Bruno Haible  <bruno@clisp.org>
66838         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
66839         * modules/c-strtod (Depends-on): Add locale.
66840         * modules/c-strtold (Depends-on): Likewise.
66842 2009-12-12  Bruno Haible  <bruno@clisp.org>
66844         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
66846 2009-12-11  Eric Blake  <ebb9@byu.net>
66848         setenv: relax requirement in light of POSIX ruling
66849         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
66850         not NULL.
66851         * tests/test-setenv.c (main): Relax test.
66852         * tests/test-unsetenv.c (main): Likewise.
66853         * doc/posix-functions/setenv.texi (setenv): Document this.
66854         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
66856 2009-12-11  Bruno Haible  <bruno@clisp.org>
66858         New module 'fd-safer-flag'.
66859         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
66860         * lib/dup-safer.c (dup_safer_flag): Remove function.
66861         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
66862         * lib/fd-safer.c (fd_safer_flag): Remove function.
66863         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
66864         * modules/cloexec (configure.ac): Drop indicator macro.
66865         * modules/fd-safer-flag: New file.
66866         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
66867         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
66868         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
66870 2009-12-11  Bruno Haible  <bruno@clisp.org>
66872         Tests for module 'nl_langinfo'.
66873         * modules/nl_langinfo-tests: New file.
66874         * tests/test-nl_langinfo.sh: New file.
66875         * tests/test-nl_langinfo.c: New file.
66877         New module 'nl_langinfo'.
66878         * lib/nl_langinfo.c: New file.
66879         * m4/nl_langinfo.m4: New file.
66880         * modules/nl_langinfo: New file.
66881         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
66883 2009-12-11  Bruno Haible  <bruno@clisp.org>
66885         Tests for module 'langinfo'.
66886         * modules/langinfo-tests: New file.
66887         * tests/test-langinfo.c: New file.
66889         New module 'langinfo'.
66890         * lib/langinfo.in.h: New file.
66891         * m4/langinfo_h.m4: New file.
66892         * modules/langinfo: New file.
66893         * doc/posix-headers/langinfo.texi: Mention the new module.
66895 2009-12-11  Bruno Haible  <bruno@clisp.org>
66897         * lib/config.charset: Untabify.
66899 2009-12-11  Bruno Haible  <bruno@clisp.org>
66901         * modules/unistd-safer (configure.ac): Drop indicator macro.
66903 2009-12-11  Bruno Haible  <bruno@clisp.org>
66905         Move pipe2-safer code to its own file.
66906         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
66907         * lib/pipe-safer.c (pipe2_safer): Remove function.
66908         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
66909         (Makefile.am): Add it to lib_SOURCES.
66911 2009-12-10  Bruno Haible  <bruno@clisp.org>
66913         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
66915 2009-12-10  Bruno Haible  <bruno@clisp.org>
66917         Declare which arguments expect non-NULL values, for GCC and clang.
66918         * build-aux/arg-nonnull.h: New file.
66919         * modules/arg-nonnull: New file.
66920         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
66921         (inet_ntop, inet_pton): Use it.
66922         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
66923         (closedir, dirfd, opendir, scandir, alphasort): Use it.
66924         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
66925         (open, openat): Use it.
66926         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
66927         (fnmatch): Use it.
66928         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
66929         (getopt, getopt_long, getopt_long_only): Use it.
66930         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
66931         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
66932         Use it.
66933         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
66934         (iconv_open): Use it.
66935         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
66936         (strtoimax, strtoumax): Use it.
66937         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
66938         (duplocale): Use it.
66939         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
66940         (frexp, frexpl): Use it.
66941         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
66942         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
66943         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
66944         (tsearch, tfind, tdelete, twalk): Use it.
66945         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
66946         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
66947         sigpending): Use it.
66948         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
66949         (posix_spawn, posix_spawnp, posix_spawnattr_init,
66950         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
66951         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
66952         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
66953         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
66954         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
66955         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
66956         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
66957         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
66958         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
66959         Use it.
66960         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
66961         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
66962         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
66963         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
66964         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
66965         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
66966         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
66967         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
66968         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
66969         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
66970         strtoull, unsetenv): Use it.
66971         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
66972         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
66973         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
66974         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
66975         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
66976         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
66977         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
66978         (strcasecmp, strncasecmp): Use it.
66979         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
66980         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
66981         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
66982         rpl_setsockopt): Use it.
66983         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
66984         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
66985         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
66986         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
66987         (gettimeofday): Use it.
66988         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
66989         (times): Use it.
66990         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
66991         (uname): Use it.
66992         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
66993         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
66994         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
66995         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
66996         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
66997         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
66998         unlinkat, write): Use it.
66999         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
67000         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
67001         * lib/argv-iter.h: Include arg-nonnull.h.
67002         (_ATTRIBUTE_NONNULL_): Remove macro.
67003         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
67004         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
67005         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
67006         optimization.
67007         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
67008         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
67009         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
67010         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
67011         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
67012         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
67013         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
67014         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
67015         * modules/arpa_inet (Depends-on): Add arg-nonnull.
67016         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
67017         * modules/dirent (Depends-on): Add arg-nonnull.
67018         (Makefile.am): Insert arg-nonnull.h into dirent.h.
67019         * modules/fcntl-h (Depends-on): Add arg-nonnull.
67020         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
67021         * modules/fnmatch (Depends-on): Add arg-nonnull.
67022         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
67023         * modules/getopt-posix (Depends-on): Add arg-nonnull.
67024         (Makefile.am): Insert arg-nonnull.h into getopt.h.
67025         * modules/glob (Depends-on): Add arg-nonnull.
67026         (Makefile.am): Insert arg-nonnull.h into glob.h.
67027         * modules/iconv_open (Depends-on): Add arg-nonnull.
67028         (Makefile.am): Insert arg-nonnull.h into iconv.h.
67029         * modules/inttypes (Depends-on): Add arg-nonnull.
67030         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
67031         * modules/locale (Depends-on): Add arg-nonnull.
67032         (Makefile.am): Insert arg-nonnull.h into locale.h.
67033         * modules/math (Depends-on): Add arg-nonnull.
67034         (Makefile.am): Insert arg-nonnull.h into math.h.
67035         * modules/netdb (Depends-on): Add arg-nonnull.
67036         (Makefile.am): Insert arg-nonnull.h into netdb.h.
67037         * modules/search (Depends-on): Add arg-nonnull.
67038         (Makefile.am): Insert arg-nonnull.h into search.h.
67039         * modules/signal (Depends-on): Add arg-nonnull.
67040         (Makefile.am): Insert arg-nonnull.h into signal.h.
67041         * modules/spawn (Depends-on): Add arg-nonnull.
67042         (Makefile.am): Insert arg-nonnull.h into spawn.h.
67043         * modules/stdio (Depends-on): Add arg-nonnull.
67044         (Makefile.am): Insert arg-nonnull.h into stdio.h.
67045         * modules/stdlib (Depends-on): Add arg-nonnull.
67046         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
67047         * modules/string (Depends-on): Add arg-nonnull.
67048         (Makefile.am): Insert arg-nonnull.h into string.h.
67049         * modules/strings (Depends-on): Add arg-nonnull.
67050         (Makefile.am): Insert arg-nonnull.h into strings.h.
67051         * modules/sys_socket (Depends-on): Add arg-nonnull.
67052         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
67053         * modules/sys_stat (Depends-on): Add arg-nonnull.
67054         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
67055         * modules/sys_time (Depends-on): Add arg-nonnull.
67056         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
67057         * modules/sys_times (Depends-on): Add arg-nonnull.
67058         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
67059         * modules/sys_utsname (Depends-on): Add arg-nonnull.
67060         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
67061         * modules/time (Depends-on): Add arg-nonnull.
67062         (Makefile.am): Insert arg-nonnull.h into time.h.
67063         * modules/unistd (Depends-on): Add arg-nonnull.
67064         (Makefile.am): Insert arg-nonnull.h into unistd.h.
67065         * modules/wchar (Depends-on): Add arg-nonnull.
67066         (Makefile.am): Insert arg-nonnull.h into wchar.h.
67067         * modules/argv-iter (Depends-on): Add arg-nonnull.
67068         * tests/test-canonicalize.c (null_ptr): New function.
67069         (main): Use it.
67070         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
67071         (main): Use it.
67072         * tests/test-memmem.c (null_ptr): New function.
67073         (main): Use it.
67074         Reported by Jim Meyering.
67076 2009-12-10  Bruno Haible  <bruno@clisp.org>
67078         Use spaces for indentation, not tabs.
67079         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
67080         * m4/*.m4: Untabify.
67081         * build-aux/*.h: Untabify.
67082         * tests/**/*.[hc]: Untabify.
67083         * README: New section "Indent with spaces, not TABs", based on
67084         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
67085         * NEWS: Mention the change.
67087 2009-12-10  Bruno Haible  <bruno@clisp.org>
67089         pty test: Fix link error.
67090         * modules/pty-tests (Makefile.am): Add the default LDADD value to
67091         test_pty_LDADD.
67093 2009-12-07  Simon Josefsson  <simon@josefsson.org>
67095         * modules/pty: New file.
67096         * modules/pty-tests: New file.
67097         * m4/pty.m4: New file.
67098         * tests/test-pty.c: New file.
67099         * doc/glibc-headers/pty.texi: Modified.
67100         * doc/glibc-functions/forkpty.texi: Modified.
67101         * doc/glibc-functions/openpty.texi: Modified.
67103 2009-12-10  Bruno Haible  <bruno@clisp.org>
67105         Avoid syntax error in C++ mode.
67106         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
67108 2009-12-10  Bruno Haible  <bruno@clisp.org>
67110         Use sed with option -e.
67111         * gnulib-tool (func_version, func_emit_copyright_notice,
67112         func_emit_initmacro_end, func_import, func_create_testdir): Pass
67113         option -e to sed.
67114         * modules/link-warning (Makefile.am): Likewise.
67116 2009-12-10  Jim Meyering  <meyering@redhat.com>
67118         mgetgroups: do not write bytes beyond end of malloc'd buffer
67119         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
67120         username, we call getgroups with a one-element-shorter buffer,
67121         but still told it the length was original, max_n_groups.
67123 2009-12-09  Eric Blake  <ebb9@byu.net>
67125         cloexec: relax license
67126         * modules/cloexec (Maintainer): Add myself.
67127         (License): Use LGPL, not GPL.
67129         link-warning: optimize generation
67130         * modules/link-warning (Makefile.am): Reduce process usage.
67132 2009-12-09  Bruno Haible  <bruno@clisp.org>
67134         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
67135         workaround was added on 2009-11-17.
67137 2009-12-09  Jim Meyering  <meyering@redhat.com>
67138             Bruno Haible  <bruno@clisp.org>
67140         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
67141         * modules/link-warning (Makefile.am): Make the comment-removing sed
67142         command more robust in the face of bootstrap-prepended comment lines.
67144 2009-12-09  Bruno Haible  <bruno@clisp.org>
67146         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
67147         most one group.
67149 2009-12-09  Simon Josefsson  <simon@josefsson.org>
67150             Bruno Haible  <bruno@clisp.org>
67152         * build-aux/link-warning.h: Add copyright notice.
67153         * modules/link-warning (Makefile.am): Generate link-warning.h from
67154         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
67155         * NEWS: Mention change in link-warning module.
67156         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
67157         * modules/dirent (Makefile.am): Add dependency to dirent.h.
67158         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
67159         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
67160         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
67161         * modules/math (Makefile.am): Add dependency to math.h.
67162         * modules/search (Makefile.am): Add dependency to search.h.
67163         * modules/signal (Makefile.am): Add dependency to signal.h.
67164         * modules/spawn (Makefile.am): Add dependency to spawn.h.
67165         * modules/stdio (Makefile.am): Add dependency to stdio.h.
67166         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
67167         * modules/string (Makefile.am): Add dependency to string.h.
67168         * modules/strings (Makefile.am): Add dependency to strings.h.
67169         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
67170         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
67171         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
67172         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
67173         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
67174         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
67175         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
67176         * modules/unistd (Makefile.am): Add dependency to unistd.h.
67177         * modules/wchar (Makefile.am): Add dependency to wchar.h.
67179 2009-12-09  Bruno Haible  <bruno@clisp.org>
67181         fchdir: Optimize away rpl_fstat when possible.
67182         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
67183         REPLACE_OPEN_DIRECTORY.
67184         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
67186 2009-12-09  Bruno Haible  <bruno@clisp.org>
67188         * lib/fchdir.c: Update comment.
67190 2009-12-09  Bruno Haible  <bruno@clisp.org>
67192         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
67194 2009-12-08  Eric Blake  <ebb9@byu.net>
67196         fchdir: avoid memory leak on re-registration.
67197         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
67199 2009-12-08  Jim Meyering  <meyering@redhat.com>
67201         init.sh: avoid Solaris 10 /bin/sh portability problem
67202         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
67203         sourced script:
67204           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
67205           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
67206           bar
67207         tests/init.sh relied on that, accepting a --set-path=DIR argument,
67208         and two tests used that idiom.
67209         * tests/init.sh: Update suggested usage comments.
67210         (path_prepend_): New function, to be used in place
67211         of the --src-path=DIR option.
67212         (setup_): Move PATH-prepending code into path_prepend_.
67213         * tests/test-pread.sh: Adapt to new usage.
67214         * tests/test-xalloc-die.sh: Likewise.
67216 2009-12-08  Simon Josefsson  <simon@josefsson.org>
67218         * doc/gnulib.texi (Glibc pty.h): Add.
67219         * doc/glibc-functions/forkpty.texi: Add.
67220         * doc/glibc-functions/openpty.texi: Add.
67221         Suggested by Bruno Haible.
67223 2009-12-08  Eric Blake  <ebb9@byu.net>
67225         fchdir: fix logic bugs
67226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
67227         * tests/test-fchdir.c (main): Enhance test.
67228         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
67229         is in use.
67231         dup2: fix logic bugs
67232         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
67233         REPLACE_DUP2 to decide when rpl_dup2 is needed.
67234         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
67235         exists.
67236         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
67238 2009-12-07  Eric Blake  <ebb9@byu.net>
67240         unlink: fix m4 detection
67241         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
67243         unistd-safer: add unit test
67244         * modules/unistd-safer-tests: New file.
67245         * tests/test-dup-safer.c: Likewise.
67246         * tests/test-cloexec.c (setmode): Avoid compiler warning.
67247         * tests/test-dup2.c (setmode): Likewise.
67248         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
67250         cloexec: preserve text vs. binary across dup_cloexec
67251         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
67252         mode.
67253         * modules/dup2-tests (Depends-on): Add binary-io.
67254         * modules/cloexec-tests (Depends-on): Likewise.
67255         * tests/test-dup2.c (setmode, is_mode): New helpers.
67256         (main): Add tests that translation mode is preserved.
67257         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
67258         Reported by Bruno Haible.
67260         mgetgroups: reduce duplicate listings
67261         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
67262         resulting array.
67263         * tests/test-chown.h (test_chown): Simplify client.
67264         * tests/test-lchown.h (test_lchown): Likewise.
67266 2009-12-06  Bruno Haible  <bruno@clisp.org>
67268         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
67269         value.
67271 2009-12-06  Bruno Haible  <bruno@clisp.org>
67273         * lib/progname.c: Include stdio.h, stdlib.h.
67274         (set_program_name): Reject a NULL argument.
67276 2009-12-05  Eric Blake  <ebb9@byu.net>
67278         pipe2-safer: new module
67279         * modules/pipe2-safer: New file.
67280         * lib/unistd-safer.h (pipe2_safer): New prototype.
67281         * lib/unistd--.h (pipe2): New wrapper.
67282         * lib/pipe-safer.c (pipe2_safer): New function.
67283         * modules/pipe (Depends-on): Add pipe2-safer.
67284         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
67286         stdlib-safer: preserve cloexec flag for mkostemp[s]
67287         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
67288         fd_safer_flag.
67290         unistd-safer: allow preservation of cloexec status via flag
67291         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
67292         prototypes.
67293         * lib/dup-safer.c (dup_safer_flag): New function.
67294         * lib/fd-safer.c (fd_safer_flag): Likewise.
67295         * modules/cloexec (configure.ac): Set witness.
67297         test-dup2: enhance test
67298         * modules/dup2-tests (Depends-on): Add cloexec.
67299         * tests/test-dup2.c (main): Enhance test.
67301         cloexec: add dup_cloexec
67302         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
67303         header and comments.
67304         * lib/cloexec.c (set_cloexec_flag): Add comments.
67305         (dup_cloexec): New function, with mingw implementation borrowed
67306         from...
67307         * lib/w32spawn.h (dup_noinherit): ...here.
67308         * modules/execute (Depends-on): Add cloexec.
67309         * modules/pipe (Depends-on): Likewise.
67310         * modules/cloexec (Depends-on): Add dup2.
67311         * modules/cloexec-tests (Files): New file.
67312         * tests/test-cloexec.c: Likewise.
67314         test-xalloc-die: fix test for mingw
67315         * modules/xalloc-die-tests (Files): Add tests/init.sh.
67316         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
67317         directory and .exe suffix off argv[0] output.
67319         test-fseeko: fix test for mingw
67320         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
67321         than undefining fseek, so test will pass on mingw.
67323 2009-12-05  Bruno Haible  <bruno@clisp.org>
67325         * lib/progname.h (set_program_name): Clarify specification.
67326         * lib/progname.c (set_program_name): Likewise.
67327         Reported by Jim Meyering.
67329 2009-12-05  Jim Meyering  <meyering@redhat.com>
67331         maint.mk: backslash-escape parens in default regexp
67332         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
67333         backslash-escape the literal parentheses.
67335         maint.mk: news-date-check: use grep -E
67336         * top/maint.mk (today): Define a Make variable, not a...
67337         (news-date-check): ...shell variable.
67338         (news-date-regexp): Use the Make variable.
67339         Use grep's -E option.  Change the failing diagnostic to mention
67340         the variable, $(news-date-regexp).
67342 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
67344         maintainer-makefile: allow customization of NEWS entry format
67345         * top/maint.mk (news-date-regexp): New overridable variable.
67346         (news-date-check): Use it.
67348 2009-12-04  Eric Blake  <ebb9@byu.net>
67350         mgetgroups: add xgetgroups, and avoid ENOSYS failures
67351         * lib/mgetgroups.h (xgetgroups): New prototype.
67352         * lib/mgetgroups.c (xgetgroups): New wrapper.
67353         (mgetgroups): Handle ENOSYS.
67354         * modules/mgetgroups (Depends-on): Add realloc.
67355         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
67357         mgetgroups: avoid argument promotion issues with -1
67358         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
67359         for invalid gid_t.
67360         * tests/test-chown.h (getegid, test_chown): Likewise.
67361         * tests/test-lchown.h (getegid, test_lchown): Likewise.
67363 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
67365         exclude: Fix header file problems.
67366         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
67368 2009-12-01  Jim Meyering  <meyering@redhat.com>
67370         fts: fts_open: do not let an empty string cause immediate failure
67371         This is required in support of GNU rm, for which the command
67372         "rm A '' B" must process and remove both A and B, in spite of
67373         the empty string argument.
67374         * lib/fts.c (fts_open): Do not let the presence of an empty string
67375         cause fts_open to fail immediately.  Most fts-using tools must be
67376         able to process all arguments, in order, and can be expected to
67377         diagnose such arguments themselves.
67379 2009-11-30  Eric Blake  <ebb9@byu.net>
67381         utimens: fix compilation error
67382         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
67383         Declare variable at right scope.
67385 2009-11-29  Jim Meyering  <meyering@redhat.com>
67387         bootstrap: handle perl-5.11's changed --version output
67388         * build-aux/bootstrap (get_version): Handle perl separately,
67389         since perl-5.11's --version output is different.
67391 2009-11-28  Jim Meyering  <meyering@redhat.com>
67393         userspec: depend on the inttostr module, too
67394         * modules/userspec (Depends-on): Add inttostr.
67396         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
67397         * lib/userspec.c (parse_with_separator): Do not accept a user ID
67398         number of MAXUID when it evaluates to (uid_t) -1.
67399         Likewise for group ID.  Reported by Matt McCutchen in
67400         <http://savannah.gnu.org/bugs/?28113>
67402         userspec: reformat to use spaces, not TABs
67403         * lib/userspec.c: Expand TABs to spaces.
67404         Add Emacs' "indent-tabs-mode: nil" hint.
67406 2009-11-27  Eric Blake  <ebb9@byu.net>
67408         getopt-gnu: flush out another BSD bug
67409         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
67410         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
67411         flush out BSD bug.
67412         * tests/test-getopt.h (test_getopt): End lists with NULL.
67413         * tests/test-getopt_long.h (test_getopt_long): Likewise.
67414         (test_getopt_long_posix): Enhance test.
67415         * modules/getopt-posix-tests (Depends-on): Add stdbool.
67416         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
67417         getopt-gnu.
67418         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
67419         Likewise.
67421 2009-11-27  Simon Josefsson  <simon@josefsson.org>
67423         * modules/idpriv-droptemp-tests (Notice): Fix text.
67425 2009-11-27  Jim Meyering  <meyering@redhat.com>
67427         test-xalloc-die: avoid spurious failure due to libtool argv difference
67428         In a libtool-enabled project, this test would fail due to a difference
67429         in the emitted program name, e.g.,
67430         -test-xalloc-die: memory exhausted
67431         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
67432         Use program to avoid that.
67433         * modules/xalloc-die-tests (Depends-on): Add progname.
67434         * tests/test-xalloc-die.c: Include progname.h".
67435         (program_name): Remove decl.
67436         (main): Call set_program_name.
67437         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
67439 2009-11-26  Richard Jones  <rjones@redhat.com>
67441         w32sock: leave win32 error in place.
67442         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
67444 2009-11-26  Eric Blake  <ebb9@byu.net>
67446         init.sh: suggest to use skip_ and fail_ functions in comments
67447         * tests/init.sh: Add a sentence.
67449 2009-11-25  Bruno Haible  <bruno@clisp.org>
67451         init.sh: add documentation in comments
67452         * tests/init.sh: Add some developer and user documentation.
67454 2009-11-26  Jim Meyering  <meyering@redhat.com>
67456         init.sh: accommodate even those who specify bogus srcdir manually
67457         * tests/init.sh: Normally, srcdir is guaranteed by automake and
67458         configure-time tests to be sanitized, so that there is no need to
67459         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
67460         (with no double quotes) suffices.  However, since tests may be
67461         invoked manually, and since you may explicitly set srcdir to the
67462         name of a directory containing spaces, do quote its uses here.
67463         * tests/test-pread.sh: Likewise.
67464         Suggested by Bruno Haible.
67466         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
67467         * tests/test-pread.sh: Write no data into the pipe, because
67468         test-pread actually reads none.  This avoids a diagnostic,
67469         "bash: echo: write error: Broken pipe", that arises in the unusual
67470         event something is ignoring SIGPIPE, and might be interpreted
67471         as some sort of failure.  Reported by Bruno Haible.
67473 2009-11-25  Jim Meyering  <meyering@redhat.com>
67475         test-pread: cover failure with ESPIPE and EINVAL
67476         * tests/test-pread.c (main): Test for failure, too.
67477         * tests/test-pread.sh: Invoke with stdin on a pipe.
67478         Suggested by Eric Blake.
67480         pread: improvement and fix
67481         * modules/pread (Depends-on): Depend on lseek, for portability to
67482         e.g., mingw.  Suggested by Eric Blake.
67483         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
67485         unistd.in.h: correct declaration of pread
67486         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
67487         Reported by Richard W.M. Jones.
67489         test-pread.sh: distribute the test script
67490         * modules/pread-tests (Files): Include test-pread.sh.
67492         test-pread.sh: clean up
67493         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
67494         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
67495         That is unnecessary, since it's always ".".
67496         Suggestion from Eric Blake.
67498         test-pread.sh: make executable
67499         * tests/test-pread.sh: Set executable bit.
67500         Reported by Eric Blake.
67502         correct typo in test-pread.sh
67503         * tests/test-pread.sh: Add #! line.
67505         test pread
67506         * tests/test-pread.c: New file.
67507         * tests/test-pread.sh: Likewise.
67508         * modules/pread-tests: Likewise.
67510         pread: new module
67511         * modules/pread: New file.
67512         * lib/unistd.in.h (pread): Define/declare.
67513         * lib/pread.c (pread): New file.
67514         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
67515         * modules/unistd (Makefile.am): Substitute witnesses.
67516         * doc/posix-functions/pread.texi (pread): Update.
67517         * MODULES.html.sh: Add pread.
67519 2009-11-25  Jim Meyering  <meyering@redhat.com>
67521         tests/init.sh: new file to be used via most *.sh tests
67522         * tests/init.sh: New file.
67524 2009-11-25  Eric Blake  <ebb9@byu.net>
67526         utimens: work around older Linux failure with symlinks
67527         * lib/utimens.c (lutimensat_works_really): New variable.
67528         (fdutimens, lutimens): Use it to manage kernels that support
67529         nanosecond times on files, but not on symlinks.
67530         Reported by Ondřej Vašík.
67532         utimes: fix configure grammar
67533         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
67535 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
67537         regex: Fix fastmap for multibyte character ranges.
67538         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
67539         characters when a multibyte character range is included.
67541 2009-11-22  Andy Wingo  <wingo@pobox.com>
67543         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
67544         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
67546 2009-11-24  Bruno Haible  <bruno@clisp.org>
67548         doc: Most *_l functions exist in MacOS X 10.5.
67549         * doc/posix-functions/duplocale.texi: Update platforms list.
67550         * doc/posix-functions/freelocale.texi: Likewise.
67551         * doc/posix-functions/newlocale.texi: Likewise.
67552         * doc/posix-functions/uselocale.texi: Likewise.
67553         * doc/posix-functions/isalnum_l.texi: Likewise.
67554         * doc/posix-functions/isalpha_l.texi: Likewise.
67555         * doc/posix-functions/isblank_l.texi: Likewise.
67556         * doc/posix-functions/iscntrl_l.texi: Likewise.
67557         * doc/posix-functions/isdigit_l.texi: Likewise.
67558         * doc/posix-functions/isgraph_l.texi: Likewise.
67559         * doc/posix-functions/islower_l.texi: Likewise.
67560         * doc/posix-functions/isprint_l.texi: Likewise.
67561         * doc/posix-functions/ispunct_l.texi: Likewise.
67562         * doc/posix-functions/isspace_l.texi: Likewise.
67563         * doc/posix-functions/isupper_l.texi: Likewise.
67564         * doc/posix-functions/iswalnum_l.texi: Likewise.
67565         * doc/posix-functions/iswalpha_l.texi: Likewise.
67566         * doc/posix-functions/iswblank_l.texi: Likewise.
67567         * doc/posix-functions/iswcntrl_l.texi: Likewise.
67568         * doc/posix-functions/iswctype_l.texi: Likewise.
67569         * doc/posix-functions/iswdigit_l.texi: Likewise.
67570         * doc/posix-functions/iswgraph_l.texi: Likewise.
67571         * doc/posix-functions/iswlower_l.texi: Likewise.
67572         * doc/posix-functions/iswprint_l.texi: Likewise.
67573         * doc/posix-functions/iswpunct_l.texi: Likewise.
67574         * doc/posix-functions/iswspace_l.texi: Likewise.
67575         * doc/posix-functions/iswupper_l.texi: Likewise.
67576         * doc/posix-functions/iswxdigit_l.texi: Likewise.
67577         * doc/posix-functions/isxdigit_l.texi: Likewise.
67578         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
67579         * doc/posix-functions/strcasecmp_l.texi: Likewise.
67580         * doc/posix-functions/strcoll_l.texi: Likewise.
67581         * doc/posix-functions/strfmon_l.texi: Likewise.
67582         * doc/posix-functions/strftime_l.texi: Likewise.
67583         * doc/posix-functions/strncasecmp_l.texi: Likewise.
67584         * doc/posix-functions/strxfrm_l.texi: Likewise.
67585         * doc/posix-functions/tolower_l.texi: Likewise.
67586         * doc/posix-functions/toupper_l.texi: Likewise.
67587         * doc/posix-functions/towctrans_l.texi: Likewise.
67588         * doc/posix-functions/towlower_l.texi: Likewise.
67589         * doc/posix-functions/towupper_l.texi: Likewise.
67590         * doc/posix-functions/wcscoll_l.texi: Likewise.
67591         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
67592         * doc/posix-functions/wctrans_l.texi: Likewise.
67593         * doc/posix-functions/wctype_l.texi: Likewise.
67594         * doc/glibc-functions/strptime_l.texi: Likewise.
67595         * doc/glibc-functions/strtod_l.texi: Likewise.
67596         * doc/glibc-functions/strtof_l.texi: Likewise.
67597         * doc/glibc-functions/strtol_l.texi: Likewise.
67598         * doc/glibc-functions/strtold_l.texi: Likewise.
67599         * doc/glibc-functions/strtoll_l.texi: Likewise.
67600         * doc/glibc-functions/strtoul_l.texi: Likewise.
67601         * doc/glibc-functions/strtoull_l.texi: Likewise.
67602         * doc/glibc-functions/wcsftime_l.texi: Likewise.
67603         * doc/glibc-functions/wcstod_l.texi: Likewise.
67604         * doc/glibc-functions/wcstof_l.texi: Likewise.
67605         * doc/glibc-functions/wcstol_l.texi: Likewise.
67606         * doc/glibc-functions/wcstold_l.texi: Likewise.
67607         * doc/glibc-functions/wcstoll_l.texi: Likewise.
67608         * doc/glibc-functions/wcstoul_l.texi: Likewise.
67609         * doc/glibc-functions/wcstoull_l.texi: Likewise.
67611 2009-11-24  Bruno Haible  <bruno@clisp.org>
67613         duplocale: Fix logic bug.
67614         * lib/duplocale.c: Don't include <langinfo.h>.
67615         (_NL_LOCALE_NAME): Remove macro.
67616         (rpl_duplocale): Use setlocale instead of nl_langinfo.
67617         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
67619 2009-11-23  Jim Meyering  <meyering@redhat.com>
67621         test-update-copyright: don't hard-code /usr/bin/perl
67622         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
67623         perl to print the current year.  Gilles Espinasse reported that
67624         the replaced use of perl was hard-coded as /usr/bin/perl.
67626 2009-11-23  Bruno Haible  <bruno@clisp.org>
67628         duplocale: Add support for glibc 2.3.x.
67629         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
67631 2009-11-22  Bruno Haible  <bruno@clisp.org>
67633         vasnprintf: Tiny optimization.
67634         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
67635         MacOS X.
67637 2009-11-22  Bruno Haible  <bruno@clisp.org>
67639         Tests for module 'duplocale'.
67640         * modules/duplocale-tests: New file.
67641         * tests/test-duplocale.c: New file.
67643         New module 'duplocale'.
67644         * m4/duplocale.m4: New file.
67645         * lib/locale.in.h (duplocale): New declaration.
67646         * lib/duplocale.c: New file.
67647         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
67648         gl_LOCALE_H_DEFAULTS): New macros.
67649         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
67650         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
67651         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
67652         REPLACE_DUPLOCALE.
67653         * modules/duplocale: New file.
67654         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
67656 2009-11-22  Bruno Haible  <bruno@clisp.org>
67658         * modules/locale-tests (configure.ac): Test for newlocale function.
67659         * tests/test-locale.c: When the system has extended locale functions,
67660         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
67662         locale: Make locale_t available when possible.
67663         * lib/locale.in.h: Include <xlocale.h> when it exists.
67664         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
67665         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
67666         * modules/locale (Depends-on): Add extensions.
67667         (Makefile.am): Also substitute HAVE_XLOCALE_H.
67668         * doc/posix-headers/locale.texi: Document the problem with locale_t.
67670 2009-11-22  Bruno Haible  <bruno@clisp.org>
67672         Add comments.
67673         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
67674         invocation.
67675         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67676         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
67677         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67679 2009-11-22  Bruno Haible  <bruno@clisp.org>
67681         error: account for the possibility of freopen (stdout).
67682         * lib/error.c: Include <unistd.h>.
67683         (flush_stdout): New function, extracted from error and error_at_line.
67684         Determine stdout's fd dynamically.
67685         (error, error_at_line): Invoke flush_stdout.
67686         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
67687         * modules/error (Depends-on): Add unistd.
67689 2009-11-22  Bruno Haible  <bruno@clisp.org>
67691         diffseq: Add comment.
67692         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
67694 2009-11-22  Jim Meyering  <meyering@redhat.com>
67696         c-stack: avoid defining an unused static function
67697         * lib/c-stack.c (find_stack_direction): Do not define this function
67698         when it will not be used.
67700         diffseq: avoid spurious gcc warnings
67701         * lib/diffseq.h (IF_LINT2): Define.
67702         (compareseq): Use it to initialize two members of "part".
67703         This avoids two used-uninitialized warnings.
67705 2009-11-21  Jim Meyering  <meyering@redhat.com>
67707         c-stack: avoid "ignoring return value of `write'" warning
67708         * lib/c-stack.c: Include "ignore-value.h".
67709         (die): Explicitly ignore each write return value.
67710         * modules/c-stack (Depends-on): Add ignore-value.
67712 2009-11-21  Bruno Haible  <bruno@clisp.org>
67714         diffseq: reduce scope of variable 'best'.
67715         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
67716         variable, earlier used for two different purposes.
67718 2009-11-21  Jim Meyering  <meyering@redhat.com>
67720         diffseq: remove useless assignment to "best"
67721         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
67722         assignment.  At that point "best" is already guaranteed to be zero.
67724 2009-11-20  Eric Blake  <ebb9@byu.net>
67726         build: mention ftp redirector in release announcements
67727         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
67728         values that used to come from cfg.mk; mention FTP redirect URL.
67729         * build-aux/announce-gen: Mention the mirror list.
67730         Suggested by Karl Berry.
67732         nanosleep: improve port to mingw
67733         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
67734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
67735         LIB_NANOSLEEP, but only when needed.
67736         * modules/select (Link): Document LIBSOCKET.
67737         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
67738         enough.
67740         nanosleep: work around cygwin bug
67741         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
67742         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
67743         bug.
67744         (getnow): Delete, not needed.
67745         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
67746         LIB_CLOCK_GETTIME.
67747         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
67748         clock-time, gettime.
67749         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
67750         bug.
67751         * modules/nanosleep-tests: New test.
67752         * tests/test-nanosleep.c: New file.
67754         sleep: work around cygwin bug
67755         * lib/sleep.c (rpl_sleep): Work around the bug.
67756         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
67757         (gl_PREREQ_SLEEP): Delete unused macro.
67758         * modules/sleep (Depends-on): Add verify.
67759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
67760         * modules/unistd (Makefile.am): Substitute witness.
67761         * lib/unistd.in.h (sleep): Update prototype.
67762         * doc/posix-functions/sleep.texi (sleep): Document the bug.
67763         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
67764         * modules/sleep-tests (Depends-on): Check for alarm.
67766 2009-11-20  Jim Meyering  <meyering@redhat.com>
67768         maint.mk: improve sc_prohibit_magic_number_exit
67769         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
67770         so it does not match uses like System.exit(1).
67771         Add comments showing how to correct all offenders.
67773 2009-11-19  Eric Blake  <ebb9@byu.net>
67775         xalloc-die-tests: add missing library
67776         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
67778         test-xvasprintf: silence compiler warnings
67779         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
67780         empty string from gcc.
67782 2009-11-19  Jim Meyering  <meyering@redhat.com>
67784         xfreopen: new module, from coreutils
67785         * modules/xfreopen: New module.
67786         * lib/xfreopen.c: New file.
67787         * lib/xfreopen.h: New file.
67788         * MODULES.html.sh (File stream based Input/Output"): Add it.
67790 2009-11-19  Eric Blake  <ebb9@byu.net>
67792         manywarnings: depend on warnings
67793         * modules/manywarnings (Depends-on): Add warnings.
67795         build: avoid compiler warnings
67796         * lib/select.c (rpl_select): Delete unused variable.
67797         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
67799 2009-11-18  Eric Blake  <ebb9@byu.net>
67801         tests: avoid false negative with --with-packager
67802         * tests/test-version-etc.sh: Discard packager information.
67803         * tests/test-argp-version-etc-1.sh: Likewise.
67804         Reported by Mike Frysinger.
67806         utimens: fix regression on Solaris
67807         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
67808         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
67809         can only change fd timestamps via futimesat.  Instead, use an
67810         additional witness macro to avoid BSD bug.
67811         Reported by Jim Meyering.
67813 2009-11-17  Eric Blake  <ebb9@byu.net>
67815         usleep: use it to simplify tests
67816         * modules/stat-time-tests (Depends-on): Add usleep.
67817         (configure.ac): Drop usleep check.
67818         * modules/chown-tests (Depends-on, configure.ac): Likewise.
67819         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
67820         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
67821         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
67822         * modules/openat-tests (Depends-on, configure.ac): Likewise.
67823         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
67824         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
67825         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
67826         Likewise.
67827         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
67828         * tests/test-lchown.h (nap): Likewise.
67829         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
67830         * tests/test-stat-time.c (nap): Likewise.
67831         * tests/test-utimens-common.h (nap): Update comments.
67833         usleep: new module
67834         * modules/usleep: New file.
67835         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
67836         * lib/usleep.c (usleep): Likewise.
67837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
67838         * modules/unistd (Makefile.am): Substitute witnesses.
67839         * lib/unistd.in.h (usleep): Add declaration.
67840         * doc/pastposix-functions/usleep.texi (usleep): Document this.
67841         * MODULES.html.sh (Date and time): Likewise.
67842         * modules/usleep-tests (Depends-on): New test.
67843         * tests/test-usleep.c: New file.
67845         chown: work around OpenBSD bug
67846         * lib/chown.c (rpl_chown): Work around the bug.
67847         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
67848         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
67849         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
67850         * modules/chown (Depends-on): Add stdbool.
67851         * modules/lchown (Depends-on): Likewise.
67852         * doc/posix-functions/chown.texi (chown): Document the bug.
67853         * doc/posix-functions/lchown.texi (lchown): Likewise.
67854         * tests/test-lchown.h (test_chown): Relax test.
67856         mkstemp: avoid conflict with C++ keyword template
67857         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
67858         * lib/mkostemp.c (mkostemp): Likewise.
67859         * lib/mkostemps.c (mkostemps): Likewise.
67860         * lib/mkstemp.c (mkstemp): Likewise.
67861         * lib/mkstemps.c (mkstemps): Likewise.
67863         xalloc-die-tests: optimize
67864         * tests/test-xalloc-die.sh: Reduce number of processes.
67866 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67868         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
67869         patch from ludo@gnu.org (Ludovic Courtès).
67871 2009-11-17  Jim Meyering  <meyering@redhat.com>
67873         version-etc: use proper license string
67874         * modules/version-etc (License): Use LGPL, not LGPLv3+.
67875         * modules/version-etc-fsf: Likewise.
67877 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67879         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
67880         printed to stdout.  Deal with EOL differences.
67882 2009-11-17  Eric Blake  <ebb9@byu.net>
67884         unsetenv: work around Solaris bug
67885         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
67886         * lib/unsetenv.c (rpl_unsetenv): Work around it.
67887         Reported by Jim Meyering.
67889         vasnprintf: avoid compiler warnings
67890         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
67891         variables.
67892         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
67894 2009-11-17  Simon Josefsson  <simon@josefsson.org>
67896         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
67897         settings since xalloc-die is no longer the self test,
67898         xalloc-die.sh is.
67900 2009-11-17  Jim Meyering  <meyering@redhat.com>
67902         test-xalloc-die.sh: make the code agree with the commit log
67903         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
67904         at the end, just in case you happen to have a test-xalloc-die
67905         program in some other PATH directory.
67907         test-xalloc-die.sh: fix a portability bug
67908         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
67909         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
67910         Otherwise, argv[0] (as often seen in diagnostics) would be too
67911         system-dependent, sometimes with, and sometimes without the leading "./".
67913         version-etc-fsf: relax license to LGPLv3+
67914         * modules/version-etc-fsf (License): Relax license.
67916 2009-11-16  Eric Blake  <ebb9@byu.net>
67918         xalloc-die-tests: avoid printing null pointer
67919         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
67920         shell script.
67921         * tests/test-xalloc-die.c (program_name): Declare.
67922         * tests/test-xalloc-die.sh (tmpfiles): New file.
67924         setenv, unsetenv: work around various bugs
67925         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
67926         (setenv) [HAVE_SETENV]: Work around bugs.
67927         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
67928         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
67929         for bugs.
67930         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
67931         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
67932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
67933         * modules/stdlib (Makefile.am): Update substitutions.
67934         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
67935         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
67936         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
67937         * modules/setenv-tests: New test.
67938         * modules/unsetenv-tests: Likewise.
67939         * tests/test-setenv.c: New file.
67940         * tests/test-unsetenv.c: Likewise.
67942 2009-11-16  Jim Meyering  <meyering@redhat.com>
67944         version-etc: relax license to LGPLv3+
67945         * modules/version-etc (License): Relax license.
67947         better AC_REQUIRE expanded-before-required-warning avoidance
67948         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
67949         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
67950         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
67951         which is no longer needed.
67953 2009-11-16  Eric Blake  <ebb9@byu.net>
67955         test-freading: clean up temporary file
67956         * tests/test-freading.c (main): Remove file on success, and use
67957         ASSERT more liberally.
67958         Reported by Jim Meyering.
67960 2009-11-16  Jim Meyering  <meyering@redhat.com>
67962         avoid new AC_REQUIRE expanded-before-required warnings
67963         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
67964         merely using it.
67965         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
67966         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
67968 2009-11-15  Simon Josefsson  <simon@josefsson.org>
67970         * tests/test-xalloc-die.c: New file.
67971         * modules/xalloc-die-tests: New file.
67972         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
67973         XFAIL_TESTS so it can be appended by modules.
67975 2009-11-15  Simon Josefsson  <simon@josefsson.org>
67977         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
67978         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
67980 2009-11-14  Eric Blake  <ebb9@byu.net>
67982         fnmatch: avoid compiler warning
67983         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
67984         to silence compiler warning about mismatch signedness in ?:.
67985         Reported by Robert Millan.
67987         intprops: add double-inclusion guard
67988         * lib/intprops.h: Allow idempotent includes.
67989         Suggested by Bruce Korb.
67991         openat: detect Solaris fchownat bug
67992         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
67993         penalizing glibc chownat when only lchownat is broken.
67994         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
67995         trailing slash bugs.
67996         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
67997         * modules/openat-tests (Files): Include more files.
67998         (Depends-on): Add mgetgroups, sleep, stat-time.
67999         (configure.ac): Add additional checks.
68000         (Makefile.am): Build new test.
68001         * tests/test-fchownat.c: New file.
68003         lchown: detect Solaris and FreeBSD bug
68004         * lib/lchown.c (rpl_lchown): Work around bug.
68005         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
68006         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68007         * modules/unistd (Makefile.am): Populate it.
68008         * lib/unistd.in.h (lchown): Update declaration.
68009         * doc/posix-functions/lchown.texi (lchown): Document the bug.
68010         * modules/lchown-tests: New file.
68011         * tests/test-lchown.h (test_lchown): Likewise.
68012         * tests/test-lchown.c (main): Likewise.
68014         chown: detect Solaris and FreeBSD bug
68015         * lib/chown.c (rpl_chown): Work around bug.
68016         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
68017         (gl_PREREQ_CHOWN): Delete.
68018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
68019         * modules/unistd (Makefile.am): Populate it.
68020         * lib/unistd.in.h (chown): Update declaration.
68021         * lib/lchown.c (chown): Update client.
68022         * modules/lchown (Depends-on): Add lstat.
68023         * doc/posix-functions/chown.texi (chown): Document the bug.
68024         * doc/posix-functions/getgroups.texi (getgroups): Document
68025         getgroups pitfall.
68026         * modules/chown-tests: New file.
68027         * tests/test-chown.h (test_chown): Likewise.
68028         * tests/test-chown.c (main): Likewise.
68030 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
68032         gnulib-tool: correctly detect absence of m4 directories
68033         * gnulib-tool: Avoid extra newline on data passed to wc -l.
68035 2009-11-14  Jim Meyering  <meyering@redhat.com>
68037         maint.mk: Prohibit inclusion of "xalloc.h" without use.
68038         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
68040 2009-11-14  John W. Eaton  <jwe@gnu.org>
68042         strftime.h: wrap function declaration in extern "C" block
68043         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
68045 2009-11-13  Eric Blake  <ebb9@byu.net>
68047         getgroups: avoid compiler warning
68048         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
68050         getgroups: work around FreeBSD bug
68051         * lib/getgroups.c (rpl_getgroups): Work around the bug.
68052         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
68053         * doc/posix-functions/getgroups.texi (getgroups): Document it.
68054         * tests/test-getgroups.c (main): Fix buffer overrun.
68056         getgroups: avoid compilation failure
68057         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
68058         * modules/getgroups (Depends-on): Add stdint.
68060 2009-11-13  Jim Meyering  <meyering@redhat.com>
68062         test-getgroups: avoid compilation failure
68063         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
68065 2009-11-13  Eric Blake  <ebb9@byu.net>
68067         mgetgroups: new module, taken from coreutils
68068         * modules/mgetgroups: New file.
68069         * lib/mgetgroups.h: Likewise.
68070         * lib/mgetgroups.c (mgetgroups): Likewise.
68071         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
68072         * MODULES.html.sh (Users and groups): Mention it.
68074         getgroups: don't expose GETGROUPS_T to user
68075         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
68076         an element at a time if GETGROUPS_T is wrong size.
68077         * lib/getugroups.h (getugroups): Change signature.
68078         * lib/unistd.in.h (getgroups): Likewise.
68079         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
68080         signature needs fixing.
68081         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
68082         AC_TYPE_GETGROUPS.
68083         * modules/group-member (Depends-on): Add getgroups.
68084         * lib/group-member.c (group_info, get_group_info): Use gid_t.
68085         (group_member): Rely on getgroups replacement.
68086         * lib/getugroups.c (getugroups): Use gid_t.
68087         * tests/test-getgroups.c (main): Likewise.
68088         * NEWS: Mention the signature change.
68089         * doc/posix-functions/getgroups.texi (getgroups): Mention the
68090         problem with signature.
68091         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
68092         GETGROUPS_T is still useful for setgroups.
68094         getgroups, getugroups: provide stubs for mingw
68095         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
68096         * lib/getugroups.c (getugroups): Likewise.
68097         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
68098         function.  Modernize replacement scheme.
68099         (gl_PREREQ_GETGROUPS): Delete.
68100         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
68101         * modules/getgroups (configure.ac): Declare witness.
68102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
68103         * modules/unistd (Depends-on): Substitute witness.
68104         * lib/unistd.in.h (getgroups): Declare replacement.
68106         getgroups: avoid calling exit
68107         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
68108         drop xalloc.
68109         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
68110         dependencies.
68111         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
68112         exiting, in the rare case of malloc failure.
68114         getgroups: fix logic error
68115         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
68116         has more than 20 groups.
68117         * modules/getgroups-tests: New test.
68118         * tests/test-getgroups.c: New file.
68120 2009-11-13  Simon Josefsson  <simon@josefsson.org>
68122         * tests/test-base64.c: Improve.
68124 2009-11-13  Simon Josefsson  <simon@josefsson.org>
68126         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
68127         Blake <ebb9@byu.net>.
68129 2009-11-13  Simon Josefsson  <simon@josefsson.org>
68131         * tests/test-xvasprintf.c: Add %s%s related checks.
68133 2009-11-12  Eric Blake  <ebb9@byu.net>
68135         version-etc: match standards.texi style
68136         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
68137         and use <> only for URLs.
68139 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
68141         fts: do not fail on a submount during traversal
68142         * lib/fts.c (fts_build): Read the stat info again after opening
68143         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
68144         Original report at http://bugzilla.redhat.com/501848.
68146 2009-11-12  Jim Meyering  <meyering@redhat.com>
68148         bootstrap: sync from coreutils
68149         * build-aux/bootstrap (bootstrap_epilogue): New function.
68150         Use git_modules_config in one more place.  This make bootstrap's
68151         --gnulib-srcdir option more useful for testing.
68153         bootstrap: generalize autoheader check
68154         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
68155         AC_CONFIG_HEADERS.
68157 2009-11-11  Eric Blake  <ebb9@byu.net>
68159         mkfifoat: use new modules for Solaris and BSD bugs
68160         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
68161         * lib/mkfifoat.c (mknodat): Split...
68162         * lib/mknodat.c (mknodat): ...into new file.
68163         * modules/mkfifoat (Files): Ship new file.
68164         (Depends-on): Add mkfifo, mknod.
68165         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
68166         (Depends-on): Add symlink.
68167         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
68168         redundant with test_mkfifo.h.
68169         (do_mkfifoat, do_mknodat): New helpers.
68171         mknod: new module
68172         * modules/mknod: New file.
68173         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
68174         * lib/mknod.c (mknod): Likewise.
68175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
68176         defaults.
68177         * modules/sys_stat (Makefile.am): Substitute them.
68178         * lib/sys_stat.in.h (mknod): Declare replacement.
68179         * MODULES.html.sh (Support for systems lacking POSIX:2008):
68180         Document it.
68181         * doc/posix-functions/mknod.texi (mknod): Likewise.
68182         * modules/mknod-tests: New test.
68183         * tests/test-mknod.c: Likewise.
68185         mkfifo: new module
68186         * modules/mkfifo: New file.
68187         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
68188         * lib/mkfifo.c (mkfifo): Likewise.
68189         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
68190         defaults.
68191         * modules/sys_stat (Makefile.am): Substitute them.
68192         * lib/sys_stat.in.h (mkfifo): Declare replacement.
68193         * MODULES.html.sh (Support for systems lacking POSIX:2008):
68194         Document it.
68195         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
68196         * modules/mkfifo-tests: New test.
68197         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
68198         from test-mkfifoat.c.
68199         * tests/test-mkfifo.c: New file.
68201         readlink: detect FreeBSD bug
68202         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
68203         slash on symlink.
68204         * doc/posix-functions/readlink.texi (readlink): Document the bug.
68205         * tests/test-readlink.h (test_readlink): Enhance test.
68207         symlink: detect FreeBSD bug
68208         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
68209         slash on symlink.
68210         * doc/posix-functions/symlink.texi (symlink): Document the bug.
68211         * tests/test-symlink.h (test_symlink): Enhance test.
68213 2009-11-10  Eric Blake  <ebb9@byu.net>
68215         link: detect FreeBSD bug
68216         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
68217         symlink.
68218         * doc/posix-functions/link.texi (link): Document the bug.
68219         * tests/test-link.h (test_link): Enhance test.
68220         * tests/test-linkat.c (main): Update caller.
68222         unlink, remove: detect FreeBSD bug
68223         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
68224         slash on symlink.
68225         * doc/posix-functions/unlink.texi (unlink): Document the bug.
68226         * doc/posix-functions/remove.texi (remove): Likewise.
68227         * tests/test-unlink.h (test_unlink): Enhance test.
68228         * tests/test-remove.c (main): Likewise.
68230 2009-11-09  Eric Blake  <ebb9@byu.net>
68232         rename: detect FreeBSD bug
68233         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
68234         slash on symlink.
68235         * modules/renameat-tests (Depends-on): Add filenamecat.
68236         * tests/test-rename.h (test_rename): Allow one more errno.
68237         * tests/test-renameat.c (main): Likewise.
68238         * doc/posix-functions/rename.texi (rename): Document the bug.
68240         open: detect FreeBSD bug
68241         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
68242         symlink.
68243         * doc/posix-functions/open.texi (open): Document the bug.
68244         * doc/posix-functions/utimes.texi (utimes): Likewise.
68245         * tests/test-open.h (test_open): Add parameters, and test symlink
68246         handling.
68247         * tests/test-open.c (main): Adjust caller.
68248         * tests/test-fcntl-safer.c (main): Likewise.
68249         * modules/open-tests (Depends-on): Add stdbool, symlink.
68250         * modules/fcntl-safer-tests (Depends-on): Likewise.
68251         * tests/test-openat.c (main): Add test-open tests.
68253         stat: detect FreeBSD bug
68254         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
68255         symlink.
68256         * doc/posix-functions/stat.texi (stat): Document the bug.
68257         * tests/test-stat.h (test_stat_func): Add argument.
68258         * tests/test-stat.c (main): Adjust caller.
68259         * tests/test-fstatat.c (main): Likewise.
68260         * modules/stat-tests (Depends-on): Add stdbool, symlink.
68261         Reported by Jim Meyering.
68263 2009-11-09  James Youngman  <jay@gnu.org>
68265         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
68266         * lib/strftime.c: Correct placement of #include "ignore-value.h".
68268 2009-11-08  Jim Meyering  <meyering@redhat.com>
68270         utimens: remove invalid futimesat call
68271         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
68272         It used the file descriptor of the target file as the DIR_FD
68273         parameter and NULL as the file name.  That caused failure with
68274         errno == EFAULT on FreeBSD-8.0-rc2
68276 2009-11-07  Eric Blake  <ebb9@byu.net>
68278         fflush, freadseek: use fseeko, not fseek
68279         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
68280         (clear_ungetc_buffer): Avoid potential problems on large files.
68281         * lib/freadseek.c (freadseek): Likewise.
68282         * modules/freadseek (Depends-on): Add fseeko.
68283         * modules/fseek (configure.ac): Set a witness.
68284         * tests/test-fflush.c (main): Use fseeko.
68285         * tests/test-fpurge.c (fseek): Disable link warning.
68286         * tests/test-freadable.c (fseek): Likewise.
68287         * tests/test-freading.c (fseek): Likewise.
68288         * tests/test-fseeko.c (fseek): Likewise.
68289         * tests/test-ftell.c (fseek): Likewise.
68290         * tests/test-ftello.c (fseek): Likewise.
68291         * tests/test-fwritable.c (fseek): Likewise.
68292         * tests/test-fwriting.c (fseek): Likewise.
68294 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68296         * modules/memchr (Depends-on): Drop getpagesize dependency.
68298 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68300         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
68301         Reported by Ludovic Courtès.
68302         * build-aux/pmccabe2html: Improve example usage.
68303         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
68305 2009-11-06  Jim Meyering  <meyering@redhat.com>
68307         do-release-commit-and-tag: New module.
68308         Automate the release-commit and tag process.
68309         * build-aux/do-release-commit-and-tag: New script, from coreutils.
68310         * modules/do-release-commit-and-tag: New file.
68311         * MODULES.html.sh (Support for maintaining and releasing): Add it.
68313 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68315         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
68316         because test-select.c uses inet_pton.
68318 2009-11-06  Simon Josefsson  <simon@josefsson.org>
68320         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
68321         GETADDRINFO_LIB.  Bump serial number.
68322         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
68323         Suggested by Eric Blake <ebb9@byu.net>.
68325 2009-11-05  Eric Blake  <ebb9@byu.net>
68327         strtod: detect darwin bug
68328         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
68329         Reported by Leo Davis.
68331         freopen-safer: new module
68332         * modules/freopen-safer: New module.
68333         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
68334         * lib/freopen-safer.c (freopen_safer): New file.
68335         * lib/stdio-safer.h (freopen_safer): New declaration.
68336         * lib/stdio--.h (freopen): New override.
68337         * MODULES.html.sh (File stream based Input/Output): Mention it.
68338         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
68339         freopen-safer module.
68340         * doc/posix-functions/stderr.texi (stderr): Likewise.
68341         * doc/posix-functions/stdin.texi (stdin): Likewise.
68342         * doc/posix-functions/stdout.texi (stdout): Likewise.
68343         * modules/freopen-safer-tests: New test.
68344         * tests/test-reopen-safer.c: New file.
68346 2009-11-05  Jim Meyering  <meyering@redhat.com>
68348         maint.mk: Prohibit inclusion of "close-stream.h" without use.
68349         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
68351 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68353         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
68355 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68357         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
68359 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68361         Fix link error.
68362         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
68363         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68365 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68367         * tests/test-func.c: Also test value of __func__.
68369 2009-11-05  Simon Josefsson  <simon@josefsson.org>
68371         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
68372         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
68374 2009-11-05  Bruno Haible  <bruno@clisp.org>
68376         Fix link error.
68377         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
68378         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
68379         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
68381 2009-11-05  Bruno Haible  <bruno@clisp.org>
68383         Tests for module 'inet_pton'.
68384         * modules/inet_pton-tests: New file.
68385         * tests/test-inet_pton.c: New file.
68387 2009-11-05  Bruno Haible  <bruno@clisp.org>
68389         Tests for module 'inet_ntop'.
68390         * modules/inet_ntop-tests: New file.
68391         * tests/test-inet_ntop.c: New file.
68393 2009-11-04  Eric Blake  <ebb9@byu.net>
68395         stdlib-safer: wrap all mkstemp variants
68396         * modules/mkostemp (configure.ac): Set witness.
68397         * modules/mkostemps (configure.ac): Likewise.
68398         * modules/mkstemps (configure.ac): Likewise.
68399         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
68400         (mkstemps_safer): Wrap more functions.
68401         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
68402         wrapping.
68403         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
68404         (mkstemps_safer): Implement the wrappers.
68406         mkstemps, mkostemps: new modules
68407         * modules/mkostemps: New module.
68408         * modules/mkstemps: Likewise.
68409         * lib/mkostemps.c (mkostemps): New file.
68410         * lib/mkstemps.c (mkstemps): Likewise.
68411         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
68412         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
68413         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
68414         * modules/stdlib (Makefile.am): Substitute them.
68415         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
68416         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
68417         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
68418         * doc/gnulib.texi (Glibc stdlib.h): Include them.
68419         * MODULES.html.sh (File system functions): Mention them.
68421         tempname: resync from glibc
68422         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
68423         same values for __GT_FILE as glibc.  Abort even when assertions
68424         are disabled.
68425         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
68426         match its value otherwise.  Allow idempotent inclusion.
68427         * lib/mkdtemp.c (mkdtemp): Adjust caller.
68428         * lib/mkostemp.c (mkostemp): Likewise.
68429         * lib/mkstemp.c (mkstemp): Likewise.
68430         * lib/tmpfile.c (tmpfile): Likewise.
68431         * NEWS: Document this.
68433         utimens: fix use of futimens on older Linux
68434         * lib/utimens.c (fdutimens): Use updated, rather than original,
68435         timespec to avoid bug in older Linux kernel.
68436         Reported by Simon Josefsson.
68438 2009-11-04  Bruno Haible  <bruno@clisp.org>
68440         Make num_processors more flexible and consistent.
68441         * lib/nproc.h (enum nproc_query): New type.
68442         (num_processors): Add a 'query' argument.
68443         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
68444         (num_processors): Add a 'query' argument. Test the value of the
68445         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
68446         mingw, count the number of CPUs available for the current process.
68447         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
68448         Check for sched_getaffinity and sched_getaffinity_np.
68449         * modules/nproc (Depends-on): Add c-ctype, extensions.
68450         * NEWS: Mention the change.
68452 2009-11-03  Bruno Haible  <bruno@clisp.org>
68454         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
68456 2009-11-03  Jim Meyering  <meyering@redhat.com>
68458         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
68459         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
68460         if it is defined.
68462 2009-11-02  Eric Blake  <ebb9@byu.net>
68464         mktime, timegm: share common declaration
68465         * lib/mktime-internal.h: New file.
68466         * lib/mktime.c: Use it rather than open-coding a declaration.
68467         * lib/timegm.c: Likewise.
68468         * modules/mktime (Files): Ship it.
68469         * modules/timegm (Files): Likewise.
68470         Suggested by Bruno Haible.
68472         test-update-copyright: update test to match script changes
68473         * tests/test-update-copyright.sh: Avoid hard-coding perl
68474         location.  Don't update *.bak created by earlier runs.
68476 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
68477             Simon Josefsson  <simon@josefsson.org>
68478             Bruno Haible  <bruno@clisp.org>
68480         Fix link error on Solaris 8.
68481         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
68482         also in libnsl. Define also INET_PTON_LIB.
68483         * modules/inet_pton (Link): New section.
68485 2009-11-02  Simon Josefsson  <simon@josefsson.org>
68486             Bruno Haible  <bruno@clisp.org>
68488         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
68489         * modules/inet_ntop (Link): New section.
68490         Reported by Boyan Kasarov <bkasarov@gmail.com>.
68492 2009-11-02  Eric Blake  <ebb9@byu.net>
68494         maint: avoid compiler warnings in m4 macros
68495         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
68496         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
68498 2009-11-02  Simon Josefsson  <simon@josefsson.org>
68500         * m4/pmccabe2html.m4: Remove file.
68501         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
68502         function.  Change maintainer.
68503         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
68504         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
68505         Courtès).
68507 2009-10-31  Eric Blake  <ebb9@byu.net>
68509         fseeko: fix m4 regression
68510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
68511         regression from 2009-10-27.
68512         Reported by Ralf Wildenhues.
68514 2009-10-31  Jim Meyering  <meyering@redhat.com>
68516         inttostr: aesthetics and improved (compile-time) safety
68517         Define inttype_is_signed rather than inttype_is_unsigned,
68518         since the sole use is via "#if inttype_is_signed".
68519         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
68520         inttype_is_unsigned.
68521         * lib/offtostr.c (inttype_is_signed): Likewise.
68522         * lib/uinttostr.c (inttype_is_signed): Likewise.
68523         * lib/umaxtostr.c (inttype_is_signed): Likewise.
68524         * lib/inttostr.c (inttostr): Use verify to cross-check the
68525         inttype_is_signed value and the signedness of the actual type.
68526         * modules/inttostr (Depends-on): Add verify.
68528 2009-10-30  Eric Blake  <ebb9@byu.net>
68530         build: avoid compiler warnings
68531         * lib/fchmodat.c (lchmod): Mark unused variables.
68532         * lib/getopt.c (_getopt_initialize): Likewise.
68533         * lib/mktime.c (__mktime_internal): Provide prototype.
68534         * lib/inttostr.c (inttostr): Avoid compiler warning even with
68535         older gcc that do not understand #pragma GCC diagnostic.
68536         * lib/uinttostr.c (inttype_is_unsigned): Define.
68537         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
68539 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
68541         stat: fix compilation on AIX
68542         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
68543         only see struct stat64.
68545 2009-10-30  Eric Blake  <ebb9@byu.net>
68547         exclude: make more robust
68548         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
68549         rather than masking a coding bug.
68550         Suggested by Bruno Haible.
68552 2009-10-30  Jim Meyering  <meyering@redhat.com>
68554         perl scripts: remove #!/usr/bin/perl in favor of more portable...
68555         Rather than putting #!/usr/bin/perl on the first line,
68556         start with a variant of what's recommended by "man perlrun" that
68557         invokes the first "perl" program from your shell's search path.
68558         * build-aux/gitlog-to-changelog: Replace #!... as above.
68559         Add a "Local Variables" perl mode setting.
68560         Prompted by a patch from Ludovic Courtès.
68561         Improved by Eric Blake.
68562         * build-aux/useless-if-before-free: Likewise.
68563         * build-aux/announce-gen: Likewise.
68564         * build-aux/update-copyright: Likewise.
68566 2009-10-29  Eric Blake  <ebb9@byu.net>
68568         filenamecat-lgpl: adjust clients
68569         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
68570         filenamecat.
68571         * modules/renameat (Depends-on): Likewise.
68573         filenamecat: split into filenamecat-lgpl
68574         * modules/filenamecat-lgpl: New module.
68575         * modules/filenamecat (Files): Move library-safe files into
68576         filenamecat-lgpl.
68577         (Depends-on): Add filenamecat-lgpl.
68578         (configure.ac): Declare witness.
68579         * lib/filenamecat.h (file_name_concat): Only declare when using
68580         GPL module.
68581         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
68582         Move...
68583         * lib/filenamecat-lgpl.c: ...into new file.
68584         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
68585         (gl_FILE_NAME_CONCAT): Use it.
68586         * MODULES.html.sh (File system functions): Mention new module.
68588         argp: avoid memory leak
68589         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
68590         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
68591         base_name, since the latter malloc()s and can call exit().
68592         Leak introduced 2006-07-03.
68594         dirname-lgpl: adjust clients that don't need full dirname
68595         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
68596         * modules/filenamecat (Depends-on): Likewise.
68597         * modules/linkat (Depends-on): Likewise.
68598         * modules/mkancesdirs (Depends-on): Likewise.
68599         * modules/mkdir (Depends-on): Likewise.
68600         * modules/openat (Depends-on): Likewise.
68601         * modules/savewd (Depends-on): Likewise.
68602         * modules/rename (Depends-on): Likewise.
68603         (License): Relax license.
68604         * modules/mkdir-tests (Depends-on): Drop progname.
68605         (Makefile.am): Delete unneeded LDADD.
68606         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
68608         dirname: split into dirname-lgpl
68609         * modules/dirname-lgpl: New module.
68610         * modules/dirname (Files): Move library-safe files into
68611         dirname-lgpl.
68612         (Depends-on): Add dirname-lgpl.
68613         (configure.ac): Declare witness.
68614         * modules/double-slash-root (License): Relax license.
68615         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
68616         module.
68617         * lib/dirname.c (dir_len, mdir_name): Move...
68618         * lib/dirname-lgpl.c: ...into new file.
68619         * lib/basename.c (last_component, base_len): Move...
68620         * lib/basename-lgpl.c: ...into new file.
68621         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
68622         (gl_DIRNAME): Use it.
68623         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
68624         Mention new module.
68625         * modules/dirname-tests (Depends-on): Add progname.
68626         * tests/test-dirname.c (program_name): Delete.
68628         mkdir: make safe for libraries
68629         * modules/mkdir (Depends-on): Drop xalloc.
68630         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
68631         exit.
68633         tests: avoid some compiler warnings
68634         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
68635         literals.
68636         * tests/test-memchr.c (main): Avoid type mismatch.
68637         * tests/test-arpa_inet.c (main): Avoid unused parameters.
68638         * tests/test-base64.c (main): Likewise.
68639         * tests/test-getdelim.c (main): Likewise.
68640         * tests/test-gethostname.c (main): Likewise.
68641         * tests/test-getline.c (main): Likewise.
68642         * tests/test-netinet_in.c (main): Likewise.
68643         * tests/test-select.c (open_server_socket, main): Likewise.
68644         * tests/test-select-stdin.c (main): Likewise.
68645         * tests/test-sockets.c (main): Likewise.
68646         * tests/test-strsignal.c (main): Likewise.
68647         * tests/test-sys_select.c (main): Likewise.
68648         * tests/test-sys_socket.c (main): Likewise.
68649         * tests/test-u64.c (main): Likewise.
68650         * tests/test-xfprintf-posix.c (main): Likewise.
68651         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
68653         sockets: avoid compiler warning
68654         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
68656         maint: detect usage(1) and other suspicious exits
68657         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
68659 2009-10-29  Jim Meyering  <meyering@redhat.com>
68661         timespec: long-to-int truncation could make timespec_cmp malfunction
68662         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
68663         a multiple of 2^32 nanoseconds as no difference.
68665 2009-10-28  Jim Meyering  <meyering@redhat.com>
68667         fprintftime: wrap macro code argument in "do {...} while(0)"
68668         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
68669         cpy macro must be a statement that can be followed by a semicolon.
68670         Now that the else clause contains a comment and is hence longer
68671         than one line, I require curly braces.  That in turn requires
68672         that we wrap this code block in the standard do...while(0).
68674         fprintftime: remove stray semicolon from previous change
68675         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
68677         fprintftime: avoid a warning about ignored fwrite return value
68678         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
68679         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
68680         that is unsafe.
68681         * modules/fprintftime (Depends-on): Add ignore-value.
68683         exclude: avoid an unwarranted warning
68684         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
68686 2009-10-27  Eric Blake  <ebb9@byu.net>
68688         fseek: avoid compilation failure when fflush is replaced
68689         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
68690         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
68691         module is in use.
68692         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
68693         module is not in use; since REPLACE_FSEEK worked otherwise.
68694         (GNULIB_FTELLO): Likewise for ftell.
68695         Reported by Ian Beckwith and others.
68697 2009-10-27  Bruno Haible  <bruno@clisp.org>
68699         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
68700         Reported by Jim Meyering.
68702 2009-10-27  Jim Meyering  <jim@meyering.net>
68703             Bruno Haible  <bruno@clisp.org>
68705         Avoid warning despite dropping the return value of fwrite.
68706         * lib/unicodeio.c: Include ignore-value.h.
68707         (fwrite_success_callback): Explicitly ignore fwrite's return value.
68708         * modules/unicodeio (Depends-on): Add ignore-value.
68710 2009-10-26  Eric Blake  <ebb9@byu.net>
68712         areadlinkat: fix fallback path
68713         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
68714         pointer and zero.
68716 2009-10-22  Pádraig Brady  <P@draigBrady.com>
68718         Use a better IO block size for modern systems
68719         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
68720         * lib/md2.c: Likewise.
68721         * lib/md4.c: Likewise.
68722         * lib/md5.c: Likewise.
68723         * lib/sha1.c: Likewise.
68724         * lib/sha256.c: Likewise.
68725         * lib/sha512.c: Likewise.
68727 2009-10-22  Eric Blake  <ebb9@byu.net>
68729         tests: avoid several compiler warnings
68730         * tests/test-getcwd.c (main): Avoid buffer underflow.
68731         * tests/test-getdate.c (main): String literals are not safe with
68732         putenv, so use setenv.  Declare unused argument.
68733         * modules/getdate-tests (Depends-on): Add setenv.
68734         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
68735         problems with string literals in char *.
68736         * tests/test-hash.c (main): Avoid shadowing declaration.
68737         (insert_new): Treat string literals as char const *.
68738         * tests/test-getopt.h (test_getopt): Likewise.
68739         (getopt_loop): Alter types to minimize casting elsewhere.
68740         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
68741         (test_getopt_long_posix): Likewise.
68742         (do_getopt_long): Add wrapper to minimize casting.
68743         * tests/test-atexit.c (clear_temp_file): Use void.
68744         * tests/test-areadlink-with-size.c (main): Declare unused
68745         arguments.
68746         * tests/test-areadlink.c (main): Likewise.
68747         * tests/test-areadlinkat-with-size.c (main): Likewise.
68748         * tests/test-areadlinkat.c (main): Likewise.
68749         * tests/test-canonicalize-lgpl.c (main): Likewise.
68750         * tests/test-canonicalize.c (main): Likewise.
68751         * tests/test-dirent-safer.c (main): Likewise.
68752         * tests/test-dirname.c (main): Likewise.
68753         * tests/test-dup2.c (main): Likewise.
68754         * tests/test-fchdir.c (main): Likewise.
68755         * tests/test-fcntl-h.c (main): Likewise.
68756         * tests/test-fcntl-safer.c (main): Likewise.
68757         * tests/test-fdopendir.c (main): Likewise.
68758         * tests/test-fdutimensat.c (main): Likewise.
68759         * tests/test-fflush.c (main): Likewise.
68760         * tests/test-filenamecat.c (main): Likewise.
68761         * tests/test-filevercmp.c (main): Likewise.
68762         * tests/test-fopen-safer.c (main): Likewise.
68763         * tests/test-fopen.c (main): Likewise.
68764         * tests/test-fpending.c (main): Likewise.
68765         * tests/test-fpurge.c (main): Likewise.
68766         * tests/test-freading.c (main): Likewise.
68767         * tests/test-fstatat.c (main): Likewise.
68768         * tests/test-fsync.c (main): Likewise.
68769         * tests/test-futimens.c (main): Likewise.
68770         * tests/test-getndelim2.c (main): Likewise.
68771         * tests/test-gettimeofday.c (main): Likewise.
68772         * tests/test-getopt.c (main): Likewise.
68773         * tests/test-i-ring.c (main): Likewise.
68774         * tests/test-inttypes.c (main): Likewise.
68775         * tests/test-link.c (main): Likewise.
68776         * tests/test-lstat.c (main): Likewise.
68777         * tests/test-math.c (main): Likewise.
68778         * tests/test-md5.c (main): Likewise.
68779         * tests/test-memchr2.c (main): Likewise.
68780         * tests/test-memrchr.c (main): Likewise.
68781         * tests/test-mkdir.c (main): Likewise.
68782         * tests/test-mkdirat.c (main): Likewise.
68783         * tests/test-mkfifoat.c (main): Likewise.
68784         * tests/test-open.c (main): Likewise.
68785         * tests/test-openat-safer.c (main): Likewise.
68786         * tests/test-openat.c (main): Likewise.
68787         * tests/test-quotearg.c (main): Likewise.
68788         * tests/test-rawmemchr.c (main): Likewise.
68789         * tests/test-readlink.c (main): Likewise.
68790         * tests/test-remove.c (main): Likewise.
68791         * tests/test-rename.c (main): Likewise.
68792         * tests/test-renameat.c (main): Likewise.
68793         * tests/test-rmdir.c (main): Likewise.
68794         * tests/test-sha1.c (main): Likewise.
68795         * tests/test-signal.c (main): Likewise.
68796         * tests/test-sigaction.c (main): Likewise.
68797         * tests/test-stat.c (main): Likewise.
68798         * tests/test-stat-time.c (main): Likewise.
68799         * tests/test-stddef.c (main): Likewise.
68800         * tests/test-stdint.c (main): Likewise.
68801         * tests/test-stdio.c (main): Likewise.
68802         * tests/test-stdlib.c (main): Likewise.
68803         * tests/test-strchrnul.c (main): Likewise.
68804         * tests/test-strerror.c (main): Likewise.
68805         * tests/test-string.c (main): Likewise.
68806         * tests/test-strtod.c (main): Likewise.
68807         * tests/test-strverscmp.c (main): Likewise.
68808         * tests/test-symlink.c (main): Likewise.
68809         * tests/test-symlinkat.c (main): Likewise.
68810         * tests/test-sys_stat.c (main): Likewise.
68811         * tests/test-sys_time.c (main): Likewise.
68812         * tests/test-time.c (main): Likewise.
68813         * tests/test-unistd.c (main): Likewise.
68814         * tests/test-unlink.c (main): Likewise.
68815         * tests/test-unlinkat.c (main): Likewise.
68816         * tests/test-utimens.c (main): Likewise.
68817         * tests/test-utimensat.c (main): Likewise.
68818         * tests/test-version-etc.c (main): Likewise.
68819         * tests/test-wchar.c (main): Likewise.
68820         * tests/test-wctype.c (main): Likewise.
68821         * tests/test-xprintf-posix.c (main): Likewise.
68822         * tests/test-posixtm.c (main): Likewise.
68823         (STREQ): Delete unused macro.
68824         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
68825         shadowed variables.
68826         * tests/test-memchr.c (main): Likewise.
68828 2009-10-21  Eric Blake  <ebb9@byu.net>
68830         areadlinkat: avoid failure on older glibc
68831         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
68832         rather than mis-comparing 0 against FUNC_RESULT of char*.
68834 2009-10-21  Bruno Haible  <bruno@clisp.org>
68836         * modules/stpncpy (License): Relicense under LGPLv2+.
68837         Reported by David Lutterkort <lutter@redhat.com>.
68839 2009-10-20  Eric Blake  <ebb9@byu.net>
68841         utimensat: work around Solaris 9 bug
68842         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
68843         has trailing slash bugs.
68844         * tests/test-lutimens.h (test_lutimens): Enhance test.
68845         * tests/test-utimens.h (test_utimens): Likewise.
68846         * doc/posix-functions/utime.texi (utime): Enhance documentation.
68847         * doc/posix-functions/utimes.texi (utimes): Likewise.
68848         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68849         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
68850         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
68851         * doc/posix-functions/futimens.texi (futimens): Likewise.
68853         fdutimensat: new module
68854         * modules/fdutimensat: New file.
68855         * lib/fdutimensat.c (fdutimensat): Likewise.
68856         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
68857         * MODULES.html.sh (File system functions): Mention module.
68858         * modules/fdutimensat-tests: New test.
68859         * tests/test-fdutimensat.c: Likewise.
68861         doc: regenerate INSTALL
68862         * doc/INSTALL: Reflect recent autoconf update.
68863         * doc/INSTALL.ISO: Likewise.
68864         * doc/INSTALL.UTF-8: Likewise.
68866 2009-10-20  Pádraig Brady  <P@draigBrady.com>
68868         acl: warn if ACL support is not detected
68869         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
68871 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
68873         * lib/nproc.h: Add extern "C" block for C++.
68875 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
68876             Bruno Haible  <bruno@clisp.org>
68878         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
68879         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
68880         * doc/posix-functions/isalpha.texi: Likewise.
68881         * doc/posix-functions/isblank.texi: Likewise.
68882         * doc/posix-functions/iscntrl.texi: Likewise.
68883         * doc/posix-functions/isdigit.texi: Likewise.
68884         * doc/posix-functions/isgraph.texi: Likewise.
68885         * doc/posix-functions/islower.texi: Likewise.
68886         * doc/posix-functions/isprint.texi: Likewise.
68887         * doc/posix-functions/ispunct.texi: Likewise.
68888         * doc/posix-functions/isspace.texi: Likewise.
68889         * doc/posix-functions/isupper.texi: Likewise.
68890         * doc/posix-functions/isxdigit.texi: Likewise.
68892 2009-10-18  Bruno Haible  <bruno@clisp.org>
68894         Tests for module 'isblank'.
68895         * modules/isblank-tests: New file.
68896         * tests/test-isblank.c: New file.
68898         New module 'isblank'.
68899         * lib/isblank.c: New file.
68900         * m4/isblank.m4: New file.
68901         * modules/isblank: New file.
68902         * doc/posix-functions/isblank.texi: Mention the new module.
68904 2009-10-18  Bruno Haible  <bruno@clisp.org>
68906         New module 'ctype'.
68907         * lib/ctype.in.h: New file.
68908         * m4/ctype.m4: New file.
68909         * modules/ctype: New file.
68910         * doc/posix-headers/ctype.texi: Mention the new module.
68912 2009-10-18  Jim Meyering  <meyering@redhat.com>
68914         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
68915         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
68916         right after its initialization, rather than farther down.
68917         Keeping these in close proximity makes it easier to ensure
68918         that each such variable is initialized.  E.g.,
68920             LIB_CLOCK_GETTIME=
68921             AC_SUBST([LIB_CLOCK_GETTIME])
68923         This change also increments these serial numbers.
68924         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
68925         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
68926         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68928 2009-10-18  Bruno Haible  <bruno@clisp.org>
68930         Don't let environment variables perturb build.
68931         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
68932         (gl_PREREQ_GETHRXTIME): ... not here.
68934 2009-10-18  Bruno Haible  <bruno@clisp.org>
68936         Avoid symlink attack in localcharset module.
68937         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
68938         (O_NOFOLLOW): Define fallback.
68939         (get_charset_aliases): Don't open the file if it is a symbolic link.
68940         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
68941         gl_FCNTL_H.
68942         (gl_FCNTL_H): Require it.
68943         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
68944         * modules/localcharset (Files): Add m4/fcntl_h.m4.
68945         Reported by Fergal Glynn <fglynn@veracode.com>.
68947 2009-10-18  Bruno Haible  <bruno@clisp.org>
68949         Implement nproc for mingw.
68950         * lib/nproc.c: Include <windows.h>
68951         (num_processors): On native Windows platforms, try GetSystemInfo.
68953 2009-10-18  Bruno Haible  <bruno@clisp.org>
68955         Implement nproc for IRIX.
68956         * lib/nproc.c: Include <sys/sysmp.h>.
68957         (num_processors): On IRIX systems, try sysmp.
68958         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
68960 2009-10-18  Bruno Haible  <bruno@clisp.org>
68962         Implement nproc for HP-UX.
68963         * lib/nproc.c: Include <sys/pstat.h>
68964         (num_processors): On HP-UX systems, try pstat_getdynamic.
68965         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
68966         pstat_getdynamic.
68968 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
68969             Bruno Haible  <bruno@clisp.org>
68971         Implement nproc for NetBSD, OpenBSD.
68972         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
68973         (ARRAY_SIZE): New macro.
68974         (num_processors): On BSD systems, try sysctl of HW_NCPU.
68975         * m4/nproc.m4: New file.
68976         * modules/nproc (Files): Add m4/nproc.m4.
68977         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
68978         (Makefile.am): Instead, augment lib_SOURCES.
68980 2009-10-18  Bruno Haible  <bruno@clisp.org>
68982         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
68983         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
68984         sys/param.h.
68986 2009-10-16  Eric Blake  <ebb9@byu.net>
68988         utimensat: new module
68989         * modules/utimensat: New file.
68990         * lib/utimensat.c (utimensat): Likewise.
68991         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
68992         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
68993         so we can work around Linux bugs.
68994         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
68995         * modules/sys_stat (Makefile.am): Substitute them.
68996         * lib/sys_stat.in.h (utimensat): Declare it.
68997         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
68998         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
68999         * modules/utimensat-tests: New test.
69000         * tests/test-utimensat.c: Likewise.
69002         utimens: let lutimens work on non-symlinks
69003         * lib/utimens.c (lutimens): Fall back to utimens rather than
69004         failing with ENOSYS, when file is not a symlink.
69005         (utimens): Reduce redirection.
69006         * tests/test-lutimens.h (test_lutimens): Update test to cover
69007         non-symlinks.
69008         * tests/test-utimens.h (test_utimens): Update test to cover
69009         symlinks.
69010         * tests/test-utimens.c (main): Update caller.
69012         utimens: cache whether utimensat syscall works
69013         * lib/utimens.c (utimensat_works_really): New cache variable.
69014         (fdutimens, lutimens): Use it to avoid failing syscall.
69016         test-stat-time, test-utimens: improve portability
69017         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
69018         ext4 on alpha, and for cygwin.
69019         * tests/test-utimens-common.h: New file.
69020         (nap): Factor delays into single function.
69021         * tests/test-lutimens.h (test_lutimens): Use new header.
69022         * tests/test-futimens.h (test_futimens): Likewise.
69023         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
69024         timestamps to occur from same machine, as was done previously for
69025         test_utimens.
69026         * modules/utimens-tests (Files): Ship new file.
69027         * modules/futimens-tests (Files): Likewise.
69028         Reported in part by Jim Meyering.
69030         sys_stat: sort replacement declarations
69031         * lib/sys_stat.in.h: Sort declarations.
69032         * lib/futimens.c (futimens): Fix typo.
69034 2009-10-15  Jim Meyering  <meyering@redhat.com>
69036         don't let environment settings perturb build
69037         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
69038         could cause a configure-time and/or build-time malfunction.
69039         Typically, a configure-time function-in-library test is performed
69040         via code like this:
69042           LIB_VAR=
69043           AC_SUBST([LIB_VAR])
69044           prefix_saved_LIBS=$LIBS
69045             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
69046                        [test "$ac_cv_search_FUNC" = "none required" ||
69047                         LIB_VAR=$ac_cv_search_FUNC])
69048           LIBS=$prefix_saved_LIBS
69050         However, in each of the files affected by this change, the LIB_VAR=
69051         initialization was omitted.  Thus, when set in the environment, its
69052         value would propagate into generated Makefiles when FUNC is not found
69053         in LIB_NAME.
69054         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
69055         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
69056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69058 2009-10-14  Eric Blake  <ebb9@byu.net>
69060         fchdir: avoid infinite recursion in mingw
69061         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
69062         recursing.
69064         test-stat-time: port to mingw
69065         * tests/test-stat-time.c (force_unlink): Return a value.
69066         (test_ctime) [W32]: Fix compilation error.
69067         (nap): Don't call usleep with too large an argument.  Use
69068         force_unlink.
69069         * doc/pastposix-functions/usleep.texi (usleep): Document the
69070         portability issue.
69072 2009-10-13  Jim Meyering  <meyering@redhat.com>
69074         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
69075         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
69076         * modules/pipe-filter-ii: Likewise.
69077         * modules/sys_socket-tests: Likewise.
69078         * modules/tsearch-tests: Likewise.
69079         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
69080         (check): Depend on it.
69082 2009-10-12  Eric Blake  <ebb9@byu.net>
69084         utimens-tests: port to NFS file systems
69085         * tests/test-utimens.h (test_utimens): Refactor utimecmp
69086         comparisons to avoid spurious failures from timestamp drift
69087         between NFS machines.
69089 2009-10-12  Eric Blake  <ebb9@byu.net>
69091         stat-time-tests: minor cleanups
69092         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
69093         * tests/test-stat-time.c (nap): Separate assignment from call.
69094         Suggested by Paolo Bonzini and Bruno Haible.
69096         sys_stat: guarantee struct timespec
69097         * lib/sys_stat.in.h (includes): Always include <time.h>
69098         * modules/sys_stat (Depends-on): Add time.
69099         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
69100         mode_t permission values.
69101         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
69102         get at subsecond timestamps.
69104 2009-10-10  Eric Blake  <ebb9@byu.net>
69106         futimens: new module
69107         * modules/futimens: New file.
69108         * lib/futimens.c (futimens): Likewise.
69109         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
69110         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
69111         we can work around Linux bugs.
69112         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
69113         * modules/sys_stat (Makefile.am): Substitute them.
69114         * lib/sys_stat.in.h (futimens): Declare it.
69115         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69116         * doc/posix-functions/futimens.texi (futimens): Likewise.
69117         * modules/futimens-tests: New test.
69118         * tests/test-futimens.c: Likewise.
69120         utimens: introduce fdutimens
69121         * lib/utimens.h (fdutimens): New prototype.
69122         * lib/utimens.c (gl_futimens): Move guts...
69123         (fdutimens): ...to new interface.
69124         * tests/test-utimens.c (do_fdutimens): Use it.
69126         utimens: add UTIME_NOW and UTIME_OMIT support
69127         * lib/utimens.c (validate_timespec, update_timespec): New helper
69128         functions.
69129         (gl_futimens, lutimens): Use them.
69130         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
69131         stdbool, sys_stat.
69132         (Link): Mention resulting library dependency.
69133         * modules/utimecmp (Link): Likewise.
69134         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
69135         (Makefile.am): Pick up library dependency.
69136         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
69137         definition.
69138         * tests/test-sys_stat.c: Test the definitions.
69139         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
69140         * NEWS: Document library dependency.
69142         utimecmp: support symlink timestamps
69143         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
69144         hashing when possible.  Use pathconf when available.
69145         (SYSCALL_RESOLUTION): Recognize tighter resolution.
69146         * modules/utimecmp (Depends-on): Add lstat.
69148         utimens: add lutimens interface
69149         * lib/utimens.c (lutimens): New function.
69150         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
69151         * lib/utimens.h (lutimens): Declare new interface.
69152         * tests/test-utimens.c (main): Enhance test.
69153         * tests/test-lutimens.h (test_lutimens): New file.
69154         * modules/utimens-tests (Files): Distribute it.
69155         (Depends-on): Add symlink.
69156         (configure.ac): Check for usleep.
69158         utimens: validate futimens usage
69159         * lib/utimens.c (gl_futimens): Require valid fd up front, using
69160         fewer syscalls on failure later on.  Avoid compiler warning on
69161         mingw.
69162         * modules/utimens (Depends-on): Add dup2.
69164         utimens: add test
69165         * modules/utimens-tests: New test.
69166         * tests/test-utimens.h: New file.
69167         * tests/test-futimens.h: Likewise.
69168         * tests/test-utimens.c: Likewise.
69170         doc: mention timestamp portability issues
69171         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
69172         instead.
69173         * doc/posix-functions/utime.texi (utime): Likewise.
69174         * doc/posix-functions/utimes.texi (utimes): Likewise.
69175         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
69176         instead.
69177         * doc/posix-functions/futimens.texi (futimens): Mention utimens
69178         module.
69179         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
69180         Mention weakness with symlink timestamps.
69181         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
69182         to utimensat/futimens instead.
69183         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
69185         test-dup2: enhance test
69186         * tests/test-dup2.c (main): Also check AT_FDCWD.
69188         test-stat-time: avoid more spurious failures
69189         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
69190         xfs; and avoid race if the two timestamps cross quantization edge.
69192         relocatable: prefer 'file system' over 'filesystem'
69193         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
69194         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
69195         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
69196         * doc/relocatable.texi (Enabling Relocatability): Likewise.
69197         * lib/relocatable.c (compute_curr_prefix): Likewise.
69199 2009-10-10  Jim Meyering  <meyering@redhat.com>
69201         stat-time-tests: check for the usleep function
69202         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
69204 2009-10-10  Bruno Haible  <bruno@clisp.org>
69206         * modules/xnanosleep: Put the Link section after the Include section.
69208 2009-10-09  Eric Blake  <ebb9@byu.net>
69210         dup2: work around FreeBSD 6.1 bug
69211         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
69212         * doc/posix-functions/dup2.texi (dup2): Document it.
69213         Reported by Nelson H. F. Beebe and Jim Meyering.
69215         test-stat-time: port to buggy NFS clients
69216         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
69217         (test_ctime): Also skip test if mtime and ctime are skewed.
69219         maint: prefer 'file system' over 'filesystem'
69220         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
69221         * doc/posix-functions/lstat.texi (lstat): Likewise.
69222         * lib/file-has-acl.c (file_has_acl): Likewise.
69223         * lib/fwriteerror.c [TEST]: Likewise.
69224         * tests/test-areadlink.h (test_areadlink): Likewise.
69225         * tests/test-areadlinkat-with-size.c (main): Likewise.
69226         * tests/test-areadlinkat.c (main): Likewise.
69227         * tests/test-canonicalize-lgpl.c (main): Likewise.
69228         * tests/test-canonicalize.c (main): Likewise.
69229         * tests/test-fstatat.c (main): Likewise.
69230         * tests/test-linkat.c (main): Likewise.
69231         * tests/test-lstat.h (test_lstat_func): Likewise.
69232         * tests/test-mkdir.h (test_mkdir): Likewise.
69233         * tests/test-readlink.h (test_readlink): Likewise.
69234         * tests/test-remove.c (main): Likewise.
69235         * tests/test-rename.h (test_rename): Likewise.
69236         * tests/test-renameat.c (main): Likewise.
69237         * tests/test-rmdir.h (test_rmdir_func): Likewise.
69238         * tests/test-symlink.h (test_symlink): Likewise.
69239         * tests/test-symlinkat.c (main): Likewise.
69240         * tests/test-unlink.h (test_unlink_func): Likewise.
69241         * tests/test-unlinkat.c (main): Likewise.
69243         maint: make realtime library usage explicit
69244         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
69245         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
69246         * modules/settime (Link): Likewise.
69247         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
69249         test-stat-time: speed up execution
69250         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
69251         warning on mingw.
69252         (nap): New helper function.
69253         (prepare_test): Use it to reduce sleep time.
69254         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
69255         execution.
69256         * modules/stat-time-tests (configure.ac): Check for usleep.
69258 2009-10-09  Jim Meyering  <meyering@redhat.com>
69260         selinux-h: always use getfilecon wrappers
69261         * lib/getfilecon.c: New file.
69262         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
69263         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
69264         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
69265         (fgetfilecon): Provide a stub.
69266         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
69267         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
69268         file unconditionally.
69269         When <selinux/selinux.h> is found, arrange to use wrappers.
69270         * modules/selinux-h (Files): Add getfilecon.c.
69271         (Makefile.am): Substitute include-next-related bits
69272         into the now-always-generated selinux/selinux.h file.
69273         * doc/glibc-functions/lgetfilecon.texi: New file.
69274         * doc/glibc-functions/fgetfilecon.texi: New file.
69275         * doc/glibc-functions/getfilecon.texi: New file.
69276         * doc/glibc-functions/getfilecon-desc.texi: New file.
69277         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
69278         which to pull in the new files.
69279         * MODULES.html.sh (Misc): Add selinux-h.
69281 2009-10-08  Jim Meyering  <meyering@redhat.com>
69283         unistd: fix comment typo
69284         * lib/unistd.in.h (euidaccess): Fix a comment typo.
69286 2009-10-08  Eric Blake  <ebb9@byu.net>
69288         areadlink: use SIZE_MAX consistently
69289         * modules/areadlink (Depends-on): Add stdint.
69290         * modules/areadlink-with-size (Depends-on): Likewise.
69291         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
69292         gives NULL; drop sys/types, since unistd gives size_t; and add
69293         stdint for SIZE_MAX.
69294         (SIZE_MAX): Rely on headers.
69295         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
69296         and add stdint.
69297         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
69298         (SIZE_MAX): Likewise.
69299         (INITIAL_BUF_SIZE): Turn into enum.
69300         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
69302 2009-10-08  Jim Meyering  <meyering@redhat.com>
69304         areadlinkat: avoid compilation failure
69305         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
69306         Fix typo in comment.
69308 2009-10-07  Eric Blake  <ebb9@byu.net>
69310         areadlinkat-with-size: new module
69311         * modules/areadlinkat-with-size: New module.
69312         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
69313         * lib/areadlink.h (areadlinkat): Declare it.
69314         * MODULES.html.sh (File system functions): Mention it.
69315         * modules/areadlinkat-with-size-tests: New test.
69316         * tests/test-areadlinkat-with-size.c: New file.
69318         xreadlinkat: new module
69319         * modules/xreadlinkat: New module.
69320         * lib/xreadlinkat.c (xreadlinkat): New file.
69321         * lib/xreadlink.h (xreadlinkat): Declare it.
69322         * MODULES.html.sh (File system functions): Mention it.
69324         areadlinkat: new module
69325         * lib/at-func.c (FUNC_FAIL): New define.
69326         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
69327         * modules/areadlinkat: New module.
69328         * lib/linkat.c (areadlinkat): Move...
69329         * lib/areadlinkat.c (areadlinkat): ...to new file.
69330         * lib/areadlink.h (areadlinkat): Declare it.
69331         * modules/linkat (Depends-on): Add areadlinkat.
69332         * MODULES.html.sh (File system functions): Mention it.
69333         * modules/areadlinkat-tests: New test.
69334         * tests/test-areadlinkat.c: New file.
69336         areadlink, areadlink-with-size: add tests
69337         * modules/areadlink-tests: New test.
69338         * modules/areadlink-with-size-tests: Likewise.
69339         * tests/test-areadlink.h: New file.
69340         * tests/test-areadlink.c: Likewise.
69341         * tests/test-areadlink-with-size.c: Likewise.
69343         maint: minor cleanups
69344         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
69345         _UNUSED_PARAMETER_ instead.
69346         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
69347         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
69348         * modules/linkat-tests (Files): Distribute test-link.h.
69350         openat, utimens: whitespace cleanup
69351         * lib/openat.c: Prefer space throughout, rather than mix of 8
69352         spaces vs. tabs.
69353         * lib/at-func.c: Likewise.
69354         * lib/utimens.c: Likewise.
69356         openat: avoid using wrong fd
69357         * lib/openat.c (openat_permissive): Reject user's fd if saving the
69358         working directory chooses same fd.
69359         * lib/at-func.c (AT_FUNC_NAME): Likewise.
69361         mkdir, mkdirat: fix cygwin 1.5.x bug
69362         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
69363         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
69364         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
69365         bug.
69366         (gl_PREREQ_MKDIR): Delete unused macro.
69367         * modules/mkdir (Files): Track file rename.
69368         (configure.ac): Update macro name.
69369         * modules/openat (Depends-on): Add mkdir.
69370         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
69372         mkdir, mkdirat: add tests
69373         * modules/mkdir-tests: New test.
69374         * tests/test-mkdir.h: New file.
69375         * tests/test-mkdir.c: Likewise.
69376         * tests/test-mkdirat.c: Likewise.
69377         * modules/openat-tests (Files): Add new files.
69378         (Makefile.am): Run new test.
69380 2009-10-06  Eric Blake  <ebb9@byu.net>
69382         doc: tweak *at function documentation
69383         * doc/posix-functions/faccessat.texi (faccessat): Mention
69384         known issue with replacement.
69385         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
69386         * doc/posix-functions/linkat.texi (linkat): Likewise.
69387         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
69388         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
69389         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69390         * doc/posix-functions/renameat.texi (renameat): Likewise.
69391         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
69393         openat: fix GNU/Hurd bug in unlinkat
69394         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
69395         broken.
69396         * doc/posix-functions/unlink.texi (unlink): Document this.
69397         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
69399         fdopendir: fix GNU/Hurd bug
69400         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
69401         allowing non-directory fds.
69402         * lib/fdopendir.c (rpl_fdopendir): Work around it.
69403         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
69404         * modules/dirent (Makefile.am): Substitute it.
69405         * lib/dirent.in.h (fdopendir): Declare replacement.
69406         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
69407         * tests/test-fdopendir.c (main): Test something other than
69408         /dev/null, since on Hurd that behaves like a directory.
69410         test-symlink: port to GNU/Hurd
69411         * tests/test-symlink.h (test_symlink): Relax expected errno.
69413         doc: tweak more cygwin information
69414         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
69415         now compatible with glibc.
69416         * doc/posix-functions/getopt.texi (getopt): Likewise.
69418         getopt-gnu: add another test
69419         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
69420         guarantee behavior relied on by m4.
69421         * tests/test-getopt.c (main): Use it.
69422         * modules/getopt-posix-tests (Depends-on): Add setenv.
69423         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
69425         getopt: fix compilation on darwin
69426         * lib/getopt.in.h (includes): Leave breadcrumbs during system
69427         include.
69428         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
69429         Reported by Ludovic Courtès.
69431 2009-10-06  Bruno Haible  <bruno@clisp.org>
69433         * modules/size_max (Description): Discourage its use.
69434         Reported by Simon Josefsson.
69436 2009-10-06  Jim Meyering  <meyering@redhat.com>
69438         linkat: avoid compilation failure
69439         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
69441 2009-10-05  Eric Blake  <ebb9@byu.net>
69443         linkat: support Linux 2.6.17
69444         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
69445         linkat on Linux, but allow cache variable override.
69446         * lib/linkat.c (rpl_linkat): Define override.
69447         * modules/linkat (Depends-on): Add symlinkat.
69448         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
69449         * modules/unistd (Makefile.am): Substitute it.
69450         * lib/unistd.in.h (linkat): Declare replacement.
69451         Reported by Pádraig Brady.
69453         quotearg: port test to systems with C.UTF-8 locale
69454         * tests/test-quotearg.c (struct result_strings): Add another
69455         member, differentiating between C.ASCII and C.UTF-8 handling.
69456         (compare_strings): Add parameter.
69457         (main): Adjust all callers.
69459         getopt: avoid clash with FreeBSD _getopt_internal
69460         * lib/getopt.in.h (_getopt_internal): Override the name.
69461         * lib/getopt_int.h (includes): Pick up any overrides.
69462         Reported by Reuben Thomas.
69464         hash: allow C89 compilation
69465         * lib/hash.c (check_tuning): Move declaration before statement.
69466         Reported by Reuben Thomas.
69468 2009-10-05  Karl Berry  <karl@gnu.org>
69470         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
69472 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
69473             Bruno Haible  <bruno@clisp.org>
69475         * lib/uname.c (uname): Use a table-driven algorithm to compute
69476         Windows NT versions.
69478 2009-10-04  Bruno Haible  <bruno@clisp.org>
69480         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
69481         program_invocation_short_name.
69482         * modules/progname (configure.ac): Test for presence of
69483         program_invocation_short_name.
69484         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
69486 2009-10-04  Bruno Haible  <bruno@clisp.org>
69488         * lib/progname.c (set_program_name): Fix comment.
69489         Reported by Jim Meyering.
69491 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
69492             Bruno Haible  <bruno@clisp.org>
69494         * lib/uname.c: Include <string.h>.
69495         (uname): Do only one call to GetVersionEx in the common case.
69497 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
69498             Bruno Haible  <bruno@clisp.org>
69500         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
69501         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
69502         (uname): Add support for Windows CE and various non-x86 CPU types.
69504 2009-10-03  Bruno Haible  <bruno@clisp.org>
69506         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
69507         invocation to tests/configure.ac.
69508         Reported by Ian Beckwith <ianb@erislabs.net>.
69510 2009-10-02  Eric Blake  <ebb9@byu.net>
69512         fchdir: avoid compiler warning
69513         * lib/fchdir.c (canonicalize_file_name)
69514         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
69516         test-open: support mingw errno values
69517         * tests/test-open.h (test_open): Relax test.
69518         * tests/test-fopen.h (test_fopen): Likewise.
69519         * tests/test-openat-safer.c (main): Likewise.
69521         open: fix opening directory on mingw
69522         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
69524         test-open: on GNU/Hurd, /dev/null is a directory
69525         * tests/test-fopen.h (main): Rename...
69526         (test_fopen): ...to this.  Use a guaranteed non-directory when
69527         confirming open behavior on trailing slash.
69528         * tests/test-openat-safer.c (main): Likewise.
69529         * tests/test-open.h (main): Likewise....
69530         (test_open): ...to this.
69531         * tests/test-fopen.c (main): Adjust caller.
69532         * tests/test-fopen-safer.c (main): Likewise.
69533         * tests/test-open.c (main): Likewise.
69534         * tests/test-fcntl-safer.c (main): Likewise.
69535         Reported by Samuel Thibault.
69537         rename, fchdir: don't ignore chdir failure
69538         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
69539         * lib/rename.c (rpl_rename) [W32]: Likewise.
69540         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
69541         an empty destination directory if source cannot be renamed,
69542         although there is still possibility for failure.
69543         * doc/posix-functions/rename.texi (rename): Document the race.
69544         Reported by Jim Meyering.
69546         maint: cleanup whitespace in recent commits
69547         * lib/rename.c (rpl_rename): Remove tabs.
69548         * tests/test-link.h (test_link): Likewise.
69549         * lib/fchdir.c (get_name): Likewise.
69550         Reported by Jim Meyering.
69552 2009-10-02  Ben Pfaff  <blp@gnu.org>
69554         relocatable-prog-wrapper: Add missing dependency on
69555         double-slash-root.
69556         * modules/relocatable-prog-wrapper: Add dependency.
69557         Reported by Ian Beckwith <ianb@erislabs.net>.
69559 2009-10-02  Eric Blake  <ebb9@byu.net>
69561         renameat: fix Solaris bugs
69562         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
69563         needed fixing.
69564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
69565         * modules/stdio (Makefile.am): Substitute it.
69566         * lib/stdio.in.h (renameat): Declare replacement.
69567         * lib/renameat.c (rpl_renameat): Implement fix.
69569         renameat: new module
69570         * modules/renameat: New file.
69571         * lib/renameat.c (renameat): Likewise.
69572         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
69573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
69574         * modules/stdio (Makefile.am): Substitute them.
69575         * lib/stdio.in.h (renameat): Declare it.
69576         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69577         * doc/posix-functions/renameat.texi (renameat): Likewise.
69578         * modules/renameat-tests: New test.
69579         * tests/test-renameat.c: Likewise.
69581         rename: fix mingw bugs
69582         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
69583         directory overwrite bugs.
69585         rename: fix another cygwin 1.5 bug
69586         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
69587         checks.
69588         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
69589         unnecessary cygwin workarounds.  Also work around bug with moving
69590         full directory onto an empty one.
69591         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
69593         rename-dest-slash: merge into rename module
69594         * modules/rename-dest-slash (Status): Mark obsolete.
69595         (Depends-on): Add rename.
69596         (Files): Let rename do it all.
69597         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
69598         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
69599         * m4/rename-dest-slash.m4: ...so this file can be deleted.
69600         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
69601         * lib/rename.c (rpl_rename): Update comments.
69603         rename: fix cygwin 1.5.x bugs
69604         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
69605         * lib/rename.c (rpl_rename): Work around them.
69606         * modules/rename (Depends-on): Add same-inode.
69608         rename: fix Solaris 10 bug
69609         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
69610         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
69611         was the only bug.
69613         rename: fix Solaris 9 bug
69614         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
69615         on non-directory.  Avoid calling exit.
69616         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
69617         strdup.
69618         * modules/rename-tests (Depends-on): Drop lstat.
69619         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
69620         (gl_PREREQ_RENAME): Delete unused macro.
69622         rename-dest-slash: fix NetBSD bug
69623         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
69624         links.
69625         * modules/rename-dest-slash (Depends-on): Add same-inode.
69627         rename-tests: new test, exposes several platform bugs
69628         * modules/rename-tests: New file.
69629         * tests/test-rename.h: Likewise.
69630         * tests/test-rename.c: Likewise.
69631         * doc/posix-functions/rename.texi (rename): Improve documentation,
69632         including bugs that will eventually be fixed in gnulib.
69634 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
69636         * lib/uname.c: Include <stdlib.h>
69637         (uname): Assume version info is available.
69639 2009-10-02  Jim Meyering  <meyering@redhat.com>
69641         gnu-web-doc-update: correct --help output
69642         * build-aux/gnu-web-doc-update: Make --help output relevant.
69644         gnu-web-doc-update: add standard options
69645         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
69647         gnu-web-doc-update: New module.
69648         Use this script to automatically update the on-line web documentation
69649         for your GNU project at http://www.gnu.org/software/$pkg/manual/
69650         * modules/gnu-web-doc-update: New file, from coreutils.
69651         * build-aux/gnu-web-doc-update: New script.
69653 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
69655         link: LoadLibrary is not needed.
69656         * lib/link.c: Use GetModuleHandle.
69658 2009-10-01  Eric Blake  <ebb9@byu.net>
69660         getopt: bump serial number
69661         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
69662         change.
69664         tests: tighten link, rmdir, and remove tests
69665         * tests/test-link.h (includes): No need to use <config.h> here.
69666         Clean up if directory hard link was created, otherwise test for
69667         trailing '.'.
69668         * tests/test-linkat.c (main): Simplify.
69669         * tests/test-remove.c (main): Enhance test for trailing '.'.
69670         * tests/test-rmdir.h (test_rmdir_func): Likewise.
69672 2009-10-01  Jim Meyering  <meyering@redhat.com>
69674         maint.mk: requiring "make major" was annoying, for a "minor" release.
69675         What is intended is "stable", to contrast with alpha and beta,
69676         so require "make stable", not "make major".
69677         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
69678         (get_tool_versions): Likewise.
69679         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
69681 2009-09-30  Ben Pfaff  <blp@gnu.org>
69683         Fix broken build of replacement for Windows tmpfile().
69684         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
69685         flags argument added along with the 'mkostemp' module.
69687 2009-09-28  Bruno Haible  <bruno@clisp.org>
69689         Avoid identifier clash with POSIX function 'remove' defined as a macro.
69690         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
69691         to 'remove_elt'.
69692         (gl_list_remove): Update.
69693         * lib/gl_list.c (gl_list_remove): Update.
69694         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
69695         to 'remove_elt'.
69696         (gl_oset_remove): Update.
69697         * lib/gl_list.c (gl_oset_remove): Update.
69698         Reported by Eric Blake.
69700 2009-09-28  Eric Blake  <ebb9@byu.net>
69702         doc: mention yet more cygwin 1.7 status
69703         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
69704         cygwin.
69705         * doc/glibc-functions/execvpe.texi (execvpe): New file.
69706         * doc/gnulib.texi (Glibc unistd.h): Mention it.
69708         argp: fix test failure
69709         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
69710         that are not upper-case.  Pass correct range to tolower.
69712 2009-09-27  Jim Meyering  <meyering@redhat.com>
69714         test-yesno: work around sparc-dash here-document infelicity
69715         Without this change, the literal \177 byte in a here document
69716         would make dash 0.5.5.1-3 access uninitialized memory.
69717         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
69718         Instead, use a marker, "@", and filter through tr to create the desired
69719         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
69721 2009-09-27  Bruno Haible  <bruno@clisp.org>
69723         Disable untested support for new flavours of ACLs on AIX.
69724         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
69725         progress.
69726         * lib/set-mode-acl.c (qset_acl): Likewise.
69728 2008-12-07  Bruno Haible  <bruno@clisp.org>
69730         Add support for new flavours of ACLs on AIX. (Untested.)
69731         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
69732         (file_has_acl): Add support for newer AIX.
69733         * lib/set-mode-acl.c (qset_acl): Likewise.
69734         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
69735         Rainer Tammer <tammer@tammer.net>.
69737 2009-09-26  Eric Blake  <ebb9@byu.net>
69739         argp: fix compilation of getopt
69740         * lib/getopt.in.h (includes): Use different guard than glibc.
69741         Reported by Sergey Poznyakoff.
69743         doc: mention more cygwin 1.7 status
69744         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
69745         bug.
69746         * doc/posix-functions/execl.texi (execl): Likewise.
69747         * doc/posix-functions/execle.texi (execle): Likewise.
69748         * doc/posix-functions/execlp.texi (execlp): Likewise.
69749         * doc/posix-functions/execv.texi (execv): Likewise.
69750         * doc/posix-functions/execve.texi (execve): Likewise.
69751         * doc/posix-functions/execvp.texi (execvp): Likewise.
69752         * doc/glibc-functions/canonicalize_file_name.texi
69753         (canonicalize_file_name): Cygwin 1.7 now provides this.
69754         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
69755         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
69756         on AT_SYMLINK_NOFOLLOW.
69758 2009-09-24  Eric Blake  <ebb9@byu.net>
69760         test-linkat: make test more robust
69761         * tests/test-linkat.c (main): Avoid collision with EEXIST.
69763         getopt: fix inclusion guards for cygwin
69764         * modules/getopt-posix (Depends-on): Add include-next.
69765         (Makefile.am): Substitute more items in replacement header.
69766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
69767         <getopt.h>.
69768         * lib/getopt.in.h (includes): Use split inclusion guard, and
69769         prefer <getopt.h> over include <unistd.h> when one is present.
69770         (option): Also override name of 'struct option'.
69772         same-inode: revert prior change; it is not yet ready
69773         * NEWS: Undo mention of this change.
69774         * lib/same-inode.h (same-inode.h): Undo tri-state change.
69775         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
69776         * lib/cycle-check.c (cycle_check): Likewise.
69777         * lib/same.c (same_name): Likewise.
69778         * lib/at-func2.c (at_func2): Likewise.
69780 2009-09-23  Eric Blake  <ebb9@byu.net>
69782         linkat: new module
69783         * modules/linkat: New file.
69784         * lib/at-func2.c (at_func2): Likewise.
69785         * lib/linkat.c (linkat): Likewise.
69786         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
69787         * lib/openat-priv.h (at_func2): Add declaration.
69788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
69789         * modules/unistd (Makefile.am): Substitute them.
69790         * lib/unistd.in.h (linkat): Declare it.
69791         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
69792         * doc/posix-functions/linkat.texi (linkat): Likewise.
69793         * doc/posix-functions/link.texi (link): Tweak wording.
69794         * tests/test-link.c (main): Move guts...
69795         * tests/test-link.h (test_link): ...into new file.
69796         * modules/linkat-tests: New test.
69797         * tests/test-linkat.c: Likewise.
69798         * modules/link-tests (Files): Ship new file.
69799         (Depends-on): Add stdbool.
69801         dirname: add library-safe mdir_name
69802         * lib/dirname.h (mdir_name): New prototype.
69803         * lib/dirname.c (dir_name): Move guts...
69804         (mdir_name): ...to new function that avoids xalloc_die.
69806         fchdir: another mingw fix
69807         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
69808         * lib/fchdir.c (get_name): New helper method; skips canonicalize
69809         on mingw (where it has not yet been ported), and make it optional
69810         elsewhere.
69811         (_gl_register_fd): Use it.
69813         same-inode: make SAME_INODE tri-state, to port to mingw
69814         * NEWS: Mention this change.
69815         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
69816         st_ino always being 0.
69817         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
69818         * lib/cycle-check.c (cycle_check): Likewise.
69819         * lib/same.c (same_name): Likewise.
69821         lstat: avoid mingw compilation error
69822         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
69823         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
69824         lstat ourselves.
69825         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
69826         was adequate.
69827         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
69828         the checks for lstat.
69829         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
69831         link: fix test failure on Solaris 9
69832         * lib/link.c (rpl_link): Don't assume link will catch bogus
69833         trailing slash on source.
69835         test-symlinkat: enhance test
69836         * tests/test-readlink.c (main): Move guts...
69837         * tests/test-readlink.h (test_readlink): ...into new file.
69838         * tests/test-symlink.c (main): Move guts...
69839         * tests/test-symlink.h (test_symlink): ...into new file.
69840         * tests/test-symlinkat.c (main): Use new files for further
69841         coverage.
69842         (do_symlink, do_readlink): New helper functions.
69843         * modules/symlink-tests (Files): Ship new file.
69844         (Depends-on): Add stdbool.
69845         * modules/readlink-tests (Files): Ship new file.
69846         (Depends-on): Add stdbool.
69847         * modules/symlinkat-tests (Files): Use new files.
69849 2009-09-23  Eric Blake  <ebb9@byu.net>
69851         readlink: document portability issue with symlink length
69852         * doc/posix-functions/lstat.texi (lstat): Mention that some file
69853         systems have bogus st_size on symlinks, and mention the
69854         areadlink-with-size module.
69855         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
69856         * doc/posix-functions/readlink.texi (readlink): Mention the
69857         areadlink module, and ERANGE failure.
69858         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
69859         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
69861         readlink: fix Solaris 9 bug with trailing slash
69862         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
69863         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
69864         * doc/posix-functions/readlink.texi (readlink): Document this.
69865         * modules/readlink-tests: New test.
69866         * tests/test-readlink.c: Likewise.
69868         readlink: fix cygwin 1.5.x bug with return type
69869         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
69870         * lib/unistd.in.h (readlink): Use ssize_t.
69871         * lib/readlink.c (readlink): Likewise.
69872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69873         * modules/unistd (Makefile.am): Substitute it.
69874         * lib/unistd.in.h (readlink): Declare replacement.
69875         * doc/posix-functions/readlink.texi (readlink): Document this.
69877         symlink: use throughout gnulib
69878         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
69879         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
69880         symlink is not used.
69881         * modules/symlinkat (Depends-on): Add symlink.
69882         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
69883         * modules/canonicalize-tests (Depends-on): Likewise.
69884         * modules/lstat-tests (Depends-on): Likewise.
69885         * modules/openat-tests (Depends-on): Likewise.
69886         * modules/remove-tests (Depends-on): Likewise.
69887         * modules/rmdir-tests (Depends-on): Likewise.
69888         * modules/unlink-tests (Depends-on): Likewise.
69889         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
69890         * tests/test-canonicalize.c (symlink): Likewise.
69891         * tests/test-fstatat.c (symlink): Likewise.
69892         * tests/test-lstat.c (symlink): Likewise.
69893         * tests/test-remove.c (symlink): Likewise.
69894         * tests/test-rmdir.c (symlink): Likewise.
69895         * tests/test-unlink.c (symlink): Likewise.
69896         * tests/test-unlinkat.c (symlink): Likewise.
69898         symlink: new module, for Solaris 9 bug
69899         * modules/symlink: New file.
69900         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
69901         * lib/symlink.c: Likewise.
69902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
69903         * modules/unistd (Makefile.am): Substitute them.
69904         * lib/unistd.in.h (symlink): Declare replacement.
69905         * MODULES.html.sh (File system functions): Mention it.
69906         * doc/posix-functions/symlink.texi (symlink): Likewise.
69907         * modules/symlink-tests: New test.
69908         * tests/test-symlink.c: Likewise.
69910 2009-09-23  Bruno Haible  <bruno@clisp.org>
69912         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
69913         when needed.
69914         Test case: gnulib-tool --import --with-tests atexit inttypes.
69915         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
69917 2009-09-23  Bruno Haible  <bruno@clisp.org>
69919         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
69920         subcommand, not in a subshell.
69922 2009-09-22  Eric Blake  <ebb9@byu.net>
69924         unistd: sort replacement declarations
69925         * lib/unistd.in.h: Sort declarations.
69927         open, openat: minor optimization
69928         * lib/open.c (open): If open succeeded, len is non-zero.
69929         * lib/openat.c (rpl_openat): Likewise.
69931         link-follow: ensure correct result
69932         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
69933         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
69934         distinguish between possible failures.
69936 2009-09-21  Eric Blake  <ebb9@byu.net>
69938         fts: avoid compiler warning
69939         * lib/fts.c (dirent_inode_sort_may_be_useful)
69940         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
69942 2009-09-19  Bruno Haible  <bruno@clisp.org>
69944         * lib/progreloc.c (canonicalize_file_name): New declaration.
69946 2009-09-19  Eric Blake  <ebb9@byu.net>
69948         link: fix quoting
69949         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
69951         openat: fix openat bugs on Solaris 9
69952         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
69953         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
69954         * modules/openat (Depends-on): Add open.
69955         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
69956         * modules/fcntl-h (Makefile.am): Substitute it.
69957         * lib/fcntl.in.h (openat): Declare replacement.
69958         * doc/posix-functions/openat.texi (openat): Document this.
69960         openat: move fstatat and unlinkat into correct files
69961         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
69962         compiled.
69963         * lib/openat.c (fstatat, unlinkat): Move...
69964         * lib/fstatat.c (fstatat): ...into correct files.
69965         * lib/unlinkat.c (unlinkat): Likewise.
69967         openat: fix unlinkat bugs on Solaris 9
69968         * lib/unlinkat.c (unlinkat): New file.
69969         * modules/openat (Depends-on): Add unlink.
69970         (Files): Distribute it.
69971         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
69972         trailing slash behavior is broken.
69973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
69974         * modules/unistd (Makefile.am): Substitute it.
69975         * lib/unistd.in.h (unlinkat): Declare replacement.
69976         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
69978         openat: fix fstatat bugs on Solaris 9
69979         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
69980         stat.
69981         * doc/posix-functions/fstatat.texi (fstatat): Document this.
69983         test-unlinkat: enhance test, to expose Solaris 9 bug
69984         * tests/test-unlink.c (main): Factor guts...
69985         * tests/test-unlink.h (test_rmdir_func): ...into new file.
69986         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
69987         * tests/test-rmdir.c (main): Adjust caller.
69988         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
69989         (unlinker): New helper function.
69990         (rmdirat): Enhance check.
69991         * modules/rmdir-tests (Depends-on): Add stdbool.
69992         * modules/unlink-tests (Depends-on): Likewise.
69993         (Files): Add test-unlink.h.
69994         * modules/openat-tests (Files): Likewise.
69995         (Depends-on): Add unlinkdir.
69997         test-fstatat: new test, to expose Solaris 9 bugs
69998         * tests/test-stat.c (main): Factor guts...
69999         * tests/test-stat.h (test_stat_func): ...into new file.
70000         * tests/test-lstat.c (main): Factor guts...
70001         * tests/test-lstat.h (test_lstat_func): ...into new file.
70002         * tests/test-fstatat.c: New file.
70003         * modules/stat-tests (Files): Add test-stat.h.
70004         * modules/lstat-tests (Files): Add test-lstat.h.
70005         (Depends-on): Add stdbool.
70006         * modules/openat-tests (Depends-on): Add pathmax.
70007         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
70008         (Makefile.am): Run new test.
70010         remove: new module, for mingw and Solaris 9 bugs
70011         * modules/remove: New file.
70012         * lib/remove.c: Likewise.
70013         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
70014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
70015         * modules/stdio (Makefile.am): Use them.
70016         * lib/stdio.in.h (remove): Declare replacement.
70017         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70018         * doc/posix-functions/remove.texi (remove): Likewise.
70019         * modules/remove-tests: New test.
70020         * tests/test-remove.c: Likewise.
70022         unlink: new module, for Solaris 9 bug
70023         * modules/unlink: New file.
70024         * lib/unlink.c: Likewise.
70025         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
70026         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
70027         * modules/unistd (Makefile.am): Use them.
70028         * lib/unistd.in.h (stat): Declare replacement.
70029         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70030         * doc/posix-functions/unlink.texi (unlink): Likewise.
70031         * modules/unlink-tests: New test.
70032         * tests/test-unlink.c: Likewise.
70034         lstat: fix Solaris 9 bug
70035         * lib/lstat.c (lstat): Also check for trailing slash on
70036         non-symlink, non-directories.  Use stat module to simplify logic.
70037         * doc/posix-functions/lstat.texi (lstat): Document it.
70038         * modules/lstat-tests (Depends-on): Add errno, same-inode.
70039         (configure.ac): Check for symlink.
70040         * tests/test-lstat.c (main): Add more tests.
70042         stat: add as dependency to other modules
70043         * modules/chown (Depends-on): Add stat.
70044         * modules/euidaccess (Depends-on): Likewise.
70045         * modules/fchdir (Depends-on): Likewise.
70046         * modules/isdir (Depends-on): Likewise.
70047         * modules/link (Depends-on): Likewise.
70048         * modules/lstat (Depends-on): Likewise.
70049         * modules/mkdir-p (Depends-on): Likewise.
70050         * modules/modechange (Depends-on): Likewise.
70051         * modules/open (Depends-on): Likewise.
70052         * modules/readlink (Depends-on): Likewise.
70053         * modules/same (Depends-on): Likewise.
70055         stat: fix Solaris 9 bug
70056         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
70057         slash.
70058         * lib/stat.c (rpl_stat): Work around it.
70059         * doc/posix-functions/stat.texi (stat): Update documentation.
70061         stat: new module, for mingw bug
70062         * modules/stat: New file.
70063         * lib/stat.c: Likewise.
70064         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
70065         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70066         * modules/sys_stat (Makefile.am): Use them.
70067         * lib/sys_stat.in.h (stat): Declare replacement.
70068         * lib/openat.c (fstatat): Deal with lstat and stat being function
70069         macros.
70070         * modules/openat (Depends-on): Add inline.
70071         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
70072         * doc/posix-functions/stat.texi (stat): Likewise.
70073         * modules/stat-tests: New test.
70074         * tests/test-stat.c: Likewise.
70076 2009-09-19  Jim Meyering  <meyering@redhat.com>
70078         syntax-check: detect unnecessary inclusion of canonicalize.h
70079         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
70081 2009-09-19  Eric Blake  <ebb9@byu.net>
70083         canonicalize-lgpl: adjust clients to use correct header
70084         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
70085         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
70086         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
70087         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
70088         * lib/progreloc.c (includes): Likewise.
70090 2009-09-19  Jim Meyering  <meyering@redhat.com>
70092         test-posixtm.c: correct a comment
70093         * tests/test-posixtm.c: Correct first-line comment.
70094         Spotted by Eric Blake.
70096 2009-09-16  Jim Meyering  <meyering@redhat.com>
70098         posixtm-tests: make T const-correct; add a test case
70099         * tests/test-posixtm.c (T): Declare const.
70100         Add a test for -(2^31+1).
70101         Remove useless can-succeed-only-in-2002 test.
70103         posixtm-tests: adjust the sole failing test
70104         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
70105         expected output matches what mktime now produces.  Cross-checked via
70106         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
70108         posixtm: move #ifdef'd tests into a new module
70109         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
70110         * tests/test-posixtm.c: ... this new file.
70111         * modules/posixtm-tests: New module.
70113 2009-09-19  Eric Blake  <ebb9@byu.net>
70115         openat: simplify use of at-func.c
70116         * lib/at-func.c (includes): Include prerequisites here, to
70117         simplify requirements on client files.
70118         * lib/openat-priv.h: Add double-inclusion guard.
70119         * lib/faccessat.c (includes): Simplify.
70120         * lib/fchmodat.c (includes): Likewise.
70121         * lib/fchownat.c (includes): Likewise.
70122         * lib/mkdirat.c (includes): Likewise.
70123         * lib/mkfifoat.c (includes): Likewise.
70124         * lib/symlinkat.c (includes): Likewise.
70126         openat: allow return of fd 0
70127         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
70128         * modules/save-cwd (Depends-on): Replace fcntl-safer with
70129         unistd-safer.
70130         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
70131         <fcntl.h>; this module does not leak fds.
70132         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
70133         must be allowed to return 0, leaving openat_safer to add the
70134         safety.
70135         (openat_permissive): Avoid writing to just-opened fd 2 if
70136         restoring the current directory fails.
70137         * lib/openat-die.c (openat_restore_fail): Add comment.
70138         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
70139         (save_cwd): Guarantee safe fd, but without use of open_safer.
70140         * tests/test-openat.c: New test.
70141         * modules/openat-tests (Files, Makefile.am): Distribute and build
70142         new file.
70144         relocatable-prog-wrapper: fix build
70145         * modules/relocatable-prog-wrapper (Files): Update name of
70146         canonicalize m4 file, broken on 2009-09-17.
70147         Reported by emad hajjar <aleppos@hotmail.com>.
70149 2009-09-19  Bruno Haible  <bruno@clisp.org>
70151         * lib/safe-alloc.h: Use the standard header with GPL copyright.
70152         * lib/safe-alloc.c: Likewise.
70153         Reported by Ian Beckwith <ianb@erislabs.net>.
70155 2009-09-18  Bruno Haible  <bruno@clisp.org>
70157         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
70158         Reported by <erobles@sensacd.com.mx>.
70160 2009-09-17  Eric Blake  <ebb9@byu.net>
70162         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
70163         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
70164         slashes when checking if last component is missing.
70165         * tests/test-canonicalize.c (main): Test this.
70167         canonicalize, canonicalize-lgpl: honor // if distinct from /
70168         * modules/canonicalize (Files): Add double-slash-root.m4.
70169         * modules/canonicalize-lgpl (Files): Likewise.
70170         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
70171         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
70172         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
70173         fallback definition.
70174         (canonicalize_filename_mode): Use it to protect //.
70175         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
70176         (__realpath): Likewise.
70177         * tests/test-canonicalize.c (main): Test this.
70178         * tests/test-canonicalize-lgpl.c (main): Likewise.
70179         * modules/canonicalize-tests (Depends-on): Add same-inode.
70180         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
70182         canonicalize-lgpl: fix glibc bug with trailing slash
70183         * m4/canonicalize-lgpl.m4: Move contents...
70184         * m4/canonicalize.m4: ...here.
70185         (gl_CANONICALIZE_LGPL): Factor realpath check...
70186         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
70187         glibc 2.3.5 bug, fixed 2005-04-27.
70188         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
70189         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
70190         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
70191         * modules/canonicalize-lgpl (Files): Manage file rename.
70192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
70193         * modules/stdlib (Makefile.am): Substitute witness.
70194         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
70195         is needed.
70196         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
70197         replacement is required.
70198         * lib/canonicalize.c (canonicalize_file_name): Likewise.
70199         * doc/glibc-functions/canonicalize_file_name.texi
70200         (canonicalize_file_name): Document this.
70201         * doc/posix-functions/realpath.texi (realpath): Likewise.
70203         canonicalize-lgpl: reject non-directory with trailing slash
70204         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
70205         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
70206         catches failures in glibc 2.3.5.
70207         * tests/test-canonicalize.c (main): Likewise.
70209         canonicalize-lgpl: use native realpath if it works
70210         * lib/canonicalize-lgpl.c (realpath): Guard with
70211         FUNC_REALPATH_WORKS.
70212         * lib/stdlib.in.h (realpath): Make declaration optional based on
70213         HAVE_REALPATH.
70214         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
70215         native realpath works.
70216         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
70217         * modules/stdlib (Makefile.am): Substitute witness.
70219         canonicalize, canonicalize-lgpl: use <stdlib.h>
70220         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
70221         (Include): Mention <stdlib.h>.
70222         (configure.ac): Mention functions we provide.
70223         * modules/canonicalize (configure.ac): Likewise.
70224         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
70225         realpath if canonicalize_file_name is missing.
70226         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
70227         * modules/stdlib (Makefile.am): Substitute witnesses.
70228         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
70229         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
70230         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
70231         * NEWS: Document this.
70232         * doc/glibc-functions/canonicalize_file_name.texi
70233         (canonicalize_file_name): Likewise.
70234         * doc/posix-functions/realpath.texi (realpath): Likewise.
70235         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
70237         test-canonicalize: consolidate into single C program
70238         * tests/test-canonicalize.sh: Delete; move setup into...
70239         * tests/test-canonicalize.c (main): ...the program, making it
70240         easier to run in debugger.  Add some tests.
70241         * modules/canonicalize-tests (Files): Remove unused file.
70242         (Depends-on): Add progname.
70243         (configure.ac, Makefile.am): Simplify.
70245         test-canonicalize-lgpl: consolidate into single C program
70246         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
70247         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
70248         easier to run in debugger.  Add some tests.
70249         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
70250         (configure.ac, Makefile.am): Simplify.
70252         canonicalize: avoid resolvepath
70253         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
70254         unnecessary checks.
70255         * lib/canonicalize.c (includes): Simplify.
70256         (canonicalize_file_name): Drop resolvepath implementation.
70257         * modules/canonicalize (Depends-on): Drop filenamecat.
70259         canonicalize: don't lose errno
70260         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
70261         over calls to free.
70263         canonicalize: simplify errno handling
70264         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
70265         assignment.
70267         canonicalize, canonicalize-lgpl: update module dependencies
70268         * modules/canonicalize (Depends-on): Add extensions, lstat,
70269         pathmax, stdlib.
70270         (Files): Drop pathmax.h.
70271         (configure.ac): Adjust macro name.
70272         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
70273         lstat, stdlib, sys_stat.
70274         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
70275         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
70276         extensions.
70277         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
70278         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
70279         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
70280         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
70281         declaration, if available.
70282         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
70283         we can rely on the readlink module.
70284         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
70285         (includes): Use <unistd.h> unconditionally.
70287 2009-09-17  Eric Blake  <ebb9@byu.net>
70289         maint: make Include sections of modules consistent
70290         * modules/alloca: Use only header name; no need to list #include.
70291         * modules/alloca-opt: Likewise.
70292         * modules/arpa_inet: Likewise.
70293         * modules/canon-host: Likewise.
70294         * modules/configmake: Likewise.
70295         * modules/dirent: Likewise.
70296         * modules/eealloc: Likewise.
70297         * modules/environ: Likewise.
70298         * modules/fchdir: Likewise.
70299         * modules/fcntl: Likewise.
70300         * modules/fcntl-h: Likewise.
70301         * modules/gethrxtime: Likewise.
70302         * modules/gettime: Likewise.
70303         * modules/ignore-value: Likewise.
70304         * modules/inet_ntop: Likewise.
70305         * modules/inet_pton: Likewise.
70306         * modules/inttypes: Likewise.
70307         * modules/isnand-nolibm: Likewise.
70308         * modules/isnanf-nolibm: Likewise.
70309         * modules/mbchar: Likewise.
70310         * modules/mbfile: Likewise.
70311         * modules/mbiter: Likewise.
70312         * modules/mbuiter: Likewise.
70313         * modules/netdb: Likewise.
70314         * modules/netinet_in: Likewise.
70315         * modules/nproc: Likewise.
70316         * modules/pagealign_alloc: Likewise.
70317         * modules/poll: Likewise.
70318         * modules/printf-frexp: Likewise.
70319         * modules/pthread: Likewise.
70320         * modules/putenv: Likewise.
70321         * modules/random_r: Likewise.
70322         * modules/relocatable-prog: Likewise.
70323         * modules/search: Likewise.
70324         * modules/select: Likewise.
70325         * modules/selinux-h: Likewise.
70326         * modules/settime: Likewise.
70327         * modules/signal: Likewise.
70328         * modules/size_max: Likewise.
70329         * modules/socklen: Likewise.
70330         * modules/ssize_t: Likewise.
70331         * modules/stdarg: Likewise.
70332         * modules/stdbool: Likewise.
70333         * modules/stddef: Likewise.
70334         * modules/stdint: Likewise.
70335         * modules/stdio: Likewise.
70336         * modules/stdlib: Likewise.
70337         * modules/string: Likewise.
70338         * modules/strings: Likewise.
70339         * modules/sys_file: Likewise.
70340         * modules/sys_ioctl: Likewise.
70341         * modules/sys_select: Likewise.
70342         * modules/sys_socket: Likewise.
70343         * modules/sys_stat: Likewise.
70344         * modules/sys_time: Likewise.
70345         * modules/sys_times: Likewise.
70346         * modules/sys_utsname: Likewise.
70347         * modules/sys_wait: Likewise.
70348         * modules/sysexits: Likewise.
70349         * modules/time: Likewise.
70350         * modules/times: Likewise.
70351         * modules/tmpfile: Likewise.
70352         * modules/trim: Likewise.
70353         * modules/unistd: Likewise.
70354         * modules/wchar: Likewise.
70355         * modules/wctype: Likewise.
70357 2009-09-17  Bruno Haible  <bruno@clisp.org>
70359         Make getdate.y compile on QNX and NetBSD 5 / i386.
70360         * m4/getdate.m4 (gl_GETDATE): Conditionally define
70361         TIME_T_FITS_IN_LONG_INT.
70362         * lib/getdate.y (long_time_t): New type.
70363         (relative_time): Change type of 'seconds' field to long_time_t.
70364         (get_date): Update types of local variables. Check against overflow
70365         during conversion from long_time_t to time_t.
70366         Reported by Matt Kraai <kraai@ftbfs.org>
70367         and Hasso Tepper <hasso@netbsd.org>.
70369 2009-09-17  Bruno Haible  <bruno@clisp.org>
70371         * modules/COPYING: Update copyright years.
70372         * modules/README: Likeiwse.
70373         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
70374         Reported by Ian Beckwith <ianb@erislabs.net>.
70376 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
70378         * users.txt: Update references for gnuit package.
70380 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
70382         * m4/getdelim.m4: Fix typo in copyright line.
70384 2009-09-17  Bruno Haible  <bruno@clisp.org>
70386         * lib/atoll.c: Use the standard header with GPL copyright.
70387         * lib/argz.in.h: Likewise.
70388         * lib/glob.c: Likewise.
70389         * lib/glob-libc.h: Likewise.
70390         * lib/random_r.c: Likewise.
70391         * lib/siglist.h: Likewise.
70392         * lib/strsignal.c: Likewise.
70393         Reported by Ian Beckwith <ianb@erislabs.net>.
70395 2009-09-17  Eric Blake  <ebb9@byu.net>
70397         rmdir: ensure correct dependency order
70398         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
70400 2009-09-17  Bruno Haible  <bruno@clisp.org>
70402         Disable assertion that fails on NetBSD 5 / i386.
70403         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
70404         Reported by Sam Steingold <sds@gnu.org>
70405         and Hasso Tepper <hasso@netbsd.org>.
70407 2009-09-16  Eric Blake  <ebb9@byu.net>
70409         unlinkdir: port to mingw
70410         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
70411         on which no one can unlink a directory.
70413         stdlib: sort witness names
70414         * modules/stdlib (Makefile.am): Sort replacements.
70415         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
70416         * lib/stdlib.in.h: Likewise.
70418         parse-duration-tests: avoid link failure
70419         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
70420         LIBINTL.
70421         Reported by Tom G. Christensen.
70423         openat-tests: ensure unlinkat behaves like rmdir
70424         * tests/test-rmdir.c (main): Factor guts...
70425         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
70426         * modules/rmdir-tests (Files): Ship new file.
70427         * modules/openat-tests: New test.
70428         * tests/test-unlinkat.c: Likewise.
70430         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
70431         * modules/rmdir-errno (Status, Notice): Now obsolete.
70433         rmdir: work around cygwin 1.5.x and mingw bugs
70434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
70435         * lib/rmdir.c (rmdir): Work around it.
70436         * modules/rmdir (Status, Notice): No longer obsolete.
70437         (Files): Add dos.m4.
70438         (Depends-on): Add unistd.
70439         (configure.ac): Set witnesses.
70440         (License): Relax to LGPLv2+.
70441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
70442         * modules/unistd (Makefile.am): Substitute witnesses.
70443         * lib/unistd.in.h (rmdir): Declare replacement.
70444         * doc/posix-functions/rmdir.texi (rmdir): Document this.
70445         * modules/rmdir-tests: New tests.
70446         * tests/test-rmdir.c: Likewise.
70448 2009-09-15  Eric Blake  <ebb9@byu.net>
70450         fchdir: improve use of replacement functions
70451         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
70452         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
70453         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
70454         REPLACE_CLOSEDIR.
70455         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
70456         * modules/sys_stat (Makefile.am): Substitute correct witness.
70457         * modules/dirent (Makefile.am): Likewise.
70458         * modules/unistd (Makefile.am): Likewise.
70459         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
70460         * lib/unistd.in.h (dup): Likewise.
70461         * lib/sys_stat.in.h (fstat): Likewise.
70463         maint: ignore gnulib-tool temp files
70464         * .gitignore: Ignore files created during gnulib-tool --test.
70466 2009-09-13  Jim Meyering  <meyering@redhat.com>
70468         posixtm: don't reject a time that specify "60" as the number of seconds
70469         * lib/posixtm.c (posixtime): The code to reject invalid dates
70470         would also reject a time specified with the .60 suffix.
70471         But POSIX allows that, in order to accommodate leap seconds.
70472         So don't reject it.
70473         (main): Adjust tests accordingly.
70474         * modules/posixtm (Depends-on): Add stpcpy.
70476 2009-09-11  Jim Meyering  <meyering@redhat.com>
70478         announce-gen: include [$release_type] in emitted Subject:
70479         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
70480         e.g., [stable] in the emitted Subject: line.
70482 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70484         Remove obsolete macros from several modules.
70485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
70486         obsolete Autoconf macros with their modern counterparts.
70487         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
70488         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
70489         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
70490         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70491         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
70492         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
70493         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
70494         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
70495         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
70496         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
70497         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
70498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
70499         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
70500         * m4/sockets.m4 (gl_SOCKETS): Likewise.
70501         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
70502         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
70503         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
70504         * m4/time_r.m4 (gl_TIME_R): Likewise.
70505         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
70506         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
70507         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70509         Fix copyright header in build-aux scripts.
70510         * build-aux/git-version-gen: Fix copyright header to match GPLv3
70511         recommendation.
70512         * build-aux/ncftpput-ftp: Likewise.
70513         * build-aux/update-copyright: Likewise.
70515 2009-09-09  Eric Blake  <ebb9@byu.net>
70517         test-link: allow Linux choice of errno
70518         * tests/test-link.c (main): Relax test for alternate error.
70520         strndup: fix improper m4 caching
70521         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
70522         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
70523         (gl_PREREQ_STRNDUP): Delete.
70524         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
70525         * modules/string (Makefile.am): Substitute it.
70526         * lib/string.in.h (strndup): Modernize prototype.
70528         getcwd: port to mingw
70529         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
70530         different from the POSIX assumptions made throughout the getcwd
70531         module; fortunately, the mingw getcwd does not need replacement.
70532         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
70533         * modules/getcwd-tests: New test.
70534         * tests/test-getcwd.c: Likewise.
70536         link: fix platform bugs
70537         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
70538         * lib/link.c (link): Work around them.  Fix related mingw bug.
70539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
70540         * modules/unistd (Makefile.am): Substitute it.
70541         * lib/unistd.in.h (link): Declare replacement.
70542         * doc/posix-functions/link.texi (link): Document this.
70543         * modules/link (Depends-on): Add strdup-posix, sys_stat.
70545         test-link: consolidate into single C program, test more cases
70546         * tests/test-link.sh: Delete.
70547         * tests/test-link.c: Test more error conditions.  Exposes bugs on
70548         at least Cygwin and Solaris.
70549         * modules/link-tests (Files): Remove unused file.
70550         (Depends-on): Add errno, sys_stat.
70551         (Makefile.am): Simplify.
70553 2009-09-08  Bruno Haible  <bruno@clisp.org>
70555         Work around towlower, towupper bug on mingw.
70556         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
70557         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
70558         * doc/posix-functions/towlower.texi: Mention the mingw bug.
70559         * doc/posix-functions/towupper.texi: Likewise.
70560         Reported by Eric Blake.
70562 2009-09-08  Jim Meyering  <meyering@redhat.com>
70564         build: don't try to run autoheader if we don't use it
70565         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
70566         is not used in configure.ac.
70568 2009-09-08  Eric Blake  <ebb9@byu.net>
70570         euidaccess: fix compilation error
70571         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
70573         rawmemchr: relax license
70574         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
70575         okay.
70576         Reported by Jim Meyering.
70578         mkfifoat: new module
70579         * modules/mkfifoat: New file.
70580         * lib/mkfifoat.c: Likewise.
70581         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
70582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
70583         * modules/sys_stat (Makefile.am): Use them.
70584         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
70585         * MODULES.html.sh (File system functions): Mention module.
70586         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
70587         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
70588         * modules/mkfifoat-tests: New test.
70589         * tests/test-mkfifoat.c: Likewise.
70591         strchrnul: relax license
70592         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
70593         okay.
70594         Reported by Jim Meyering.
70596 2009-09-08  Eric Blake  <ebb9@byu.net>
70598         fstatat: fix compilation on Solaris
70599         * lib/fstatat.c (includes): Add fcntl.h.
70600         Reported by Pádraig Brady.
70602 2009-09-07  Eric Blake  <ebb9@byu.net>
70604         rename: modernize replacement
70605         * modules/rename (Depends-on): Add stdio.
70606         (configure.ac): Declare witness.
70607         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
70608         stdio take care of replacement.
70609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
70610         * modules/stdio (Makefile.am): Substitute them.
70611         * lib/stdio.in.h (rename): Declare replacement.
70612         * lib/rename.c (includes): Allow cross-compilation to non-windows
70613         machines.
70614         * doc/posix-functions/rename.texi (rename): Improve
70615         documentation.
70617         stdio: sort witness names
70618         * modules/stdio (Makefile.am): Sort replacements.
70619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
70620         * lib/stdio.in.h: Likewise.
70622         getcwd: minor cleanups
70623         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
70624         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
70626         openat: provide more convenience names
70627         * modules/faccessat (configure.ac): Add C witness.
70628         * lib/unistd.in.h (readlinkat): Fix typo.
70629         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
70630         convenience wrappers.
70631         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
70632         wrappers in syntax checks.
70634 2009-09-06  Eric Blake  <ebb9@byu.net>
70636         doc: fix comments in recent patches
70637         * lib/faccessat.c: Mention correct function.
70638         * lib/fchmodat.c: Likewise.
70639         * lib/fchownat.c: Likewise.
70640         * lib/symlinkat.c: Likewise.
70641         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
70642         constants.
70644         faccessat, symlinkat: continue cleanup of previous patch
70645         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
70646         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
70647         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
70648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
70649         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
70650         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
70651         set.
70653 2009-09-06  Bruno Haible  <bruno@clisp.org>
70655         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
70656         (fstatat): Declare if GNULIB_FSTATAT is set.
70657         (mkdirat): Declare if GNULIB_MKDIRAT is set.
70658         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
70659         (unlinkat): Declare if GNULIB_UNLINKAT is set.
70660         * modules/fcntl-h (Files): Remove m4/openat.m4.
70661         * modules/sys_stat (Files): Remove m4/openat.m4.
70662         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
70663         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
70664         * modules/unistd (Files): Remove m4/openat.m4.
70665         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
70666         GNULIB_OPENAT.
70667         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
70668         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
70669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
70670         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
70671         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
70672         gl_OPENAT_DEFAULTS.
70673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
70674         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
70675         Don't require gl_OPENAT_DEFAULTS.
70676         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
70677         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
70678         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
70679         (gl_OPENAT_DEFAULTS): Remove macro.
70681 2009-09-06  Bruno Haible  <bruno@clisp.org>
70683         * modules/openat (configure.ac): Remove unneeded witness.
70685 2009-09-06  Bruno Haible  <bruno@clisp.org>
70687         Set errno to ENOSYS when a function is entirely unsupported.
70688         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
70689         EOPNOTSUPP.
70690         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
70691         * modules/chown (Depends-on): Remove errno.
70693 2009-09-06  Bruno Haible  <bruno@clisp.org>
70695         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
70697 2009-09-06  Bruno Haible  <bruno@clisp.org>
70699         * lib/sys_stat.in.h: Fix preprocessor command indentation.
70701 2009-09-06  Ben Pfaff  <blp@gnu.org>
70702             Bruno Haible  <bruno@clisp.org>
70704         Work around a glibc bug in strtok_r.
70705         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
70706         Undefine if UNDEFINE_STRTOK_R is set.
70707         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
70708         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70709         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
70710         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
70711         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
70712         UNDEFINE_STRTOK_R.
70713         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
70715 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
70717         exclude: minor fix
70718         * lib/exclude.c: Include wctype.h
70720 2009-09-06  Akim Demaille  <demaille@gostai.com>
70722         bootstrap: improve error message
70723         * build-aux/bootstrap (find_tool): Upon failure, report the list
70724         of candidates.
70725         Honor the initial value of the envvar.
70727 2009-09-05  Eric Blake  <ebb9@byu.net>
70729         symlinkat: new module
70730         * modules/symlinkat: New file.
70731         * lib/symlinkat.c: Likewise.
70732         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
70733         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
70734         * modules/unistd (Makefile.am): Use them.
70735         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
70736         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
70737         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
70738         * MODULES.html.sh (File system functions): Mention module.
70739         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
70740         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
70741         * modules/symlinkat-tests: New test.
70742         * tests/test-symlinkat.c: Likewise.
70744         test-openat-safer: add more checks
70745         * tests/test-openat-safer.c (main): Check more code paths.
70747 2009-09-05  Jim Meyering  <meyering@redhat.com>
70749         syntax-check: detect unnecessary inclusion of openat.h
70750         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
70752 2009-09-05  Bruno Haible  <bruno@clisp.org>
70754         Support towlower, towupper.
70755         * doc/posix-functions/towlower.texi: Mention module wctype.
70756         * doc/posix-functions/towupper.texi: Likewise.
70757         * lib/wctype.in.h (towlower, towupper): New functions.
70758         * tests/test-wctype.c: Include stdio.h, stdlib.h.
70759         (ASSERT): New macro.
70760         (e): New variable.
70761         (main): Test also towlower, towupper. Test WEOF argument.
70762         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
70764 2009-09-05  Bruno Haible  <bruno@clisp.org>
70766         Fix conversion behaviour when the input is invalid.
70767         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
70768         mark occurring in first pass of indirect conversion.
70769         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
70770         input.
70771         Found by clang's static analyzer.
70773 2009-09-05  Bruno Haible  <bruno@clisp.org>
70775         * tests/test-striconveh.c (main): Test indirect conversion on platforms
70776         where direct conversion is possible.
70778 2009-09-04  Eric Blake  <ebb9@byu.net>
70780         openat: fail with ENOENT on empty name
70781         * lib/openat-proc.c (openat_proc_name): Special-case the empty
70782         buffer.
70784         link-follow: fix logic bug in prior patch
70785         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
70786         reversed sense of yes and no in prior patch.  Avoid confusing
70787         compilation failure with desired semantics.
70789         link-follow: accommodate mingw and cross-compilation
70790         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
70791         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
70792         cross-compilation results to -1, to make linkat easier to
70793         implement when cross-compiling.  Trivially support mingw.
70794         * modules/link-follow (configure.ac): Call new name.
70795         * NEWS: Mention this.
70797 2009-09-03  Eric Blake  <ebb9@byu.net>
70799         faccessat: compile replacement
70800         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
70801         needed.
70803         fts: fix compilation error
70804         * lib/fts.c (includes): Re-add "openat.h", for
70805         openat_needs_fchdir.
70807         faccessat: new module
70808         * modules/faccessat: New file.
70809         * lib/faccessat.c: Likewise.
70810         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
70811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
70812         * modules/unistd (Makefile.am): Use it.
70813         * lib/unistd.in.h (faccessat): Declare it.
70814         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
70815         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
70816         * MODULES.html.sh (File system functions): Mention it.
70817         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
70818         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
70820         euidaccess: prefer POSIX over non-standard implementation
70821         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
70822         * lib/euidaccess.c (euidaccess): Use it if available.
70824         openat: make template easier to use
70825         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
70826         AT_FUNC_F2 to be undefined.
70827         (VALIDATE_FLAG): New macro; use it to reject bad flags.
70828         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
70829         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
70830         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
70831         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
70832         Likewise.
70833         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
70834         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
70835         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
70836         Likewise.
70838         openat: declare in POSIX headers
70839         * NEWS: Mention this.
70840         * modules/openat (configure.ac): Declare witnesses.
70841         (Depends-on): Add fcntl-h, sys_stat, unistd.
70842         (Include): Mention correct headers.
70843         * modules/fcntl-h (Depends-on): Add link-warning.
70844         (Files): Add openat.m4.
70845         (Makefile.am): Substitute witnesses.
70846         * modules/sys_stat (Files, Makefile.am): Likewise.
70847         * modules/unistd (Files, Makefile.am): Likewise.
70848         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
70849         (gl_OPENAT_DEFAULTS): New macro.
70850         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
70851         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
70852         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
70853         (SYS_STAT_H): Remove unused variable.
70854         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
70855         * lib/fcntl--.h (includes): Remove unneeded header.
70856         * lib/openat-safer.c (includes): Likewise.
70857         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
70858         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
70859         appropriate headers.
70860         (__OPENAT_PREFIX): Delete.
70861         * lib/fcntl.in.h (openat): Provide declaration.
70862         (AT_FDCWD): Fix Solaris bug.
70863         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
70864         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
70865         * lib/fchmodat.c (includes):  Adjust to find declaration.
70866         * lib/fchownat.c (includes): Likewise.
70867         * lib/mkdirat.c (includes): Likewise.
70868         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
70869         still visible.
70871 2009-09-02  Eric Blake  <ebb9@byu.net>
70873         errno: use consistently
70874         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
70875         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
70876         * lib/canonicalize.c (ELOOP): Likewise.
70877         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
70878         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
70879         * lib/lchown.c (EOPNOTSUPP): Likewise.
70880         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
70881         * lib/savewd.c (ESTALE): Likewise.
70882         * lib/settime.c (ENOSYS): Likewise.
70883         * lib/utimens.c (ENOSYS): Likewise.
70884         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
70885         * lib/chdir-safer.c (ELOOP): Likewise.
70886         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
70887         * modules/c-stack (Depends-on): Add errno.
70888         * modules/canonicalize (Depends-on): Likewise.
70889         * modules/chdir-safer (Depends-on): Likewise.
70890         * modules/fdopendir (Depends-on): Likewise.
70891         * modules/inet_ntop (Depends-on): Likewise.
70892         * modules/inet_pton (Depends-on): Likewise.
70893         * modules/lchown (Depends-on): Likewise.
70894         * modules/openat (Depends-on): Likewise.
70895         * modules/savewd (Depends-on): Likewise.
70896         * modules/settime (Depends-on): Likewise.
70897         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
70899         fts: avoid leaking fds
70900         * modules/fts (Depends-on): Add cloexec.
70901         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
70902         flag.
70904         fts: make directory fds more robust
70905         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
70906         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
70908         backupfile, chdir-long, fts, savedir: make safer
70909         * lib/backupfile.c (includes): Use "dirent--.h", since
70910         numbered_backup can write to stderr during readdir.
70911         * lib/savedir.c (includes): Likewise.
70912         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
70913         emulation can write to stderr on failure.
70914         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
70915         * lib/getcwd.c: Document why opendir_safer is unused.
70916         * lib/glob.c: Likewise.
70917         * lib/scandir.c: Likewise.
70918         * lib/openat-proc.c: Likewise, for open_safer.
70919         * modules/backupfile (Depends-on): Add dirent-safer.
70920         * modules/savedir (Depends-on): Likewise.
70921         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
70922         * modules/chdir-long (Depends-on): Add openat-safer.
70924         openat-safer: new module
70925         * modules/openat-safer: New file.
70926         * lib/openat-safer.c: Likewise.
70927         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
70928         * lib/fcntl-safer.h (openat_safer): Declare.
70929         * lib/fcntl--.h (openat): Override.
70930         * MODULES.html.sh (File descriptor based I/O): Mention it.
70931         * lib/openat.h: Add double-inclusion guards.
70932         * lib/openat.c (includes): Only include "fcntl-safer.h", not
70933         "fcntl--.h", so we can implement openat.
70934         * modules/openat-safer-tests: New test.
70935         * tests/test-openat-safer.c: New file.
70937         dirent-safer: new module
70938         * modules/dirent-safer: New file.
70939         * lib/dirent--.h: Likewise.
70940         * lib/dirent-safer.h: Likewise.
70941         * lib/opendir-safer.c: Likewise.
70942         * m4/dirent-safer.m4: Likewise.
70943         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
70944         * modules/dirent-safer-tests: New test.
70945         * tests/test-dirent-safer.c: New file.
70946         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
70948         fdopendir: optimize on mingw
70949         * lib/unistd.in.h (_gl_directory_name): New prototype.
70950         * lib/fchdir.c (_gl_directory_name): Implement it.
70951         (fchdir): Use it to simplify implementation.
70952         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
70953         fchdir, when available, to avoid calling [f]chdir().
70955         fdopendir: split into its own module
70956         * lib/openat.c (fdopendir): Move...
70957         * lib/fdopendir.c: ...into new file.
70958         * modules/fdopendir: New module.
70959         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
70960         * modules/openat (Depends-on): Add fdopendir.
70961         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
70962         fdopendir here.
70963         * modules/savedir (Depends-on): Only need fdopendir, not full
70964         openat.
70965         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
70966         * lib/openat.h (fdopendir): Drop prototype.
70967         * lib/dirent.in.h (fdopendir): Provide prototype.
70968         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
70969         * modules/dirent (Makefile.am): Substitute them.
70970         * MODULES.html.sh (File system functions): Mention it.
70971         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
70972         * modules/fdopendir-tests: New file.
70973         * tests/test-fdopendir.c: Likewise.
70975         fchdir: use more consistent macro convention
70976         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
70977         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
70978         REPLACE_FCHDIR, rather than relying on config.h macros.
70979         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
70980         inside a single make-time REPLACE_FCHDIR block, rather than using
70981         the config.h FCHDIR_REPLACEMENT.
70982         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
70983         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
70984         Manage fstat replacement.
70985         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
70986         REPLACE_FCHDIR.
70987         * modules/sys_stat (Files): Add m4/unistd_h.m4.
70988         (Makefile.am): Substitute REPLACE_FCHDIR.
70989         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
70990         FCHDIR_REPLACEMENT.
70991         * lib/dup-safer.c (dup_safer): Likewise.
70992         * lib/dup2.c (rpl_dup2): Likewise.
70993         * lib/dup3.c (rpl_dup3): Likewise.
70994         * lib/open.c (rpl_open): Likewise.
70996         fchdir: simplify error handling, and support dup3
70997         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
70998         stdbool, malloc-posix, realloc-posix.
70999         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
71000         (ensure_dirs_slot): Return false on allocation failure.
71001         (rpl_dup2): Delete.
71002         (_gl_register_dup): New function.
71003         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
71004         (_gl_register_fd): Close fd on allocation failure.
71005         * lib/fcntl.in.h (_gl_register_fd): Update signature.
71006         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
71007         prototype.
71008         (rpl_dup2_fchdir): Delete prototype.
71009         * lib/open.c (open): Update caller.
71010         * lib/dup2.c (dup2): Track fchdir metadata.
71011         * lib/dup3.c (dup3): Likewise.
71012         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
71013         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
71015 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71017         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
71018         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
71019         don't pass arguments to AC_OUTPUT.
71021 2009-09-02  Bruno Haible  <bruno@clisp.org>
71023         * modules/mkdtemp (License): Relicense under LGPLv2+.
71024         Reported by Paolo Bonzini.
71026 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71028         Replace uses of obsolete autoconf macros in Jim's modules.
71029         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
71030         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
71031         can evoke a warning from autoconf when run with -Wobsolete
71032         enabled.  They were declared obsolete for good reasons (see
71033         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
71034         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
71035         should not continue using the deprecated macros.
71036         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
71037         obsolete Autoconf macros with modern counterparts.
71038         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
71039         * m4/dos.m4 (gl_AC_DOS): Likewise.
71040         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
71041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
71042         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
71043         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
71044         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
71045         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
71046         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
71047         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
71048         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71049         Likewise.
71050         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
71051         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
71052         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
71053         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
71054         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71055         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
71057 2009-09-01  Eric Blake  <ebb9@byu.net>
71059         fchdir: fix off-by-one bug in previous patch
71060         * lib/fchdir.c (rpl_fstat): Use correct bounds.
71061         (_gl_unregister_fd): Delete useless if.
71063 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
71065         maint.mk: sort the list of syntax-check rules
71066         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
71067         easier to get a sense of progress when the rules are run sequentially
71068         and take a long time.
71070 2009-09-01  Simon Josefsson  <simon@josefsson.org>
71072         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
71073         * modules/netinet_in: Likewise.
71074         * modules/sys_file: Likewise.
71075         * modules/sys_ioctl: Likewise.
71076         * modules/sys_select: Likewise.
71077         * modules/sys_socket: Likewise.
71078         * modules/sys_stat: Likewise.
71079         * modules/sys_time: Likewise.
71080         * modules/sys_times: Likewise.
71081         * modules/sys_utsname: Likewise.
71082         * modules/sys_wait: Likewise.
71084 2009-09-01  Jim Meyering  <meyering@redhat.com>
71086         fts: help ensure that return values are not ignored
71087         * lib/fts_.h (__GNUC_PREREQ): Define.
71088         (__attribute_warn_unused_result__): Define.
71089         (fts_children, fts_close, fts_open, fts_read): Declare with
71090         __attribute_warn_unused_result__.
71092         fts: fts_close now fails also when closing a dir file descriptor fails
71093         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
71094         and propagate to caller, along with errno.
71096         announce-gen: correct formatting in --help output
71097         * build-aux/announce-gen (usage): Move the one-line description in
71098         --help output "up", to where it belongs, just after Usage:.
71100 2009-08-31  Eric Blake  <ebb9@byu.net>
71102         fchdir: port to mingw
71103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
71104         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
71105         opened, then use a substitute.
71106         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
71107         replacement.
71108         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
71109         (_gl_register_fd): No need to check stat if open already filters
71110         all directories.
71111         (fchdir): Fix error condition to match POSIX.
71112         * modules/fchdir (Depends-on): Add sys_stat.
71113         * doc/posix-functions/open.texi (open): Document the limitation.
71114         * modules/fchdir-tests: New file.
71115         * tests/test-fchdir.c: Likewise.
71117         canonicalize: allow cross-testing from cygwin to mingw
71118         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
71119         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
71120         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
71121         Likewise.
71122         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
71123         target does not support symlinks.
71124         * tests/test-canonicalize-lgpl.sh: Likewise.
71126         chown: avoid compilation warning on mingw
71127         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
71128         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
71129         mingw.
71130         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
71131         * modules/chown (Depends-on): Add errno.
71133 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
71135         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
71136         command.
71138 2009-08-31  Jim Meyering  <meyering@redhat.com>
71140         canonicalize: remove useless initialization
71141         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
71142         initialization of local, "end".
71144 2009-08-30  Bruno Haible  <bruno@clisp.org>
71146         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
71147         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
71148         ENOSYS.
71150 2009-08-30  Bruno Haible  <bruno@clisp.org>
71152         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
71153         /usr/xpg4/bin/tr when it exists.
71154         * tests/test-pipe-filter-gi1.sh: Likewise.
71156 2009-08-30  Bruno Haible  <bruno@clisp.org>
71158         Work around deficient /usr/bin/id program on Solaris.
71159         * tests/test-file-has-acl.sh (ID): New variable.
71160         * tests/test-set-mode-acl.sh (ID): Likewise.
71161         * tests/test-copy-acl.sh (ID): Likewise.
71162         * tests/test-copy-file.sh (ID): Likewise.
71164 2009-08-30  Bruno Haible  <bruno@clisp.org>
71166         New module 'xstriconveh'.
71167         * lib/xstriconveh.h: New file.
71168         * lib/xstriconveh.c: New file.
71169         * modules/xstriconveh: New file.
71171 2009-08-30  Bruno Haible  <bruno@clisp.org>
71173         Make it easier to use mem_cd_iconveh.
71174         * lib/striconveh.h (iconveh_t): New type.
71175         (iconveh_open, iconveh_close): New declarations.
71176         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
71177         with a single 'const iconveh_t *' argument.
71178         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
71179         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
71180         with a single 'const iconveh_t *' argument.
71181         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
71182         * tests/test-striconveh.c (main): Update.
71183         * NEWS: Mention the change.
71185 2009-08-30  Bruno Haible  <bruno@clisp.org>
71187         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
71188         problem.
71190 2009-08-30  Bruno Haible  <bruno@clisp.org>
71192         Work around iconv_open problem on Solaris.
71193         * lib/iconv_open-solaris.gperf: New file.
71194         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
71195         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
71196         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
71197         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
71198         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
71199         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
71201 2009-08-29  Jim Meyering  <meyering@redhat.com>
71203         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
71204         * top/maint.mk (cvs-check): Remove target; it was just an alias
71205         to the better-named vc-diff-check.
71206         (maintainer-distcheck): Remove rule.  It was used only from
71207         the (alpha/beta/major) target, and all of its commands but one
71208         were coreutils-specific.
71209         (vc-dist): Remove rule.
71210         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
71211         Run vc-diff-check, not vc-dist.
71212         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
71214 2009-08-27  Bruno Haible  <bruno@clisp.org>
71216         * tests/test-bitrotate.c (main): Remove test that uses a shift count
71217         of 0.
71219 2009-08-27  Bruno Haible  <bruno@clisp.org>
71221         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
71222         compilers.
71223         * doc/func.texi: Document the SunPRO C bug.
71225 2009-08-27  Bruno Haible  <bruno@clisp.org>
71227         Fix link error on Solaris.
71228         * tests/test-parse-duration.c (xstrdup): Remove function.
71230 2009-08-26  Pádraig Brady  <P@draigbrady.com>
71232         ignore-value: handle pointer types, too
71233         * lib/ignore-value.h (__attribute__): Remove definition.
71234         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
71235         of a more concise and more-often effective "(void) i" statement.
71236         (ignore_ptr): New function to suppress warnings from functions that
71237         return pointers, and to make it explicit that one function doesn't
71238         handle all cases.
71240 2009-08-25  Bruno Haible  <bruno@clisp.org>
71242         dup2: work around a Linux bug.
71243         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
71244         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
71245         * doc/posix-functions/dup2.texi: Mention the Linux bug.
71246         Reported by Simon Josefsson.
71248 2009-08-25  Jim Meyering  <meyering@redhat.com>
71250         libguestfs uses gnulib
71251         * users.txt: Add libguestfs.
71253 2009-08-24  Eric Blake  <ebb9@byu.net>
71255         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
71256         * lib/pipe2.c (includes): Add binary-io.h.
71257         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
71259 2009-08-24  Bruno Haible  <bruno@clisp.org>
71261         Tolerate declared but missing accept4 syscall.
71262         * lib/accept4.c (accept4): Invoke original accept4 function first, if
71263         available.
71264         * lib/sys_socket.in.h (accept4): If the function is already present,
71265         override it.
71266         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
71267         * modules/accept4 (Makefile.am): Compile accept4.c always.
71268         Reported by Paolo Bonzini and Eric Blake.
71270 2009-08-23  Bruno Haible  <bruno@clisp.org>
71272         New module 'accept4'.
71273         * lib/sys_socket.in.h (accept4): New declaration.
71274         * lib/accept4.c: New file.
71275         * m4/accept4.m4: New file.
71276         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
71277         GNULIB_ACCEPT4, HAVE_ACCEPT4.
71278         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
71279         HAVE_ACCEPT4.
71280         * modules/accept4: New file.
71281         * doc/glibc-functions/accept4.texi: Mention the new module.
71283 2009-08-24  Jim Meyering  <meyering@redhat.com>
71285         progname: also set global program_invocation_name, when possible
71286         Before this change, a libtool-enabled program that calls glibc's
71287         error function would report the program name as
71288         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
71289         * modules/progname (configure.ac): Check for a declaration of
71290         program_invocation_name.
71291         * lib/progname.c:  Include <errno.h>.
71292         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
71293         Set program_invocation_name.
71295 2009-08-23  Bruno Haible  <bruno@clisp.org>
71297         * lib/dup3.c: Include <string.h>.
71299 2009-08-23  Bruno Haible  <bruno@clisp.org>
71301         * lib/dup3.c (dup3): Test only once whether the system actually exists.
71302         * lib/pipe2.c (pipe2): Likewise.
71303         Suggested by Eric Blake.
71305 2009-08-23  Bruno Haible  <bruno@clisp.org>
71307         Tolerate declared but missing dup3 syscall.
71308         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
71309         * lib/unistd.in.h (dup3): If the function is already present,
71310         override it.
71311         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
71312         * modules/dup3 (Makefile.am): Compile dup3.c always.
71313         Reported by Paolo Bonzini.
71315 2009-08-23  Bruno Haible  <bruno@clisp.org>
71317         Tolerate declared but missing pipe2 syscall.
71318         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
71319         available.
71320         * lib/unistd.in.h (pipe2): If the function is already present,
71321         override it.
71322         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
71323         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
71324         Reported by Paolo Bonzini.
71326 2009-08-23  Bruno Haible  <bruno@clisp.org>
71328         * lib/pipe2.c (pipe2): Move #ifs inside function.
71330 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71332         quotearg: document limitations of quote_these_too
71333         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
71334         those limitations are created.
71335         * lib/quotearg.h (set_char_quoting): Document that digits and
71336         letters that are special after backslash are not permitted.
71337         (quotearg_char): Cross-reference set_char_quoting documentation.
71339 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
71341         quotearg: implement custom_quoting_style
71342         * lib/quotearg.c: (struct quoting_options): Add left_quote and
71343         right_quote fields.
71344         (set_custom_quoting): New public function.
71345         (quotearg_buffer_restyled): Add left_quote and right_quote
71346         arguments, handle them very much like locale quoting, and update
71347         all uses.
71348         (quotearg_n_custom): New public function.
71349         (quotearg_n_custom_mem): New public function.
71350         (quotearg_custom): New public function.
71351         (quotearg_custom_mem): New public function.
71352         * lib/quotearg.h: Prototype and document new public functions.
71353         (enum quoting_style): For escape_quoting_style and
71354         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
71355         ignored even though they're otherwise like c_quoting_style.
71356         Add custom_quoting_style member and document with comparison to
71357         clocale_quoting_style.
71358         * tests/test-quotearg.c (custom_quotes): New array.
71359         (custom_results): New array.
71360         (main): Extend to test custom quoting.
71362 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71364         quotearg: fix right quote escaping when it's in quote_these_too
71365         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
71366         quote, be sure to prepend only one backslash.
71367         * tests/test-quotearg.c (use_quote_double_quotes): New function.
71368         (main): Test it.
71370 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
71372         quotearg-tests: test escaping of embedded locale quotes
71373         * tests/test-quotearg.c (struct result_strings): Add member for
71374         new input.
71375         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
71376         (inputs): Add new input.
71377         (results_g): Add expected results.
71378         (flag_results): Likewise.
71379         (locale_results): Likewise.
71380         (compare_strings): Check those.
71382 2009-08-23  Bruno Haible  <bruno@clisp.org>
71384         Tests for module 'dup3'.
71385         * modules/dup3-tests: New file.
71386         * tests/test-dup3.c: New file.
71388         New module 'dup3'.
71389         * lib/unistd.in.h (dup3): New declaration.
71390         * lib/dup3.c: New file.
71391         * m4/dup3.m4: New file.
71392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
71393         HAVE_DUP3.
71394         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
71395         * modules/dup3: New file.
71396         * doc/glibc-functions/dup3.texi: Mention the new module.
71398 2009-08-23  Bruno Haible  <bruno@clisp.org>
71400         Tweak the dup2 test.
71401         * tests/test-dup2.c (main): Create the test file empty. Verify that an
71402         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
71403         the test file is still empty. Fix argument order of lseek.
71405 2009-08-23  Bruno Haible  <bruno@clisp.org>
71407         Avoid test link errors when the modules getopt-gnu, gettext are used.
71408         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
71409         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71411 2009-08-23  Bruno Haible  <bruno@clisp.org>
71413         Fix getdtablesize() on mingw.
71414         * lib/getdtablesize.c (getdtablesize): Implement differently.
71415         * lib/unistd.in.h (getdtablesize): Improve comment.
71417 2009-08-23  Bruno Haible  <bruno@clisp.org>
71419         New module 'mkostemp'.
71420         Based on Ulrich Drepper's 2007-08-10 change in glibc.
71421         * lib/stdlib.in.h (mksotemp): New declaration.
71422         * lib/mkostemp.c: New file, from glibc with modifications.
71423         * lib/tempname.h (GT_FILE): Remove outdated comment.
71424         (gen_tempname): Add flags argument.
71425         * lib/tempname.c (__GT_BIGFILE): Remove macro.
71426         (__GT_FILE): Map to 1.
71427         (small_open, large_open): Remove macros.
71428         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
71429         * lib/mkstemp.c (mkstemp): Update.
71430         * lib/mkdtemp.c (mkdtemp): Likewise.
71431         * m4/mkostemp.m4: New file.
71432         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
71433         HAVE_MKOSTEMP.
71434         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
71435         HAVE_MKOSTEMP.
71436         * modules/mkostemp: New file, based on modules/mkstemp.
71437         * doc/glibc-functions/mkostemp.texi: Mention the new module.
71438         * NEWS: Mention the change.
71440 2009-08-23  Bruno Haible  <bruno@clisp.org>
71442         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
71443         Reported by Eric Blake.
71445 2009-08-23  Bruno Haible  <bruno@clisp.org>
71447         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
71448         Reported by Eric Blake.
71450 2009-08-23  Bruno Haible  <bruno@clisp.org>
71452         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
71453         * modules/pipe2 (Depends-on): Likewise.
71455 2009-08-23  Eric Blake  <ebb9@byu.net>
71457         fcntl-h: add O_TTY_INIT support
71458         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
71459         * tests/test-fcntl-h.c (o): Test it.
71460         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
71462         fcntl-h: rename from fcntl, in preparation for fcntl(2)
71463         * modules/fcntl: Move <fcntl.h> header replacement...
71464         * modules/fcntl-h: ...to new name, so as not to collide with
71465         like-named function.
71466         * tests/test-fcntl.c: Rename...
71467         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
71468         * modules/fcntl-tests: Rename...
71469         * modules/fcntl-h-tests: ...to this.  Update test file name.
71470         * modules/chdir-long (Depends-on): Update clients.
71471         * modules/chdir-safer (Depends-on): Likewise.
71472         * modules/fcntl-safer (Depends-on): Likewise.
71473         * modules/fts (Depends-on): Likewise.
71474         * modules/mkancesdirs (Depends-on): Likewise.
71475         * modules/mkdir-p (Depends-on): Likewise.
71476         * modules/open (Depends-on): Likewise.
71477         * modules/savewd (Depends-on): Likewise.
71478         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
71479         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
71481 2009-08-22  Bruno Haible  <bruno@clisp.org>
71483         * modules/binary-io (License): Relicense under LGPL.
71484         * modules/pipe2 (License): Likewise.
71486 2009-08-22  Bruno Haible  <bruno@clisp.org>
71488         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
71489         return value.
71490         * lib/pipe-filter-gi.c (filter_init): Likewise.
71491         Reported by Eric Blake.
71493 2009-08-22  Bruno Haible  <bruno@clisp.org>
71495         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
71496         * modules/pipe (Depends-on): Add pipe2.
71498 2009-08-22  Bruno Haible  <bruno@clisp.org>
71500         Tests for module 'pipe2'.
71501         * modules/pipe2-tests: New file.
71502         * tests/test-pipe2.c: New file.
71504         New module 'pipe2'.
71505         * lib/unistd.in.h (pipe2): New declaration.
71506         * lib/pipe2.c: New file.
71507         * m4/pipe2.m4: New file.
71508         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
71509         HAVE_PIPE2.
71510         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
71511         * modules/pipe2: New file.
71512         * doc/glibc-functions/pipe2.texi: Mention the new module.
71514 2009-08-22  Bruno Haible  <bruno@clisp.org>
71516         Reference some new glibc functions.
71517         * doc/glibc-functions/accept4.texi: New file.
71518         * doc/glibc-functions/dup3.texi: New file.
71519         * doc/glibc-functions/mkostemp.texi: New file.
71520         * doc/glibc-functions/pipe2.texi: New file.
71521         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
71522         (Glibc sys/socket.h): Refer to accept4.
71523         (Glibc unistd.h): Refer to dup3, pipe2.
71524         Reported by Eric Blake.
71526 2009-08-22  Jim Meyering  <meyering@redhat.com>
71527             Bruno Haible  <bruno@clisp.org>
71529         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
71530         This makes it so packages using automake-1.11's silent-rules option
71531         can print e.g., a single "GEN    configmake.h" line, rather than
71532         the 30+ statements that perform the job.  If you want to see the
71533         actual commands, you can still run "make V=1".
71534         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
71535         so that make output is abbreviated when those variables are defined
71536         appropriately.
71537         * modules/argz: Likewise.
71538         * modules/arpa_inet: Likewise.
71539         * modules/byteswap: Likewise.
71540         * modules/configmake: Likewise.
71541         * modules/dirent: Likewise.
71542         * modules/errno: Likewise.
71543         * modules/fcntl: Likewise.
71544         * modules/float: Likewise.
71545         * modules/fnmatch: Likewise.
71546         * modules/getopt-posix: Likewise.
71547         * modules/glob: Likewise.
71548         * modules/iconv_open: Likewise.
71549         * modules/inttypes: Likewise.
71550         * modules/localcharset: Likewise.
71551         * modules/locale: Likewise.
71552         * modules/math: Likewise.
71553         * modules/netdb: Likewise.
71554         * modules/netinet_in: Likewise.
71555         * modules/poll: Likewise.
71556         * modules/posix_spawnp-tests: Likewise.
71557         * modules/sched: Likewise.
71558         * modules/search: Likewise.
71559         * modules/selinux-h: Likewise.
71560         * modules/signal: Likewise.
71561         * modules/spawn: Likewise.
71562         * modules/stdarg: Likewise.
71563         * modules/stdbool: Likewise.
71564         * modules/stddef: Likewise.
71565         * modules/stdint: Likewise.
71566         * modules/stdio: Likewise.
71567         * modules/stdlib: Likewise.
71568         * modules/string: Likewise.
71569         * modules/strings: Likewise.
71570         * modules/sys_file: Likewise.
71571         * modules/sys_ioctl: Likewise.
71572         * modules/sys_select: Likewise.
71573         * modules/sys_socket: Likewise.
71574         * modules/sys_stat: Likewise.
71575         * modules/sys_time: Likewise.
71576         * modules/sys_times: Likewise.
71577         * modules/sys_utsname: Likewise.
71578         * modules/sys_wait: Likewise.
71579         * modules/sysexits: Likewise.
71580         * modules/time: Likewise.
71581         * modules/unistd: Likewise.
71582         * modules/wchar: Likewise.
71583         * modules/wctype: Likewise.
71585 2009-08-22  Jim Meyering  <meyering@redhat.com>
71587         announce-gen: detect write failure
71588         * build-aux/announce-gen: Add Coda at end.
71589         Remove equivalent-but-more-verbose block at top.
71591 2009-08-19  Akim Demaille  <demaille@gostai.com>
71593         bootstrap: --help to stdout.
71594         * bootstrap (usage): Don't send --help to stderr.
71595         Use a here doc instead of a long string.
71597 2009-08-21  Eric Blake  <ebb9@byu.net>
71599         test-popen-safer: split from test-popen
71600         * tests/test-popen.c (main): Move...
71601         * tests/test-popen.h: ...into new file.
71602         * tests/test-popen-safer2.c: New file.
71603         * modules/popen-tests (Files): Add test-popen.h.
71604         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
71605         Suggested by Bruno Haible.
71607         test-fcntl-safer: split from test-open
71608         * tests/test-open.c (main): Move...
71609         * tests/test-open.h: ...into new file.
71610         * tests/test-fcntl-safer.c: New file.
71611         * modules/open-tests (Files): Add test-open.h.
71612         * modules/fcntl-safer-tests: New file.
71613         Suggested by Bruno Haible.
71615         test-fopen-safer: split from test-fopen
71616         * tests/test-fopen.c (main): Move...
71617         * tests/test-fopen.h: ...into new file.
71618         * tests/test-fopen-safer.c: New file.
71619         * modules/fopen-tests (Files): Add test-fopen.h.
71620         * modules/fopen-safer-tests: New file.
71621         Suggested by Bruno Haible.
71623 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
71625         popen-safer: test O_CLOEXEC at run-time.
71626         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
71628 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
71630         fcntl: move more flags to the header
71631         * lib/cloexec.c: Do not define FD_CLOEXEC here.
71632         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
71633         * lib/fcntl.in.h: Do both things here.
71635 2009-08-21  Jim Meyering  <meyering@redhat.com>
71637         consistently remove $@-t before redirecting to it
71638         * modules/argz: Remove $@-t and $@ before redirecting to the former.
71639         * modules/alloca-opt: Likewise.
71640         * modules/byteswap: Likewise.
71641         * modules/fnmatch: Likewise.
71642         * modules/getopt-posix: Likewise.
71643         * modules/glob: Likewise.
71644         * modules/poll: Likewise.
71645         * modules/posix_spawnp-tests: Likewise.
71646         * modules/sys_socket: Likewise.
71647         * modules/sysexits: Likewise.
71649 2009-08-21  Eric Blake  <ebb9@byu.net>
71651         popen: simplify access to original popen
71652         * lib/popen.c (rpl_popen): No need to worry about popen being a
71653         macro.
71654         Reported by Bruno Haible.
71656 2009-08-20  Eric Blake  <ebb9@byu.net>
71658         build: avoid some compiler warnings
71659         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
71660         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
71661         type.
71662         (new_exclude_segment, excluded_file_pattern_p)
71663         (excluded_file_name_p): Reduce scope.
71664         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
71665         old-style declaration.
71667 2009-08-20  Simon Josefsson  <simon@josefsson.org>
71669         * tests/test-exclude1.sh: Handle Windows EOL.
71670         * tests/test-exclude2.sh: Likewise.
71671         * tests/test-exclude3.sh: Likewise.
71672         * tests/test-exclude4.sh: Likewise.
71673         * tests/test-exclude5.sh: Likewise.
71674         * tests/test-exclude6.sh: Likewise.
71675         * tests/test-exclude7.sh: Likewise.
71677 2009-08-19  Akim Demaille  <demaille@gostai.com>
71679         bootstrap: find sha1sum when named gsha1sum.
71680         * bootstrap (find_tool): New.
71681         ($SHA1SUM): New.
71682         Use it.
71684 2009-08-20  Jim Meyering  <meyering@redhat.com>
71686         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
71687         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
71688         expression that converts "." in a file name to "\." in the resulting
71689         regexp.  Start with a dummy statement, so that prior shell variable
71690         definitions are expanded portably.  Reported by Simon Josefsson.
71692 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
71694         Fix polling for writeability of a screen buffer.
71695         * lib/poll.c: Distinguish input and screen buffers for the
71696         Win32 implementation.
71697         * lib/select.c: Likewise.
71699 2009-08-19  Eric Blake  <ebb9@byu.net>
71701         popen-safer: prevent popen from clobbering std descriptors
71702         * modules/popen-safer: New file.
71703         * lib/popen-safer.c: Likewise.
71704         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
71705         * lib/stdio--.h (popen): Provide override.
71706         * lib/stdio-safer.h (popen_safer): Provide declaration.
71707         * tests/test-popen.c (includes): Partially test this.
71708         * modules/popen-safer-tests: New file, for more tests.
71709         * tests/test-popen-safer.c: Likewise.
71710         * MODULES.html.sh (file stream based Input/Output): Mention it.
71712         tests: test some of the *-safer modules
71713         * modules/fopen-safer (Depends-on): Add fopen.
71714         * modules/fcntl-safer (Depends-on): Add fcntl.
71715         * modules/stdlib-safer (Depends-on): Add stdlib.
71716         (configure.ac): Set indicator.
71717         * modules/unistd-safer (configure.ac): Likewise.
71718         * modules/tmpfile-safer (configure.ac): Likewise.
71719         (Depends-on): Add tmpfile.
71720         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
71721         active.
71722         * tests/test-fopen.c (includes): Test safer versions when they are
71723         in use.
71724         * tests/test-open.c (includes): Likewise.
71726         popen: fix cygwin 1.5 bug when stdin closed
71727         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
71728         * modules/popen: New file.
71729         * modules/popen-tests: Likewise.
71730         * tests/test-popen.c: Likewise.
71731         * m4/popen.m4: Likewise.
71732         * lib/popen.c: Likewise.
71733         * lib/stdio.in.h (popen): New declaration.
71734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
71735         * modules/stdio (Makefile.am): Likewise.
71736         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
71738 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
71740         maint.mk: give full control over update-copyright exclusions
71741         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
71742         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
71743         (update-copyright): Don't force inclusion of top-level
71744         ChangeLog.  Don't force exclusion of all COPYING files, but make
71745         them the default exclusion instead.
71747 2009-08-16  Bruno Haible  <bruno@clisp.org>
71749         Fix test failures on Solaris 10.
71750         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
71751         tests when Solaris iconv() is used.
71752         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71753         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
71754         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
71755         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
71756         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
71758 2009-08-16  Bruno Haible  <bruno@clisp.org>
71760         Fix test failures on Solaris 10.
71761         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
71762         'tr' program and pass it as first argument.
71763         * tests/test-pipe-filter-gi1.sh: Likewise.
71764         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
71765         program as first argument.
71766         * tests/test-pipe-filter-gi1.c (main): Likewise.
71768 2009-08-16  Eric Blake  <ebb9@byu.net>
71770         fpurge: fix previous commits
71771         * modules/fpurge (Makefile.am): Make replacement conditional,
71772         partially reverting 2007-04-29 change; missed in previous
71773         attempt.
71774         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
71775         is missing.
71777 2009-08-16  Bruno Haible  <bruno@clisp.org>
71779         Clarify fpurge's effect on the file position.
71780         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
71781         * tests/test-fpurge.c (main): Make a second pass for checking the file
71782         position.
71784 2009-08-16  Bruno Haible  <bruno@clisp.org>
71786         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
71787         declaration of fpurge is missing.
71788         * tests/test-fpurge.c (main): Check that the file has not more contents
71789         than expected. Close the file before removing it.
71791 2009-08-15  Eric Blake  <ebb9@byu.net>
71793         fpurge: don't wrap working cygwin implementation
71794         * lib/fpurge.c (fpurge): Fix comment typo.
71795         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
71796         1.7 to avoid replacement.
71797         * tests/test-fpurge.c (main): Enhance test.
71799 2009-08-15  Eric Blake  <ebb9@byu.net>
71800         and Jim Meyering  <meyering@redhat.com>
71802         test-update-copyright: skip if perl is insufficient
71803         * tests/test-update-copyright.sh: Failure to run maintainer tool
71804         should not cause testsuite failure on cygwin 1.5.
71806 2009-08-14  Eric Blake  <ebb9@byu.net>
71808         doc: mention more functions added in cygwin 1.7.0
71809         * doc/posix-headers/limits.texi (limits.h): Update for recent
71810         cygwin additions.
71811         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
71812         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
71813         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
71814         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
71815         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
71817 2009-08-14  Eric Blake  <ebb9@byu.net>
71819         maint.mk: simplify update-copyright rule
71820         * top/maint.mk (update-copyright-local): Delete, and document how
71821         to do it in cfg.mk instead.
71822         (update-copyright-exclude-regexp): Delete, and document how to do
71823         it in .x-update-copyright instead.
71824         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
71825         exclude ChangeLog.
71827 2009-08-14  Bruno Haible  <bruno@clisp.org>
71829         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
71831 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71833         maint.mk: support update-copyright-env
71834         * top/maint.mk (update-copyright-env): Define place-holder.
71835         (update-copyright): Expand $(update-copyright-env) before
71836         invoking update-copyright.
71838 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71840         update-copyright: implement forced reformatting
71841         * build-aux/update-copyright: Implement and document
71842         UPDATE_COPYRIGHT_FORCE.
71843         * tests/test-update-copyright.sh: Test it.
71845 2009-08-14  Eric Blake  <ebb9@byu.net>
71846         and Bruno Haible  <bruno@clisp.org>
71848         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
71849         * tests/test-locale.c: Revert previous patch related to NULL.
71850         * tests/test-stdio.c: Likewise.
71851         * tests/test-stdlib.c: Likewise.
71852         * tests/test-string.c: Likewise.
71853         * tests/test-unistd.c: Likewise.
71854         * modules/time-tests (Depends-on): Add verify.
71855         * modules/wchar-tests (Depends-on): Likewise.
71856         * tests/test-time.c: Test for NULL compliance.
71857         * tests/test-wchar.c: Likewise.
71858         * modules/locale (Depends-on): Add stddef.
71859         * modules/stdio (Depends-on): Likewise.
71860         * modules/stdlib (Depends-on): Likewise.
71861         * modules/string (Depends-on): Likewise.
71862         * modules/time (Depends-on): Likewise.
71863         * modules/unistd (Depends-on): Likewise.
71864         * modules/wchar (Depends-on): Likewise.
71865         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
71866         * lib/stdlib.in.h (includes): Likewise.
71867         * lib/string.in.h (includes): Likewise.
71868         * lib/time.in.h (includes): Likewise.
71869         * lib/unistd.in.h (includes): Likewise.
71870         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
71871         replaced.
71872         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
71873         * m4/stddef_h.m4: New file.
71874         * modules/stddef: Likewise.
71875         * lib/stddef.in.h: Likewise.
71876         * modules/stddef-tests: Likewise.
71877         * tests/test-stddef.c: Likewise.
71878         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
71879         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
71880         * doc/posix-headers/locale.texi (locale.h): Likewise.
71881         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
71882         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
71883         * doc/posix-headers/string.texi (string.h): Likewise.
71884         * doc/posix-headers/time.texi (time.h): Likewise.
71885         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
71886         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
71888 2009-08-14  Eric Blake  <ebb9@byu.net>
71890         doc: improve git diff of texinfo files
71891         * .gitattributes: Add rule for *.texi files, with hint on how to
71892         use it.
71893         Copied from m4, and based on a report by Bruno Haible.
71895 2009-08-14  Bruno Haible  <bruno@clisp.org>
71897         Disable multithread support by default on Cygwin 1.5.x for real.
71898         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
71900 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
71902         update-copyright: much ado about intervals
71903         * build-aux/update-copyright: Implement and document
71904         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
71905         of copyright year intervals.
71906         Also, document UPDATE_COPYRIGHT_YEAR.
71907         * tests/test-update-copyright.sh: Test it.
71909         update-copyright: convert 2-digit to 4-digit years
71910         * build-aux/update-copyright: Implement and document.
71911         * tests/test-update-copyright.sh: Update.
71913 2009-08-14  Jim Meyering  <meyering@redhat.com>
71915         test-exclude: avoid coreutils "make check" failure
71916         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
71917         just as in test-argmatch.c.
71919 2009-08-13  Eric Blake  <ebb9@byu.net>
71921         test-dup2: fix bad assumption
71922         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
71923         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
71925         test-version-etc: fix CRLF portability issue
71926         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
71927         recognize \r.
71928         * tests/test-argp-version-etc-1.sh: Likewise.
71930         getopt: update client modules
71931         * modules/argp (Depends-on): Use getopt-gnu.
71932         * modules/git-merge-changelog (Depends-on): Likewise.
71933         * modules/long-options (Depends-on): Likewise.
71934         * modules/xstrtol (Depends-on): Likewise.
71936 2009-08-13  Simon Josefsson  <simon@josefsson.org>
71938         * tests/test-version-etc.sh: Don't fail on different
71939         project/version.  Don't fail on CRLF differences.  Rewrite to use
71940         multiple -e instead of multiple sed forks, suggested by Eric Blake
71941         <ebb9@byu.net>.
71942         * tests/test-argp-version-etc-1.sh: Likewise.
71944 2009-08-13  Simon Josefsson  <simon@josefsson.org>
71946         * tests/test-version-etc.sh: Don't fail on different
71947         project/version.
71949 2009-08-12  Bruno Haible  <bruno@clisp.org>
71951         Tests for modules 'getopt-posix', 'getopt-gnu'.
71952         * modules/getopt-posix-tests: New file.
71953         * tests/test-getopt.c: New file.
71954         * tests/test-getopt.h: New file.
71955         * tests/test-getopt_long.h: New file.
71957         New modules 'getopt-posix', 'getopt-gnu'.
71958         * modules/getopt-gnu: New file, renamed from modules/getopt.
71959         * modules/getopt-posix: New file.
71960         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
71961         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
71962         (gl_GETOPT): Remove macro.
71963         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
71964         Disable the test against BSD systems that declare optreset. Test
71965         against mingw bug. Test against lack of support of optional arguments
71966         on many platforms.
71967         * doc/glibc-headers/getopt.texi: Update module name and list of
71968         relevant platforms.
71969         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
71970         'getopt-gnu' and more portability problems.
71971         * NEWS: Mention the changes.
71973 2009-08-12  Bruno Haible  <bruno@clisp.org>
71975         Ensure that optarg etc. get declared by <unistd.h>.
71976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
71977         AC_USE_SYSTEM_EXTENSIONS.
71978         * modules/getopt (Depends-on): Add 'extensions'.
71980 2009-08-12  Bruno Haible  <bruno@clisp.org>
71982         Avoid test link errors.
71983         * modules/pipe-filter-ii-tests (Makefile.am): Define
71984         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
71985         * modules/pipe-filter-gi-tests (Makefile.am): Define
71986         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
71987         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
71989 2009-08-12  Bruno Haible  <bruno@clisp.org>
71991         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
71992         gl_GETOPT_SUBSTITUTE before.
71993         (gl_GETOPT): Use it.
71994         * m4/argp.m4 (gl_ARGP): Update.
71995         Reported by Sergey Poznyakoff.
71997         * m4/getopt.m4: Reorder macros.
71998         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
71999         (gl_GETOPT_SUBSTITUTE): Remove macro.
72001 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72003         Minor improvement in gitlog-to-changelog
72005         * build-aux/gitlog-to-changelog: New option `--format' makes
72006         output format string configurable.
72008 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72010         Optimize exclude: use hash tables for non-wildcard patterns.
72012         * lib/exclude.c: Include hash.h and mbuiter.h
72013         (struct exclude_pattern, exclude_segment): New data types.
72014         (struct exclude): Rewrite.
72015         (fnmatch_pattern_has_wildcards): New function.
72016         (new_exclude_segment, free_exclude_segment): New functions.
72017         (excluded_file_pattern_p, excluded_file_name_p): New functions.
72018         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
72019         * lib/exclude.h (is_fnmatch_pattern): New prototype.
72020         * modules/exclude: Depend on hash and mbuiter.
72022         * modules/exclude-tests: New file.
72023         * tests/test-exclude.c: New file.
72024         * tests/test-exclude1.sh: New file.
72025         * tests/test-exclude2.sh: New file.
72026         * tests/test-exclude3.sh: New file.
72027         * tests/test-exclude4.sh: New file.
72028         * tests/test-exclude5.sh: New file.
72029         * tests/test-exclude6.sh: New file.
72030         * tests/test-exclude7.sh: New file.
72032 2009-08-12  Bruno Haible  <bruno@clisp.org>
72034         Ensure that getopt() gets declared by <unistd.h>.
72035         * lib/unistd.in.h: Conditionally include getopt.h.
72036         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
72037         Set GNULIB_UNISTD_H_GETOPT.
72038         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72039         GNULIB_UNISTD_H_GETOPT.
72040         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
72042 2009-08-12  Bruno Haible  <bruno@clisp.org>
72044         Clarify logic.
72045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
72046         gl_replace_getopt instead of GETOPT_H.
72048 2009-08-12  Bruno Haible  <bruno@clisp.org>
72050         * m4/getopt.m4: Add comments.
72052 2009-08-12  Bruno Haible  <bruno@clisp.org>
72054         Disable multithread support by default on Cygwin 1.5.x.
72055         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
72056         set gl_use_threads=no if not specified otherwise.
72058 2009-08-11  Bruno Haible  <bruno@clisp.org>
72060         Avoid compilation error on NetBSD 5.0.
72061         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
72062         * tests/test-stdio.c: Likewise.
72063         * tests/test-stdlib.c: Likewise.
72064         * tests/test-string.c: Likewise.
72065         * tests/test-unistd.c: Likewise.
72066         Reported by Greg Troxel <gdt@ir.bbn.com>
72067         at <https://savannah.gnu.org/support/?106973>.
72069 2009-08-11  Bruno Haible  <bruno@clisp.org>
72071         * modules/dup2-tests (Depends-on): Remove close.
72073         Undo 2009-07-19 commit.
72074         * modules/acl-tests (Depends-on): Remove close.
72075         * modules/binary-io-tests (Depends-on): Likewise.
72076         * modules/closein-tests (Depends-on): Likewise.
72077         * modules/flock-tests (Depends-on): Likewise.
72078         * modules/fsync-tests (Depends-on): Likewise.
72079         * modules/lseek-tests (Depends-on): Likewise.
72080         * modules/pipe-tests (Depends-on): Likewise.
72081         * modules/posix_spawn-tests (Depends-on): Likewise.
72082         * modules/posix_spawnp-tests (Depends-on): Likewise.
72083         * modules/stat-time-tests (Depends-on): Likewise.
72084         * modules/yesno-tests (Depends-on): Likewise.
72086 2009-08-10  Bruno Haible  <bruno@clisp.org>
72088         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
72090 2009-08-10  Bruno Haible  <bruno@clisp.org>
72092         Fix a gcc warning.
72093         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
72095 2009-08-10  Bruno Haible  <bruno@clisp.org>
72097         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
72098         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
72099         not only the first time.
72100         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
72101         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
72102         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
72103         is 1, not only the first time.
72105 2009-08-10  Bruno Haible  <bruno@clisp.org>
72107         Make it possible to use module 'gethostname' without module 'close'.
72108         * lib/unistd.in.h (close): Evoke a link error only if
72109         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
72110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
72111         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
72112         * modules/unistd (Makefile.am): Substitute
72113         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
72114         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
72115         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
72116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
72117         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
72118         * modules/sys_ioctl (Makefile.am): Substitute
72119         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
72120         * modules/socket (configure.ac): On native Windows, set
72121         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
72122         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
72123         Reported by Sam Steingold <sds@gnu.org>.
72125 2009-08-10  Bruno Haible  <bruno@clisp.org>
72127         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
72128         * modules/ioctl (configure.ac): Likewise.
72130 2009-08-10  Bruno Haible  <bruno@clisp.org>
72132         Avoid collision between gnulib wrapper and libintl wrapper.
72133         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
72134         already defined in intl/printf.c.
72135         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
72136         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
72138 2009-08-09  Bruno Haible  <bruno@clisp.org>
72140         Make <sys/select.h> really self-contained, also on Solaris 10.
72141         * lib/sys_select.in.h: Include <string.h>.
72142         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
72143         Solaris 10 problem.
72144         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
72145         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
72146         Reported by Jim Meyering.
72148 2009-08-09  Bruno Haible  <bruno@clisp.org>
72150         Avoid warnings from 'aclocal' that are due to a use of macro name
72151         AM_XGETTEXT_OPTION that is not defined in automake.
72152         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
72153         automake.
72154         * modules/error (configure.ac): Likewise.
72155         * modules/propername (configure.ac): Likewise.
72156         * modules/vasprintf (configure.ac): Likewise.
72157         * modules/verror (configure.ac): Likewise.
72158         * modules/xprintf (configure.ac): Likewise.
72159         * modules/xvasprintf (configure.ac): Likewise.
72161 2009-08-08  Bruno Haible  <bruno@clisp.org>
72163         Avoid compilation error in C++ mode.
72164         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
72165         Reported by Sam Steingold <sds@gnu.org>.
72167 2009-08-08  Bruno Haible  <bruno@clisp.org>
72169         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
72170         for the various Unix platforms.
72171         * doc/posix-headers/limits.texi: Update platforms list regarding
72172         HOST_NAME_MAX.
72173         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72175 2009-08-07  Jim Meyering  <meyering@redhat.com>
72177         selinux-at: fix typo in a comment
72178         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
72179         Spotted by Paolo Bonzini.
72181         selinux-at: remove redundant m4 code, add documentation
72182         * modules/selinux-at (configure.ac): Remove redundant code.
72183         LIB_SELINUX is already set via the dependent module, selinux-h.
72184         (Include): Add quotes around selinux-at.h.
72185         * lib/selinux-at.h: Add documentation.
72186         Reported by Bruno Haible in
72187         http://marc.info/?l=gnulib-bug&m=124958988300749
72189 2009-08-07  Bruno Haible  <bruno@clisp.org>
72191         Avoid link error on MacOS X 10.3 and 10.4.
72192         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
72193         on non-ELF systems.
72194         * lib/argp-pv.c (argp_program_version): Likewise.
72195         Reported by Simon Josefsson.
72197 2009-08-07  Simon Josefsson  <simon@josefsson.org>
72199         * tests/test-version-etc.sh: Use $EXEEXT.
72201 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
72203         update-copyright: update documentation to point to maint.mk
72204         * build-aux/update-copyright: Here.
72206 2009-08-06  Jim Meyering  <meyering@redhat.com>
72208         maint.mk: support update-copyright-local
72209         * top/maint.mk (update-copyright-local): Define place-holder.
72210         (update-copyright): Depend on $(update-copyright-local).
72212 2009-08-06  Jim Meyering  <meyering@redhat.com>
72214         selinux-at: new module
72215         Initially written for coreutils, this module will soon be
72216         used by findutils, too.
72217         * MODULES.html.sh [Misc]: Add selinux-at.
72218         * lib/selinux-at.h: New file, from coreutils.
72219         * lib/selinux-at.c: Likewise.
72220         * modules/selinux-at: Likewise.
72221         (License): Change from LGPL to GPL, since it depends
72222         on the GPL'd openat module.
72224         doc: update README
72225         * README: Remove references to cogito.
72226         Remove cvs-repo-updating instructions from 2007.
72227         Don't imply that CVS is better if you have limited disk space.
72229 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
72231         update-copyright: support C-style comments
72232         * build-aux/update-copyright: Implement and document.
72233         * tests/test-update-copyright.sh: Test.
72235 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
72237         update-copyright: support omitted "(C)"
72238         * build-aux/update-copyright: Implement and document.  Also,
72239         allow variable whitespace before "(C)".
72240         * tests/test-update-copyright.sh: Test.
72242 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
72244         update-copyright: don't trip on non-FSF copyright statements
72245         * build-aux/update-copyright: Fix so that the first correctly
72246         formatted FSF copyright statement is recognized no matter what
72247         appears before it.  Update documentation.
72248         * tests/test-update-copyright.sh: Test that.
72250 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
72252         update-copyright: clean up code a little
72253         * build-aux/update-copyright: Append "_re" to the name of any
72254         variable holding a regular expression.
72255         Replace "old" and "new" with "stmt" in variable names.
72256         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
72257         handled correctly.
72258         Format code more consistently.
72260 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
72262         update-copyright-tests: improve portability
72263         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
72264         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
72266 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
72268         update-copyright: support @copyright{} and &copy;
72269         * build-aux/update-copyright: Implement and document.
72270         * tests/test-update-copyright.sh: Test.
72272 2009-08-04  Jim Meyering  <meyering@redhat.com>
72274         update-copyright-tests: correctly test EOL=\r\n handling
72275         * tests/test-update-copyright.sh: Put \r at the end of some lines
72276         for the dos-eol tests.  Based on a patch by Joel E. Denny.
72278         maint.mk: make update-copyright exclusion list more configurable
72279         * top/maint.mk (update-copyright): Default to excluding COPYING,
72280         but allow an override, in case someone does want to update that file.
72282         maint.mk: don't update copyright date in COPYING
72283         * top/maint.mk (update-copyright): Exclude COPYING.
72285         maint.mk: add a copyright-updating rule
72286         * top/maint.mk (update-copyright): New rule.
72287         Derived from coreutils/Makefile.am.
72289         update-copyright: rename some variables
72290         * build-aux/update-copyright: Rename a few variables for clarity.
72291         Tweak syntax.  List Joel E. Denny as coauthor.
72293 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
72295         update-copyright: fix bug for 2-digit last year and add tests
72296         * build-aux/update-copyright: Fix bug.
72297         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
72298         specified.
72299         * modules/update-copyright-tests: New
72300         * tests/test-update-copyright.sh: New.
72302 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72304         update-copyright: handle leading tabs in line prefix
72305         * build-aux/update-copyright: Count leading tabs as 8 spaces
72306         when computing margin.  This helps with the formatting of
72307         ChangeLogs, for example.
72308         Fix documentation a little.
72310 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72312         update-copyright: support EOL=\r\n
72313         * build-aux/update-copyright: Implement that.
72315 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
72317         update-copyright: automatically format copyright statements
72318         * build-aux/update-copyright: Implement that.
72319         Also, be a little more predictable and safer by always failing
72320         when the full copyright format is not perfectly recognized as an
72321         unbroken whole.  Discussed at
72322         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
72323         Rewrite documentation.
72325 2009-08-03  Bruno Haible  <bruno@clisp.org>
72327         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
72329 2009-08-02  Bruno Haible  <bruno@clisp.org>
72331         Tests for module 'uname'.
72332         * modules/uname-tests: New file.
72333         * tests/test-uname.c: New file.
72335         New module 'uname'.
72336         * lib/uname.c: New file.
72337         * m4/uname.m4: New file.
72338         * modules/uname: New file.
72339         * doc/posix-functions/uname.texi: Mention the new module.
72341 2009-08-02  Bruno Haible  <bruno@clisp.org>
72343         Tests for module 'sys_utsname'.
72344         * modules/sys_utsname-tests: New file.
72345         * tests/test-sys_utsname.c: New file.
72347         New module 'sys_utsname'.
72348         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
72349         * m4/sys_utsname_h.m4: New file.
72350         * modules/sys_utsname: New file.
72351         * doc/posix-headers/sys_utsname.texi: Mention the new module.
72353 2009-08-02  Bruno Haible  <bruno@clisp.org>
72355         Implicitly initialize the sockets library.
72356         * lib/gethostname.c: Include sockets.h.
72357         (rpl_gethostname): Invoke gl_sockets_startup.
72358         * lib/socket.c: Include sockets.h.
72359         (rpl_socket): Invoke gl_sockets_startup.
72360         * modules/gethostname (Depends-on): Add sockets.
72361         * modules/socket (Depends-on): Likewise.
72362         * tests/test-poll.c: Don't include sockets.h.
72363         (main): Don't invoke gl_sockets_startup.
72364         * tests/test-select.c: Don't include sockets.h.
72365         (main): Don't invoke gl_sockets_startup.
72367 2009-08-02  Bruno Haible  <bruno@clisp.org>
72369         Allow multiple calls to gl_sockets_startup.
72370         * lib/sockets.c (initialized_sockets_version): New variable.
72371         (gl_sockets_startup): Do nothing if already called for this or a higher
72372         version.
72373         (gl_sockets_cleanup): Reset initialized_sockets_version.
72375 2009-08-03  Simon Josefsson  <simon@josefsson.org>
72377         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
72378         different project/version.
72380 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
72381             Bruno Haible  <bruno@clisp.org>
72383         Tests for module 'pipe-filter-gi'.
72384         * modules/pipe-filter-gi-tests: New file.
72385         * tests/test-pipe-filter-gi1.sh: New file.
72386         * tests/test-pipe-filter-gi1.c: New file.
72387         * tests/test-pipe-filter-gi2.sh: New file.
72388         * tests/test-pipe-filter-gi2-main.c: New file.
72389         * tests/test-pipe-filter-gi2-child.c: New file.
72391         New module 'pipe-filter-gi'.
72392         * lib/pipe-filter-gi.c: New file.
72393         * modules/pipe-filter-gi: New file.
72395 2009-08-02  Bruno Haible  <bruno@clisp.org>
72396             Paolo Bonzini  <bonzini@gnu.org>
72398         Tests for module 'pipe-filter-ii'.
72399         * modules/pipe-filter-ii-tests: New file.
72400         * tests/test-pipe-filter-ii1.sh: New file.
72401         * tests/test-pipe-filter-ii1.c: New file.
72402         * tests/test-pipe-filter-ii2.sh: New file.
72403         * tests/test-pipe-filter-ii2-main.c: New file.
72404         * tests/test-pipe-filter-ii2-child.c: New file.
72406         New module 'pipe-filter-ii'.
72407         * lib/pipe-filter.h: New file.
72408         * lib/pipe-filter-ii.c: New file.
72409         * lib/pipe-filter-aux.h: New file.
72410         * modules/pipe-filter-ii: New file.
72412 2009-08-02  Simon Josefsson  <simon@josefsson.org>
72414         * lib/gc-libgcrypt.c: Change copyright to FSF.
72415         * lib/gc-gnulib.c: Likewise.
72417 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
72419         * lib/gethostname.c: Include limits.h.
72421 2009-08-02  Simon Josefsson  <simon@josefsson.org>
72422             Bruno Haible  <bruno@clisp.org>
72424         Ensure HOST_NAME_MAX as part of the gethostname module.
72425         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
72426         define also HOST_NAME_MAX.
72427         * tests/test-gethostname.c: Include <limits.h>.
72428         (main): Check also HOST_NAME_MAX.
72429         * doc/posix-headers/limits.texi: Document the mingw problem.
72431 2009-08-02  Bruno Haible  <bruno@clisp.org>
72433         * lib/gethostname.c (gethostname): Fix handling of large len argument.
72434         Add comments.
72436 2009-03-31  Simon Josefsson  <simon@josefsson.org>
72438         * lib/gethostname.c: Add Windows wrapper.
72439         * m4/gethostname.m4: Look for gethostname in -lws2_32.
72440         * modules/gethostname: Depend on sys_socket & errno, for also
72441         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
72442         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
72444 2009-07-31  Jim Meyering  <meyering@redhat.com>
72446         getloadavg: fix symbol name in comment
72447         * lib/getloadavg.c: Correct a typo I introduced when adding
72448         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
72449         Matt Kraai spotted the problem.
72451 2009-07-29  Matt Kraai  <mkraai@beckman.com>
72453         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
72454         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
72455         code also if ! defined N_NAME_POINTER.
72456         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
72457         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
72458         but the n_name member is a 12-byte array.
72460 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
72462         update-copyright: generalize comment handling
72463         * build-aux/update-copyright: Handle copyright statements
72464         within more comment styles.
72465         Document usage.
72466         Report any file with an external copyright holder or parse failure.
72468 2009-07-29  Jim Meyering  <meyering@redhat.com>
72470         mktime: correct setting of REPLACE_MKTIME
72471         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
72473         update-copyright: new module
72474         * modules/update-copyright: New file.
72475         * build-aux/update-copyright: New file.
72476         * MODULES.html.sh (maint+release support): Add update-copyright.
72478 2009-07-27  Bruno Haible  <bruno@clisp.org>
72480         Fix compilation error when <ctime> is used and mktime is replaced.
72481         * lib/time.in.h (mktime): New declaration.
72482         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
72483         REPLACE_MKTIME instead of defining mktime in config.h.
72484         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
72485         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
72486         Reported by Ross McFarland <rwmcfa1@neces.com>.
72488 2009-07-27  Bruno Haible  <bruno@clisp.org>
72490         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
72491         Reported by Matt Kraai <mkraai@beckman.com>.
72493 2009-07-25  Jim Meyering  <meyering@redhat.com>
72495         maint.mk: avoid warnings about missing files
72496         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
72497         diagnostic when .prev-version does not exist.
72498         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
72499         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
72500         nonexistent cfg.mk.
72501         Suggestions from Simon Josefsson.
72503 2009-07-25  Bruno Haible  <bruno@clisp.org>
72505         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
72506         defined as macros. Needed on QNX 6.4.1.
72507         Reported by Matt Kraai <mkraai@beckman.com>.
72509 2009-07-23  Jim Meyering  <meyering@redhat.com>
72511         maint.mk: invoke "make dist" with a working value of XZ_OPT
72512         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
72514 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
72516         Make fseeko.c compile on QNX.
72517         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
72519 2009-07-22  Peter Simons  <simons@cryp.to>
72521         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
72522         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
72523         * lib/md4.h: Likewise.
72524         * lib/md5.h: Likewise.
72525         * lib/sha1.h: Likewise.
72526         * lib/sha256.h: Likewise.
72527         * lib/sha512.h: Likewise.
72529         tests-sha1: don't assign literal string to 'char *' variable
72530         * tests/test-sha1.c (main): Declare locals with "const" to match
72531         attributes of the right hand side.
72533 2009-07-21  Eric Blake  <ebb9@byu.net>
72535         dup2: fix more mingw problems
72536         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
72537         fd to itself.
72538         * doc/posix-functions/dup2.texi (dup2): Document the bug.
72539         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
72540         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
72541         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
72542         care of mingw bugs.
72544 2009-07-21  Jim Meyering  <meyering@redhat.com>
72546         vc-list-files: avoid failure when /bin/sh is dash
72547         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
72548         On some Debian based systems, /bin/sh is a symlink to dash, and running
72549         this command would omit the "/" following each 'tests' prefix:
72550           dash -x build-aux/vc-list-files -C . tests
72551         That is because bash and dash work differently:
72552           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
72553           bash ok
72554           dash odd
72556 2009-07-21  Eric Blake  <ebb9@byu.net>
72558         dup2-tests: test previous patch
72559         * modules/dup2-tests: New file.
72560         * tests/test-dup2.c: Likewise.
72561         * tests/test-open.c (main): Avoid unspecified behavior.
72562         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
72563         test.
72565         dup2: work around mingw and cygwin 1.5 bug
72566         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
72567         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
72568         * modules/unistd (Makefile.am): Substitute it.
72569         * lib/unistd.in.h (dup2): Declare the replacement.
72570         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
72571         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
72572         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
72573         * modules/execute (Depends-on): Add dup2.
72574         * modules/fseterr (Depends-on): Likewise.
72575         * modules/pipe (Depends-on): Likewise.
72576         * modules/posix_spawn-internal (Depends-on): Likewise.
72578 2009-07-21  Bruno Haible  <bruno@clisp.org>
72580         * modules/.gitattributes: New file.
72582 2009-07-20  Bruno Haible  <bruno@clisp.org>
72584         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
72585         (main): Use it.
72587 2009-07-20  Eric Blake  <ebb9@byu.net>
72589         test-pipe: make a bit more robust.
72590         * tests/test-pipe.c (myerr): Allow error messages regardless of
72591         what we do to stderr.
72592         (test_pipe): Rearrange to avoid deadlock.
72593         (child_main): Try a larger read, to ensure we avoided deadlock.
72594         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
72595         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
72596         if misused.
72598 2009-07-19  Jim Meyering  <meyering@redhat.com>
72600         fts: avoid false-positive cycle-detection
72601         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
72602         for each new command line argument.
72604 2009-07-19  Bruno Haible  <bruno@clisp.org>
72606         Fix build error on mingw with the modules sys_select and unistd.
72607         * modules/acl-tests (Depends-on): Add close.
72608         * modules/binary-io-tests (Depends-on): Likewise.
72609         * modules/closein-tests (Depends-on): Likewise.
72610         * modules/flock-tests (Depends-on): Likewise.
72611         * modules/fsync-tests (Depends-on): Likewise.
72612         * modules/lseek-tests (Depends-on): Likewise.
72613         * modules/pipe-tests (Depends-on): Likewise.
72614         * modules/posix_spawn-tests (Depends-on): Likewise.
72615         * modules/posix_spawnp-tests (Depends-on): Likewise.
72616         * modules/stat-time-tests (Depends-on): Likewise.
72617         * modules/yesno-tests (Depends-on): Likewise.
72619 2009-07-19  Bruno Haible  <bruno@clisp.org>
72621         Unify conditionals.
72622         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
72623         macros, not at the compiler macros.
72624         * lib/pipe.c: Likewise.
72625         * lib/execute.c: Likewise.
72626         * lib/spawni.c: Likewise.
72628 2009-07-19  Bruno Haible  <bruno@clisp.org>
72630         Fix handling of closed stdin/stdout/stderr on mingw.
72631         * lib/w32spawn.h: Include unistd.h.
72632         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
72633         file descriptor with O_NOINHERIT flag.
72634         (fd_safer_noinherit): New function, based on fd-safer.c.
72635         (dup_safer_noinherit): New function, based on dup-safer.c.
72636         (undup_safer_noinherit): New function.
72637         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
72638         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
72639         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
72640         instead of fd_safer.
72641         * tests/test-pipe.c: Include <windows.h>.
72642         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
72643         result.
72645         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
72646         from main.
72647         (test_pipe): Pass an extra argument for disambiguation.
72648         (main): Invoke parent_main or child_main.
72650         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
72651         consistently.
72653 2009-07-18  Eric Blake  <ebb9@byu.net>
72655         test-pipe: fix mingw build
72656         * tests/test-pipe.c (main): Avoid fcntl on mingw.
72658 2009-07-18  Bruno Haible  <bruno@clisp.org>
72660         * modules/pipe-tests (Makefile.am): Fix typo.
72662 2009-07-18  Eric Blake  <ebb9@byu.net>
72664         error: fix mingw build
72665         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
72666         Reported by Bruno Haible.
72668         error: avoid undefined use of stdout
72669         * lib/error.c (error, error_at_line): Check that fd 1 is open
72670         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
72671         is handling faults and the close_stdout module wants to report the
72672         detection of closed stdout as an error.
72674 2009-07-17  Eric Blake  <ebb9@byu.net>
72676         pipe: be robust in face of closed fds
72677         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
72678         should cause child to misbehave.
72679         * modules/pipe-tests: New module.
72680         * tests/test-pipe.c: New file.
72681         * tests/test-pipe.sh: New file.
72682         Reported by Akim Demaille.
72684 2009-07-14  Bruno Haible  <bruno@clisp.org>
72686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
72687         Reported by anonymous kc.
72689 2009-07-07  Jim Meyering  <meyering@redhat.com>
72691         maint.mk: don't look for translatable strings in *.m4 or *.mk
72692         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
72693         when searching for translatable strings.
72695 2009-07-05  Jim Meyering  <meyering@redhat.com>
72697         remove superfluous parentheses in STREQ definition
72698         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
72699         * lib/getugroups.c (STREQ): Likewise.
72700         * lib/fnmatch.c (STREQ): Likewise.
72701         Spotted by Bruno Haible.
72703 2009-07-04  Jim Meyering  <meyering@redhat.com>
72705         argv-iter: new module
72706         * MODULES.html.sh: Add argv-iter.
72707         * lib/argv-iter.c, lib/argv-iter.h: New files.
72708         * modules/argv-iter: New file.
72709         * modules/argv-iter-tests: New file.
72710         * tests/test-argv-iter.c: Test it.
72712 2009-07-04  Bruno Haible  <bruno@clisp.org>
72714         Fix assertion.
72715         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
72716         contains more exact copies of a given entry than file2, leave the extra
72717         copies unpaired rather than aborting.
72718         Reported by Eric Blake.
72720 2009-07-02  Bruno Haible  <bruno@clisp.org>
72722         Speedup git-merge-changelog for git cherry-pick.
72723         * lib/git-merge-changelog.c (struct entries_mapping): New type.
72724         (entries_mapping_get): New function, extracted from compute_mapping.
72725         (entries_mapping_reverse_get): New function.
72726         (compute_mapping): Add a 'full' argument. Return the result in a
72727         'struct entries_mapping'.
72728         (main): Update. Access the mappings through entries_mapping_get.
72729         Reported by Eric Blake.
72731 2009-07-02  Bruno Haible  <bruno@clisp.org>
72733         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
72734         best_i.
72736 2009-07-02  Bruno Haible  <bruno@clisp.org>
72738         Speed up approximate search for matching ChangeLog entries.
72739         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
72740         argument. Call fstrcmp_bounded instead of fstrcmp.
72741         (compute_mapping, try_split_merged_entry, main): Update callers.
72743 2009-07-02  Bruno Haible  <bruno@clisp.org>
72745         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
72747 2009-06-30  Bruno Haible  <bruno@clisp.org>
72749         Reduce the number of uc_is_cased calls.
72750         * lib/unicase.h (casing_suffix_context_t): Add
72751         'first_char_except_ignorable' field.
72752         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
72753         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
72754         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
72755         Update initializer.
72756         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
72757         case-ignorable characters.
72758         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
72759         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
72760         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
72761         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
72762         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
72764 2009-06-30  Bruno Haible  <bruno@clisp.org>
72766         Tests for module 'unicase/ignorable'.
72767         * modules/unicase/ignorable-tests: New file.
72768         * tests/unicase/test-ignorable.c: New file, generated by
72769         gen-uni-tables.
72771         Tests for module 'unicase/cased'.
72772         * modules/unicase/cased-tests: New file.
72773         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
72774         * tests/unicase/test-predicate-part1.h: New file, derived from
72775         tests/unictype/test-predicate-part1.h.
72776         * tests/unicase/test-predicate-part2.h: New file, same as
72777         tests/unictype/test-predicate-part2.h.
72779         Fix evaluation of "Before C" condition of FINAL_SIGMA.
72780         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
72781         (output_casing_properties): New function.
72782         (main): Call it.
72783         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
72784         * lib/unicase/cased.c: Include unictype/bitmap.h.
72785         (uc_is_cased): Define through a bitmap lookup.
72786         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
72787         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
72788         (uc_is_case_ignorable): Define through a bitmap lookup.
72789         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
72790         lib/unictype/bitmap.h.
72791         (Depends-on): Add inline. Clean up.
72792         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
72793         lib/unictype/bitmap.h.
72794         (Depends-on): Add inline. Clean up.
72795         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
72796         recognition.
72797         * tests/unicase/test-u16-tolower.c (main): Likewise.
72798         * tests/unicase/test-u32-tolower.c (main): Likewise.
72800 2009-06-30  Bruno Haible  <bruno@clisp.org>
72802         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
72803         * lib/unicase/u16-casemap.c: Likewise.
72804         * lib/unicase/u32-casemap.c: Likewise.
72806 2009-06-29  Bruno Haible  <bruno@clisp.org>
72808         Define u32_casefold as a wrapper around u32_ct_casefold.
72809         * lib/unicase/u32-casefold.c: Update.
72810         * modules/unicase/u32-casefold (Depends-on): Add
72811         unicase/u32-ct-casefold, unicase/empty-prefix-context,
72812         unicase/empty-suffix-context. Clean up.
72814         Define u16_casefold as a wrapper around u16_ct_casefold.
72815         * lib/unicase/u16-casefold.c: Update.
72816         * modules/unicase/u16-casefold (Depends-on): Add
72817         unicase/u16-ct-casefold, unicase/empty-prefix-context,
72818         unicase/empty-suffix-context. Clean up.
72820         Define u8_casefold as a wrapper around u8_ct_casefold.
72821         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
72822         * lib/unicase/u8-casefold.c: Update.
72823         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
72824         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72826         Define u32_totitle as a wrapper around u32_ct_totitle.
72827         * lib/unicase/u32-totitle.c: Update.
72828         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
72829         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72831         Define u16_totitle as a wrapper around u16_ct_totitle.
72832         * lib/unicase/u16-totitle.c: Update.
72833         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
72834         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72836         Define u8_totitle as a wrapper around u8_ct_totitle.
72837         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
72838         functions.
72839         (FUNC): Delegate to U_CT_TOTITLE.
72840         * lib/unicase/u8-totitle.c: Update.
72841         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
72842         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
72844         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
72845         invocation.
72846         * modules/unicase/u32-tolower (Depends-on): Add
72847         unicase/empty-prefix-context, unicase/empty-suffix-context.
72849         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
72850         invocation.
72851         * modules/unicase/u16-tolower (Depends-on): Add
72852         unicase/empty-prefix-context, unicase/empty-suffix-context.
72854         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
72855         * modules/unicase/u8-tolower (Depends-on): Add
72856         unicase/empty-prefix-context, unicase/empty-suffix-context.
72858         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
72859         invocation.
72860         * modules/unicase/u32-toupper (Depends-on): Add
72861         unicase/empty-prefix-context, unicase/empty-suffix-context.
72863         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
72864         invocation.
72865         * modules/unicase/u16-toupper (Depends-on): Add
72866         unicase/empty-prefix-context, unicase/empty-suffix-context.
72868         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
72869         * modules/unicase/u8-toupper (Depends-on): Add
72870         unicase/empty-prefix-context, unicase/empty-suffix-context.
72872         New module 'unicase/u32-ct-casefold'.
72873         * lib/unicase/u32-ct-casefold.c: New file.
72874         * modules/unicase/u32-ct-casefold: New file.
72876         New module 'unicase/u16-ct-casefold'.
72877         * lib/unicase/u16-ct-casefold.c: New file.
72878         * modules/unicase/u16-ct-casefold: New file.
72880         New module 'unicase/u8-ct-casefold'.
72881         * lib/unicase/u8-ct-casefold.c: New file.
72882         * lib/unicase/u-ct-casefold.h: New file, derived from
72883         lib/unicase/u-casefold.h.
72884         * modules/unicase/u8-ct-casefold: New file.
72886         New module 'unicase/u32-ct-totitle'.
72887         * lib/unicase/u32-ct-totitle.c: New file.
72888         * modules/unicase/u32-ct-totitle: New file.
72890         New module 'unicase/u16-ct-totitle'.
72891         * lib/unicase/u16-ct-totitle.c: New file.
72892         * modules/unicase/u16-ct-totitle: New file.
72894         New module 'unicase/u8-ct-totitle'.
72895         * lib/unicase/u8-ct-totitle.c: New file.
72896         * lib/unicase/u-ct-totitle.h: New file, derived from
72897         lib/unicase/u-totitle.h.
72898         * modules/unicase/u8-ct-totitle: New file.
72900         New module 'unicase/u32-ct-tolower'.
72901         * lib/unicase/u32-ct-tolower.c: New file.
72902         * modules/unicase/u32-ct-tolower: New file.
72904         New module 'unicase/u16-ct-tolower'.
72905         * lib/unicase/u16-ct-tolower.c: New file.
72906         * modules/unicase/u16-ct-tolower: New file.
72908         New module 'unicase/u8-ct-tolower'.
72909         * lib/unicase/u8-ct-tolower.c: New file.
72910         * modules/unicase/u8-ct-tolower: New file.
72912         New module 'unicase/u32-ct-toupper'.
72913         * lib/unicase/u32-ct-toupper.c: New file.
72914         * modules/unicase/u32-ct-toupper: New file.
72916         New module 'unicase/u16-ct-toupper'.
72917         * lib/unicase/u16-ct-toupper.c: New file.
72918         * modules/unicase/u16-ct-toupper: New file.
72920         New module 'unicase/u8-ct-toupper'.
72921         * lib/unicase/u8-ct-toupper.c: New file.
72922         * modules/unicase/u8-ct-toupper: New file.
72924         Add context arguments to u*_casemap functions.
72925         * lib/unicase/unicasemap.h: Include unicase.h.
72926         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
72927         suffix_context arguments.
72928         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
72929         functions.
72930         (FUNC): Add prefix_context and suffix_context arguments. Use
72931         uc_is_cased and uc_is_case_ignorable.
72932         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
72933         * lib/unicase/u16-casemap.c: Likewise.
72934         * lib/unicase/u32-casemap.c: Likewise.
72935         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
72936         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72937         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
72938         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72939         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
72940         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
72942         New module 'unicase/u32-suffix-context'.
72943         * lib/unicase/u32-suffix-context.c: New file.
72944         * modules/unicase/u32-suffix-context: New file.
72946         New module 'unicase/u16-suffix-context'.
72947         * lib/unicase/u16-suffix-context.c: New file.
72948         * modules/unicase/u16-suffix-context: New file.
72950         New module 'unicase/u8-suffix-context'.
72951         * lib/unicase/u8-suffix-context.c: New file.
72952         * lib/unicase/u-suffix-context.h: New file.
72953         * modules/unicase/u8-suffix-context: New file.
72955         New module 'unicase/empty-suffix-context'.
72956         * lib/unicase/empty-suffix-context.c: New file.
72957         * modules/unicase/empty-suffix-context: New file.
72959         New module 'unicase/u32-prefix-context'.
72960         * lib/unicase/u32-prefix-context.c: New file.
72961         * modules/unicase/u32-prefix-context: New file.
72963         New module 'unicase/u16-prefix-context'.
72964         * lib/unicase/u16-prefix-context.c: New file.
72965         * modules/unicase/u16-prefix-context: New file.
72967         New module 'unicase/u8-prefix-context'.
72968         * lib/unicase/u8-prefix-context.c: New file.
72969         * lib/unicase/u-prefix-context.h: New file.
72970         * lib/unicase/context.h: New file.
72971         * modules/unicase/u8-prefix-context: New file.
72973         New module 'unicase/empty-prefix-context'.
72974         * lib/unicase/empty-prefix-context.c: New file.
72975         * modules/unicase/empty-prefix-context: New file.
72977         New module 'unicase/ignorable'.
72978         * lib/unicase/ignorable.c: New file.
72979         * modules/unicase/ignorable: New file.
72981         New module 'unicase/cased'.
72982         * lib/unicase/caseprop.h: New file.
72983         * lib/unicase/cased.c: New file.
72984         * modules/unicase/cased: New file.
72986         New functions for case mapping of substrings.
72987         * lib/unicase.h (casing_prefix_context_t): New type.
72988         (unicase_empty_prefix_context): New variable.
72989         (u8_casing_prefix_context, u16_casing_prefix_context,
72990         u32_casing_prefix_context, u8_casing_prefixes_context,
72991         u16_casing_prefixes_context, u32_casing_prefixes_context): New
72992         declarations.
72993         (casing_suffix_context_t): New type.
72994         (unicase_empty_suffix_context): New variable.
72995         (u8_casing_suffix_context, u16_casing_suffix_context,
72996         u32_casing_suffix_context, u8_casing_suffixes_context,
72997         u16_casing_suffixes_context, u32_casing_suffixes_context,
72998         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
72999         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
73000         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
73001         declarations.
73003 2009-06-28  Jim Meyering  <meyering@redhat.com>
73005         boostrap: indent only with spaces
73006         * build-aux/bootstrap: Indent only with spaces, never TABs.
73008         bootstrap: split long lines
73009         * build-aux/bootstrap: Keep line length < 80.
73011         bootstrap: sync from coreutils
73012         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
73013         just as autoreconf does.  Verify a list of prerequisite
73014         package-name,version-number pairs if defined in bootstrap.conf.
73015         Refer to README-prereq, if prerequisites are not satisfied.
73017 2009-06-27  Eric Blake  <ebb9@byu.net>
73019         tests: add test for bogus NULL definition
73020         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
73021         * tests/test-stdlib.c: Likewise.
73022         * tests/test-string.c: Likewise.
73023         * tests/test-locale.c: Likewise.
73024         * tests/test-unistd.c: Likewise.
73025         * modules/stdio-tests (Depends-on): Add verify.
73026         * modules/stdlib-tests (Depends-on): Likewise.
73027         * modules/string-tests (Depends-on): Likewise.
73028         * modules/locale-tests (Depends-on): Likewise.
73029         * modules/unistd-tests (Depends-on): Likewise.
73031 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
73033         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
73034         self-explaining comment.
73035         * m4/selinux-selinux-h: Update serial.
73036         (gl_LIBSELINUX): New macro, adding a warning for missing development
73037         packages to code extracted from...
73038         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
73039         Add warning for missing development packages here, too.
73041 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
73043         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
73045 2009-06-25  Eric Blake  <ebb9@byu.net>
73047         version-etc: fix regression
73048         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
73049         gcc.
73050         (version_etc): Use it, to catch bugs with trailing NULL.
73051         * lib/version-etc.c (version_etc_arn): Delete unused argument.
73052         (version_etc_va): Fix logic bug.
73053         * modules/version-etc-tests: Add test.
73054         * tests/test-version-etc.c: New file.
73055         * tests/test-version-etc.sh: Likewise.
73057 2009-06-25  Sam Steingold  <sds@gnu.org>
73059         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
73060         mbtowc declaration.
73062 2009-06-25  Eric Blake  <ebb9@byu.net>
73064         fpurge: migrate into <stdio.h>
73065         * lib/fpurge.h: Delete...
73066         * lib/stdio.in.h (fpurge): ...and declare here, instead.
73067         * lib/fpurge.c (fpurge): Change declaring header.
73068         * modules/fpurge (Files): Drop deleted file.
73069         (Depends-on): Add stdio.
73070         (configure.ac): Set witness.
73071         * modules/stdio (Makefile.am): Support fpurge macros.
73072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
73073         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
73074         * lib/fflush.c: Update client.
73075         * tests/test-fpurge.c: Likewise.
73076         * NEWS: Mention the change.
73078 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73080         * lib/argp-version-etc.c (program_authors): Add const
73081         qualifier.
73082         * lib/version-etc.c: Fix typos in the comments.
73083         * modules/argp-version-etc: Depends on version-etc.
73085 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73087         argp-version-etc: new module.
73089         * lib/argp-version-etc.c: New file.
73090         * lib/argp-version-etc.h: New file.
73091         * modules/argp-version-etc: New file.
73092         * modules/argp-version-etc-tests: New file.
73093         * tests/test-argp-version-etc.c: New test.
73094         * tests/test-argp-version-etc-1.sh: New test.
73096 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73098         Provide additional interfaces and documentation for version-etc
73099         module.
73101         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
73102         interfaces.
73103         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
73104         prototypes.
73106 2009-06-24  Bruno Haible  <bruno@clisp.org>
73108         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
73109         HAVE_LIB${NAME} macro.
73110         Reported by Sam Steingold <sds@gnu.org>.
73112 2009-06-23  Simon Josefsson  <simon@josefsson.org>
73114         * modules/hash-tests (test_hash_LDADD): Link to libintl when
73115         needed.
73117 2009-06-21  Bruno Haible  <bruno@clisp.org>
73119         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
73120         work.
73121         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
73122         together with LIB${NAME}, LTLIB${NAME}.
73123         Reported by Sam Steingold <sds@gnu.org>.
73125 2009-06-20  Jim Meyering  <meyering@redhat.com>
73127         tests: make sc_require_test_exit_idiom more generic
73128         * top/maint.mk (Exit_witness_file): New overridable variable.
73129         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
73130         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
73132 2009-06-19  Jim Meyering  <meyering@redhat.com>
73134         hash: reverse order of src/dst parameters in an internal interface
73135         * lib/hash.c (transfer_entries): Reverse order of parameters to
73136         put DST before SRC.  Adjust callers.
73138         tests: test-hash: avoid wholesale duplication
73139         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
73140         Instead, use a loop and add a single conditional.
73142         tests: test-hash: allow seed selection via a command line argument
73143         * tests/test-hash.c (get_seed): New function.
73144         (main): Use it.
73146 2009-06-19  Eric Blake  <ebb9@byu.net>
73148         hash: avoid memory leak on allocation failure
73149         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
73150         failure.  Factor repeated algorithm...
73151         (transfer_entries): ...into new helper routine.
73152         (hash_delete): React to hash_rehash return value.
73154         hash: reduce memory pressure in hash_rehash no-op case
73155         * lib/hash.c (next_prime): Avoid overflow.
73156         (hash_initialize): Factor bucket size computation...
73157         (compute_bucket_size): ...into new helper function.
73158         (hash_rehash): Use new function and open coding to reduce memory
73159         pressure, and avoid a memory leak in USE_OBSTACK code.
73160         Reported by Jim Meyering.
73162 2009-06-18  Eric Blake  <ebb9@byu.net>
73164         hash: make rotation more obvious
73165         * modules/hash (Depends-on): Add bitrotate and stdint.
73166         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
73167         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
73168         (SIZE_MAX): Rely on headers for definition.
73169         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
73170         (raw_hasher): Use rotr_sz.
73171         Suggested by Jim Meyering.
73173         hash: fix memory leak in last patch
73174         * lib/hash.c (hash_rehash): Avoid memory leak.
73176         hash: avoid no-op rehashing
73177         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
73179         hash: provide default callback functions
73180         * lib/hash.c (raw_hasher, raw_comparator): New functions.
73181         (hash_initialize): Use them as defaults.
73182         * tests/test-hash.c (main): Test this.
73184         hash: minor optimization
73185         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
73186         when possible.
73187         (hash_initialize): Document this promise.
73188         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
73189         * tests/test-hash.c (hash_compare_strings): Test this.
73191 2009-06-18  Bruno Haible  <bruno@clisp.org>
73193         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
73194         going to be replaced anyway.
73196 2009-06-18  Bruno Haible  <bruno@clisp.org>
73198         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
73199         in one place.
73200         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
73201         be replaced anyway.
73203 2009-06-18  Eric Blake  <ebb9@byu.net>
73205         hash: check for resize before insertion
73206         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
73207         threshold before insertion, so that a pathological hash_rehash
73208         that fills every bucket can still trigger another rehash.
73210 2009-06-18  Jim Meyering  <meyering@redhat.com>
73212         hash-tests: add a loop around the small tests
73213         * tests/test-hash.c (main): Repeat small tests with selected
73214         small initial table sizes.
73216 2009-06-17  Eric Blake  <ebb9@byu.net>
73218         hash: minor cleanups
73219         * lib/hash.h (hash_entry): Make opaque, by moving...
73220         * lib/hash.c (hash_entry): ...here.
73221         (hash_insert): Clarify restrictions on what can be inserted.
73222         (hash_get_next): Clarify when it is safe to remove an element
73223         during traversal.
73224         (check_tuning): Skip verification when tuning is known safe.
73225         (hash_initialize): Clarify restrictions on tuning.
73227 2009-06-17  Jim Meyering  <jim@meyering.net>
73228         and Eric Blake  <ebb9@byu.net>
73230         hash-tests: new module
73231         * modules/hash-tests: New file.
73232         * tests/test-hash.c: New file.
73234 2009-06-17  Eric Blake  <ebb9@byu.net>
73236         strstr-simple: document new module
73237         * MODULES.html.sh: Document new module.
73239         strstr, strcasestr: replace on platforms with broken memchr
73240         * modules/strstr: Split into...
73241         * modules/strstr-simple: ...new module that does not care about
73242         performance, but does care about glibc bug.
73243         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
73244         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
73245         if platform memchr is broken, per Debian bug 521737.
73246         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
73247         memchr.
73248         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
73249         * doc/posix-functions/strstr.texi (strstr): Document the fix.
73250         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
73251         * modules/mountlist (Depends-on): Add strstr-simple.
73252         * modules/gen-uni-tables (Depends-on): Likewise.
73253         * modules/argz (Depends-on): Add strstr.
73255 2009-06-17  Bruno Haible  <bruno@clisp.org>
73257         * modules/posix_spawn-internal (Depends-on): Add errno.
73259 2009-06-17  Bruno Haible  <bruno@clisp.org>
73261         Define missing ESTALE on Interix 3.5.
73262         * lib/errno.in.h (ESTALE): Assign a value if missing.
73263         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
73264         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
73265         missing.
73266         * doc/posix-headers/errno.texi: Mention the Interix bug.
73267         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
73269 2009-06-15  Eric Blake  <ebb9@byu.net>
73271         memchr, memchr2: add valgrind exception
73272         * lib/memchr.valgrind: New file.
73273         * lib/memchr2.valgrind: New file.
73274         * modules/memchr (Files): Distribute valgrind file.
73275         * modules/memchr2 (Files): Likewise.
73277         docs: memchr is no longer obsolete
73278         * MODULES.html.sh: Move memchr from obsolete to string.h section.
73279         * lib/string.in.h (memchr): Simplify logic.
73281 2009-06-14  Jim Meyering  <meyering@redhat.com>
73283         link-follow: fix the "checking..." message to not mention trailing slash
73284         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
73285         never considered trailing slashes.
73287 2009-06-14  Bruno Haible  <bruno@clisp.org>
73289         * m4/memchr.m4: Mention also the bug on IA-64.
73290         * doc/posix-functions/memchr.texi: Likewise.
73292 2009-06-12  Eric Blake  <ebb9@byu.net>
73294         memchr: detect broken x86_64 and alpha implementations
73295         * modules/memchr-tests (Depends-on): Move mmap detection...
73296         * modules/memchr (Depends-on): ...here.
73297         (configure.ac): Set indicator.
73298         * lib/string.in.h (memchr): Declare replacement.
73299         * modules/string (Makefile.am): Trigger replacement.
73300         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
73301         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
73302         bugs.
73303         * doc/posix-functions/memchr.texi (memchr): Document the bug.
73304         * modules/getpagesize (License): Relax license.
73306 2009-06-11  Bruno Haible  <bruno@clisp.org>
73308         * lib/idpriv.h: Add more references.
73310 2009-06-08  Bruno Haible  <bruno@clisp.org>
73312         Tests for module 'idpriv-droptemp'.
73313         * modules/idpriv-droptemp-tests: New file.
73314         * tests/test-idpriv-droptemp.sh: New file.
73315         * tests/test-idpriv-droptemp.su.sh: New file.
73316         * tests/test-idpriv-droptemp.c: New file.
73318         New module 'idpriv-droptemp'.
73319         * lib/idpriv-droptemp.c: New file.
73320         * modules/idpriv-droptemp: New file.
73322 2009-06-08  Bruno Haible  <bruno@clisp.org>
73324         Tests for module 'idpriv-drop'.
73325         * modules/idpriv-drop-tests: New file.
73326         * tests/test-idpriv-drop.sh: New file.
73327         * tests/test-idpriv-drop.su.sh: New file.
73328         * tests/test-idpriv-drop.c: New file.
73330         New module 'idpriv-drop'.
73331         * lib/idpriv.h: New file.
73332         * lib-idpriv-drop.c: New file.
73333         * m4/idpriv.m4: New file.
73334         * modules/idpriv-drop: New file.
73336 2009-06-08  Bruno Haible  <bruno@clisp.org>
73338         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
73339         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
73340         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
73341         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
73342         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
73343         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
73344         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
73346 2009-06-08  Eric Blake  <ebb9@byu.net>
73348         test-strstr: use memory fence, when possible
73349         * tests/test-strstr.c (main): Use memory fence, in order to be
73350         more likely to trigger Debian bug 521737.
73351         * modules/strstr-tests (Files): Pull in additional files.
73353         memchr: no longer obsolete, for wider field testing
73354         * modules/memchr (Status, Notice): Delete, this module is no
73355         longer obsolete.
73356         * modules/vasnprintf (Depends-on): Add memchr.
73358 2009-06-07  Jim Meyering  <meyering@redhat.com>
73360         hash: declare some functions with the warn_unused_result attribute
73361         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
73363 2009-06-07  Bruno Haible  <bruno@clisp.org>
73365         * tests/test-alignof.c: Don't test int64_t if it does not exist.
73366         Reported by Eric Blake.
73368 2009-06-06  Eric Blake  <ebb9@byu.net>
73370         test-alignof: fix typo with long double
73371         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
73372         compiler error.
73374 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
73376         Escape non-texinfo { and }s.
73377         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
73378         markup error.
73380 2009-06-04  Jim Meyering  <meyering@redhat.com>
73382         gitlog-to-changelog: don't infloop on an empty commit log
73383         * build-aux/gitlog-to-changelog: Warn about an empty log message.
73384         Reported by Boris Petersen <transacid@centerim.org>.
73386 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
73388         version-etc: extend for packagers
73389         Add three new configure options, intended for packagers:
73390           --with-packager="packager name"
73391           --with-packager-version="packager-specific version"
73392           --with-packager-bug-reports="packager bug reporting"
73393         An example with coreutils:
73394           $ ./configure \
73395             --with-packager=Gentoo \
73396             --with-packager-bug-report=http://bugs.gentoo.org/ \
73397             --with-packager-version="patchset 1.6"
73398           $ ./src/ls --version | head -n2
73399           ls (GNU coreutils) 7.1-dirty
73400           Packaged by Gentoo (patchset 1.6)
73401         Note that the bug reporting info via --help doesn't show up because
73402         coreutils uses its own custom emit_bug_reporting_address() implementation
73403         in src/system.h.  If it didn't, it'd look like:
73404           $ ./src/ls --help | tail -n4
73405           Report bugs to <bug-coreutils@gnu.org>.
73406           Report Gentoo bugs to <http://bugs.gentoo.org/>.
73407           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
73408           General help using GNU software: <http://www.gnu.org/gethelp/>.
73409         * lib/version-etc.c: Print new information, if provided.
73410         * m4/version-etc.m4: New file.
73411         * modules/version-etc (Files): Add m4/version-etc.m4.
73412         (configure.ac): Add gl_VERSION_ETC.
73414 2009-05-31  Bruno Haible  <bruno@clisp.org>
73416         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
73417         and 'int64_t'.
73418         * modules/alignof-tests (Dependencies): Add stdint.
73419         Reported by Eric Blake.
73421 2009-05-31  Bruno Haible  <bruno@clisp.org>
73423         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
73424         restriction due to compiler bugs.
73425         Reported by Eric Blake.
73427 2009-05-31  Simon Josefsson  <simon@josefsson.org>
73428             Bruno Haible  <bruno@clisp.org>
73430         Fix test-alignof failure.
73431         * lib/alignof.h (alignof_slot): New macro.
73432         (alignof_type): New macro, with the same semantics as the previous
73433         'alignof'.
73434         (alignof): Alias to alignof_slot.
73435         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
73436         check that the results are usable as constant expressions.
73438 2009-05-31  Bruno Haible  <bruno@clisp.org>
73440         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
73441         * tests/test-memchr.c (main): Check that memchr does not read past the
73442         first occurrence of the byte.
73443         * tests/test-strstr.c (main): Update comment.
73444         Suggested by Eric Blake.
73446 2009-05-30  Bruno Haible  <bruno@clisp.org>
73448         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
73449         detail how to use dumpbin.
73450         Reported by David Byron <dbyron@dbyron.com>.
73452 2009-06-02  Simon Josefsson  <simon@josefsson.org>
73454         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
73456 2009-06-02  Simon Josefsson  <simon@josefsson.org>
73458         * m4/manywarnings.m4: Add GCC 4.4 warnings.
73460 2009-05-28  Bruno Haible  <bruno@clisp.org>
73462         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
73463         build-aux/ files.
73465 2009-05-28  Simon Josefsson  <simon@josefsson.org>
73467         * gnulib-tool (func_import): Transform license on build-aux/ files too.
73469 2009-05-27  Simon Josefsson  <simon@josefsson.org>
73471         * gnulib-tool (sed_transform_main_lib_file)
73472         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
73473         regexps.
73475 2009-05-26  Simon Josefsson  <simon@josefsson.org>
73477         * tests/test-strstr.c: Add another self-test.
73478         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
73479         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
73481 2009-05-23  Bruno Haible  <bruno@clisp.org>
73483         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
73484         change.
73486 2009-05-21  Bruno Haible  <bruno@clisp.org>
73488         Simplify use of mode_t varargs.
73489         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
73490         uses 'mode_t' or 'int'.
73491         * lib/openat.c (openat): Likewise.
73492         * lib/open-safer.c (open_safer): Likewise.
73493         * m4/mode_t.m4: New file.
73494         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
73495         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
73496         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
73497         * modules/open (Files): Add m4/mode_t.m4.
73498         * modules/openat (Files): Likewise.
73499         * modules/fcntl-safer (Files): Likewise.
73500         Suggested by Eric Blake.
73502 2009-05-21  Pádraig Brady  <P@draigbrady.com>
73504         * doc/glibc-functions/fallocate.texi: New file.
73505         * doc/gnulib.texi: Include it.
73507 2009-05-21  Eric Blake  <ebb9@byu.net>
73508             Bruno Haible  <bruno@clisp.org>
73510         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
73511         invocations.
73512         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73514 2009-05-21  Eric Blake  <ebb9@byu.net>
73515             Bruno Haible  <bruno@clisp.org>
73517         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
73518         include_next. Fix of 2008-11-20 commit.
73519         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
73520         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
73521         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
73522         NEXT_MATH_H.
73523         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
73524         instead of NEXT_MATH_H.
73526 2009-05-21  Bruno Haible  <bruno@clisp.org>
73528         Avoid redefinition warnings for SIZE_MAX.
73529         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
73530         Reported by Simon Josefsson.
73532 2009-05-21  Bruno Haible  <bruno@clisp.org>
73534         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
73535         AC_CACHE_VAL.
73537 2009-05-20  Bruno Haible  <bruno@clisp.org>
73539         Make zeroptr.h work on mingw.
73540         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
73541         mprotect.
73542         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
73543         * modules/memchr2-tests (configure.ac): Likewise.
73544         * modules/memcmp-tests (configure.ac): Likewise.
73545         * modules/memmem-tests (configure.ac): Likewise.
73546         * modules/memrchr-tests (configure.ac): Likewise.
73547         Reported by Simon Josefsson.
73549 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73551         * tests/test-glob.c: Include string.h for strcmp prototype.
73553 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73555         * modules/getdelim (Depends-on): Add explicit stdint, although it
73556         was implicitly already pulled in via realloc-posix.
73557         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
73559 2009-05-20  Simon Josefsson  <simon@josefsson.org>
73561         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
73562         G. Christensen" <tgc@jupiterrise.com>.
73563         * m4/sys_socket_h.m4: Check for sa_family_t.
73564         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
73565         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
73566         * tests/test-sys_socket.c: Check that sa_family_t works.
73568 2009-05-18  Eric Blake  <ebb9@byu.net>
73570         maint.mk: allow gnulib_dir in VPATH build
73571         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
73573 2009-05-15  Jim Meyering  <meyering@redhat.com>
73575         maint.mk: Give gnulib_dir a default definition.
73576         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
73577         Thus, most packages no longer need to specify this variable in cfg.mk
73579 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
73581         rename.m4: fix typos that would make non-mingw cross-configure fail
73582         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
73584 2009-05-13  Eric Blake  <ebb9@byu.net>
73586         mmap-anon: avoid out-of-order autoconf expansion
73587         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
73588         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
73589         * modules/memchr-tests (Depends-on): Add extensions.
73590         * modules/memchr2-tests (Depends-on): Add extensions.
73591         * modules/memcmp-tests (Depends-on): Add extensions.
73592         * modules/memmem-tests (Depends-on): Add extensions.
73593         * modules/memrchr-tests (Depends-on): Add extensions.
73595 2009-05-13  Bruno Haible  <bruno@clisp.org>
73597         Make some tests ISO C 99 compliant.
73598         * tests/zerosize-ptr.h: New file.
73599         * tests/test-memchr.c: Include zerosize-ptr.h.
73600         (main): Use a zero-size object pointer instead of NULL.
73601         * tests/test-memchr2.c: Include zerosize-ptr.h.
73602         (main): Use a zero-size object pointer instead of NULL.
73603         * tests/test-memcmp.c: Include zerosize-ptr.h.
73604         (main): Use a zero-size object pointer instead of NULL.
73605         * tests/test-memmem.c: Include zerosize-ptr.h.
73606         (main): Use a zero-size object pointer instead of NULL.
73607         * tests/test-memrchr.c: Include zerosize-ptr.h.
73608         (main): Use a zero-size object pointer instead of NULL.
73609         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
73610         m4/mmap-anon.m4.
73611         (Depends-on): Add getpagesize.
73612         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73613         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
73614         m4/mmap-anon.m4.
73615         (Depends-on): Add getpagesize.
73616         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73617         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
73618         m4/mmap-anon.m4.
73619         (Depends-on): Add getpagesize.
73620         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73621         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
73622         m4/mmap-anon.m4.
73623         (Depends-on): Add getpagesize.
73624         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73625         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
73626         m4/mmap-anon.m4.
73627         (Depends-on): Add getpagesize.
73628         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
73630 2009-05-12  Bruno Haible  <bruno@clisp.org>
73632         Tests for module 'alignof'.
73633         * modules/alignof-tests: New file.
73634         * tests/test-alignof.c: New file.
73636 2009-05-12  Bruno Haible  <bruno@clisp.org>
73638         Fix alignof macro.
73639         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
73640         vendor compilers that are always correct.
73642 2009-05-12  Bruno Haible  <bruno@clisp.org>
73644         Make the MAP_ANONYMOUS detection work on HP-UX 11.
73645         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
73646         not whether its fully works.
73648 2009-05-12  Bruno Haible  <bruno@clisp.org>
73650         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
73652 2009-05-12  Jim Meyering  <meyering@redhat.com>
73654         * top/maint.mk: Adjust backslash alignment.
73656 2009-05-11  Simon Josefsson  <simon@josefsson.org>
73658         * top/maint.mk: Make $(srcdir)/build-aux configurable.
73660 2009-05-11  Eric Blake  <ebb9@byu.net>
73662         argp: avoid undefined behavior
73663         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
73664         macros.
73666 2009-05-08  Simon Josefsson  <simon@josefsson.org>
73668         * tests/test-vc-list-files-git.sh: Do git config of user.email and
73669         user.name to prevent git commit from complaining.
73671 2009-05-10  Bruno Haible  <bruno@clisp.org>
73673         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
73674         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
73675         it rewrites every file name only once.
73676         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
73678 2009-05-08  Bruno Haible  <bruno@clisp.org>
73680         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
73681         instead of 'max'.
73683 2009-05-08  Simon Josefsson  <simon@josefsson.org>
73685         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
73686         sockaddr_storage test.
73688 2009-05-07  Simon Josefsson  <simon@josefsson.org>
73690         * modules/sys_socket (Makefile.am): Substitute
73691         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
73692         * m4/sys_socket_h.m4: Check for sockaddr_storage.
73693         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
73694         * tests/test-sys_socket.c: Check sockaddr_storage.
73696 2009-05-08  Bruno Haible  <bruno@clisp.org>
73698         New module 'alignof'.
73699         * lib/alignof.h: New file.
73700         * modules/alignof: New file.
73702 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73703             Bruno Haible  <bruno@clisp.org>
73705         Fix test-file-has-acl on FreeBSD.
73706         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
73707         mask is implicitly added.
73708         * tests/test-file-has-acl.c: Include <signal.h>.
73709         (main): Terminate the test after 5 seconds.
73710         * modules/acl-tests (configure.ac): Check for alarm function.
73712 2009-05-04  Bruno Haible  <bruno@clisp.org>
73714         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
73715         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
73716         * modules/errno (configure.ac): Drop AC_REQUIRE.
73717         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
73718         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
73720 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73722         * modules/glob-tests: New module.
73723         * tests/test-glob.c: Add.
73725 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73727         * modules/fnmatch-tests: New module.
73728         * tests/test-fnmatch.c: Add.
73730 2009-05-04  Eric Blake  <ebb9@byu.net>
73732         maint: make the new no-submodule-changes rule VPATH-safe
73733         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
73735 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73736             Bruno Haible  <bruno@clisp.org>
73738         acl: Fix infinite loop on FreeBSD.
73739         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
73740         of return value from acl_get_entry.
73741         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
73742         Likewise.
73744 2009-05-03  Bruno Haible  <bruno@clisp.org>
73746         * lib/acl-internal.h (acl_entries): Clarify return value.
73747         * lib/acl_entries.c (acl_entries): Likewise.
73749 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73751         Bug fix in acl module.
73752         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
73754 2009-05-03  Bruno Haible  <bruno@clisp.org>
73756         Create gperf-generated file in the source dir, not in the build dir.
73757         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
73758         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
73759         * modules/unicase/locale-language (unicase/locale-languages.h):
73760         Likewise.
73761         * modules/unicase/special-casing (unicase/special-casing-table.h):
73762         Likewise.
73763         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
73764         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
73765         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
73766         Reported by Ralf Wildenhues.
73768 2009-05-03  Bruno Haible  <bruno@clisp.org>
73770         * modules/fnmatch (Description, configure.ac): Taken from
73771         fnmatch-posix.
73772         * modules/fnmatch-posix: Turn into a symbolic reference to the
73773         'fnmatch' module, and deprecate.
73774         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
73776 2009-05-03  Bruno Haible  <bruno@clisp.org>
73778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
73779         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
73780         Reported by Ralf Wildenhues.
73782 2009-05-04  Simon Josefsson  <simon@josefsson.org>
73784         * m4/fnmatch.m4: Fix fnmatch re-define.
73786 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
73788         priv-set: new module and tests; adapt write-any-file
73789         * lib/priv-set.c: New file.
73790         * lib/priv-set.h: New file.
73791         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
73792         * lib/write-any-file.c: Simplify by using priv-set module.
73793         * m4/priv-set.m4: New file.
73794         * modules/priv-set: New file.
73795         * modules/unlinkdir: Add dependency on priv-set module.
73796         * modules/write-any-file: Likewise.
73798         Tests for module 'priv-set'.
73799         * modules/priv-set-tests: New file.
73800         * tests/test-priv-set.c: New file.
73802 2009-05-03  Jim Meyering  <meyering@redhat.com>
73803             Bruno Haible  <bruno@clisp.org>
73805         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
73806         use the converted UTF-8 variant of the name instead.
73808 2009-05-03  Jim Meyering  <meyering@redhat.com>
73810         tests: tighten some getdate tests
73811         * tests/test-getdate.c (main): Tighten tests: require equality,
73812         not just greater than.  Set TZ envvar to UTC0.
73814 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
73816         getdate: correctly interpret "next monday" when run on a Monday
73817         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
73818         that e.g., "next tues" (when run on a tuesday) results in a date
73819         that is one week in the future, and not today's date.
73820         I.e., add a week when the wday is the same as the current one.
73821         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
73822         and earlier by Martin Bernreuther and Jan Minář.
73823         * tests/test-getdate.c (main): Check that "next DAY" is always in
73824         the future and that "last DAY" is always in the past.
73826 2009-05-02  Jim Meyering  <meyering@redhat.com>
73828         build: ensure that a release build fails when a submodule is unclean
73829         * top/maint.mk (no-submodule-changes): New rule.
73830         (alpha beta major): Depend on it.
73832 2009-05-02  Bruno Haible  <bruno@clisp.org>
73834         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
73835         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
73836         shell variable gl_fnmatch_required to detect which variant is
73837         requested.
73838         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
73839         gl_FUNC_FNMATCH_POSIX.
73840         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
73841         exclude fnmatch-posix.
73843 2009-05-02  Bruno Haible  <bruno@clisp.org>
73845         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
73846         * modules/mbsrtowcs (License): Change to LGPLv2+.
73847         * modules/strnlen1 (License): Likewise.
73848         Reported by Simon Josefsson.
73850 2009-05-02  Bruno Haible  <bruno@clisp.org>
73852         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
73853         "cross".
73854         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
73855         gnulib-tool was called with option --source-base=lib.
73857 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73859         Use automake *-local hooks without commands, for extensibility.
73860         * modules/localcharset (Makefile.am): Rename install-exec-local
73861         rule to install-exec-localcharset, and make it a prerequisite of
73862         install-exec-local.  Likewise, rename the uninstall-local rule to
73863         uninstall-localcharset, and make it a prerequisite of the former.
73865 2009-05-01  Bruno Haible  <bruno@clisp.org>
73867         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
73868         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
73869         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
73870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
73871         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
73872         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
73873         m4/locale-zh.m4, m4/codeset.m4.
73875         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
73876         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
73877         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
73878         m4/locale-zh.m4.
73880         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
73881         REPLACE_WCRTOMB if mbstate_t must be replaced.
73882         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
73883         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
73885 2009-05-01  Bruno Haible  <bruno@clisp.org>
73887         Avoid compiler warnings when redefining macros defined by <libintl.h>.
73888         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
73889         dngettext, dcngettext, textdomain, bindtextdomain,
73890         bind_textdomain_codeset): Undefine before redefining.
73892 2009-04-30  Bruno Haible  <bruno@clisp.org>
73894         Fix bug introduced on 2009-04-25.
73895         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
73896         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
73897         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
73898         is defined.
73899         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
73900         is defined.
73901         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
73902         is defined.
73903         Reported by Elbert_Pol <elbert.pol@gmail.com>.
73905 2009-04-28  Bruno Haible  <bruno@clisp.org>
73907         Comment tweaks.
73908         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
73909         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
73910         * lib/unicase.h (u*_casexfrm): Likewise.
73911         Reported by Paolo Bonzini.
73913 2009-04-28  Bruno Haible  <bruno@clisp.org>
73915         Fix a compilation error.
73916         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
73917         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
73918         Reported by Jim Meyering.
73920 2009-04-27  Bruno Haible  <bruno@clisp.org>
73922         New module 'libunistring'.
73923         * modules/libunistring: New file.
73924         * m4/libunistring.m4: New file.
73925         * MODULES.html.sh (Unicode string functions): Add it.
73927 2009-04-27  Eric Blake  <ebb9@byu.net>
73929         maint.mk: allow package-specific header to provide <config.h>
73930         * top/maint.mk (sc_require_config_h): New variable.
73931         (sc_require_config_h, sc_require_config_h_first): Use it.
73933 2009-04-27  Simon Josefsson  <simon@josefsson.org>
73935         * top/maint.mk (sc_avoid_if_before_free): Except
73936         useless-if-before-free script.
73938 2009-04-27  Eric Blake  <ebb9@byu.net>
73940         maintainer-makefile: depend on all required helper scripts
73941         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
73942         useless-if-before-free.
73943         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
73944         version, rather than assuming gnulib checkout is available.
73945         Reported by Simen Josefsson.
73947 2009-04-26  Bruno Haible  <bruno@clisp.org>
73949         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
73950         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
73951         "../" or "..".
73953 2009-04-26  Bruno Haible  <bruno@clisp.org>
73955         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
73956         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
73957         AC_LIB_HAVE_LINKFLAGS.
73959 2009-04-26  Bruno Haible  <bruno@clisp.org>
73961         Simplify calling convention of u*_conv_from_encoding.
73962         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
73963         u32_conv_from_encoding): Expect a resultbuf argument and return the
73964         result directly as a pointer.
73965         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
73966         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
73967         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
73968         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
73969         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
73970         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
73971         Update.
73972         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
73973         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
73974         * lib/vasnprintf.c (VASNPRINTF): Update.
73975         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
73976         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
73977         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
73978         * NEWS: Mention the change.
73980 2009-04-26  Bruno Haible  <bruno@clisp.org>
73982         Simplify calling convention of u*_conv_to_encoding.
73983         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
73984         u32_conv_to_encoding): Expect a resultbuf argument and return the
73985         result directly as a pointer.
73986         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
73987         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
73988         freeing scaled_offsets if mem_iconveha failed.
73989         * lib/unicase/u-casexfrm.h (FUNC): Update.
73990         * lib/uninorm/u-normxfrm.h (FUNC): Update.
73991         * lib/vasnprintf.c (VASNPRINTF): Update.
73992         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
73993         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
73994         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
73995         * NEWS: Mention the change.
73997 2009-04-26  Bruno Haible  <bruno@clisp.org>
73999         Avoid test failures on AIX and OSF/1.
74000         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
74001         malloc(0).
74002         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
74003         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
74004         Likewise.
74005         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
74006         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
74007         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
74008         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
74009         * doc/posix-functions/malloc.texi: Document the portability problem
74010         related to malloc(0).
74012 2009-04-26  Bruno Haible  <bruno@clisp.org>
74014         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
74015         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
74016         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
74018 2009-04-25  Bruno Haible  <bruno@clisp.org>
74020         Avoid link error when creating a namespace clean library.
74021         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
74022         as macro with arguments if already defined as an alias.
74023         * lib/signbitf.c (gl_signbitf): Don't undefine.
74024         * lib/signbitd.c (gl_signbitd): Don't undefine.
74025         * lib/signbitl.c (gl_signbitl): Don't undefine.
74027 2009-04-25  Jim Meyering  <meyering@redhat.com>
74029         vc-list-files: fix another quoting bug
74030         * build-aux/vc-list-files: Avoid sed backslash expansion
74031         of pathological directory names.
74033 2009-04-25  Eric Blake  <ebb9@byu.net>
74035         vc-list-files: fix shell quoting error
74036         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
74037         timestamp.
74039 2009-04-25  Jim Meyering  <meyering@redhat.com>
74041         vc-list-files: restore lost functionality with subdir argument
74042         * build-aux/vc-list-files: When given a non-"." sub-directory
74043         argument, substitute the $dir/ prefix back onto each resulting name.
74044         Otherwise, coreutils' root_tests check would fail.
74046 2009-04-24  Eric Blake  <ebb9@byu.net>
74048         vc-list-files: ignore git symlinks
74049         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
74050         than ls-files, to ignore git symlinks.
74052         maint.mk: import improvements from m4
74053         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
74054         (move_if_change): Delete unused macro.
74055         (news-date-check, vc-diff-check): Support VPATH builds.
74056         (announcement): Likewise.  Split --bootstrap-tools list...
74057         (boostrap-tools): ...into separate list, which can be overridden
74058         in cfg.mk.
74059         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
74060         requiring dependency on useless-if-before-free module.
74061         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
74062         Support VPATH builds.
74064 2009-04-24  Jim Meyering  <meyering@redhat.com>
74066         maint.mk: remove coreutils-specific rules and variables
74067         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
74068         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
74069         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
74071         maint.mk: remove obsolete rule
74072         * top/maint.mk (rel-check): Remove rule.
74073         (WGET, WGETFLAGS): Remove now-unused variables.
74075 2009-04-24  Simon Josefsson  <simon@josefsson.org>
74077         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
74078         consistency.
74080         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
74081         '$(PATH_SEPARATOR)' instead of ':'.
74083 2009-04-24  Simon Josefsson  <simon@josefsson.org>
74085         * lib/getopt1.c (main): Use 'const' for static array.
74087 2009-04-24  Simon Josefsson  <simon@josefsson.org>
74089         * top/maint.mk: Sync with coreutils.
74090         * NEWS: Explain incompatibilities.
74092 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74093             Bruno Haible  <bruno@clisp.org>
74095         Fix cross-compilation results.
74096         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
74097         statement, as third argument of AC_TRY_RUN.
74098         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
74099         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
74100         Likewise.
74101         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
74102         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
74103         Likewise.
74104         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
74105         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
74106         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
74108 2009-04-20  Bruno Haible  <bruno@clisp.org>
74110         Avoid test failure on mingw.
74111         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
74113 2009-04-20  Bruno Haible  <bruno@clisp.org>
74115         Avoid compilation error on mingw.
74116         * modules/localename-tests (Depends-on): Add locale.
74118 2009-04-19  Bruno Haible  <bruno@clisp.org>
74120         Support for building a shared library on Windows platforms.
74121         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
74122         (main): Test the presence of UNINORM_NFC here.
74123         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
74124         (main): Test the presence of UNINORM_NFD here.
74125         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
74126         (main): Test the presence of UNINORM_NFKC here.
74127         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
74128         (main): Test the presence of UNINORM_NFKD here.
74130 2009-04-19  Bruno Haible  <bruno@clisp.org>
74132         Avoid a compiler warning.
74133         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
74134         Change type of variable 'sequence'.
74136 2009-04-19  Bruno Haible  <bruno@clisp.org>
74138         * modules/configmake (Makefile.am): When the contents of configmake.h
74139         does not change, arrange to preserve its modification time.
74141 2009-04-17  Simon Josefsson  <simon@josefsson.org>
74143         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
74144         gettext domain.
74146 2009-04-16  Jim Meyering  <meyering@redhat.com>
74148         useless-if-before-free: improve conversion code
74149         * build-aux/useless-if-before-free: Adjust code-in-comment to match
74150         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
74152 2009-04-14  Bruno Haible  <bruno@clisp.org>
74154         * modules/fcntl (Depends-on): Add extensions.
74155         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
74157 2009-04-12  Ben Pfaff  <blp@gnu.org>
74159         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
74160         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
74162 2009-03-20  Ben Pfaff  <blp@gnu.org>
74164         Make rename replace existing destinations on Windows.
74165         * m4/rename.m4: Add test for Mingw.
74166         * lib/rename.c: Add rename replacement that uses MoveFileEx with
74167         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
74168         * doc/posix-functions/rename.texi: Document.
74170 2009-04-10  Bruno Haible  <bruno@clisp.org>
74172         New include file "iconveh.h".
74173         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
74174         * lib/striconveh.h: Include it.
74175         (enum iconv_ilseq_handler): Remove definition.
74176         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
74177         striconveh.h.
74178         * lib/striconveha.c: Include striconveh.h.
74179         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
74180         * modules/striconveh (Files): Add lib/iconveh.h.
74181         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
74182         lib/striconveh.h.
74184 2009-04-10  Bruno Haible  <bruno@clisp.org>
74186         * lib/uniconv.h: Update comment.
74188 2009-04-10  Bruno Haible  <bruno@clisp.org>
74190         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
74191         always.
74192         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
74193         * lib/unistr/u16-mbtouc-aux.c: Likewise.
74194         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
74195         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
74196         "unistring-notinline.h", so that the function gets defined always.
74197         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
74198         * lib/unistr/u8-uctomb.c: Likewise.
74199         * lib/unistr/u16-mbtouc.c: Likewise.
74200         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
74201         * lib/unistr/u16-uctomb.c: Likewise.
74202         * lib/unistr/u32-mbtouc.c: Likewise.
74203         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
74204         * lib/unistr/u32-uctomb.c: Likewise.
74206 2009-04-10  Bruno Haible  <bruno@clisp.org>
74208         Mark 'utime' obsolete.
74209         * modules/utime (Status, Notice): New sections.
74210         Suggested by Jim Meyering.
74212         Fix cross-compile guess for utime test.
74213         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
74214         autoconf.
74215         * doc/posix-functions/utime.texi: Give more precisions.
74216         Reported by Jan <ipif@ymail.com>.
74218 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
74220         filevercmp: correct today's change
74221         * lib/filevercmp.c: Also handle coreutils' test inputs.
74222         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
74224         Fix regression in 'filevercmp' module. Thanks Sven Joachim
74225         for reporting it.
74226         * lib/filevercmp.c: Special handle for "", "." and "..".
74227         * tests/test-filevercmp.c: Enlarge the set suite.
74229 2009-04-07  Jim Meyering  <meyering@redhat.com>
74231         useless-if-before-free: show how to remove braced useless free, too
74232         * build-aux/useless-if-before-free: still only in a comment, though.
74234 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
74236         maint.mk: import changes to syntax-check macros from coreutils
74237         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
74238         Use them in the relevant macros.
74240 2009-04-06  Bruno Haible  <bruno@clisp.org>
74242         Fix unportable use of bit-fields.
74243         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
74244         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
74245         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
74247 2009-04-06  Bruno Haible  <bruno@clisp.org>
74249         Avoid test failures on AIX and OSF/1.
74250         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
74251         that malloc(0) = NULL.
74252         * tests/unicase/test-u8-tolower.c (check): Likewise.
74253         * tests/unicase/test-u8-totitle.c (check): Likewise.
74254         * tests/unicase/test-u8-toupper.c (check): Likewise.
74255         * tests/unicase/test-u16-casefold.c (check): Likewise.
74256         * tests/unicase/test-u16-tolower.c (check): Likewise.
74257         * tests/unicase/test-u16-totitle.c (check): Likewise.
74258         * tests/unicase/test-u16-toupper.c (check): Likewise.
74259         * tests/unicase/test-u32-casefold.c (check): Likewise.
74260         * tests/unicase/test-u32-tolower.c (check): Likewise.
74261         * tests/unicase/test-u32-totitle.c (check): Likewise.
74262         * tests/unicase/test-u32-toupper.c (check): Likewise.
74263         * tests/uninorm/test-u8-nfc.c (check): Likewise.
74264         * tests/uninorm/test-u8-nfd.c (check): Likewise.
74265         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
74266         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
74267         * tests/uninorm/test-u16-nfc.c (check): Likewise.
74268         * tests/uninorm/test-u16-nfd.c (check): Likewise.
74269         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
74270         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
74271         * tests/uninorm/test-u32-nfc.c (check): Likewise.
74272         * tests/uninorm/test-u32-nfd.c (check): Likewise.
74273         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
74274         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
74276 2009-04-05  Bruno Haible  <bruno@clisp.org>
74278         Work around an autoconf limitation.
74279         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
74280         comment line if it would be longer than 3 KB.
74282 2009-04-05  Bruno Haible  <bruno@clisp.org>
74284         Avoid test failure with libiconv-1.13.
74285         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
74286         of the expected test results.
74288 2009-04-05  Bruno Haible  <bruno@clisp.org>
74290         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
74291         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
74292         that it should be installed.
74294 2009-04-05  Bruno Haible  <bruno@clisp.org>
74296         * gnulib-tool: New option --copy-file.
74297         (func_usage): Document it.
74298         (func_dest_tmpfilename): Moved out of func_import.
74299         (func_add_file, func_update_file): New functions, extracted from
74300         func_import.
74301         (func_import): Update.
74303 2009-04-05  Karl Berry  <karl@gnu.org>
74305         * README: prominently mention gnulib-tool.
74306         Rearrange sections so getting the code is near the top.
74308 2009-04-05  Bruno Haible  <bruno@clisp.org>
74310         * lib/unicase.h: Mention u*_cmp2.
74311         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
74312         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
74313         * lib/unicase/ulc-casecmp.c: Likewise.
74314         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
74315         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
74316         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
74317         unistr/u8-cmp.
74318         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
74319         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
74320         unistr/u16-cmp.
74321         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
74322         unistr/u32-cmp.
74324         * lib/uninorm.h: Mention u*_cmp2.
74325         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
74326         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
74327         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
74328         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
74329         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
74330         unistr/u8-cmp.
74331         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
74332         unistr/u16-cmp.
74333         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
74334         unistr/u32-cmp.
74336         New module 'unistr/u32-cmp2'.
74337         * lib/unistr/u32-cmp2.c: New file.
74338         * modules/unistr/u32-cmp2: New file.
74340         New module 'unistr/u16-cmp2'.
74341         * lib/unistr/u16-cmp2.c: New file.
74342         * modules/unistr/u16-cmp2: New file.
74344         New module 'unistr/u8-cmp2'.
74345         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
74346         * lib/unistr/u8-cmp2.c: New file.
74347         * lib/unistr/u-cmp2.h: New file.
74348         * modules/unistr/u8-cmp2: New file.
74350 2009-04-05  Bruno Haible  <bruno@clisp.org>
74352         * lib/unictype.h (uc_property_is_valid): New macro.
74353         * tests/unictype/test-pr_byname.c (main): Use it.
74355         * lib/unistr.h: Doc fixes.
74356         * lib/uniconv.h: Doc fixes.
74357         * lib/unictype.h: Doc fixes.
74359 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
74361         Port coreutils 7.2 to Solaris 8.
74363         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
74364         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
74365         for Solaris 8.  This is a bit of a hack, as it means it's the
74366         caller's responsibility to add -lnsl if needed, but most likely it
74367         won't be needed since only getaddrinfo uses this and getaddrinfo
74368         isn't needed on Solaris 8.
74370         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
74371         problem to Solaris 8 encountered with coreutils 7.2, which
74372         resulted in a message "fnmatch.c:292: warning: passing argument 4
74373         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
74374         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
74376 2009-04-03  Simon Josefsson  <simon@josefsson.org>
74378         * m4/ld-version-script.m4: Add FIXME comment.
74380 2009-04-02  Simon Josefsson  <simon@josefsson.org>
74382         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
74383         SOVERSION variable.
74385 2009-04-02  Bruno Haible  <bruno@clisp.org>
74387         * Makefile (info, html, dvi, pdf): Combine the rules.
74388         Suggested by Jim Meyering.
74390 2009-04-01  Bruno Haible  <bruno@clisp.org>
74392         * Makefile (info, html, dvi, pdf): New targets.
74393         Reported by Reuben Thomas <rrt@sc3d.org>.
74395 2009-04-01  Bruno Haible  <bruno@clisp.org>
74397         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
74398         can be put into PATH.
74399         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
74401 2009-04-01  Bruno Haible  <bruno@clisp.org>
74403         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
74405 2009-04-01  Bruno Haible  <bruno@clisp.org>
74407         Rename module 'visibility'.
74408         * modules/lib-symbol-visibility: Renamed from modules/visibility.
74409         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
74410         * doc/gnulib.texi: Update.
74411         * MODULES.html.sh (Misc): Update.
74412         * NEWS: Mention the change.
74414 2009-04-01  Simon Josefsson  <simon@josefsson.org>
74416         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
74417         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
74418         Eric Blake <ebb9@byu.net> for review.
74419         * MODULES.html.sh: Add lib-msvc-compat.
74420         * doc/gnulib.texi: Link to new section.
74421         * m4/ld-output-def.m4: New file.
74422         * doc/ld-output-def.texi: New file.
74424 2009-04-01  Simon Josefsson  <simon@josefsson.org>
74426         Rename ld-version-script to lib-symbol-versions.  Suggested by
74427         Bruno Haible <bruno@clisp.org>.
74428         * modules/ld-version-script: Renamed to lib-symbol-versions.
74429         * doc/ld-version-script.texi: Fix module name.
74430         * MODULES.html.sh: Add lib-symbol-versions.
74432 2009-03-31  Simon Josefsson  <simon@josefsson.org>
74434         * modules/u64-tests: New file.
74435         * tests/test-u64.c: New file.
74437 2009-03-04  Simon Josefsson  <simon@josefsson.org>
74439         * MODULES.html.sh: Mention u64.
74440         * modules/u64: New module.
74441         * modules/crypto/sha512: Depend on u64 module instead of providing
74442         u64.h.
74444 2009-03-27  Eric Blake  <ebb9@byu.net>
74446         test-strerror: make debugging EAI_SYSTEM easier
74447         * modules/getaddrinfo-tests (Depends-on): Add strerror.
74448         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
74449         failure was EAI_SYSTEM.
74451 2009-03-25  Bruno Haible  <bruno@clisp.org>
74453         Fix a problem with --enable-relocatable on Solaris 7.
74454         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
74455         since 2008-02-24.
74457 2009-03-25  Eric Blake  <ebb9@byu.net>
74459         test-sockets: avoid gcc warning
74460         * tests/test-sockets.c (main): Silence compiler warning.
74462 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74464         New modules nproc, pthread, contributed by Glen Lenker.
74466         * MODULES.html.sh: Add pthread, nproc.
74467         * lib/nproc.c: New file.
74468         * lib/nproc.h: New file.
74469         * lib/pthread.in.h: New file.
74470         * m4/pthread.m4: New file.
74471         * modules/nproc: New file.
74472         * modules/pthread: New file.
74474 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74476         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
74477         New variable.
74479 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
74481         filevercmp: handle simple~ and numbered.~3~ backup suffixes
74482         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
74483         * tests/test-filevercmp.c: Add tests for backup suffixes.
74485 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74487         * modules/stdlib (Depends-on): Add stdint, needed when defining
74488         struct random_data on, for example, HP-UX 10.20.  Reported by
74489         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
74491 2009-03-24  Simon Josefsson  <simon@josefsson.org>
74493         * lib/readline.c (readline): Call fflush on stdout after printing
74494         prompt.
74496 2009-03-20  Bruno Haible  <bruno@clisp.org>
74498         Remove dependency from 'close' module to -lws2_32 on native Windows.
74499         * lib/close-hook.h: New file.
74500         * lib/close-hook.c: New file.
74501         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
74502         w32sock.h.
74503         (_gl_close_fd_maybe_socket): Remove function.
74504         (rpl_close): Invoke execute_all_close_hooks instead of
74505         _gl_close_fd_maybe_socket.
74506         * lib/sockets.c: Include close-hook.h, w32sock.h.
74507         (close_fd_maybe_socket): New function, essentially from lib/close.c.
74508         (close_sockets_hook): New variable.
74509         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
74510         (gl_sockets_cleanup): Unregister it.
74511         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
74512         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
74513         * modules/close-hook: New file.
74514         * modules/close (Files): Remove lib/w32sock.h.
74515         (Depends-on): Add close-hook.
74516         (Link): Remove section.
74517         * modules/sockets (Files): Add lib/w32sock.h.
74518         (Depends-on): Add close-hook.
74519         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
74520         invocation.
74521         * NEWS: Mention that LIB_CLOSE is gone.
74523 2009-03-23  Eric Blake  <ebb9@byu.net>
74525         signal-tests: test previous patch
74526         * tests/test-signal.c: New file.
74527         * modules/signal-tests: Likewise.
74529         signal.h: always support 'volatile sig_atomic_t'
74530         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
74531         (gl_SIGNAL_H_DEFAULTS): Add a default.
74532         * modules/signal (Makefile.am): Substitute if needed.
74533         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
74534         users can blindly add volatile.
74535         * doc/posix-headers/signal.texi (signal.h): Document it.
74536         Reported by Matthew Woehlke.
74538 2009-03-23  Jim Meyering  <meyering@redhat.com>
74540         pathmax: PATH_MAX: use pathconf only when available
74541         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
74542         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
74543         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
74544         This avoids a link failure in a PSP cross-compilation environment
74545         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
74547         * lib/vasnprintf.c (divide): Fix typo in comment.
74549 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74551         * gnulib-tool (func_filter_filelist): Fix comment.
74553 2009-03-20  Bruno Haible  <bruno@clisp.org>
74555         Make sockets.h self-contained.
74556         * lib/sockets.c: Include sockets.h first.
74557         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
74559 2009-03-19  Eric Blake  <ebb9@byu.net>
74561         doc: mention more functions added in cygwin 1.7.0
74562         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
74563         addition.
74564         * doc/posix-functions/log2f.texi: Likewise.
74566 2009-03-19  Jim Meyering  <meyering@redhat.com>
74568         fsusage: avoid syntax error due to statement-before-declaration
74569         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
74570         after all declarations.  Reported by Matthew Woehlke in
74571         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
74573 2009-03-18  Eric Blake  <ebb9@byu.net>
74575         build-aux/compile: sync from automake
74576         * build-aux/compile: New file, from automake.
74577         * config/srclist.txt: Mention build-aux/compile.
74579 2009-03-17  Bruno Haible  <bruno@clisp.org>
74581         * lib/git-merge-changelog.c: Fix typo in comment.
74582         Reported by Reuben Thomas <rrt@sc3d.org>.
74584 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
74586         * m4/regex.m4: update and improve help for
74587         --without-included-regex.
74589 2009-03-17  Simon Josefsson  <simon@josefsson.org>
74591         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
74592         failure on missing include files.
74594 2009-03-17  Eric Blake  <ebb9@byu.net>
74596         doc: mention more functions added in cygwin 1.7.0
74597         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
74598         addition.
74599         * doc/posix-functions/fwscanf.texi: Likewise.
74600         * doc/posix-functions/swprintf.texi: Likewise.
74601         * doc/posix-functions/swscanf.texi: Likewise.
74602         * doc/posix-functions/vfwprintf.texi: Likewise.
74603         * doc/posix-functions/vfwscanf.texi: Likewise.
74604         * doc/posix-functions/vswprintf.texi: Likewise.
74605         * doc/posix-functions/vswscanf.texi: Likewise.
74606         * doc/posix-functions/vwprintf.texi: Likewise.
74607         * doc/posix-functions/vwscanf.texi: Likewise.
74608         * doc/posix-functions/wcscasecmp.texi: Likewise.
74609         * doc/posix-functions/wcsdup.texi: Likewise.
74610         * doc/posix-functions/wcsftime.texi: Likewise.
74611         * doc/posix-functions/wcsncasecmp.texi: Likewise.
74612         * doc/posix-functions/wprintf.texi: Likewise.
74613         * doc/posix-functions/wscanf.texi: Likewise.
74614         * doc/glibc-functions/gethostbyname2.texi: Likewise.
74616 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74618         maint.mk: really add $(AM_MAKEFLAGS)
74619         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
74620         was inadvertently omitted in the last commit.
74621         Spotted by Bruno Haible.
74623         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
74624         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
74625         $(AM_MAKEFLAGS)' rather than plain `make'.
74627         gnulib-tool: execute $MAKE not make
74628         * gnulib-tool: Default $MAKE to 'make'.
74629         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
74630         than make.  Initialize $MAKE in the do-autobuild script.
74632         gnulib-tool: use $MAKE not make in generated files
74633         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
74634         make, in generated files.  Initialize $MAKE in the do-autobuild
74635         script.
74637         * top/GNUmakefile (_have-git-version-gen): Fix typo.
74639         GNUmakefile: disable parallelism only for multiple, recursive targets
74640         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
74641         additions in the Makefile.
74642         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
74643         by Automake.
74644         (.NOTPARALLEL): Only disable parallel builds if multiple targets
74645         are listed on the command line and at least one of them is
74646         listed in $(ALL_RECURSIVE_TARGETS).
74648 2009-03-14  Bruno Haible  <bruno@clisp.org>
74650         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
74651         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
74652         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
74653         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
74654         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
74655         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
74656         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
74657         unistr/u8-uctomb.
74658         * modules/unistr/u8-strchr (Depends-on): Likewise.
74659         * modules/unistr/u8-strrchr (Depends-on): Likewise.
74660         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
74661         unistr/u16-uctomb.
74662         * modules/unistr/u16-strchr (Depends-on): Likewise.
74663         * modules/unistr/u16-strrchr (Depends-on): Likewise.
74665 2009-03-12  Bruno Haible  <bruno@clisp.org>
74667         Work around select() bug on Interix 3.5.
74668         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
74669         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
74670         * m4/select.m4: New file.
74671         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
74672         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
74673         * modules/select (Files): Add m4/select.m4.
74674         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
74675         * modules/nanosleep (Depends-on): Add select.
74676         * modules/poll (Depends-on): Likewise.
74677         * doc/posix-functions/select.texi: Mention the Interix bug.
74678         Reported by Markus Duft <mduft@gentoo.org>.
74680         * lib/select.c: Renamed from lib/winsock-select.c.
74681         * modules/select (Files): Add lib/select.c, remove
74682         lib/winsock-select.c.
74683         (configure.ac): Update.
74685 2009-03-12  Jim Meyering  <meyering@redhat.com>
74687         avoid gcc warnings about unused macro definitions
74688         * lib/readtokens.c (STREQ): Remove unused definition.
74689         * lib/xmalloc.c (SIZE_MAX): Likewise.
74690         * lib/openat-die.c (N_): Likewise.
74691         * lib/mountlist.c (SIZE_MAX): Remove definition.
74692         Instead, include <stdint.h>.
74693         * lib/readutmp.c: Likewise.
74694         * modules/readutmp (Depends-on): Add stdint.
74695         * modules/mountlist (Depends-on): Add stdint.
74696         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
74698 2009-03-10  Bruno Haible  <bruno@clisp.org>
74700         Tests for module 'mbmemcasecoll'.
74701         * modules/mbmemcasecoll-tests: New file.
74702         * tests/test-mbmemcasecoll1.sh: New file.
74703         * tests/test-mbmemcasecoll2.sh: New file.
74704         * tests/test-mbmemcasecoll3.sh: New file.
74705         * tests/test-mbmemcasecoll.c: New file.
74707         New module 'mbmemcasecoll'.
74708         * lib/mbmemcasecoll.h: New file.
74709         * lib/mbmemcasecoll.c: New file.
74710         * modules/mbmemcasecoll: New file.
74712         * tests/test-mbmemcasecmp.h: New file, extracted from
74713         tests/test-mbmemcasecmp.c.
74714         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
74715         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
74716         (main): Update.
74717         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
74719 2009-03-09  Bruno Haible  <bruno@clisp.org>
74721         Tests for module 'mbmemcasecmp'.
74722         * modules/mbmemcasecmp-tests: New file.
74723         * tests/test-mbmemcasecmp1.sh: New file.
74724         * tests/test-mbmemcasecmp2.sh: New file.
74725         * tests/test-mbmemcasecmp3.sh: New file.
74726         * tests/test-mbmemcasecmp.c: New file.
74728         New module 'mbmemcasecmp'.
74729         * lib/mbmemcasecmp.h: New file.
74730         * lib/mbmemcasecmp.c: New file.
74731         * modules/mbmemcasecmp: New file.
74733 2009-03-09  Bruno Haible  <bruno@clisp.org>
74735         Tests for module 'unicase/ulc-casecoll'.
74736         * modules/unicase/ulc-casecoll-tests: New file.
74737         * tests/unicase/test-ulc-casecoll1.sh: New file.
74738         * tests/unicase/test-ulc-casecoll2.sh: New file.
74739         * tests/unicase/test-ulc-casecoll.c: New file.
74741         New module 'unicase/ulc-casecoll'.
74742         * lib/unicase.h (ulc_casecoll): New declaration.
74743         * lib/unicase/ulc-casecoll.c: New file.
74744         * modules/unicase/ulc-casecoll: New file.
74746         New module 'unicase/ulc-casexfrm'.
74747         * lib/unicase.h (ulc_casexfrm): New declaration.
74748         * lib/unicase/ulc-casexfrm.c: New file.
74749         * modules/unicase/ulc-casexfrm: New file.
74751 2009-03-09  Bruno Haible  <bruno@clisp.org>
74753         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
74754         invocations.
74756         * m4/mbscasecmp.m4: Remove file.
74757         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
74758         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
74760         * m4/mbscasestr.m4: Remove file.
74761         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
74762         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
74764         * m4/mbschr.m4: Remove file.
74765         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
74766         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
74768         * m4/mbscspn.m4: Remove file.
74769         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
74770         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
74772         * m4/mbslen.m4: Remove file.
74773         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
74774         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
74776         * m4/mbsncasecmp.m4: Remove file.
74777         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
74778         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
74780         * m4/mbsnlen.m4: Remove file.
74781         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
74782         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
74784         * m4/mbspbrk.m4: Remove file.
74785         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
74786         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
74788         * m4/mbspcasecmp.m4: Remove file.
74789         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
74790         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
74792         * m4/mbsrchr.m4: Remove file.
74793         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
74794         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
74796         * m4/mbssep.m4: Remove file.
74797         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
74798         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
74800         * m4/mbsspn.m4: Remove file.
74801         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
74802         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
74804         * m4/mbsstr.m4: Remove file.
74805         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
74806         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
74808         * m4/mbstok_r.m4: Remove file.
74809         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
74810         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
74812         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
74814         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
74815         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
74817         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
74819 2009-03-08  Bruno Haible  <bruno@clisp.org>
74821         Tests for module 'unicase/ulc-casecmp'.
74822         * modules/unicase/ulc-casecmp-tests: New file.
74823         * tests/unicase/test-ulc-casecmp1.sh: New file.
74824         * tests/unicase/test-ulc-casecmp2.sh: New file.
74825         * tests/unicase/test-ulc-casecmp.c: New file.
74827         New module 'unicase/ulc-casecmp'.
74828         * lib/unicase.h (ulc_casecmp): New declaration.
74829         * lib/unicase/ulc-casecmp.c: New file.
74830         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
74831         'const SRC_UNIT *'.
74832         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
74833         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
74834         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
74835         * modules/unicase/ulc-casecmp: New file.
74837         Tests for module 'unicase/u32-is-cased'.
74838         * modules/unicase/u32-is-cased-tests: New file.
74839         * tests/unicase/test-u32-is-cased.c: New file.
74841         Tests for module 'unicase/u16-is-cased'.
74842         * modules/unicase/u16-is-cased-tests: New file.
74843         * tests/unicase/test-u16-is-cased.c: New file.
74845         Tests for module 'unicase/u8-is-cased'.
74846         * modules/unicase/u8-is-cased-tests: New file.
74847         * tests/unicase/test-u8-is-cased.c: New file.
74848         * tests/unicase/test-is-cased.h: New file.
74850         New module 'unicase/u32-is-cased'.
74851         * lib/unicase/u32-is-cased.c: New file.
74852         * modules/unicase/u32-is-cased: New file.
74854         New module 'unicase/u16-is-cased'.
74855         * lib/unicase/u16-is-cased.c: New file.
74856         * modules/unicase/u16-is-cased: New file.
74858         New module 'unicase/u8-is-cased'.
74859         * lib/unicase/u8-is-cased.c: New file.
74860         * lib/unicase/u-is-cased.h: New file.
74861         * modules/unicase/u8-is-cased: New file.
74863         Tests for module 'unicase/u32-is-casefolded'.
74864         * modules/unicase/u32-is-casefolded-tests: New file.
74865         * tests/unicase/test-u32-is-casefolded.c: New file.
74867         Tests for module 'unicase/u16-is-casefolded'.
74868         * modules/unicase/u16-is-casefolded-tests: New file.
74869         * tests/unicase/test-u16-is-casefolded.c: New file.
74871         Tests for module 'unicase/u8-is-casefolded'.
74872         * modules/unicase/u8-is-casefolded-tests: New file.
74873         * tests/unicase/test-u8-is-casefolded.c: New file.
74874         * tests/unicase/test-is-casefolded.h: New file.
74876         New module 'unicase/u32-is-casefolded'.
74877         * lib/unicase/u32-is-casefolded.c: New file.
74878         * modules/unicase/u32-is-casefolded: New file.
74880         New module 'unicase/u16-is-casefolded'.
74881         * lib/unicase/u16-is-casefolded.c: New file.
74882         * modules/unicase/u16-is-casefolded: New file.
74884         New module 'unicase/u8-is-casefolded'.
74885         * lib/unicase/u8-is-casefolded.c: New file.
74886         * modules/unicase/u8-is-casefolded: New file.
74888         Tests for module 'unicase/u32-is-titlecase'.
74889         * modules/unicase/u32-is-titlecase-tests: New file.
74890         * tests/unicase/test-u32-is-titlecase.c: New file.
74892         Tests for module 'unicase/u16-is-titlecase'.
74893         * modules/unicase/u16-is-titlecase-tests: New file.
74894         * tests/unicase/test-u16-is-titlecase.c: New file.
74896         Tests for module 'unicase/u8-is-titlecase'.
74897         * modules/unicase/u8-is-titlecase-tests: New file.
74898         * tests/unicase/test-u8-is-titlecase.c: New file.
74899         * tests/unicase/test-is-titlecase.h: New file.
74901         New module 'unicase/u32-is-titlecase'.
74902         * lib/unicase/u32-is-titlecase.c: New file.
74903         * modules/unicase/u32-is-titlecase: New file.
74905         New module 'unicase/u16-is-titlecase'.
74906         * lib/unicase/u16-is-titlecase.c: New file.
74907         * modules/unicase/u16-is-titlecase: New file.
74909         New module 'unicase/u8-is-titlecase'.
74910         * lib/unicase/u8-is-titlecase.c: New file.
74911         * modules/unicase/u8-is-titlecase: New file.
74913         Tests for module 'unicase/u32-is-lowercase'.
74914         * modules/unicase/u32-is-lowercase-tests: New file.
74915         * tests/unicase/test-u32-is-lowercase.c: New file.
74917         Tests for module 'unicase/u16-is-lowercase'.
74918         * modules/unicase/u16-is-lowercase-tests: New file.
74919         * tests/unicase/test-u16-is-lowercase.c: New file.
74921         Tests for module 'unicase/u8-is-lowercase'.
74922         * modules/unicase/u8-is-lowercase-tests: New file.
74923         * tests/unicase/test-u8-is-lowercase.c: New file.
74924         * tests/unicase/test-is-lowercase.h: New file.
74926         New module 'unicase/u32-is-lowercase'.
74927         * lib/unicase/u32-is-lowercase.c: New file.
74928         * modules/unicase/u32-is-lowercase: New file.
74930         New module 'unicase/u16-is-lowercase'.
74931         * lib/unicase/u16-is-lowercase.c: New file.
74932         * modules/unicase/u16-is-lowercase: New file.
74934         New module 'unicase/u8-is-lowercase'.
74935         * lib/unicase/u8-is-lowercase.c: New file.
74936         * modules/unicase/u8-is-lowercase: New file.
74938         Tests for module 'unicase/u32-is-uppercase'.
74939         * modules/unicase/u32-is-uppercase-tests: New file.
74940         * tests/unicase/test-u32-is-uppercase.c: New file.
74942         Tests for module 'unicase/u16-is-uppercase'.
74943         * modules/unicase/u16-is-uppercase-tests: New file.
74944         * tests/unicase/test-u16-is-uppercase.c: New file.
74946         Tests for module 'unicase/u8-is-uppercase'.
74947         * modules/unicase/u8-is-uppercase-tests: New file.
74948         * tests/unicase/test-u8-is-uppercase.c: New file.
74949         * tests/unicase/test-is-uppercase.h: New file.
74951         New module 'unicase/u32-is-uppercase'.
74952         * lib/unicase/u32-is-uppercase.c: New file.
74953         * modules/unicase/u32-is-uppercase: New file.
74955         New module 'unicase/u16-is-uppercase'.
74956         * lib/unicase/u16-is-uppercase.c: New file.
74957         * modules/unicase/u16-is-uppercase: New file.
74959         New module 'unicase/u8-is-uppercase'.
74960         * lib/unicase/u8-is-uppercase.c: New file.
74961         * modules/unicase/u8-is-uppercase: New file.
74963         New module 'unicase/u32-is-invariant'.
74964         * lib/unicase/u32-is-invariant.c: New file.
74965         * modules/unicase/u32-is-invariant: New file.
74967         New module 'unicase/u16-is-invariant'.
74968         * lib/unicase/u16-is-invariant.c: New file.
74969         * modules/unicase/u16-is-invariant: New file.
74971         New module 'unicase/u8-is-invariant'.
74972         * lib/unicase/u8-is-invariant.c: New file.
74973         * lib/unicase/invariant.h: New file.
74974         * lib/unicase/u-is-invariant.h: New file.
74975         * modules/unicase/u8-is-invariant: New file.
74977         Tests for module 'unicase/u32-casecoll'.
74978         * modules/unicase/u32-casecoll-tests: New file.
74979         * tests/unicase/test-u32-casecoll.c: New file.
74981         Tests for module 'unicase/u16-casecoll'.
74982         * modules/unicase/u16-casecoll-tests: New file.
74983         * tests/unicase/test-u16-casecoll.c: New file.
74985         Tests for module 'unicase/u8-casecoll'.
74986         * modules/unicase/u8-casecoll-tests: New file.
74987         * tests/unicase/test-u8-casecoll.c: New file.
74989         New module 'unicase/u32-casecoll'.
74990         * lib/unicase/u32-casecoll.c: New file.
74991         * modules/unicase/u32-casecoll: New file.
74993         New module 'unicase/u16-casecoll'.
74994         * lib/unicase/u16-casecoll.c: New file.
74995         * modules/unicase/u16-casecoll: New file.
74997         New module 'unicase/u8-casecoll'.
74998         * lib/unicase/u8-casecoll.c: New file.
74999         * lib/unicase/u-casecoll.h: New file.
75000         * modules/unicase/u8-casecoll: New file.
75002         New module 'unicase/u32-casexfrm'.
75003         * lib/unicase/u32-casexfrm.c: New file.
75004         * modules/unicase/u32-casexfrm: New file.
75006         New module 'unicase/u16-casexfrm'.
75007         * lib/unicase/u16-casexfrm.c: New file.
75008         * modules/unicase/u16-casexfrm: New file.
75010         New module 'unicase/u8-casexfrm'.
75011         * lib/unicase/u8-casexfrm.c: New file.
75012         * lib/unicase/u-casexfrm.h: New file.
75013         * modules/unicase/u8-casexfrm: New file.
75015         Tests for module 'unicase/u32-casecmp'.
75016         * modules/unicase/u32-casecmp-tests: New file.
75017         * tests/unicase/test-u32-casecmp.c: New file.
75019         Tests for module 'unicase/u16-casecmp'.
75020         * modules/unicase/u16-casecmp-tests: New file.
75021         * tests/unicase/test-u16-casecmp.c: New file.
75023         Tests for module 'unicase/u8-casecmp'.
75024         * modules/unicase/u8-casecmp-tests: New file.
75025         * tests/unicase/test-u8-casecmp.c: New file.
75026         * tests/unicase/test-casecmp.h: New file.
75028         New module 'unicase/u32-casecmp'.
75029         * lib/unicase/u32-casecmp.c: New file.
75030         * modules/unicase/u32-casecmp: New file.
75032         New module 'unicase/u16-casecmp'.
75033         * lib/unicase/u16-casecmp.c: New file.
75034         * modules/unicase/u16-casecmp: New file.
75036         New module 'unicase/u8-casecmp'.
75037         * lib/unicase/u8-casecmp.c: New file.
75038         * lib/unicase/u-casecmp.h: New file.
75039         * modules/unicase/u8-casecmp: New file.
75041         Tests for module 'unicase/u32-casefold'.
75042         * modules/unicase/u32-casefold-tests: New file.
75043         * tests/unicase/test-u32-casefold.c: New file.
75045         Tests for module 'unicase/u16-casefold'.
75046         * modules/unicase/u16-casefold-tests: New file.
75047         * tests/unicase/test-u16-casefold.c: New file.
75049         Tests for module 'unicase/u8-casefold'.
75050         * modules/unicase/u8-casefold-tests: New file.
75051         * tests/unicase/test-u8-casefold.c: New file.
75053         New module 'unicase/u32-casefold'.
75054         * lib/unicase/u32-casefold.c: New file.
75055         * modules/unicase/u32-casefold: New file.
75057         New module 'unicase/u16-casefold'.
75058         * lib/unicase/u16-casefold.c: New file.
75059         * modules/unicase/u16-casefold: New file.
75061         New module 'unicase/u8-casefold'.
75062         * lib/unicase/u8-casefold.c: New file.
75063         * lib/unicase/u-casefold.h: New file.
75064         * modules/unicase/u8-casefold: New file.
75066         New module 'unicase/tocasefold'.
75067         * lib/unicase/casefold.h: New file.
75068         * lib/unicase/tocasefold.c: New file.
75069         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
75070         * modules/unicase/tocasefold: New file.
75072         Tests for module 'unicase/u32-totitle'.
75073         * modules/unicase/u32-totitle-tests: New file.
75074         * tests/unicase/test-u32-totitle.c: New file.
75076         Tests for module 'unicase/u16-totitle'.
75077         * modules/unicase/u16-totitle-tests: New file.
75078         * tests/unicase/test-u16-totitle.c: New file.
75080         Tests for module 'unicase/u8-totitle'.
75081         * modules/unicase/u8-totitle-tests: New file.
75082         * tests/unicase/test-u8-totitle.c: New file.
75084         New module 'unicase/u32-totitle'.
75085         * lib/unicase/u32-totitle.c: New file.
75086         * modules/unicase/u32-totitle: New file.
75088         New module 'unicase/u16-totitle'.
75089         * lib/unicase/u16-totitle.c: New file.
75090         * modules/unicase/u16-totitle: New file.
75092         New module 'unicase/u8-totitle'.
75093         * lib/unicase/u8-totitle.c: New file.
75094         * lib/unicase/u-totitle.h: New file.
75095         * modules/unicase/u8-totitle: New file.
75097         Tests for module 'unicase/u32-tolower'.
75098         * modules/unicase/u32-tolower-tests: New file.
75099         * tests/unicase/test-u32-tolower.c: New file.
75101         Tests for module 'unicase/u16-tolower'.
75102         * modules/unicase/u16-tolower-tests: New file.
75103         * tests/unicase/test-u16-tolower.c: New file.
75105         Tests for module 'unicase/u8-tolower'.
75106         * modules/unicase/u8-tolower-tests: New file.
75107         * tests/unicase/test-u8-tolower.c: New file.
75109         New module 'unicase/u32-tolower'.
75110         * lib/unicase/u32-tolower.c: New file.
75111         * modules/unicase/u32-tolower: New file.
75113         New module 'unicase/u16-tolower'.
75114         * lib/unicase/u16-tolower.c: New file.
75115         * modules/unicase/u16-tolower: New file.
75117         New module 'unicase/u8-tolower'.
75118         * lib/unicase/u8-tolower.c: New file.
75119         * modules/unicase/u8-tolower: New file.
75121         Tests for module 'unicase/u32-toupper'.
75122         * modules/unicase/u32-toupper-tests: New file.
75123         * tests/unicase/test-u32-toupper.c: New file.
75125         Tests for module 'unicase/u16-toupper'.
75126         * modules/unicase/u16-toupper-tests: New file.
75127         * tests/unicase/test-u16-toupper.c: New file.
75129         Tests for module 'unicase/u8-toupper'.
75130         * modules/unicase/u8-toupper-tests: New file.
75131         * tests/unicase/test-u8-toupper.c: New file.
75133         New module 'unicase/u32-toupper'.
75134         * lib/unicase/u32-toupper.c: New file.
75135         * modules/unicase/u32-toupper: New file.
75137         New module 'unicase/u16-toupper'.
75138         * lib/unicase/u16-toupper.c: New file.
75139         * modules/unicase/u16-toupper: New file.
75141         New module 'unicase/u8-toupper'.
75142         * lib/unicase/u8-toupper.c: New file.
75143         * modules/unicase/u8-toupper: New file.
75145         New module 'unicase/u32-casemap'.
75146         * lib/unicase/u32-casemap.c: New file.
75147         * modules/unicase/u32-casemap: New file.
75149         New module 'unicase/u16-casemap'.
75150         * lib/unicase/u16-casemap.c: New file.
75151         * modules/unicase/u16-casemap: New file.
75153         New module 'unicase/u8-casemap'.
75154         * lib/unicase/unicasemap.h: New file.
75155         * lib/unicase/u8-casemap.c: New file.
75156         * lib/unicase/u-casemap.h: New file.
75157         * modules/unicase/u8-casemap: New file.
75159         New module 'unicase/special-casing'.
75160         * lib/unicase/special-casing.h: New file.
75161         * lib/unicase/special-casing.c: New file.
75162         * lib/unicase/special-casing-table.gperf: New file, generated by
75163         gen-uni-tables.c.
75164         * modules/unicase/special-casing: New file.
75166         Tests for module 'unicase/locale-language'.
75167         * modules/unicase/locale-language-tests: New file.
75168         * tests/unicase/test-locale-language.sh: New file.
75169         * tests/unicase/test-locale-language.c: New file.
75171         New module 'unicase/locale-language'.
75172         * lib/unicase/locale-language.c: New file.
75173         * lib/unicase/locale-languages.gperf: New file.
75174         * modules/unicase/locale-language: New file.
75176         Generate more tables for case conversion and case folding.
75177         * lib/gen-uni-tables.c (SCC_*): New enum items.
75178         (struct special_casing_rule): New type.
75179         (casing_rules, num_casing_rules, allocated_casing_rules): New
75180         variables.
75181         (add_casing_rule, fill_casing_rules): New functions.
75182         (struct casefold_rule): New type.
75183         (casefolding_rules, num_casefolding_rules,
75184         allocated_casefolding_rules): New variables.
75185         (fill_casefolding_rules): New function.
75186         (unicode_casefold): New variable.
75187         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
75188         sort_casing_rules, output_casing_rules): New functions.
75189         (main): Accept to more arguments: SpecialCasing.txt and
75190         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
75191         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
75192         Output mapping for casefolding.
75194         * lib/unicase.h: Include stdbool.h, uninorm.h.
75195         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
75196         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
75197         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
75198         arguments.
75199         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
75200         resultp arguments.
75201         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
75202         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
75203         resultp arguments.
75204         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
75205         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
75206         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
75207         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
75208         declarations.
75209         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
75211 2009-03-08  Bruno Haible  <bruno@clisp.org>
75213         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
75214         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
75215         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
75216         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
75218 2009-03-07  Bruno Haible  <bruno@clisp.org>
75220         Adjust u*_normcmp, u*_normcoll API.
75221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
75222         u16_normcoll, u32_normcoll): Change failure conventions.
75223         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
75224         errno and return -1.
75225         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
75227 2009-03-07  Bruno Haible  <bruno@clisp.org>
75229         Tests for module 'uninorm/u32-normcoll'.
75230         * modules/uninorm/u32-normcoll-tests: New file.
75231         * tests/uninorm/test-u32-normcoll.c: New file.
75233         Tests for module 'uninorm/u16-normcoll'.
75234         * modules/uninorm/u16-normcoll-tests: New file.
75235         * tests/uninorm/test-u16-normcoll.c: New file.
75237         Tests for module 'uninorm/u8-normcoll'.
75238         * modules/uninorm/u8-normcoll-tests: New file.
75239         * tests/uninorm/test-u8-normcoll.c: New file.
75241 2009-03-07  Bruno Haible  <bruno@clisp.org>
75243         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
75244         tests/uninorm/test-u32-normcmp.c.
75245         * tests/uninorm/test-u32-normcmp.c: Include it.
75246         (test_nonascii): New function, extracted from main. Add some more
75247         tests.
75248         (main): Invoke test_ascii and test_nonascii.
75249         * modules/uninorm/u32-normcmp-tests (Files): Add
75250         tests/uninorm/test-u32-normcmp.h.
75251         (Depends-on): Remove uninorm/u32-normcmp.
75253         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
75254         tests/uninorm/test-u16-normcmp.c.
75255         * tests/uninorm/test-u16-normcmp.c: Include it.
75256         (test_nonascii): New function, extracted from main. Add some more
75257         tests.
75258         (main): Invoke test_ascii and test_nonascii.
75259         * modules/uninorm/u16-normcmp-tests (Files): Add
75260         tests/uninorm/test-u16-normcmp.h.
75261         (Depends-on): Remove uninorm/u16-normcmp.
75263         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
75264         tests/uninorm/test-u8-normcmp.c.
75265         * tests/uninorm/test-u8-normcmp.c: Include it.
75266         (test_nonascii): New function, extracted from main. Add some more
75267         tests.
75268         (main): Invoke test_ascii and test_nonascii.
75269         * modules/uninorm/u8-normcmp-tests (Files): Add
75270         tests/uninorm/test-u8-normcmp.h.
75271         (Depends-on): Remove uninorm/u8-normcmp.
75273 2009-03-07  Bruno Haible  <bruno@clisp.org>
75275         New module 'uninorm/u32-normcoll'.
75276         * lib/uninorm/u32-normcoll.c: New file.
75277         * modules/uninorm/u32-normcoll: New file.
75279         New module 'uninorm/u16-normcoll'.
75280         * lib/uninorm/u16-normcoll.c: New file.
75281         * modules/uninorm/u16-normcoll: New file.
75283         New module 'uninorm/u8-normcoll'.
75284         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
75285         declarations.
75286         * lib/uninorm/u8-normcoll.c: New file.
75287         * lib/uninorm/u-normcoll.h: New file.
75288         * modules/uninorm/u8-normcoll: New file.
75290         New module 'uninorm/u32-normxfrm'.
75291         * lib/uninorm/u32-normxfrm.c: New file.
75292         * modules/uninorm/u32-normxfrm: New file.
75294         New module 'uninorm/u16-normxfrm'.
75295         * lib/uninorm/u16-normxfrm.c: New file.
75296         * modules/uninorm/u16-normxfrm: New file.
75298         New module 'uninorm/u8-normxfrm'.
75299         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
75300         declarations.
75301         * lib/uninorm/u8-normxfrm.c: New file.
75302         * lib/uninorm/u-normxfrm.h: New file.
75303         * modules/uninorm/u8-normxfrm: New file.
75305 2009-03-07  Bruno Haible  <bruno@clisp.org>
75307         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
75308         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
75309         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
75311 2009-03-07  Bruno Haible  <bruno@clisp.org>
75313         New module 'memxfrm'.
75314         * lib/memxfrm.h: New file.
75315         * lib/memxfrm.c: New file.
75316         * modules/memxfrm: New file.
75318 2009-03-07  Bruno Haible  <bruno@clisp.org>
75320         New module 'memcmp2'.
75321         * lib/memcmp2.h: New file.
75322         * lib/memcmp2.c: New file.
75323         * modules/memcmp2: New file.
75325 2009-03-07  Bruno Haible  <bruno@clisp.org>
75327         Tests for module 'uninorm/decomposing-form'.
75328         * modules/uninorm/decomposing-form-tests: New file.
75329         * tests/uninorm/test-decomposing-form.c: New file.
75331         New module 'uninorm/decomposing-form'.
75332         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
75333         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
75334         Add 'decomposing_variant' field.
75335         * lib/uninorm/decomposing-form.c: New file.
75336         * lib/uninorm/nfc.c (uninorm_nfc): Update.
75337         * lib/uninorm/nfd.c (uninorm_nfd): Update.
75338         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
75339         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
75340         * modules/uninorm/decomposing-form: New file.
75341         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
75342         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
75344 2009-03-07  Bruno Haible  <bruno@clisp.org>
75346         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
75347         strings.
75349 2009-03-06  Bruno Haible  <bruno@clisp.org>
75351         Tests for module 'uninorm/u32-normcmp'.
75352         * tests/uninorm/test-u32-normcmp.c: New file.
75353         * modules/uninorm/u32-normcmp-tests: New file.
75355         Tests for module 'uninorm/u16-normcmp'.
75356         * tests/uninorm/test-u16-normcmp.c: New file.
75357         * modules/uninorm/u16-normcmp-tests: New file.
75359         Tests for module 'uninorm/u8-normcmp'.
75360         * tests/uninorm/test-u8-normcmp.c: New file.
75361         * modules/uninorm/u8-normcmp-tests: New file.
75363         New module 'uninorm/u32-normcmp'.
75364         * lib/uninorm/u32-normcmp.c: New file.
75365         * modules/uninorm/u32-normcmp: New file.
75367         New module 'uninorm/u16-normcmp'.
75368         * lib/uninorm/u16-normcmp.c: New file.
75369         * modules/uninorm/u16-normcmp: New file.
75371         New module 'uninorm/u8-normcmp'.
75372         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
75373         declarations.
75374         * lib/uninorm/u8-normcmp.c: New file.
75375         * lib/uninorm/u-normcmp.h: New file.
75376         * modules/uninorm/u8-normcmp: New file.
75378 2009-03-06  Bruno Haible  <bruno@clisp.org>
75380         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
75381         Reported by Eric Blake.
75383 2009-03-06  Eric Blake  <ebb9@byu.net>
75384             Bruno Haible  <bruno@clisp.org>
75386         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
75387         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
75388         condition.
75389         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
75390         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
75391         condition.
75392         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
75394 2009-03-06  Eric Blake  <ebb9@byu.net>
75396         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
75397         to avoid compiler warnings.
75398         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
75400 2009-03-05  Bruno Haible  <bruno@clisp.org>
75402         * tests/test-ftell.c (main): Disable test beyond end of file on
75403         FreeMiNT.
75404         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
75406 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
75408         * lib/filevercmp.c: Move hidden files up in ordering.
75409         * tests/test-filevercmp.c: Add tests for hidden files.
75411 2009-03-04  Bruno Haible  <bruno@clisp.org>
75413         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
75414         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
75415         AM_CFLAGS.
75416         Reported by Simon Josefsson.
75418 2009-03-03  Bruno Haible  <bruno@clisp.org>
75420         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
75421         Reported by Simon Josefsson.
75423         * doc/ld-version-script.texi: Update node reference.
75425 2009-03-03  Bruno Haible  <bruno@clisp.org>
75427         * modules/visibility (License): Change to 'unlimited'.
75428         Suggested by Simon Josefsson.
75430 2009-03-03  Jim Meyering  <meyering@redhat.com>
75432         unlinkdir: cannot_unlink_dir may modify process state
75433         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
75434         it's neither thread-safe nor appropriate for use in a library.
75436 2009-03-03  Eric Blake  <ebb9@byu.net>
75438         test-closein: silence test under Darwin
75439         * tests/test-closein.sh: Ignore stderr from cat, since we don't
75440         care if it dies from EPIPE or EBADF.
75442 2009-03-03  Bruno Haible  <bruno@clisp.org>
75444         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
75445         earlier.
75446         * doc/visibility.texi: Fix @node and @section.
75448 2009-03-03  Simon Josefsson  <simon@josefsson.org>
75450         * doc/gnulib.texi: Link to sections for ld version script and
75451         visibility.
75452         * doc/visibility.texi: Add @node and @section.
75453         * modules/ld-version-script: New module.
75454         * m4/ld-version-script.m4: New file.
75455         * doc/ld-version-script.texi: New file.
75457 2009-03-02  David Lutterkort  <lutter@redhat.com>
75459         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
75460         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75462 2009-03-02  Bruno Haible  <bruno@clisp.org>
75464         * doc/visibility.texi: Mention libtool's -export-symbols option.
75466 2009-03-02  Jim Meyering  <meyering@redhat.com>
75468         announce-gen: new option: --no-print-checksums
75469         * build-aux/announce-gen (usage): Describe it.
75470         (print_checksums): Print a newline here, not in the [*] footnote.
75471         (main): Honor it.
75473 2009-03-01  Bruno Haible  <bruno@clisp.org>
75475         Use socklen_t in the native Windows replacements prototypes.
75476         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
75477         instead of 'int'.
75478         * lib/getsockopt.c (rpl_getsockopt): Likewise.
75479         * lib/setsockopt.c (rpl_setsockopt): Likewise.
75480         * modules/getsockopt (Depends-on): Add socklen.
75481         * modules/setsockopt (Depends-on): Add socklen.
75483 2009-03-01  Bruno Haible  <bruno@clisp.org>
75485         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
75486         least 4.2.
75488 2009-03-01  Eric Blake  <ebb9@byu.net>
75489             Bruno Haible  <bruno@clisp.org>
75491         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
75492         error messages.
75493         * lib/wait-process.c (wait_subprocess): Omit error message about
75494         deadly signal sent to the child of termsigp != NULL.
75496 2009-03-01  Eric Blake  <ebb9@byu.net>
75498         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
75500 2009-03-01  Bruno Haible  <bruno@clisp.org>
75502         Avoid a gcc warning.
75503         * tests/test-sched.c (b): Make global.
75504         Reported by Eric Blake.
75506 2009-01-19  Martin Lambers  <marlam@marlam.de>
75508         Provide POSIX semantics for socket timeout options on W32.
75509         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
75510         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
75511         * modules/setsockopt: Depend on sys_time module for struct timeval.
75512         * modules/getsockopt: Depend on sys_time module for struct timeval.
75514 2009-03-01  Simon Josefsson  <simon@josefsson.org>
75516         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
75517         __USE_GNU, for consistency with netdb.in.h.
75518         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75520 2009-03-01  Bruno Haible  <bruno@clisp.org>
75522         More support for FreeMiNT.
75523         * lib/fseeko.c (rpl_fseeko): Complete last commit.
75524         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75526 2009-03-01  Bruno Haible  <bruno@clisp.org>
75528         More support for FreeMiNT.
75529         * lib/fpurge.c (fpurge): Correct last commit.
75530         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75532 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75534         Fix unportable awk script in vc-list-files.
75535         * build-aux/vc-list-files: In the replacement awk script, use
75536         substr with a second argument of 1, not zero.
75537         Report by Simon Josefsson.
75539 2009-02-28  Bruno Haible  <bruno@clisp.org>
75541         More support for FreeMiNT.
75542         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
75543         to FreeMiNT today.
75544         * lib/fwriting.c (fwriting): Likewise.
75545         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
75547 2009-02-28  Bruno Haible  <bruno@clisp.org>
75549         * tests/test-freadseek.c (main): Disable test beyond end of file on
75550         FreeMiNT.
75551         * tests/test-ftello.c (main): Likewise.
75552         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
75554 2009-02-28  Bruno Haible  <bruno@clisp.org>
75556         Add tentative support for FreeMiNT.
75557         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
75558         * lib/fpurge.c (fpurge): Likewise.
75559         * lib/freadable.c (freadable): Likewise.
75560         * lib/freading.c (freading): Likewise.
75561         * lib/freadptr.c (freadptr): Likewise.
75562         * lib/freadseek.c (freadptrinc): Likewise.
75563         * lib/fseeko.c (rpl_fseeko): Likewise.
75564         * lib/fseterr.c (fseterr): Likewise.
75565         * lib/fwritable.c (fwritable): Likewise.
75566         * lib/fwriting.c (fwriting): Likewise.
75567         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
75568         Hourihane.
75569         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
75571 2009-02-28  Bruno Haible  <bruno@clisp.org>
75573         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
75574         SIGCHLD.
75575         Reported by Jim Meyering.
75577 2009-02-28  Bruno Haible  <bruno@clisp.org>
75579         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
75580         Mention the results of these tests on various platforms.
75581         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
75582         order.
75583         * doc/posix-functions/printf.texi: Likewise.
75584         * doc/posix-functions/snprintf.texi: Likewise.
75585         * doc/posix-functions/sprintf.texi: Likewise.
75586         * doc/posix-functions/vfprintf.texi: Likewise.
75587         * doc/posix-functions/vprintf.texi: Likewise.
75588         * doc/posix-functions/vsnprintf.texi: Likewise.
75589         * doc/posix-functions/vsprintf.texi: Likewise.
75590         * doc/glibc-functions/obstack_printf.texi: Likewise.
75591         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
75593 2009-02-28  Bruno Haible  <bruno@clisp.org>
75595         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
75596         Reported by Loïc Minier <lool@dooz.org>.
75598 2009-02-27  Bruno Haible  <bruno@clisp.org>
75600         * gnulib-tool (func_import): Make the sed expression used to create the
75601         sed script for updating the .gitignore file POSIX compliant.
75602         Reported by Eric Blake.
75604 2009-02-27  Bruno Haible  <bruno@clisp.org>
75606         * gnulib-tool (sed): Don't alias as "sed --posix".
75607         Reported by Eric Blake.
75609 2009-02-27  Bruno Haible  <bruno@clisp.org>
75611         Avoid test link errors.
75612         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
75613         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
75614         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
75615         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
75616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
75618 2009-02-27  Bruno Haible  <bruno@clisp.org>
75620         Avoid spurious "(cached)" in configure output.
75621         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
75622         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
75623         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
75624         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
75625         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
75626         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
75627         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
75628         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
75629         Reported by Eric Blake.
75631 2009-02-27  Eric Blake  <ebb9@byu.net>
75633         printf: fix regression in previous patch
75634         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
75636 2009-02-27  Bruno Haible  <bruno@clisp.org>
75638         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
75639         value.
75640         * lib/stdint.in.h: Likewise.
75641         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
75643 2009-02-27  Eric Blake  <ebb9@byu.net>
75645         doc: mention more functions added in cygwin 1.7.0
75646         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
75647         addition.
75648         * doc/posix-functions/open_wmemstream.texi: Likewise.
75649         * doc/posix-functions/wcsnlen.texi: Likewise.
75650         * doc/posix-functions/wcsnrtombs.texi: Likewise.
75651         * doc/posix-functions/wcstod.texi: Likewise.
75652         * doc/posix-functions/wcstof.texi: Likewise.
75653         * doc/posix-functions/wcstoimax.texi: Likewise.
75654         * doc/posix-functions/wcstok.texi: Likewise.
75655         * doc/posix-functions/wcstoumax.texi: Likewise.
75657         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
75658         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
75659         * doc/posix-functions/fprintf.texi: Update.
75660         * doc/posix-functions/printf.texi: Update.
75661         * doc/posix-functions/snprintf.texi: Update.
75662         * doc/posix-functions/sprintf.texi: Update.
75663         * doc/posix-functions/vfprintf.texi: Update.
75664         * doc/posix-functions/vprintf.texi: Update.
75665         * doc/posix-functions/vsnprintf.texi: Update.
75666         * doc/posix-functions/vsprintf.texi: Update.
75667         * doc/glibc-functions/obstack_printf.texi: Update.
75668         * doc/glibc-functions/obstack_vprintf.texi: Update.
75670 2009-02-26  Eric Blake  <ebb9@byu.net>
75672         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
75673         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
75674         compilation bug by using runtime conversion.
75675         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
75676         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
75677         * modules/ceill-tests (Files): Use nan.h.
75678         * modules/floorl-tests (Files): Likewise.
75679         * modules/frexpl-tests (Files): Likewise.
75680         * modules/isnanl-tests (Files): Likewise.
75681         * modules/ldexpl-tests (Files): Likewise.
75682         * modules/roundl-tests (Files): Likewise.
75683         * modules/truncl-tests (Files): Likewise.
75684         * tests/test-ceill.c (main): Use a working NaN.
75685         * tests/test-floorl.c (main): Likewise.
75686         * tests/test-frexpl.c (main): Likewise.
75687         * tests/test-isnan.c (test_long_double): Likewise.
75688         * tests/test-isnanl.h (main): Likewise.
75689         * tests/test-ldexpl.h (main): Likewise.
75690         * tests/test-roundl.h (main): Likewise.
75691         * tests/test-truncl.h (main): Likewise.
75692         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
75694 2009-02-26  Eric Blake  <ebb9@byu.net>
75695             Bruno Haible  <bruno@clisp.org>
75697         Work around a *printf bug with %ls on Solaris.
75698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
75699         precision is specified, sprintf stops converting the wide string
75700         argument when the number of bytes that have been produced by this
75701         conversion equals or exceeds the precision.
75702         * doc/posix-functions/fprintf.texi: Update.
75703         * doc/posix-functions/printf.texi: Update.
75704         * doc/posix-functions/snprintf.texi: Update.
75705         * doc/posix-functions/sprintf.texi: Update.
75706         * doc/posix-functions/vfprintf.texi: Update.
75707         * doc/posix-functions/vprintf.texi: Update.
75708         * doc/posix-functions/vsnprintf.texi: Update.
75709         * doc/posix-functions/vsprintf.texi: Update.
75710         * doc/glibc-functions/obstack_printf.texi: Update.
75711         * doc/glibc-functions/obstack_vprintf.texi: Update.
75713 2009-02-26  Eric Blake  <ebb9@byu.net>
75715         stdlib: favor compiler check of random.h
75716         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
75717         to avoid an ObjC random.h installed by Swarm.
75719 2009-02-26  Bruno Haible  <bruno@clisp.org>
75721         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
75722         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
75723         Reported by Gary V. Vaughan <gary@gnu.org>.
75725 2009-02-26  Bruno Haible  <bruno@clisp.org>
75727         Fix *printf behaviour regarding the %ls directive.
75728         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
75729         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
75730         NEED_PRINTF_DIRECTIVE_LS.
75731         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
75732         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
75733         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
75734         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
75735         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
75736         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
75737         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
75738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
75739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
75740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
75741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
75742         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
75743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
75744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
75745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
75746         * doc/posix-functions/fprintf.texi: Update.
75747         * doc/posix-functions/printf.texi: Update.
75748         * doc/posix-functions/snprintf.texi: Update.
75749         * doc/posix-functions/sprintf.texi: Update.
75750         * doc/posix-functions/vfprintf.texi: Update.
75751         * doc/posix-functions/vprintf.texi: Update.
75752         * doc/posix-functions/vsnprintf.texi: Update.
75753         * doc/posix-functions/vsprintf.texi: Update.
75754         * doc/glibc-functions/obstack_printf.texi: Update.
75755         * doc/glibc-functions/obstack_vprintf.texi: Update.
75756         Reported by Eric Blake.
75758 2009-02-25  Bruno Haible  <bruno@clisp.org>
75760         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
75761         with known value.
75762         Reported by Gary V. Vaughan <gary@gnu.org>.
75764 2009-02-25  Bruno Haible  <bruno@clisp.org>
75766         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
75767         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
75768         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
75769         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
75770         Reported by Gary V. Vaughan <gary@gnu.org>.
75772 2009-02-25  Bruno Haible  <bruno@clisp.org>
75774         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
75775         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
75776         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
75777         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
75778         Reported by Gary V. Vaughan <gary@gnu.org>.
75780 2009-02-25  Eric Blake  <ebb9@byu.net>
75782         tests: skip fseek/ftell tests if ungetc is broken
75783         * m4/ungetc.m4: New file.
75784         * modules/fseek-tests: Split test, so ungetc dependency is
75785         separate from rest of test.
75786         * modules/fseeko-tests: Likewise.
75787         * modules/ftell-tests: Likewise.
75788         * modules/ftello-tests: Likewise.
75789         * tests/test-fseek.c (main): Isolate ungetc dependency.
75790         * tests/test-fseeko.c (main): Likewise.
75791         * tests/test-ftell.c (main): Likewise.
75792         * tests/test-ftello.c (main): Likewise.
75793         * tests/test-fseek2.sh: New file.
75794         * tests/test-fseeko2.sh: Likewise.
75795         * tests/test-ftell2.sh: Likewise.
75796         * tests/test-ftello2.sh: Likewise.
75798 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
75800         test-getaddrinfo: fix usage of skip return code 77
75801         * tests/test-gettaddrinfo.c: Return skip code 77 only
75802         for first occurrence of skip (4x77 is not 77)
75804 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
75806         strtod: avoid C99 decl-after-statement
75807         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
75809 2009-02-24  Eric Blake  <ebb9@byu.net>
75811         strtod: detect HP-UX 11.31 bug
75812         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
75813         Reported by Gary V. Vaughan.
75815 2009-02-23  Bruno Haible  <bruno@clisp.org>
75817         Fix invalid read past end of memory block.
75818         * lib/vasnprintf.c (DCHAR_SET): Define.
75819         (local_wcslen): Define only when needed.
75820         (local_strnlen, local_wcsnlen): New functions.
75821         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
75822         directives that involve a conversion ourselves.
75823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
75824         wcsnlen, mbrtowc, wcrtomb.
75825         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
75826         * tests/test-vasprintf-posix.c (test_function): Likewise.
75827         * tests/test-snprintf-posix.h (test_function): Likewise.
75828         * tests/test-sprintf-posix.h (test_function): Likewise.
75829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
75831 2009-02-22  Bruno Haible  <bruno@clisp.org>
75833         Implement new clarified decomposition of Hangul syllables.
75834         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
75835         of type LTV, return only a pairwise decomposition.
75836         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
75837         Likewise.
75838         * tests/uninorm/test-decomposition.c (main): Updated expected result.
75839         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
75840         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
75842 2009-02-22  Bruno Haible  <bruno@clisp.org>
75844         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
75845         zero-length results and shrink excess allocated memory.
75846         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
75847         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
75848         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
75849         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
75850         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
75851         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
75852         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
75853         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
75854         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
75855         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
75856         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
75857         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
75859 2009-02-21  Bruno Haible  <bruno@clisp.org>
75861         * doc/gnulib.texi: Include safe-alloc.texi earlier.
75862         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
75863         spaces after a period. Put a space between a macro name and its
75864         argument list. Trivial rewordings.
75865         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
75866         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
75867         (main): Return 0 explicitly.
75869 2009-02-21  Bruno Haible  <bruno@clisp.org>
75871         Tests for module 'uninorm/filter'.
75872         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
75873         * modules/uninorm/filter-tests: New file.
75875         New module 'uninorm/filter'.
75876         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
75877         uninorm_filter_flush, uninorm_filter_free): New declarations.
75878         * lib/uninorm/uninorm-filter.c: New file.
75879         * modules/uninorm/filter: New file.
75881 2009-02-21  Bruno Haible  <bruno@clisp.org>
75883         Tests for module 'uninorm/nfkc'.
75884         * tests/uninorm/test-nfkc.c: New file.
75885         * tests/uninorm/test-u8-nfkc.c: New file.
75886         * tests/uninorm/test-u16-nfkc.c: New file.
75887         * tests/uninorm/test-u32-nfkc.c: New file.
75888         * tests/uninorm/test-u32-nfkc-big.sh: New file.
75889         * tests/uninorm/test-u32-nfkc-big.c: New file.
75890         * modules/uninorm/nfkc-tests: New file.
75892         New module 'uninorm/nfkc'.
75893         * lib/uninorm/nfkc.c: New file.
75894         * modules/uninorm/nfkc: New file.
75896         Tests for module 'uninorm/nfkd'.
75897         * tests/uninorm/test-nfkd.c: New file.
75898         * tests/uninorm/test-u8-nfkd.c: New file.
75899         * tests/uninorm/test-u16-nfkd.c: New file.
75900         * tests/uninorm/test-u32-nfkd.c: New file.
75901         * tests/uninorm/test-u32-nfkd-big.sh: New file.
75902         * tests/uninorm/test-u32-nfkd-big.c: New file.
75903         * modules/uninorm/nfkd-tests: New file.
75905         New module 'uninorm/nfkd'.
75906         * lib/uninorm/nfkd.c: New file.
75907         * modules/uninorm/nfkd: New file.
75909         Tests for module 'uninorm/nfc'.
75910         * tests/uninorm/test-nfc.c: New file.
75911         * tests/uninorm/test-u8-nfc.c: New file.
75912         * tests/uninorm/test-u16-nfc.c: New file.
75913         * tests/uninorm/test-u32-nfc.c: New file.
75914         * tests/uninorm/test-u32-nfc-big.sh: New file.
75915         * tests/uninorm/test-u32-nfc-big.c: New file.
75916         * modules/uninorm/nfc-tests: New file.
75918         New module 'uninorm/nfc'.
75919         * lib/uninorm/nfc.c: New file.
75920         * modules/uninorm/nfc: New file.
75922         Tests for module 'uninorm/nfd'.
75923         * tests/uninorm/test-nfd.c: New file.
75924         * tests/uninorm/test-u8-nfd.c: New file.
75925         * tests/uninorm/test-u16-nfd.c: New file.
75926         * tests/uninorm/test-u32-nfd.c: New file.
75927         * tests/uninorm/test-u32-nfd-big.sh: New file.
75928         * tests/uninorm/test-u32-nfd-big.c: New file.
75929         * tests/uninorm/test-u32-normalize-big.h: New file.
75930         * tests/uninorm/test-u32-normalize-big.c: New file.
75931         * tests/uninorm/NormalizationTest.txt: New file, created from
75932         Unicode 5.1.0 NormalizationTest.txt.
75933         * modules/uninorm/nfd-tests: New file.
75935         New module 'uninorm/nfd'.
75936         * lib/uninorm/nfd.c: New file.
75937         * modules/uninorm/nfd: New file.
75939         New module 'uninorm/u32-normalize'.
75940         * lib/uninorm/u32-normalize.c: New file.
75941         * modules/uninorm/u32-normalize: New file.
75943         New module 'uninorm/u16-normalize'.
75944         * lib/uninorm/u16-normalize.c: New file.
75945         * modules/uninorm/u16-normalize: New file.
75947         New module 'uninorm/u8-normalize'.
75948         * lib/uninorm/u8-normalize.c: New file.
75949         * lib/uninorm/normalize-internal.h: New file.
75950         * lib/uninorm/u-normalize-internal.h: New file.
75951         * modules/uninorm/u8-normalize: New file.
75953         New module 'uninorm/decompose-internal'.
75954         * lib/uninorm/decompose-internal.c: New file.
75955         * modules/uninorm/decompose-internal: New file.
75957         Tests for module 'uninorm/composition'.
75958         * tests/uninorm/test-composition.c: New file.
75959         * modules/uninorm/composition-tests: New file.
75961         New module 'uninorm/composition'.
75962         * lib/uninorm/composition.c: New file.
75963         * lib/uninorm/composition-table.gperf: New file, generated by
75964         gen-uni-tables.
75965         * modules/uninorm/composition: New file.
75967         Tests for module 'uninorm/compat-decomposition'.
75968         * tests/uninorm/test-compat-decomposition.c: New file.
75969         * modules/uninorm/compat-decomposition-tests: New file.
75971         New module 'uninorm/compat-decomposition'.
75972         * lib/uninorm/decompose-internal.h: New file.
75973         * lib/uninorm/compat-decomposition.c: New file.
75974         * modules/uninorm/compat-decomposition: New file.
75976         Tests for module 'uninorm/canonical-decomposition'.
75977         * tests/uninorm/test-canonical-decomposition.c: New file.
75978         * modules/uninorm/canonical-decomposition-tests: New file.
75980         New module 'uninorm/canonical-decomposition'.
75981         * lib/uninorm/canonical-decomposition.c: New file.
75982         * modules/uninorm/canonical-decomposition: New file.
75984         Tests for module 'uninorm/decomposition'.
75985         * tests/uninorm/test-decomposition.c: New file.
75986         * modules/uninorm/decomposition-tests: New file.
75988         New module 'uninorm/decomposition'.
75989         * lib/uninorm/decomposition.c: New file.
75990         * modules/uninorm/decomposition: New file.
75992         New module 'uninorm/decomposition-table'.
75993         * lib/uninorm/decomposition-table.h: New file.
75994         * lib/uninorm/decomposition-table.c: New file.
75995         * lib/uninorm/decomposition-table1.h: New file, generated by
75996         gen-uni-tables.
75997         * lib/uninorm/decomposition-table2.h: New file, generated by
75998         gen-uni-tables.
75999         * modules/uninorm/decomposition-table: New file.
76001         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
76002         (UC_DECOMP_*): New enumeration items.
76003         (get_decomposition): New function.
76004         (struct decomp_table): New type.
76005         (output_decomposition, output_decomposition_tables): New functions.
76006         (unicode_composition_exclusions): New variable.
76007         (fill_composition_exclusions, debug_output_composition_tables): New
76008         functions.
76009         (main): Accept one more argument. Invoke fill_composition_exclusions.
76010         Output decomposition and composition tables.
76012         New module 'uninorm/base'.
76013         * lib/uninorm.h: New file.
76014         * lib/unictype.h: Update comment.
76015         * modules/uninorm/base: New file.
76017 2009-02-21  David Lutterkort  <lutter@redhat.com>
76019         Tests for module 'safe-alloc'.
76020         * tests/test-safe-alloc.c: New file.
76021         * modules/safe-alloc-tests: New file.
76023         New module 'safe-alloc'.
76024         * lib/safe-alloc.h: New file.
76025         * lib/safe-alloc.c: New file.
76026         * m4/safe-alloc.m4: New file.
76027         * modules/safe-alloc: New file.
76028         * doc/safe-alloc.texi: New file.
76029         * doc/gnulib.texi: Include it.
76030         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
76031         safe-alloc.
76033 2009-02-18  Bruno Haible  <bruno@clisp.org>
76035         Fix link error on non-glibc systems.
76036         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
76037         variable.
76038         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76040 2009-02-18  Jim Meyering  <meyering@redhat.com>
76042         fts: avoid used-uninitialized error due to recent change
76043         * lib/fts.c (fts_read): Guard uses of the new member,
76044         parent->fts_n_dirs_remaining, since it's not relevant for
76045         the parent of a directory specified on the command-line.
76047 2009-02-17  James Youngman  <jay@gnu.org>
76048             Bruno Haible  <bruno@clisp.org>
76050         * m4/include_next.m4: Reformulate comment.
76052 2009-02-16  Jim Meyering  <meyering@redhat.com>
76054         fts: add #if guards so that the fts_lgpl module still builds
76055         * lib/fts.c: Guard just-added hash-table-using parts with
76056         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
76057         Reported by Simon Josefsson.
76059 2009-02-15  Bruno Haible  <bruno@clisp.org>
76061         * modules/array-mergesort-tests: New file.
76062         * tests/test-array-mergesort.c: New file.
76064         New module 'array-mergesort'.
76065         * modules/array-mergesort: New file.
76066         * lib/array-mergesort.h: New file.
76068 2009-02-15  Bruno Haible  <bruno@clisp.org>
76070         Fix 2009-02-07 commit.
76071         * lib/gen-uni-tables.c (output_predicate, output_category,
76072         output_combclass, output_bidi_category, output_decimal_digit,
76073         output_digit, output_numeric, output_mirror, output_scripts,
76074         output_ident_category, output_simple_mapping): Fix format directives.
76075         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
76077 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
76079         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
76080         fixes are available from IBM.
76082 2009-02-13  Jim Meyering  <meyering@redhat.com>
76084         fts: arrange not to stat non-directories in more cases
76085         This makes GNU find (when it doesn't need to stat each file)
76086         *much* more efficient at traversing reiserfs file systems.
76087         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
76088         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
76089         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
76090         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
76091         (leaf_optimization_applies): New function.
76092         (LCO_hash, LCO_compare): New helper functions.
76093         (link_count_optimize_ok): New function.
76094         (fts_stat): Initialize new member (if dir).
76095         (fts_read): Decrement parent's fts_n_dirs_remaining count if
76096         we've just stat'ed a directory.  Skip the stat call when possible.
76097         ---
76098         Note this AFS-related exchange:
76099         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
76100         and note find's pioctl call in find/fstype.c.
76101         But that is necessary only if you want to enable the
76102         optimization for AFS, and for now, I don't.
76104         fts: move a function definition "up" (no semantic change)
76105         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
76106         "up" to precede upcoming use of a related function.
76108 2009-02-11  Jim Meyering  <meyering@redhat.com>
76110         fts: correct internal computation of nlinks (optimization-related)
76111         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
76112         whether the current entry is a directory, so don't test it.
76114 2009-02-10  Bruno Haible  <bruno@clisp.org>
76116         Tests for module 'uniwbrk/ulc-wordbreaks'.
76117         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
76118         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
76119         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
76121         Tests for module 'uniwbrk/u32-wordbreaks'.
76122         * modules/uniwbrk/u32-wordbreaks-tests: New file.
76123         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
76125         Tests for module 'uniwbrk/u16-wordbreaks'.
76126         * modules/uniwbrk/u16-wordbreaks-tests: New file.
76127         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
76129         Tests for module 'uniwbrk/u8-wordbreaks'.
76130         * modules/uniwbrk/u8-wordbreaks-tests: New file.
76131         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
76133 2009-02-10  Bruno Haible  <bruno@clisp.org>
76135         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
76136         property.
76137         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
76138         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
76139         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
76141 2009-02-10  Simon Josefsson  <simon@josefsson.org>
76143         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
76144         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
76146 2009-02-10  Bruno Haible  <bruno@clisp.org>
76148         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
76149         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
76150         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
76151         * lib/unilbrk/u8-possible-linebreaks.c: Update.
76152         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
76153         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
76155 2009-02-09  Simon Josefsson  <simon@josefsson.org>
76157         * lib/sockets.h (gl_fd_to_handle): New function.
76159         * tests/test-sockets.c: Call gl_fd_to_handle.
76161 2009-02-09  Bruno Haible  <bruno@clisp.org>
76163         * doc/havelib.texi: Document the conventions on bi-arch systems.
76165 2009-02-08  Bruno Haible  <bruno@clisp.org>
76167         Document the AC_LIB_LINKFLAGS macro.
76168         * doc/havelib.texi: New file, mostly written on 2005-05-24.
76169         * doc/gnulib.texi: Include it.
76171 2009-02-08  Bruno Haible  <bruno@clisp.org>
76173         Fix wrong order of sections, compared to TOC.
76174         * doc/gnulib.texi: Include relocatable-maint.texi after the
76175         "Regular expressions" node, not before.
76177 2009-02-08  Bruno Haible  <bruno@clisp.org>
76179         Tests for module 'unicase/totitle'.
76180         * modules/unicase/totitle-tests: New file.
76182         Tests for module 'unicase/tolower'.
76183         * modules/unicase/tolower-tests: New file.
76185         Tests for module 'unicase/toupper'.
76186         * modules/unicase/toupper-tests: New file.
76187         * tests/unicase/test-mapping-part1.h: New file.
76188         * tests/unicase/test-mapping-part2.h: New file.
76190         New module 'unicase/totitle'.
76191         * modules/unicase/totitle: New file.
76192         * lib/unicase/totitle.c: New file.
76194         New module 'unicase/tolower'.
76195         * modules/unicase/tolower: New file.
76196         * lib/unicase/tolower.c: New file.
76198         New module 'unicase/toupper'.
76199         * modules/unicase/toupper: New file.
76200         * lib/unicase/toupper.c: New file.
76201         * lib/unicase/simple-mapping.h: New file.
76203         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
76204         (mapping_table): New structure.
76205         (output_simple_mapping): New function.
76206         (main): Invoke output_simple_mapping_test and output_simple_mapping.
76207         * modules/gen-uni-tables (Description): Update.
76208         * lib/unicase/toupper.h: New file, automatically generated by
76209         gen-uni-tables.
76210         * lib/unicase/tolower.h: New file, automatically generated by
76211         gen-uni-tables.
76212         * lib/unicase/totitle.h: New file, automatically generated by
76213         gen-uni-tables.
76214         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
76215         gen-uni-tables.
76216         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
76217         gen-uni-tables.
76218         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
76219         gen-uni-tables.
76221         New module 'unicase/base'.
76222         * modules/unicase/base: New file.
76223         * lib/unicase.h: New file.
76225 2009-02-08  Bruno Haible  <bruno@clisp.org>
76227         New module 'uniwbrk/ulc-wordbreaks'.
76228         * modules/uniwbrk/ulc-wordbreaks: New file.
76229         * lib/uniwbrk/ulc-wordbreaks.c: New file.
76231         New module 'uniwbrk/u32-wordbreaks'.
76232         * modules/uniwbrk/u32-wordbreaks: New file.
76233         * lib/uniwbrk/u32-wordbreaks.c: New file.
76235         New module 'uniwbrk/u16-wordbreaks'.
76236         * modules/uniwbrk/u16-wordbreaks: New file.
76237         * lib/uniwbrk/u16-wordbreaks.c: New file.
76239         New module 'uniwbrk/u8-wordbreaks'.
76240         * modules/uniwbrk/u8-wordbreaks: New file.
76241         * lib/uniwbrk/u8-wordbreaks.c: New file.
76242         * lib/uniwbrk/u-wordbreaks.h: New file.
76244         New module 'uniwbrk/table'.
76245         * modules/uniwbrk/table: New file.
76246         * lib/uniwbrk/wbrktable.h: New file.
76247         * lib/uniwbrk/wbrktable.c: New file.
76249         New module 'uniwbrk/wordbreak-property'.
76250         * modules/uniwbrk/wordbreak-property: New file.
76251         * lib/uniwbrk/wordbreak-property.c: New file.
76253         * lib/gen-uni-tables.c (WBP_*): New enum items.
76254         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
76255         (unicode_org_wbp): New variable.
76256         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
76257         New functions.
76258         (wbp_table): New structure.
76259         (output_wbp, output_wbrk_tables): New functions.
76260         (main): Accept additional argument. Invoke fill_org_wbp,
76261         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
76262         output_wbrk_tables.
76263         * modules/gen-uni-tables (Description): Update.
76264         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
76265         gen-uni-tables.
76267         New module 'uniwbrk/base'.
76268         * modules/uniwbrk/base: New file.
76269         * lib/uniwbrk.h: New file.
76271 2009-02-08  Bruno Haible  <bruno@clisp.org>
76273         Update to Unicode 5.1.0.
76274         * lib/gen-uni-tables.c (is_property_alphabetic): Include
76275         U+2185..U+2188.
76276         (is_property_default_ignorable_code_point): Don't include characters
76277         of category Cc or Cs and not-a-characters.
76278         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
76279         U+0D79, U+109E, U+109F, U+A60C.
76280         * lib/unictype/bidi_of.h: Regenerated.
76281         * lib/unictype/blocks.h: Regenerated.
76282         * lib/unictype/categ_C.h: Regenerated.
76283         * lib/unictype/categ_Cf.h: Regenerated.
76284         * lib/unictype/categ_Cn.h: Regenerated.
76285         * lib/unictype/categ_L.h: Regenerated.
76286         * lib/unictype/categ_Ll.h: Regenerated.
76287         * lib/unictype/categ_Lm.h: Regenerated.
76288         * lib/unictype/categ_Lo.h: Regenerated.
76289         * lib/unictype/categ_Lu.h: Regenerated.
76290         * lib/unictype/categ_M.h: Regenerated.
76291         * lib/unictype/categ_Mc.h: Regenerated.
76292         * lib/unictype/categ_Me.h: Regenerated.
76293         * lib/unictype/categ_Mn.h: Regenerated.
76294         * lib/unictype/categ_N.h: Regenerated.
76295         * lib/unictype/categ_Nd.h: Regenerated.
76296         * lib/unictype/categ_Nl.h: Regenerated.
76297         * lib/unictype/categ_No.h: Regenerated.
76298         * lib/unictype/categ_P.h: Regenerated.
76299         * lib/unictype/categ_Pd.h: Regenerated.
76300         * lib/unictype/categ_Pe.h: Regenerated.
76301         * lib/unictype/categ_Pf.h: Regenerated.
76302         * lib/unictype/categ_Pi.h: Regenerated.
76303         * lib/unictype/categ_Po.h: Regenerated.
76304         * lib/unictype/categ_Ps.h: Regenerated.
76305         * lib/unictype/categ_S.h: Regenerated.
76306         * lib/unictype/categ_Sk.h: Regenerated.
76307         * lib/unictype/categ_Sm.h: Regenerated.
76308         * lib/unictype/categ_So.h: Regenerated.
76309         * lib/unictype/categ_of.h: Regenerated.
76310         * lib/unictype/combining.h: Regenerated.
76311         * lib/unictype/ctype_alnum.h: Regenerated.
76312         * lib/unictype/ctype_alpha.h: Regenerated.
76313         * lib/unictype/ctype_graph.h: Regenerated.
76314         * lib/unictype/ctype_lower.h: Regenerated.
76315         * lib/unictype/ctype_print.h: Regenerated.
76316         * lib/unictype/ctype_punct.h: Regenerated.
76317         * lib/unictype/ctype_upper.h: Regenerated.
76318         * lib/unictype/decdigit.h: Regenerated.
76319         * lib/unictype/digit.h: Regenerated.
76320         * lib/unictype/mirror.h: Regenerated.
76321         * lib/unictype/numeric.h: Regenerated.
76322         * lib/unictype/pr_alphabetic.h: Regenerated.
76323         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
76324         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
76325         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
76326         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
76327         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
76328         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
76329         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
76330         * lib/unictype/pr_combining.h: Regenerated.
76331         * lib/unictype/pr_dash.h: Regenerated.
76332         * lib/unictype/pr_decimal_digit.h: Regenerated.
76333         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
76334         * lib/unictype/pr_deprecated.h: Regenerated.
76335         * lib/unictype/pr_diacritic.h: Regenerated.
76336         * lib/unictype/pr_extender.h: Regenerated.
76337         * lib/unictype/pr_format_control.h: Regenerated.
76338         * lib/unictype/pr_grapheme_base.h: Regenerated.
76339         * lib/unictype/pr_grapheme_extend.h: Regenerated.
76340         * lib/unictype/pr_grapheme_link.h: Regenerated.
76341         * lib/unictype/pr_id_continue.h: Regenerated.
76342         * lib/unictype/pr_id_start.h: Regenerated.
76343         * lib/unictype/pr_ideographic.h: Regenerated.
76344         * lib/unictype/pr_ignorable_control.h: Regenerated.
76345         * lib/unictype/pr_lowercase.h: Regenerated.
76346         * lib/unictype/pr_math.h: Regenerated.
76347         * lib/unictype/pr_numeric.h: Regenerated.
76348         * lib/unictype/pr_other_alphabetic.h: Regenerated.
76349         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
76350         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
76351         * lib/unictype/pr_other_id_continue.h: Regenerated.
76352         * lib/unictype/pr_other_lowercase.h: Regenerated.
76353         * lib/unictype/pr_other_math.h: Regenerated.
76354         * lib/unictype/pr_punctuation.h: Regenerated.
76355         * lib/unictype/pr_sentence_terminal.h: Regenerated.
76356         * lib/unictype/pr_soft_dotted.h: Regenerated.
76357         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
76358         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
76359         * lib/unictype/pr_unified_ideograph.h: Regenerated.
76360         * lib/unictype/pr_uppercase.h: Regenerated.
76361         * lib/unictype/pr_xid_continue.h: Regenerated.
76362         * lib/unictype/pr_xid_start.h: Regenerated.
76363         * lib/unictype/pr_zero_width.h: Regenerated.
76364         * lib/unictype/scripts.h: Regenerated.
76365         * lib/unictype/scripts_byname.gperf: Regenerated.
76366         * lib/unictype/sy_java_ident.h: Regenerated.
76367         * lib/unilbrk/lbrkprop1.h: Regenerated.
76368         * lib/unilbrk/lbrkprop2.h: Regenerated.
76369         * tests/unictype/test-categ_C.c: Regenerated.
76370         * tests/unictype/test-categ_Cf.c: Regenerated.
76371         * tests/unictype/test-categ_Cn.c: Regenerated.
76372         * tests/unictype/test-categ_L.c: Regenerated.
76373         * tests/unictype/test-categ_Ll.c: Regenerated.
76374         * tests/unictype/test-categ_Lm.c: Regenerated.
76375         * tests/unictype/test-categ_Lo.c: Regenerated.
76376         * tests/unictype/test-categ_Lu.c: Regenerated.
76377         * tests/unictype/test-categ_M.c: Regenerated.
76378         * tests/unictype/test-categ_Mc.c: Regenerated.
76379         * tests/unictype/test-categ_Me.c: Regenerated.
76380         * tests/unictype/test-categ_Mn.c: Regenerated.
76381         * tests/unictype/test-categ_N.c: Regenerated.
76382         * tests/unictype/test-categ_Nd.c: Regenerated.
76383         * tests/unictype/test-categ_Nl.c: Regenerated.
76384         * tests/unictype/test-categ_No.c: Regenerated.
76385         * tests/unictype/test-categ_P.c: Regenerated.
76386         * tests/unictype/test-categ_Pd.c: Regenerated.
76387         * tests/unictype/test-categ_Pe.c: Regenerated.
76388         * tests/unictype/test-categ_Pf.c: Regenerated.
76389         * tests/unictype/test-categ_Pi.c: Regenerated.
76390         * tests/unictype/test-categ_Po.c: Regenerated.
76391         * tests/unictype/test-categ_Ps.c: Regenerated.
76392         * tests/unictype/test-categ_S.c: Regenerated.
76393         * tests/unictype/test-categ_Sk.c: Regenerated.
76394         * tests/unictype/test-categ_Sm.c: Regenerated.
76395         * tests/unictype/test-categ_So.c: Regenerated.
76396         * tests/unictype/test-ctype_alnum.c: Regenerated.
76397         * tests/unictype/test-ctype_alpha.c: Regenerated.
76398         * tests/unictype/test-ctype_graph.c: Regenerated.
76399         * tests/unictype/test-ctype_lower.c: Regenerated.
76400         * tests/unictype/test-ctype_print.c: Regenerated.
76401         * tests/unictype/test-ctype_punct.c: Regenerated.
76402         * tests/unictype/test-ctype_upper.c: Regenerated.
76403         * tests/unictype/test-decdigit.h: Regenerated.
76404         * tests/unictype/test-digit.h: Regenerated.
76405         * tests/unictype/test-numeric.h: Regenerated.
76406         * tests/unictype/test-pr_alphabetic.c: Regenerated.
76407         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
76408         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
76409         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
76410         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
76411         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
76412         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
76413         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
76414         * tests/unictype/test-pr_combining.c: Regenerated.
76415         * tests/unictype/test-pr_dash.c: Regenerated.
76416         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
76417         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
76418         * tests/unictype/test-pr_deprecated.c: Regenerated.
76419         * tests/unictype/test-pr_diacritic.c: Regenerated.
76420         * tests/unictype/test-pr_extender.c: Regenerated.
76421         * tests/unictype/test-pr_format_control.c: Regenerated.
76422         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
76423         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
76424         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
76425         * tests/unictype/test-pr_id_continue.c: Regenerated.
76426         * tests/unictype/test-pr_id_start.c: Regenerated.
76427         * tests/unictype/test-pr_ideographic.c: Regenerated.
76428         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
76429         * tests/unictype/test-pr_lowercase.c: Regenerated.
76430         * tests/unictype/test-pr_math.c: Regenerated.
76431         * tests/unictype/test-pr_numeric.c: Regenerated.
76432         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
76433         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
76434         Regenerated.
76435         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
76436         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
76437         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
76438         * tests/unictype/test-pr_other_math.c: Regenerated.
76439         * tests/unictype/test-pr_punctuation.c: Regenerated.
76440         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
76441         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
76442         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
76443         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
76444         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
76445         * tests/unictype/test-pr_uppercase.c: Regenerated.
76446         * tests/unictype/test-pr_xid_continue.c: Regenerated.
76447         * tests/unictype/test-pr_xid_start.c: Regenerated.
76448         * tests/unictype/test-pr_zero_width.c: Regenerated.
76450         Update to Unicode 5.1.0.
76451         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
76452         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
76453         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
76454         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
76455         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
76456         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
76457         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
76458         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
76459         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
76460         (nonspacing_table_ind): Update.
76461         * tests/uniwidth/test-uc_width2.sh: Update expected result.
76463         Update to Unicode 5.1.0.
76464         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
76465         code transform.
76466         * lib/uniname/uniname.c (unicode_character_name,
76467         unicode_name_character): Add the range 0x1Fxxx to the code transform.
76468         * lib/uniname/uninames.h: Regenerated.
76469         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
76471 2009-02-07  Bruno Haible  <bruno@clisp.org>
76473         Merge gen-ctype and gen-lbrk into a single program.
76474         * lib/gen-uni-tables.c: New file, incorporating
76475         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
76476         Add directory prefixes to the names of the generated files.
76477         * lib/unictype/gen-ctype.c: Remove file.
76478         * lib/unilbrk/gen-lbrk.c: Remove file.
76479         * modules/gen-uni-tables: New file.
76480         * modules/unictype/gen-ctype: Remove file.
76481         * modules/unilbrk/gen-lbrk: Remove file.
76483 2009-02-07  Bruno Haible  <bruno@clisp.org>
76485         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
76487         New module 'unistr/u32-strcoll'.
76488         * modules/unistr/u32-strcoll: New file.
76489         * lib/unistr/u32-strcoll.c: New file.
76491         New module 'unistr/u16-strcoll'.
76492         * modules/unistr/u16-strcoll: New file.
76493         * lib/unistr/u16-strcoll.c: New file.
76495         New module 'unistr/u8-strcoll'.
76496         * modules/unistr/u8-strcoll: New file.
76497         * lib/unistr/u8-strcoll.c: New file.
76498         * lib/unistr/u-strcoll.h: New file.
76500 2009-02-07  Bruno Haible  <bruno@clisp.org>
76502         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
76503         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
76504         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
76505         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
76506         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
76507         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
76509 2009-02-07  Bruno Haible  <bruno@clisp.org>
76511         Make 64-bit clean.
76512         * lib/unictype/gen-ctype.c (output_predicate, output_category,
76513         output_combclass, output_bidi_category, output_decimal_digit,
76514         output_digit, output_numeric, output_mirror, output_scripts,
76515         output_ident_category): Use proper width specifier in format strings.
76517 2009-02-07  Bruno Haible  <bruno@clisp.org>
76519         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
76520         failure behaviour.
76522 2009-02-07  Jim Meyering  <meyering@redhat.com>
76524         regex: avoid compilation failure with upcoming gcc-4.4
76525         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
76526         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
76527         "... error: integer overflow in preprocessor expression".
76529 2009-02-05  Ben Pfaff  <blp@gnu.org>
76531         Fix link errors on Windows when close module is used.
76532         * modules/close: Add $(LIB_CLOSE) to Link section.
76533         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
76534         $(LIB_CLOSE) on Windows.
76536 2009-02-05  Jim Meyering  <meyering@redhat.com>
76538         still avoid unused-parameter warnings, but do it cleanly
76539         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
76540         (get_fs_usage): Cast to void instead.
76541         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
76542         (dev_from_mount_options, read_file_system_list): Cast to void.
76543         Prompted by Bruno Haible.
76545 2009-02-04  Jim Meyering  <meyering@redhat.com>
76547         fsusage.c: correct copyright year
76548         * lib/fsusage.c: Reflect year in which the change is pushed into
76550         avoid misc. warnings
76551         * lib/fsusage.c (UNUSED_PARAM): Define.
76552         (get_fs_usage): Mark parameter "disk" as unused.
76553         * lib/getugroups.c (getgrent): Use "void" in prototype.
76554         * lib/mountlist.c: Mark unused parameters.
76555         (read_file_system_list): Declare a local with "const".
76556         * lib/nanosleep.c (getnow): Declare static.
76557         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
76559         dirfd: set errno upon failure
76560         * lib/dirfd.c: Include <errno.h>.
76561         Set errno to ENOTSUP when returning -1.
76562         * modules/dirfd (Depends-on): Add errno.
76563         Suggested by John Kodis <kodis@comcast.net>.
76565 2009-02-01  Bruno Haible  <bruno@clisp.org>
76567         Don't assume sizeof (long) >= sizeof (void *).
76568         * lib/memcmp.c: Include stdint.h.
76569         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
76570         srcp2 to 'const byte *'.
76571         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
76572         types to uintptr_t.
76573         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
76574         * modules/memcmp (Depends-on): Add stdint.
76575         Reported by Ozkan Sezer <sezeroz@gmail.com>.
76577 2009-01-30  Eric Blake  <ebb9@byu.net>
76579         fix more require-before-expand issues
76580         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
76581         expand, AC_PROG_AWK.
76582         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
76584 2009-01-28  Eric Blake  <ebb9@byu.net>
76586         version-etc: use consistent URL formatting
76587         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
76588         Improve formatting.  Use fputs for string without %.
76590 2009-01-28  Jim Meyering  <meyering@redhat.com>
76592         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
76593         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
76594         "underquoted definition of NAME" from autoconf-2.59.
76596 2009-01-28  Bruno Haible  <bruno@clisp.org>
76598         * doc/gnulib.texi: Add "Obsolete modules" to index.
76600 2009-01-28  Jim Meyering  <meyering@redhat.com>
76602         useless-if-before-free: recognize more variants
76603         * build-aux/useless-if-before-free: Also recognize e.g.,
76604         if (NULL != p) free (p);
76606 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
76608         test-getaddrinfo: skip (don't fail) this test when there's no network
76609         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
76610         on the presumption that it means you lack network access.
76612 2009-01-26  Jim Meyering  <meyering@redhat.com>
76614         fflush: avoid warnings on modern systems
76615         * lib/fflush.c (rpl_fflush): Move declarations of locals,
76616         pos and result, into scopes where they're used.
76618 2009-01-26  Eric Blake  <ebb9@byu.net>
76620         Silence warning reintroduced by recent extensions patch.
76621         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
76622         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
76623         autoconf.
76625         Backport improved autoconf semantics of AC_DEFUN_ONCE.
76626         * m4/00gnulib.m4: New file.
76627         * gnulib-tool (func_get_filelist): Always use it.
76628         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
76629         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
76631 2009-01-25  Bruno Haible  <bruno@clisp.org>
76633         Make test-quotearg work on MacOS X and AIX.
76634         * tests/test-quotearg.sh: New file.
76635         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
76636         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
76637         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
76638         include <libintl.h>.
76639         (fake_locale): Remove variable.
76640         (gettext, dgettext, dcgettext): Remove functions.
76641         (main): Instead of setting a fake locale, set a real locale. Call
76642         textdomain and bindtextdomain.
76643         * modules/quotearg-tests (Files): Add the new files.
76644         (Depends-on): Add gettext, setenv, unsetenv.
76645         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
76646         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
76647         Augment TESTS_ENVIRONMENT.
76649 2009-01-25  Bruno Haible  <bruno@clisp.org>
76651         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
76652         fr_FR.ISO8859-1 locale on MacOS X.
76653         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
76654         ja_JP.eucJP locale on MacOS X.
76655         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
76656         zh_CN.GB18030 locale on MacOS X.
76658 2009-01-25  Bruno Haible  <bruno@clisp.org>
76660         Avoid link errors on MacOS X 10.3.
76661         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
76662         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
76664 2009-01-25  Bruno Haible  <bruno@clisp.org>
76666         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
76667         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
76668         * modules/pipe (Files): Remove m4/posix_spawn.m4.
76669         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
76670         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
76671         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
76672         posix_spawnattr_init, posix_spawnattr_setsigmask,
76673         posix_spawnattr_setflags, posix_spawnattr_destroy.
76675         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
76676         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
76677         * modules/execute (Files): Remove m4/posix_spawn.m4.
76678         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
76679         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
76680         posix_spawnattr_init, posix_spawnattr_setsigmask,
76681         posix_spawnattr_setflags, posix_spawnattr_destroy.
76683 2009-01-25  Bruno Haible  <bruno@clisp.org>
76685         * lib/glthread/threadlib.c: Include <stdlib.h>.
76687 2009-01-25  Bruno Haible  <bruno@clisp.org>
76689         * lib/glthread/threadlib.c (dummy): New declaration.
76691 2009-01-25  Bruno Haible  <bruno@clisp.org>
76693         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
76694         multibyte characters also for the GB18030 encoding. Don't crash when
76695         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
76697 2009-01-25  Bruno Haible  <bruno@clisp.org>
76699         Avoid redefining 'struct random_data' on OSF/1 5.1.
76700         * lib/stdlib.in.h: Include <random.h> if it exists.
76701         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
76702         HAVE_RANDOM_H. Include <random.h> when testing whether
76703         'struct random_data' exists.
76704         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
76706 2009-01-25  Bruno Haible  <bruno@clisp.org>
76708         Don't install charset.alias on MacOS X >= 10.3.
76709         * lib/localcharset.c (DARWIN7): New macro.
76710         (get_charset_aliases): Hardcode the result for Darwin7.
76711         * modules/localcharset (install-exec-local): Don't install
76712         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
76714 2009-01-25  Bruno Haible  <bruno@clisp.org>
76716         Don't install charset.alias on mingw and Cygwin.
76717         * modules/localcharset (install-exec-local): Don't install
76718         charset.alias on mingw and Cygwin, if the file does not yet exist.
76719         The result for these platforms is hardcoded in localcharset.c.
76721 2009-01-25  Bruno Haible  <bruno@clisp.org>
76723         Make it possible again to use AC_GNU_SOURCE together with gnulib.
76724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
76725         before requiring AC_USE_SYSTEM_EXTENSIONS.
76727 2009-01-25  Jim Meyering  <meyering@redhat.com>
76729         c-strtod: avoid warnings
76730         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
76731         "assignment discards qualifiers from pointer target type" warnings.
76733 2009-01-24  Bruno Haible  <bruno@clisp.org>
76735         Add support for non-UTF-8 locales on MacOS X.
76736         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
76737         canonical encodings. For Darwin 7 and newer, don't map traditional
76738         encodings to UTF-8.
76739         Reported by Vincent Lefevre <vincent@vinc17.org>
76740         at <http://savannah.gnu.org/bugs/?25235>.
76742 2009-01-24  Bruno Haible  <bruno@clisp.org>
76744         * doc/gnulib.texi (Obsolete modules): New section.
76745         Reported by Mike Frysinger <vapier@gentoo.org>.
76747 2009-01-24  Bruno Haible  <bruno@clisp.org>
76749         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
76750         (%.dvi): New rule.
76752 2009-01-24  Bruno Haible  <bruno@clisp.org>
76754         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
76755         Reported by Eric Blake.
76757 2009-01-24  Bruno Haible  <bruno@clisp.org>
76759         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
76760         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
76761         Reported by Gary V. Vaughan <gary@gnu.org>.
76763 2009-01-24  Bruno Haible  <bruno@clisp.org>
76765         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
76767 2009-01-23  Bruno Haible  <bruno@clisp.org>
76769         Make c-strtod, c-strtold usable in libraries.
76770         * lib/c-strtod.c: Include string.h instead of xalloc.h.
76771         (C_STRTOD): Call strdup instead of xstrdup.
76772         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
76773         * modules/c-strtold (Depends-on): Likewise.
76774         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
76775         * NEWS: Mention the change.
76776         Reported by Michael Gold <mgold@ncf.ca>.
76778 2009-01-23  Jim Meyering  <meyering@redhat.com>
76780         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
76781         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
76782         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
76784 2009-01-23  Simon Josefsson  <simon@josefsson.org>
76786         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
76787         GNU CoreUtils.
76788         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
76789         * modules/version-etc (Description): Update.
76791 2009-01-22  Bruno Haible  <bruno@clisp.org>
76793         Cache the C locale object.
76794         * lib/c-strtod.c (c_locale_cache): New variable.
76795         (c_locale): New function.
76796         (C_STRTOD): Use it, and don't call freelocale.
76797         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
76798         Suggested by Paolo Bonzini.
76800 2009-01-21  Bruno Haible  <bruno@clisp.org>
76802         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
76803         conditions other than overflow.
76805 2009-01-21  Bruno Haible  <bruno@clisp.org>
76807         * lib/c-strtod.c: Include errno.h.
76808         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
76809         value from STRTOD_L and STRTOD.
76811 2009-01-21  Bruno Haible  <bruno@clisp.org>
76812         and Jim Meyering  <meyering@redhat.com>
76814         nanosleep: skip configure test (fail it) for apple universal builds
76815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
76816         universal builds, assume that nanosleep does not work.
76817         * modules/nanosleep (Depends-on): Add multiarch.
76819         mktime: skip configure test (fail it) for apple universal builds
76820         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
76821         universal builds, assume that mktime does not work.
76822         * modules/mktime (Depends-on): Add multiarch.
76824 2009-01-21  Eric Blake  <ebb9@byu.net>
76826         multiarch: avoid expand-before-require warning
76827         * modules/multiarch (configure.ac): Require, rather than expand,
76828         gl_MULTIARCH.
76829         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
76830         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
76831         enforce that all clients require it.  Partial reversion of
76832         2008-12-29 patch.
76834         error: avoid expand-before-require warning
76835         * modules/errno (configure.ac): Require, rather than expand,
76836         gl_HEADER_ERRNO_H.
76837         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
76838         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
76839         enforce that all clients require it.
76841         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
76842         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
76843         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
76844         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
76846 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
76848         Revert:
76849         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
76851         regex: do not depend on obsolete modules.
76852         * modules/regex: Remove memcmp and memmove.
76854 2009-01-20  Bruno Haible  <bruno@clisp.org>
76856         Make the 'link' module link on Windows NT 4.
76857         * lib/link.c (_WIN32_WINNT): Don't define.
76858         (CreateHardLinkFuncType): New type.
76859         (CreateHardLinkFunc, initialized): New variables.
76860         (initialize): New function.
76861         (link): Invoke CreateHardLink indirectly through the function pointer.
76863 2009-01-20  Bruno Haible  <bruno@clisp.org>
76865         Fix compilation failure on mingw.
76866         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
76868 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
76870         * doc/c-strtod.texi: Mention a couple of restrictions.
76872 2009-01-20  Jim Meyering  <meyering@redhat.com>
76874         gettimeofday: move more declarations out of functions
76875         * lib/gettimeofday.c: Move extern declarations of tzset and
76876         gmtime out of containing functions.  Prompted by Bruno Haible.
76878 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
76880         regex: do not depend on obsolete modules.
76881         * modules/regex: Remove memcmp and memmove.
76883 2009-01-19  Bruno Haible  <bruno@clisp.org>
76885         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
76886         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
76887         gl_BIGENDIAN, not AC_C_BIGENDIAN.
76888         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
76889         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
76891 2009-01-19  Bruno Haible  <bruno@clisp.org>
76893         * tests/test-link.c: Include <errno.h>.
76894         (main): Exit with code 77 when a hard link cannot be created due to
76895         the file system.
76896         * tests/test-link.sh: Skip test when a hard link cannot be created due
76897         to the file system.
76898         Suggested by Eric Blake.
76900 2009-01-19  Martin Lambers  <marlam@marlam.de>
76902         * modules/link-tests: New file.
76903         * tests/test-link.sh: New file.
76904         * tests/test-link.c: New file.
76906 2009-01-19  Eric Blake  <ebb9@byu.net>
76908         doc: mention another function added in cygwin 1.7.0
76909         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
76910         Another new function in cygwin 1.7.
76912 2009-01-19  Bruno Haible  <bruno@clisp.org>
76914         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
76915         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
76916         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
76917         gl_BIGENDIAN, not AC_C_BIGENDIAN.
76918         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
76919         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
76920         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
76921         * m4/md4.m4 (gl_MD4): Likewise.
76922         * m4/md5.m4 (gl_MD5): Likewise.
76923         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
76924         * m4/sha1.m4 (gl_SHA1): Likewise.
76925         * m4/sha256.m4 (gl_SHA256): Likewise.
76926         * m4/sha512.m4 (gl_SHA512): Likewise.
76928 2009-01-19  Bruno Haible  <bruno@clisp.org>
76930         * modules/uniname/uniname-tests (Depends-on): Add progname.
76931         * tests/uniname/test-uninames.c: Include progname.h.
76932         (main): Call set_program_name.
76934         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
76935         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
76936         (main): Call set_program_name.
76938         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
76939         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
76940         (main): Call set_program_name.
76942         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
76943         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
76944         (main): Call set_program_name.
76946         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
76947         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
76948         (main): Call set_program_name.
76950         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
76951         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
76952         (main): Call set_program_name.
76954         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
76955         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
76956         (main): Call set_program_name.
76958         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
76959         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
76960         (main): Call set_program_name.
76962         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
76963         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
76964         (main): Call set_program_name.
76966 2009-01-19  Eric Blake  <ebb9@byu.net>
76968         test-unistd: test previous patch
76969         * tests/test-unistd.c: Test *_FILENO macros.
76971         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
76972         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76973         Guarantee a definition.
76974         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
76975         * modules/unistd-safer (Depends-on): Add dependency on unistd.
76976         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
76977         * lib/dup-safer.c (STDERR_FILENO): Likewise.
76978         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76979         Likewise.
76980         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
76981         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
76982         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
76983         Likewise.
76984         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
76985         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
76986         (STDERR_FILENO): Likewise.
76987         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
76988         (STDERR_FILENO): Likewise.
76989         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
76990         (STDERR_FILENO): Likewise.
76991         Reported by Elbert Pol.
76993 2009-01-19  Eric Blake  <ebb9@byu.net>
76995         doc: mention more functions added in cygwin 1.7.0
76996         * doc/posix-functions/abort.texi (abort): Update wording related
76997         to cygwin.
76998         * doc/posix-functions/daylight.texi (daylight): Likewise.
76999         * doc/posix-functions/optarg.texi (optarg): Likewise.
77000         * doc/posix-functions/optarg.texi (opterr): Likewise.
77001         * doc/posix-functions/optarg.texi (optind): Likewise.
77002         * doc/posix-functions/optarg.texi (optopt): Likewise.
77003         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
77004         worked in 1.5.x, and was withdrawn in 1.7.
77005         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
77006         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
77007         cygwin versions.
77008         * doc/posix-functions/perror.texi (perror): Likewise.
77009         * doc/posix-functions/printf.texi (printf): Likewise.
77010         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
77011         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
77012         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
77013         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
77014         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
77015         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
77016         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
77017         Likewise.
77018         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
77019         Likewise.
77020         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
77021         this function.
77022         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
77023         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
77024         Likewise.
77025         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
77026         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
77027         * doc/posix-functions/confstr.texi (confstr): Likewise.
77028         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
77029         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
77030         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
77031         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
77032         * doc/posix-functions/fputws.texi (fputws): Likewise.
77033         * doc/posix-functions/fwide.texi (fwide): Likewise.
77034         * doc/posix-functions/getwc.texi (getwc): Likewise.
77035         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
77036         * doc/posix-functions/putwc.texi (putwc): Likewise.
77037         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
77038         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
77039         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
77040         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
77041         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
77042         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
77043         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
77044         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
77045         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
77046         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
77047         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
77049 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
77051         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
77052         * lib/ioctl.c: Include <sys/ioctl.h>.
77054 2009-01-19  Simon Josefsson  <simon@josefsson.org>
77056         * modules/getdate-tests (Depends-on): Add progname.
77057         * tests/test-getdate.c: Use progname module, to avoid link errors
77058         on non-glibc systems.
77060 2009-01-18  Simon Josefsson  <simon@josefsson.org>
77062         * modules/filenamecat-tests (Depends-on): Add progname.
77063         * modules/fstrcmp-tests (Depends-on): Likewise.
77065         * tests/test-filenamecat.c: Use progname module, to avoid link
77066         errors on non-glibc systems.
77067         * tests/test-fstrcmp.c: Likewise.
77069 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
77071         gettimeofday: avoid warning: nested extern declaration of 'localtime'
77072         * lib/gettimeofday.c: Move extern declaration out of function.
77074 2009-01-18  Bruno Haible  <bruno@clisp.org>
77076         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
77077         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
77078         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
77080 2009-01-18  Bruno Haible  <bruno@clisp.org>
77082         * lib/strftime.c (MEMPCPY): Remove unused macro.
77083         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
77085 2009-01-18  Martin Lambers  <marlam@marlam.de>
77087         New module 'link'.
77088         * lib/unistd.in.h (link): New declaration.
77089         * lib/link.c: New file.
77090         * m4/link.m4: New file.
77091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
77092         HAVE_LINK.
77093         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
77094         * modules/link: New file.
77095         * doc/posix-functions/link.texi: Mention the new module.
77097 2009-01-18  Bruno Haible  <bruno@clisp.org>
77099         * tests/test-avltree_list.c (main): Call set_program_name.
77100         * tests/test-avltree_oset.c (main): Likewise.
77101         * tests/test-obstack-printf.c: Include progname.h.
77102         (main): Call set_program_name.
77103         * tests/test-quotearg.c: Include progname.h.
77104         (main): Call set_program_name.
77105         * tests/test-xmemdup0.c: Include progname.h.
77106         (main): Call set_program_name.
77108 2009-01-18  Bruno Haible  <bruno@clisp.org>
77110         New module 'alphasort'.
77111         * lib/dirent.in.h (alphasort): New declaration.
77112         * lib/alphasort.c: New file, from glibc with modifications.
77113         * m4/alphasort.m4: New file.
77114         * modules/alphasort: New file.
77115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
77116         HAVE_ALPHASORT.
77117         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
77118         HAVE_ALPHASORT.
77119         * doc/posix-functions/alphasort.texi: Mention the new module and the
77120         portability problems.
77122 2009-01-18  Bruno Haible  <bruno@clisp.org>
77124         New module 'scandir'.
77125         * lib/dirent.in.h (scandir): New declaration.
77126         * lib/scandir.c: New file, from glibc with modifications.
77127         * m4/scandir.m4: New file.
77128         * modules/scandir: New file.
77129         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
77130         HAVE_SCANDIR.
77131         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
77132         HAVE_SCANDIR.
77133         * doc/posix-functions/scandir.texi: Mention the new module and the
77134         portability problems.
77136 2009-01-17  Bruno Haible  <bruno@clisp.org>
77138         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
77139         Update documentation.
77140         (func_remove_suffix): Escape all dots in the suffix. Update
77141         documentation.
77142         (func_filter_filelist): Update documentation.
77143         Reported by Ralf Wildenhues.
77145 2009-01-17  Bruno Haible  <bruno@clisp.org>
77147         * modules/dprintf-posix-tests: New file.
77148         * tests/test-dprintf-posix.sh: New file.
77149         * tests/test-dprintf-posix.c: New file.
77151         New modules 'dprintf', 'dprintf-posix'.
77152         * lib/stdio.in.h (dprintf): New declaration.
77153         * lib/dprintf.c: New file.
77154         * m4/dprintf.m4: New file.
77155         * m4/dprintf-posix.m4: New file.
77156         * modules/dprintf: New file.
77157         * modules/dprintf-posix: New file.
77158         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
77159         HAVE_DPRINTF, REPLACE_DPRINTF.
77160         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
77161         HAVE_DPRINTF, REPLACE_DPRINTF.
77162         * doc/posix-functions/dprintf.texi: Mention the new modules.
77164 2009-01-17  Bruno Haible  <bruno@clisp.org>
77166         * modules/vdprintf-posix-tests: New file.
77167         * tests/test-vdprintf-posix.sh: New file.
77168         * tests/test-vdprintf-posix.c: New file.
77170         New modules 'vdprintf', 'vdprintf-posix'.
77171         * lib/stdio.in.h (vdprintf): New declaration.
77172         * lib/vdprintf.c: New file.
77173         * m4/vdprintf.m4: New file.
77174         * m4/vdprintf-posix.m4: New file.
77175         * modules/vdprintf: New file.
77176         * modules/vdprintf-posix: New file.
77177         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
77178         HAVE_VDPRINTF, REPLACE_VDPRINTF.
77179         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
77180         HAVE_VDPRINTF, REPLACE_VDPRINTF.
77181         * doc/posix-functions/vdprintf.texi: Mention the new modules.
77183 2009-01-17  Bruno Haible  <bruno@clisp.org>
77185         Fix replacement of fopen on mingw.
77186         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
77187         mingw.
77189 2009-01-17  Bruno Haible  <bruno@clisp.org>
77191         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
77192         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
77194 2009-01-17  Bruno Haible  <bruno@clisp.org>
77196         Avoid test-fflush2.sh failure on mingw.
77197         * tests/test-fflush2.c: Include binary-io.h.
77198         (main): Put standard input into binary mode.
77199         * modules/fflush-tests (Depends-on): Add binary-io.
77201 2009-01-17  Bruno Haible  <bruno@clisp.org>
77203         * lib/wchar.in.h: In another particular situation, include only the
77204         system's <wchar.h> file.
77205         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
77206         Reported by Albert Chin-A-Young <china@thewrittenword.com>
77207         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
77209 2009-01-17  Bruno Haible  <bruno@clisp.org>
77211         Support for stripping executables in --enable-relocatable.
77212         * build-aux/install-reloc: Expect one more argument, or an environment
77213         variable RELOC_STRIP_PROG. If set, strip the destination program and
77214         its wrapper.
77215         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
77216         RELOC_STRIP_PROG.
77217         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
77218         to set RELOCATABLE_STRIP.
77219         * NEWS: Mention the new Makefile requirement.
77221 2009-01-17  Bruno Haible  <bruno@clisp.org>
77223         * build-aux/install-reloc: Remove debugging information left over by
77224         C compiler on MacOS X.
77226 2009-01-17  Bruno Haible  <bruno@clisp.org>
77228         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
77229         * lib/progreloc.c (find_executable): Fix type of pointer passed to
77230         _NSGetExecutablePath.
77232 2009-01-16  Jim Meyering  <meyering@redhat.com>
77234         strerror: avoid warnings about discarding "const"
77235         * lib/strerror.c (rpl_strerror): Instead of returning a const
77236         string from each and every "case", use a variable, and add a single
77237         cast after the switch.
77239 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
77241         * lib/arpa_inet.in.h: Add extern "C" block for C++.
77243 2009-01-16  Bruno Haible  <bruno@clisp.org>
77245         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
77246         array initializer syntax that also works in C++ mode.
77247         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77249 2009-01-16  Jim Meyering  <meyering@redhat.com>
77251         poll: suppress a warning
77252         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
77253         to ignore "...unsigned expression < 0 is always false" warnings.
77255 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
77257         poll: remove declarations of unused variables
77258         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
77259         sockbuf and optlen.
77261 2009-01-15  Bruno Haible  <bruno@clisp.org>
77263         Make fflush-after-ungetc POSIX compliant on BSD systems.
77264         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
77265         (clear_ungetc_buffer): Implement also for other systems.
77266         (rpl_fflush): On glibc systems, invoke
77267         clear_ungetc_buffer_preserving_position. Otherwise, invoke
77268         clear_ungetc_buffer after fetching the stream's position, not before.
77270 2009-01-15  Bruno Haible  <bruno@clisp.org>
77272         Make fflush-after-ungetc POSIX compliant on glibc systems.
77273         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
77274         after ungetc.
77275         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
77276         (rpl_fflush): On glibc systems, simply call the system's fflush
77277         function after clearing the ungetc buffer.
77278         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
77279         Instead, lseek only to the end of file, then use the system's fseeko
77280         for the rest. On glibc systems, reset the EOF indicator bit.
77282 2009-01-15  Jim Meyering  <meyering@redhat.com>
77284         openmp.m4: revert quote-adding change, for portability to older autoconf
77285         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
77286         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
77287         Simon Josefsson noticed the problem when using autoconf-2.61.
77289 2009-01-15  Bruno Haible  <bruno@clisp.org>
77291         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
77292         * tests/test-fflush2.c (ASSERT): Always fail.
77293         (main): Add two tests for fflush() after ungetc(), taking into account
77294         the Austin Group's clarification.
77295         Suggested by Eric Blake.
77297 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
77299         mktime.m4: remove K&R-style function prototypes
77300         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
77301         for the Sun C++ compiler.
77303 2009-01-14  Bruno Haible  <bruno@clisp.org>
77305         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
77306         while including <wchar.h>.
77307         * lib/wchar.in.h: In two particular situations on HP-UX, include only
77308         the system's <wchar.h> file.
77309         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77311 2009-01-14  Bruno Haible  <bruno@clisp.org>
77313         * m4/csharp.m4: Don't mention gettext on the serial number line.
77314         * m4/csharpexec.m4: Likewise.
77315         * m4/eaccess.m4: Likewise.
77316         * m4/javaexec.m4: Likewise.
77317         * m4/sig_atomic_t.m4: Likewise.
77318         * m4/tmpdir.m4: Likewise.
77319         * m4/intldir.m4: Bump gettext version.
77320         * m4/lib-ld.m4: Likewise.
77322 2009-01-14  Bruno Haible  <bruno@clisp.org>
77324         * lib/progname.c (set_program_name): Add more comments.
77325         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
77327 2009-01-14  Simon Josefsson  <simon@josefsson.org>
77329         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
77330         were sys/stat.h does not define it.
77332 2009-01-14  Jim Meyering  <meyering@redhat.com>
77334         many *.m4 files: improve m4 quoting
77335         99% of this change was performed by running the following commands:
77336         git ls-files | grep '\.m4$' | xargs perl -pi \
77337           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
77338           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
77339           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
77340           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
77341         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
77342         The remainder were to add Copyright dates, increment serial numbers,
77343         undo some changes in comments, exclude m4/intl.m4, and add quotes
77344         around the "1" in ",1" where the unusual spacing prohibited the
77345         above regexps from doing the job.  For more details, see
77346         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
77347         * m4/acl.m4: Modified.
77348         * m4/afs.m4: Likewise.
77349         * m4/alloca.m4: Likewise.
77350         * m4/argp.m4: Likewise.
77351         * m4/argz.m4: Likewise.
77352         * m4/atexit.m4: Likewise.
77353         * m4/bison-i18n.m4: Likewise.
77354         * m4/bison.m4: Likewise.
77355         * m4/byteswap.m4: Likewise.
77356         * m4/c-stack.m4: Likewise.
77357         * m4/c-strtod.m4: Likewise.
77358         * m4/calloc.m4: Likewise.
77359         * m4/canonicalize-lgpl.m4: Likewise.
77360         * m4/chown.m4: Likewise.
77361         * m4/clock_time.m4: Likewise.
77362         * m4/codeset.m4: Likewise.
77363         * m4/copy-file.m4: Likewise.
77364         * m4/csharp.m4: Likewise.
77365         * m4/csharpcomp.m4: Likewise.
77366         * m4/csharpexec.m4: Likewise.
77367         * m4/d-ino.m4: Likewise.
77368         * m4/d-type.m4: Likewise.
77369         * m4/dirfd.m4: Likewise.
77370         * m4/double-slash-root.m4: Likewise.
77371         * m4/eaccess.m4: Likewise.
77372         * m4/eealloc.m4: Likewise.
77373         * m4/environ.m4: Likewise.
77374         * m4/errno_h.m4: Likewise.
77375         * m4/euidaccess.m4: Likewise.
77376         * m4/execute.m4: Likewise.
77377         * m4/fatal-signal.m4: Likewise.
77378         * m4/fchdir.m4: Likewise.
77379         * m4/fcntl_h.m4: Likewise.
77380         * m4/fileblocks.m4: Likewise.
77381         * m4/filenamecat.m4: Likewise.
77382         * m4/findprog.m4: Likewise.
77383         * m4/flexmember.m4: Likewise.
77384         * m4/fnmatch.m4: Likewise.
77385         * m4/fopen.m4: Likewise.
77386         * m4/fpending.m4: Likewise.
77387         * m4/fprintf-posix.m4: Likewise.
77388         * m4/free.m4: Likewise.
77389         * m4/frexp.m4: Likewise.
77390         * m4/frexpl.m4: Likewise.
77391         * m4/fsusage.m4: Likewise.
77392         * m4/ftruncate.m4: Likewise.
77393         * m4/gc-camellia.m4: Likewise.
77394         * m4/gc-random.m4: Likewise.
77395         * m4/gc.m4: Likewise.
77396         * m4/getaddrinfo.m4: Likewise.
77397         * m4/getcwd-abort-bug.m4: Likewise.
77398         * m4/getcwd-path-max.m4: Likewise.
77399         * m4/getdate.m4: Likewise.
77400         * m4/getdomainname.m4: Likewise.
77401         * m4/getgroups.m4: Likewise.
77402         * m4/gethostname.m4: Likewise.
77403         * m4/gethrxtime.m4: Likewise.
77404         * m4/getline.m4: Likewise.
77405         * m4/getloadavg.m4: Likewise.
77406         * m4/getndelim2.m4: Likewise.
77407         * m4/getpass.m4: Likewise.
77408         * m4/gettext.m4: Likewise.
77409         * m4/gettime.m4: Likewise.
77410         * m4/gettimeofday.m4: Likewise.
77411         * m4/gnulib-common.m4: Likewise.
77412         * m4/group-member.m4: Likewise.
77413         * m4/host-os.m4: Likewise.
77414         * m4/iconv.m4: Likewise.
77415         * m4/iconv_open.m4: Likewise.
77416         * m4/inet_ntop.m4: Likewise.
77417         * m4/inet_pton.m4: Likewise.
77418         * m4/inline.m4: Likewise.
77419         * m4/intldir.m4: Likewise.
77420         * m4/intlmacosx.m4: Likewise.
77421         * m4/intmax.m4: Likewise.
77422         * m4/intmax_t.m4: Likewise.
77423         * m4/inttypes.m4: Likewise.
77424         * m4/inttypes_h.m4: Likewise.
77425         * m4/inttypes-pri.m4: Likewise.
77426         * m4/isapipe.m4: Likewise.
77427         * m4/isnand.m4: Likewise.
77428         * m4/isnanf.m4: Likewise.
77429         * m4/isnanl.m4: Likewise.
77430         * m4/javacomp.m4: Likewise.
77431         * m4/javaexec.m4: Likewise.
77432         * m4/jm-winsz1.m4: Likewise.
77433         * m4/jm-winsz2.m4: Likewise.
77434         * m4/lchown.m4: Likewise.
77435         * m4/lcmessage.m4: Likewise.
77436         * m4/ldexpl.m4: Likewise.
77437         * m4/lib-ld.m4: Likewise.
77438         * m4/lib-link.m4: Likewise.
77439         * m4/libsigsegv.m4: Likewise.
77440         * m4/link-follow.m4: Likewise.
77441         * m4/localcharset.m4: Likewise.
77442         * m4/locale-fr.m4: Likewise.
77443         * m4/locale-ja.m4: Likewise.
77444         * m4/locale-tr.m4: Likewise.
77445         * m4/locale-zh.m4: Likewise.
77446         * m4/lock.m4: Likewise.
77447         * m4/longlong.m4: Likewise.
77448         * m4/ls-mntd-fs.m4: Likewise.
77449         * m4/lstat.m4: Likewise.
77450         * m4/malloc.m4: Likewise.
77451         * m4/mathl.m4: Likewise.
77452         * m4/mbrtowc.m4: Likewise.
77453         * m4/mbstate_t.m4: Likewise.
77454         * m4/mbswidth.m4: Likewise.
77455         * m4/memchr.m4: Likewise.
77456         * m4/memcmp.m4: Likewise.
77457         * m4/memcpy.m4: Likewise.
77458         * m4/memmem.m4: Likewise.
77459         * m4/memmove.m4: Likewise.
77460         * m4/mempcpy.m4: Likewise.
77461         * m4/memrchr.m4: Likewise.
77462         * m4/memset.m4: Likewise.
77463         * m4/minmax.m4: Likewise.
77464         * m4/mkdir-slash.m4: Likewise.
77465         * m4/mkdtemp.m4: Likewise.
77466         * m4/mktime.m4: Likewise.
77467         * m4/mmap-anon.m4: Likewise.
77468         * m4/mountlist.m4: Likewise.
77469         * m4/nanosleep.m4: Likewise.
77470         * m4/nls.m4: Likewise.
77471         * m4/nocrash.m4: Likewise.
77472         * m4/open.m4: Likewise.
77473         * m4/openat.m4: Likewise.
77474         * m4/openmp.m4: Likewise.
77475         * m4/pathmax.m4: Likewise.
77476         * m4/perl.m4: Likewise.
77477         * m4/physmem.m4: Likewise.
77478         * m4/pipe.m4: Likewise.
77479         * m4/po.m4: Likewise.
77480         * m4/poll.m4: Likewise.
77481         * m4/posixtm.m4: Likewise.
77482         * m4/posixver.m4: Likewise.
77483         * m4/printf-frexp.m4: Likewise.
77484         * m4/printf-frexpl.m4: Likewise.
77485         * m4/printf-posix.m4: Likewise.
77486         * m4/printf-posix-rpl.m4: Likewise.
77487         * m4/printf.m4: Likewise.
77488         * m4/progtest.m4: Likewise.
77489         * m4/putenv.m4: Likewise.
77490         * m4/readline.m4: Likewise.
77491         * m4/readlink.m4: Likewise.
77492         * m4/readutmp.m4: Likewise.
77493         * m4/realloc.m4: Likewise.
77494         * m4/regex.m4: Likewise.
77495         * m4/relocatable.m4: Likewise.
77496         * m4/relocatable-lib.m4: Likewise.
77497         * m4/rename-dest-slash.m4: Likewise.
77498         * m4/rename.m4: Likewise.
77499         * m4/rmdir-errno.m4: Likewise.
77500         * m4/rmdir.m4: Likewise.
77501         * m4/roundf.m4: Likewise.
77502         * m4/roundl.m4: Likewise.
77503         * m4/rpmatch.m4: Likewise.
77504         * m4/save-cwd.m4: Likewise.
77505         * m4/selinux-selinux-h.m4: Likewise.
77506         * m4/setenv.m4: Likewise.
77507         * m4/settime.m4: Likewise.
77508         * m4/sig2str.m4: Likewise.
77509         * m4/sig_atomic_t.m4: Likewise.
77510         * m4/signalblocking.m4: Likewise.
77511         * m4/signbit.m4: Likewise.
77512         * m4/sigpipe.m4: Likewise.
77513         * m4/sockets.m4: Likewise.
77514         * m4/sockpfaf.m4: Likewise.
77515         * m4/st_dm_mode.m4: Likewise.
77516         * m4/stat-time.m4: Likewise.
77517         * m4/stdbool.m4: Likewise.
77518         * m4/stdint.m4: Likewise.
77519         * m4/stdint_h.m4: Likewise.
77520         * m4/stpcpy.m4: Likewise.
77521         * m4/stpncpy.m4: Likewise.
77522         * m4/strcase.m4: Likewise.
77523         * m4/strchrnul.m4: Likewise.
77524         * m4/strcspn.m4: Likewise.
77525         * m4/strdup.m4: Likewise.
77526         * m4/strftime.m4: Likewise.
77527         * m4/strndup.m4: Likewise.
77528         * m4/strnlen.m4: Likewise.
77529         * m4/strpbrk.m4: Likewise.
77530         * m4/strptime.m4: Likewise.
77531         * m4/strsep.m4: Likewise.
77532         * m4/strtod.m4: Likewise.
77533         * m4/strtoimax.m4: Likewise.
77534         * m4/strtok_r.m4: Likewise.
77535         * m4/strtol.m4: Likewise.
77536         * m4/strtoll.m4: Likewise.
77537         * m4/strtoul.m4: Likewise.
77538         * m4/strtoull.m4: Likewise.
77539         * m4/strtoumax.m4: Likewise.
77540         * m4/strverscmp.m4: Likewise.
77541         * m4/threadlib.m4: Likewise.
77542         * m4/timegm.m4: Likewise.
77543         * m4/tm_gmtoff.m4: Likewise.
77544         * m4/tmpdir.m4: Likewise.
77545         * m4/tmpfile.m4: Likewise.
77546         * m4/tzset.m4: Likewise.
77547         * m4/uintmax_t.m4: Likewise.
77548         * m4/unlinkdir.m4: Likewise.
77549         * m4/unlocked-io.m4: Likewise.
77550         * m4/uptime.m4: Likewise.
77551         * m4/userspec.m4: Likewise.
77552         * m4/utimbuf.m4: Likewise.
77553         * m4/utime.m4: Likewise.
77554         * m4/utimes-null.m4: Likewise.
77555         * m4/utimes.m4: Likewise.
77556         * m4/vararrays.m4: Likewise.
77557         * m4/vasnprintf.m4: Likewise.
77558         * m4/vfprintf-posix.m4: Likewise.
77559         * m4/vprintf-posix.m4: Likewise.
77560         * m4/wait-process.m4: Likewise.
77561         * m4/wchar_t.m4: Likewise.
77562         * m4/wint_t.m4: Likewise.
77563         * m4/write-any-file.m4: Likewise.
77564         * m4/yield.m4: Likewise.
77566 2009-01-13  Bruno Haible  <bruno@clisp.org>
77568         Avoid test-copy-file.sh failures when ACL support insufficient.
77569         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
77570         TESTS_ENVIRONMENT.
77571         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
77572         Reported by Jim Meyering.
77574 2009-01-13  Bruno Haible  <bruno@clisp.org>
77576         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
77577         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
77578         * modules/unistdio/u8-printf-parse (Files): Likewise.
77579         * modules/unistdio/u32-printf-parse (Files): Likewise.
77580         * modules/unistdio/ulc-printf-parse (Files): Likewise.
77582 2009-01-13  Simon Josefsson  <simon@josefsson.org>
77584         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
77585         and m4/inttypes_h.m4 too.
77587 2009-01-12  Eric Blake  <ebb9@byu.net>
77589         tests: IRIX 6.2 cc can't compile -0.0 into .data
77590         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
77591         rather than at compile-time.
77592         * tests/test-floorl.c (minus_zero): Likewise.
77593         * tests/test-frexpl.c (minus_zero): Likewise.
77594         * tests/test-isnan.c (minus_zerol): Likewise.
77595         * tests/test-isnanl.h (minus_zero): Likewise.
77596         * tests/test-ldexpl.c (minus_zero): Likewise.
77597         * tests/test-roundl.c (minus_zero): Likewise.
77598         * tests/test-signbit.c (minus_zerol): Likewise.
77599         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
77600         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
77601         * tests/test-truncl.c (minus_zero): Likewise.
77602         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
77603         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
77604         Reported by Tom G. Christensen and Nelson H. F. Beebe.
77606 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77608         regex: fix glibc bug 9697
77609         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
77610         handling.
77612 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77614         regex: fix glibc bug 697
77615         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
77616         being NULL also if there are no backreferences.
77618 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
77620         regex: merge glibc changes
77621         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
77622         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
77623         re_string_skip_chars, re_string_reconstruct): Likewise.
77624         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
77626 2009-01-07  Jim Meyering  <meyering@redhat.com>
77628         poll: filter through cppi
77629         * lib/poll.c: Indent cpp directives to reflect nesting.
77631 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
77633         poll: don't return uninitialized
77634         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
77636 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
77638         avoid compile failure on AIX 6.1
77639         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
77640         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
77642 2009-01-04  Jim Meyering  <meyering@redhat.com>
77644         remove duplicate inclusion of <stdio.h>
77645         * tests/test-fprintf-posix.c: Likewise.
77646         * tests/test-printf-posix.c: Likewise.
77647         * tests/test-snprintf-posix.c: Likewise.
77648         * tests/test-sprintf-posix.c: Likewise.
77649         * tests/test-vasprintf-posix.c: Likewise.
77650         * tests/test-vfprintf-posix.c: Likewise.
77651         * tests/test-vprintf-posix.c: Likewise.
77652         * tests/test-vsnprintf-posix.c: Likewise.
77653         * tests/test-vsprintf-posix.c: Likewise.
77655 2009-01-03  Jim Meyering  <meyering@redhat.com>
77657         gnulib-tool: fix sed-based filtering
77658         * gnulib-tool (func_filter_filelist): Remove extra backslash
77659         in sed_fff_filter definition.
77661 2009-01-02  Jim Meyering  <meyering@redhat.com>
77663         strftime: avoid compilation failure on Solaris 2.6
77664         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
77665         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
77666         Don't #define mbrlen or mbsinit, since now they're guaranteed to
77667         be available.  Reported by Tom G. Christensen.  Details in
77668         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
77670 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77671             Bruno Haible  <bruno@clisp.org>
77673         Speed up gnulib-tool by doing more string processing through shell
77674         built-ins.
77675         * gnulib-tool (fast_func_append): New variable.
77676         (func_remove_prefix, func_remove_suffix): New functions.
77677         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
77678         (func_filter_filelist): New function.
77679         (func_get_dependencies): Use func_remove_suffix instead of sed.
77680         (func_get_automake_snippet): Use func_filter_filelist instead of a
77681         subshell and sed invocation.
77683 2009-01-01  Bruno Haible  <bruno@clisp.org>
77685         Fix a security bug.
77686         * gnulib-tool (func_import, import, update): Don't allow the characters
77687         '"', '$', '`', '\' in macro arguments that become part of commands that
77688         are evaluated.
77690 2009-01-01  Bruno Haible  <bruno@clisp.org>
77692         * gnulib-tool (func_reset_sigpipe): Add more comments.
77694 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77696         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
77697         func_emit_tests_Makefile_am, func_import): Abort loops early if we
77698         already know the answer.
77700 2009-01-01  Jim Meyering  <meyering@redhat.com>
77702         * lib/version-etc.c (version_etc_va): Update copyright year.
77704 2008-12-30  Bruno Haible  <bruno@clisp.org>
77706         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
77707         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
77708         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
77710 2008-12-29  Eric Blake  <ebb9@byu.net>
77712         multiarch: avoid autoconf AC_REQUIRE bug
77713         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
77714         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
77715         2.63 and older.
77716         Reported by Bruno Haible, and analyzed in
77717         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
77719 2008-12-29  Bruno Haible  <bruno@clisp.org>
77721         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
77722         files in subdirectories correctly.
77723         Reported by Ralf Wildenhues.
77725 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77727         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
77728         rather than 'join FILE -', for Solaris join.
77730 2008-12-29  Bruno Haible  <bruno@clisp.org>
77732         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
77733         quoting.
77734         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
77735         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
77736         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
77737         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
77738         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
77739         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
77740         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
77741         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
77742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77743         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
77744         * m4/nls.m4 (AM_NLS): Likewise.
77745         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
77746         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
77747         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
77748         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
77749         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
77750         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
77751         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
77752         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
77753         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
77754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
77755         * m4/xsize.m4 (gl_XSIZE): Likewise.
77756         Suggested by Jim Meyering.
77758 2008-11-17  Bruce Korb  <bkorb@gnu.org>
77760         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
77761         * lib/parse-duration.c: use a switch instead of cascading if's.
77763 2008-12-29  Eric Blake  <ebb9@byu.net>
77765         wchar.h: supply WEOF on Irix 5.3
77766         * lib/wchar.in.h (wint_t): Also supply WEOF.
77767         * lib/wctype.in.h (wint_t): Likewise.
77768         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
77769         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
77770         Reported by Tom G. Christensen.
77772 2008-12-26  Bruno Haible  <bruno@clisp.org>
77774         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
77775         i486, i586, i686.
77777 2008-12-26  Bruno Haible  <bruno@clisp.org>
77779         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
77781 2008-12-26  Bruno Haible  <bruno@clisp.org>
77783         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
77784         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
77785         not __STDC_CONSTANT_MACROS.
77786         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
77788 2008-12-25  Bruno Haible  <bruno@clisp.org>
77790         Add support for universal builds to vasnprintf.
77791         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
77792         universal builds, guess no.
77793         * modules/vasnprintf-posix (Depends-on): Add multiarch.
77794         * modules/vasprintf-posix (Depends-on): Likewise.
77795         * modules/fprintf-posix (Depends-on): Likewise.
77796         * modules/vfprintf-posix (Depends-on): Likewise.
77797         * modules/snprintf-posix (Depends-on): Likewise.
77798         * modules/vsnprintf-posix (Depends-on): Likewise.
77799         * modules/sprintf-posix (Depends-on): Likewise.
77800         * modules/vsprintf-posix (Depends-on): Likewise.
77801         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
77802         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
77803         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
77804         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
77805         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
77806         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
77807         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
77809         Add support for universal builds to <inttypes.h>.
77810         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
77811         _SCNu64_PREFIX): In Apple
77812         universal builds, define directly, using _LP64.
77813         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
77814         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
77815         * modules/inttypes (Depends-on): Add multiarch.
77816         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
77818         Add support for universal builds to <stdint.h>.
77819         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
77820         universal builds, define directly, using _LP64.
77821         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
77822         Apple universal builds, don't test for the size and suffix of ptrdiff_t
77823         and size_t.
77824         * modules/stdint (Depends-on): Add multiarch.
77825         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
77827         New module 'multiarch'.
77828         * modules/multiarch: New file.
77829         * m4/multiarch.m4: New file.
77831 2008-12-25  Bruno Haible  <bruno@clisp.org>
77833         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
77835 2008-12-25  Bruno Haible  <bruno@clisp.org>
77837         * modules/btowc (License): Relicense under LGPLv2+.
77838         * modules/mbsinit (License): Likewise.
77839         * modules/mbrtowc (License): Likewise.
77840         * modules/wcrtomb (License): Likewise.
77841         * modules/streq (License): Likewise.
77842         Reported by David Lutterkort <lutter@redhat.com>.
77844 2008-12-23  Bruno Haible  <bruno@clisp.org>
77846         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
77848 2008-12-23  Bruno Haible  <bruno@clisp.org>
77850         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
77851         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
77852         GETADDRINFO_LIB, not in LIBS.
77853         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
77854         * modules/canon-host (Link): Likewise.
77855         * NEWS: Mention the change.
77856         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
77857         GETADDRINFO_LIB.
77859 2008-12-22  Bruno Haible  <bruno@clisp.org>
77861         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
77862         * doc/posix-functions/iswalpha_l.texi: Likewise.
77863         * doc/posix-functions/iswblank_l.texi: Likewise.
77864         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77865         * doc/posix-functions/iswctype_l.texi: Likewise.
77866         * doc/posix-functions/iswdigit_l.texi: Likewise.
77867         * doc/posix-functions/iswgraph_l.texi: Likewise.
77868         * doc/posix-functions/iswlower_l.texi: Likewise.
77869         * doc/posix-functions/iswprint_l.texi: Likewise.
77870         * doc/posix-functions/iswpunct_l.texi: Likewise.
77871         * doc/posix-functions/iswspace_l.texi: Likewise.
77872         * doc/posix-functions/iswupper_l.texi: Likewise.
77873         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77874         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
77875         * doc/posix-functions/open_wmemstream.texi: Likewise.
77876         * doc/posix-functions/swscanf.texi: Likewise.
77877         * doc/posix-functions/towctrans_l.texi: Likewise.
77878         * doc/posix-functions/towlower.texi: Likewise.
77879         * doc/posix-functions/towlower_l.texi: Likewise.
77880         * doc/posix-functions/towupper.texi: Likewise.
77881         * doc/posix-functions/towupper_l.texi: Likewise.
77882         * doc/posix-functions/vfwprintf.texi: Likewise.
77883         * doc/posix-functions/vfwscanf.texi: Likewise.
77884         * doc/posix-functions/vswscanf.texi: Likewise.
77885         * doc/posix-functions/vwprintf.texi: Likewise.
77886         * doc/posix-functions/vwscanf.texi: Likewise.
77887         * doc/posix-functions/wcpcpy.texi: Likewise.
77888         * doc/posix-functions/wcpncpy.texi: Likewise.
77889         * doc/posix-functions/wcscasecmp.texi: Likewise.
77890         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
77891         * doc/posix-functions/wcscoll_l.texi: Likewise.
77892         * doc/posix-functions/wcsdup.texi: Likewise.
77893         * doc/posix-functions/wcsncasecmp.texi: Likewise.
77894         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
77895         * doc/posix-functions/wcsnlen.texi: Likewise.
77896         * doc/posix-functions/wcsnrtombs.texi: Likewise.
77897         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77898         * doc/posix-functions/wctrans_l.texi: Likewise.
77899         * doc/posix-functions/wctype_l.texi: Likewise.
77900         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
77901         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
77902         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
77903         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
77904         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
77905         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
77906         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
77907         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
77908         * doc/glibc-functions/wcschrnul.texi: Likewise.
77909         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77910         * doc/glibc-functions/wcstod_l.texi: Likewise.
77911         * doc/glibc-functions/wcstof_l.texi: Likewise.
77912         * doc/glibc-functions/wcstol_l.texi: Likewise.
77913         * doc/glibc-functions/wcstold_l.texi: Likewise.
77914         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77915         * doc/glibc-functions/wcstoq.texi: Likewise.
77916         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77917         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77918         * doc/glibc-functions/wcstouq.texi: Likewise.
77919         * doc/glibc-functions/wmempcpy.texi: Likewise.
77921 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
77922             Eric Blake  <ebb9@byu.net>
77923             Paolo Bonzini  <bonzini@gnu.org>
77924             Bruno Haible  <bruno@clisp.org>
77926         Make c-stack work on Haiku.
77927         * lib/c-stack.c (SA_ONSTACK): Define fallback.
77928         (c_stack_action): Use SA_ONSTACK flag.
77930 2008-12-22  Bruno Haible  <bruno@clisp.org>
77932         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
77934 2008-12-22  Bruno Haible  <bruno@clisp.org>
77936         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
77937         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
77938         being overridden.
77939         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
77940         New macros.
77941         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
77942         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
77943         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
77944         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
77946 2008-12-22  Bruno Haible  <bruno@clisp.org>
77948         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
77949         from test code.
77951 2008-12-22  Eric Blake  <ebb9@byu.net>
77953         Avoid gcc warnings on cygwin.
77954         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
77955         Avoid unused variable.
77956         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
77957         Likewise.
77959 2008-12-22  Bruno Haible  <bruno@clisp.org>
77961         Remove HAVE_MBRTOWC conditionals.
77962         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
77963         (mbscasecmp): Assume mbrtowc function.
77964         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
77965         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
77966         * lib/mbschr.c: Include mbuiter.h unconditionally.
77967         (mbschr): Assume mbrtowc function.
77968         * lib/mbscspn.c: Include mbuiter.h unconditionally.
77969         (mbscspn): Assume mbrtowc function.
77970         * lib/mbslen.c: Include mbuiter.h unconditionally.
77971         (mbslen): Assume mbrtowc function.
77972         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
77973         (mbsncasecmp): Assume mbrtowc function.
77974         * lib/mbsnlen.c: Include mbiter.h unconditionally.
77975         (mbsnlen): Assume mbrtowc function.
77976         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
77977         (mbspbrk): Assume mbrtowc function.
77978         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
77979         (mbspcasecmp): Assume mbrtowc function.
77980         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
77981         (mbsrchr): Assume mbrtowc function.
77982         * lib/mbssep.c: Include mbuiter.h unconditionally.
77983         (mbssep): Assume mbrtowc function.
77984         * lib/mbsspn.c: Include mbuiter.h unconditionally.
77985         (mbsspn): Assume mbrtowc function.
77986         * lib/mbsstr.c: Include mbuiter.h unconditionally.
77987         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
77988         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
77989         (mbstok_r): Assume mbrtowc function.
77990         * lib/propername.c: Include mbuiter.h unconditionally.
77991         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
77992         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
77993         (trim2): Assume mbrtowc function.
77994         * lib/mbswidth.c (mbsinit): Remove fallback definition.
77995         (mbsnwidth): Assume mbrtowc function.
77996         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
77997         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
77998         fallback definitions.
77999         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
78001 2008-12-22  Bruno Haible  <bruno@clisp.org>
78003         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
78005 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
78007         * modules/regex: Request emulations for the mb*/wc* functions we need.
78008         * m4/regex.m4: Don't look for those functions here.
78009         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
78011 2008-12-22  Bruno Haible  <bruno@clisp.org>
78013         * modules/fnmatch (Depends-on): Remove duplicated dependency.
78015 2008-12-21  Bruno Haible  <bruno@clisp.org>
78017         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
78018         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
78019         (Include): Remove conditionalization.
78020         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
78021         (Include): Remove conditionalization.
78022         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
78023         (Include): Remove conditionalization.
78024         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
78025         * m4/mbfile.m4 (gl_MBFILE): Likewise.
78026         * NEWS: Mention the change.
78027         Reported by Alan Hourihane <alanh@fairlite.co.uk>
78028         via Sergey Poznyakoff <gray@gnu.org.ua>.
78030 2008-12-21  Bruno Haible  <bruno@clisp.org>
78032         * MODULES.html.sh (Extended multibyte and wide character utilities
78033         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
78034         wcrtomb, wcsrtombs.
78035         (Support for systems lacking POSIX:2008): Add accept, bind, close,
78036         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
78037         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
78038         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
78040 2008-12-21  Bruno Haible  <bruno@clisp.org>
78042         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
78044 2008-12-21  Bruno Haible  <bruno@clisp.org>
78046         * modules/wcsnrtombs-tests: New file.
78047         * tests/test-wcsnrtombs1.sh: New file.
78048         * tests/test-wcsnrtombs2.sh: New file.
78049         * tests/test-wcsnrtombs3.sh: New file.
78050         * tests/test-wcsnrtombs4.sh: New file.
78051         * tests/test-wcsnrtombs.c: New file.
78053         New module 'wcsnrtombs'.
78054         * lib/wchar.in.h (wcsnrtombs): New declaration.
78055         * lib/wcsnrtombs.c: New file.
78056         * lib/wcsrtombs-state.c: New file.
78057         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
78058         (internal_state): Remove variable.
78059         * m4/wcsnrtombs.m4: New file.
78060         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
78061         compilation units.
78062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
78063         HAVE_WCSNRTOMBS.
78064         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
78065         HAVE_WCSNRTOMBS.
78066         * modules/wcsnrtombs: New file.
78067         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
78068         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
78070 2008-12-21  Bruno Haible  <bruno@clisp.org>
78072         * modules/wcsrtombs-tests: New file.
78073         * tests/test-wcsrtombs1.sh: New file.
78074         * tests/test-wcsrtombs2.sh: New file.
78075         * tests/test-wcsrtombs3.sh: New file.
78076         * tests/test-wcsrtombs4.sh: New file.
78077         * tests/test-wcsrtombs.c: New file.
78079         New module 'wcsrtombs'.
78080         * lib/wchar.in.h (wcsrtombs): New declaration.
78081         * lib/wcsrtombs.c: New file.
78082         * m4/wcsrtombs.m4: New file.
78083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
78084         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
78085         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
78086         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
78087         * modules/wcsrtombs: New file.
78088         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
78089         bugs.
78091 2008-12-21  Bruno Haible  <bruno@clisp.org>
78093         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
78094         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
78095         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
78096         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
78097         if not correct.
78098         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
78099         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
78100         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
78101         m4/locale-zh.m4, m4/codeset.m4.
78102         * doc/posix-functions/wcrtomb.texi: Document the bug.
78104 2008-12-21  Bruno Haible  <bruno@clisp.org>
78106         Work around a btowc() bug on IRIX 6.5.
78107         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
78108         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
78109         REPLACE_WTOBC if not.
78110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
78111         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
78112         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
78114 2008-12-21  Bruno Haible  <bruno@clisp.org>
78116         * modules/wcrtomb-tests: New file.
78117         * tests/test-wcrtomb.sh: New file.
78118         * tests/test-wcrtomb.c: New file.
78120         New module 'wcrtomb'.
78121         * lib/wchar.in.h (wcrtomb): New declaration.
78122         * lib/wcrtomb.c: New file.
78123         * m4/wcrtomb.m4: New file.
78124         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
78125         HAVE_WCRTOMB.
78126         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
78127         HAVE_WCRTOMB.
78128         * modules/wcrtomb: New file.
78129         * doc/posix-functions/wcrtomb.texi: Mention the new module.
78131 2008-12-21  Bruno Haible  <bruno@clisp.org>
78133         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
78134         * modules/mbsrtowcs (Files): Likewise.
78135         * modules/wctob (Files): Likewise.
78136         * modules/c-strcase-tests (Files): Likewise.
78137         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
78138         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
78139         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
78140         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
78141         * modules/vasnprintf-posix-tests (Files): Likewise.
78143 2008-12-21  William Pursell  <bill.pursell@gmail.com>
78145         gitlog-to-changelog: pass all command-line arguments to git-log
78146         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
78147         it is sometimes convenient to filter the commits in various ways.
78148         gitlog-to-changelog only allows --since to specify a start date,
78149         but git-log itself supports many other filtering mechanisms.
78150         At the moment, I want to filter by branch name.  Rather than
78151         adding a --branch option to gitlog-to-changelog, it seems more
78152         flexible to simply pass all options directly to git-log and let
78153         git do the work.  Notice that this effectively makes --since a
78154         redundant option for gitlog-to-changelog, but removing it would
78155         require current usage to change since calls would then require
78156         an additional '--'.
78158 2008-12-21  Bruno Haible  <bruno@clisp.org>
78160         * modules/mbsnrtowcs-tests: New file.
78161         * tests/test-mbsnrtowcs1.sh: New file.
78162         * tests/test-mbsnrtowcs2.sh: New file.
78163         * tests/test-mbsnrtowcs3.sh: New file.
78164         * tests/test-mbsnrtowcs4.sh: New file.
78165         * tests/test-mbsnrtowcs.c: New file.
78167         New module 'mbsnrtowcs'.
78168         * lib/wchar.in.h (mbsnrtowcs): New declaration.
78169         * lib/mbsnrtowcs.c: New file.
78170         * lib/mbsrtowcs-state.c: New file.
78171         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
78172         (internal_state): Remove variable.
78173         * m4/mbsnrtowcs.m4: New file.
78174         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
78175         compilation units.
78176         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
78177         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
78178         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
78179         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
78180         * modules/mbsnrtowcs: New file.
78181         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
78182         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
78183         portability problem.
78185 2008-12-21  Bruno Haible  <bruno@clisp.org>
78187         Work around mbsrtowcs bug.
78188         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
78189         (gl_FUNC_MBSRTOWCS): Invoke it.
78190         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
78191         m4/locale-zh.m4.
78192         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
78194 2008-12-21  Bruno Haible  <bruno@clisp.org>
78196         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
78198 2008-12-21  Bruno Haible  <bruno@clisp.org>
78200         Update doc for AIX.
78201         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
78202         16-bit wchar_t type.
78203         * doc/posix-functions/btowc.texi: Likewise.
78204         * doc/posix-functions/fgetwc.texi: Likewise.
78205         * doc/posix-functions/fgetws.texi: Likewise.
78206         * doc/posix-functions/fputwc.texi: Likewise.
78207         * doc/posix-functions/fputws.texi: Likewise.
78208         * doc/posix-functions/fwide.texi: Likewise.
78209         * doc/posix-functions/fwprintf.texi: Likewise.
78210         * doc/posix-functions/fwscanf.texi: Likewise.
78211         * doc/posix-functions/getwchar.texi: Likewise.
78212         * doc/posix-functions/getwc.texi: Likewise.
78213         * doc/posix-functions/iswalnum.texi: Likewise.
78214         * doc/posix-functions/iswalpha.texi: Likewise.
78215         * doc/posix-functions/iswblank.texi: Likewise.
78216         * doc/posix-functions/iswcntrl.texi: Likewise.
78217         * doc/posix-functions/iswctype.texi: Likewise.
78218         * doc/posix-functions/iswdigit.texi: Likewise.
78219         * doc/posix-functions/iswgraph.texi: Likewise.
78220         * doc/posix-functions/iswlower.texi: Likewise.
78221         * doc/posix-functions/iswprint.texi: Likewise.
78222         * doc/posix-functions/iswpunct.texi: Likewise.
78223         * doc/posix-functions/iswspace.texi: Likewise.
78224         * doc/posix-functions/iswupper.texi: Likewise.
78225         * doc/posix-functions/iswxdigit.texi: Likewise.
78226         * doc/posix-functions/mbrtowc.texi: Likewise.
78227         * doc/posix-functions/mbsrtowcs.texi: Likewise.
78228         * doc/posix-functions/mbstowcs.texi: Likewise.
78229         * doc/posix-functions/mbtowc.texi: Likewise.
78230         * doc/posix-functions/putwchar.texi: Likewise.
78231         * doc/posix-functions/putwc.texi: Likewise.
78232         * doc/posix-functions/swprintf.texi: Likewise.
78233         * doc/posix-functions/tolower.texi: Likewise.
78234         * doc/posix-functions/toupper.texi: Likewise.
78235         * doc/posix-functions/towctrans.texi: Likewise.
78236         * doc/posix-functions/ungetwc.texi: Likewise.
78237         * doc/posix-functions/vswprintf.texi: Likewise.
78238         * doc/posix-functions/wcrtomb.texi: Likewise.
78239         * doc/posix-functions/wcscat.texi: Likewise.
78240         * doc/posix-functions/wcschr.texi: Likewise.
78241         * doc/posix-functions/wcscmp.texi: Likewise.
78242         * doc/posix-functions/wcscoll.texi: Likewise.
78243         * doc/posix-functions/wcscpy.texi: Likewise.
78244         * doc/posix-functions/wcscspn.texi: Likewise.
78245         * doc/posix-functions/wcsftime.texi: Likewise.
78246         * doc/posix-functions/wcslen.texi: Likewise.
78247         * doc/posix-functions/wcsncat.texi: Likewise.
78248         * doc/posix-functions/wcsncmp.texi: Likewise.
78249         * doc/posix-functions/wcsncpy.texi: Likewise.
78250         * doc/posix-functions/wcspbrk.texi: Likewise.
78251         * doc/posix-functions/wcsrchr.texi: Likewise.
78252         * doc/posix-functions/wcsrtombs.texi: Likewise.
78253         * doc/posix-functions/wcsspn.texi: Likewise.
78254         * doc/posix-functions/wcsstr.texi: Likewise.
78255         * doc/posix-functions/wcstod.texi: Likewise.
78256         * doc/posix-functions/wcstof.texi: Likewise.
78257         * doc/posix-functions/wcstoimax.texi: Likewise.
78258         * doc/posix-functions/wcstok.texi: Likewise.
78259         * doc/posix-functions/wcstold.texi: Likewise.
78260         * doc/posix-functions/wcstoll.texi: Likewise.
78261         * doc/posix-functions/wcstol.texi: Likewise.
78262         * doc/posix-functions/wcstombs.texi: Likewise.
78263         * doc/posix-functions/wcstoull.texi: Likewise.
78264         * doc/posix-functions/wcstoul.texi: Likewise.
78265         * doc/posix-functions/wcstoumax.texi: Likewise.
78266         * doc/posix-functions/wcswidth.texi: Likewise.
78267         * doc/posix-functions/wcsxfrm.texi: Likewise.
78268         * doc/posix-functions/wctob.texi: Likewise.
78269         * doc/posix-functions/wctomb.texi: Likewise.
78270         * doc/posix-functions/wctrans.texi: Likewise.
78271         * doc/posix-functions/wctype.texi: Likewise.
78272         * doc/posix-functions/wcwidth.texi: Likewise.
78273         * doc/posix-functions/wmemchr.texi: Likewise.
78274         * doc/posix-functions/wmemcmp.texi: Likewise.
78275         * doc/posix-functions/wmemcpy.texi: Likewise.
78276         * doc/posix-functions/wmemmove.texi: Likewise.
78277         * doc/posix-functions/wmemset.texi: Likewise.
78278         * doc/posix-functions/wprintf.texi: Likewise.
78279         * doc/posix-functions/wscanf.texi: Likewise.
78281 2008-12-21  Bruno Haible  <bruno@clisp.org>
78283         Update doc for HP-UX 11.11.
78284         * doc/posix-functions/btowc.texi: Clarify that the function is missing
78285         in HP-UX version 11.00, not in all versions of HP-UX 11.
78286         * doc/posix-functions/fwide.texi: Likewise.
78287         * doc/posix-functions/fwprintf.texi: Likewise.
78288         * doc/posix-functions/fwscanf.texi: Likewise.
78289         * doc/posix-functions/inet_ntop.texi: Likewise.
78290         * doc/posix-functions/inet_pton.texi: Likewise.
78291         * doc/posix-functions/mbrlen.texi: Likewise.
78292         * doc/posix-functions/mbrtowc.texi: Likewise.
78293         * doc/posix-functions/mbsinit.texi: Likewise.
78294         * doc/posix-functions/mbsrtowcs.texi: Likewise.
78295         * doc/posix-functions/swprintf.texi: Likewise.
78296         * doc/posix-functions/swscanf.texi: Likewise.
78297         * doc/posix-functions/towctrans.texi: Likewise.
78298         * doc/posix-functions/vfwprintf.texi: Likewise.
78299         * doc/posix-functions/vswprintf.texi: Likewise.
78300         * doc/posix-functions/vwprintf.texi: Likewise.
78301         * doc/posix-functions/wcrtomb.texi: Likewise.
78302         * doc/posix-functions/wcsrtombs.texi: Likewise.
78303         * doc/posix-functions/wcsstr.texi: Likewise.
78304         * doc/posix-functions/wctob.texi: Likewise.
78305         * doc/posix-functions/wctrans.texi: Likewise.
78306         * doc/posix-functions/wmemchr.texi: Likewise.
78307         * doc/posix-functions/wmemcmp.texi: Likewise.
78308         * doc/posix-functions/wmemcpy.texi: Likewise.
78309         * doc/posix-functions/wmemmove.texi: Likewise.
78310         * doc/posix-functions/wmemset.texi: Likewise.
78311         * doc/posix-functions/wprintf.texi: Likewise.
78312         * doc/posix-functions/wscanf.texi: Likewise.
78314 2008-12-21  Bruno Haible  <bruno@clisp.org>
78316         Work around a portability problem.
78317         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
78318         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
78320 2008-12-20  Bruno Haible  <bruno@clisp.org>
78322         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
78323         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
78324         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
78325         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
78326         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
78328         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
78329         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
78330         set.
78331         (GNULIB_defined_mbstate_t): New macro.
78332         (mbsinit): Redefine if REPLACE_MBSINIT is set.
78333         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
78334         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
78335         reuses the system's mbrtowc function but works around the bugs.
78336         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
78337         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
78338         macros.
78339         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
78340         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
78341         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
78342         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
78343         REPLACE_MBSINIT if mbsinit needs to be overridden.
78344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
78345         REPLACE_MBSINIT, REPLACE_MBRTOWC.
78346         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
78347         REPLACE_MBSINIT, REPLACE_MBRTOWC.
78348         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
78349         m4/locale-zh.m4.
78350         (Depends): Add mbsinit.
78351         * modules/mbsinit (Depends): Add mbrtowc.
78352         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
78354 2008-12-20  Bruno Haible  <bruno@clisp.org>
78356         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
78357         so that there are no conversion errors on AIX.
78358         * tests/test-mbsrtowcs.c (main): LIkewise.
78360 2008-12-20  Bruno Haible  <bruno@clisp.org>
78362         Work around wctob bug on Solaris <= 9.
78363         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
78364         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
78365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
78366         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
78367         * modules/wctob (Files): Add m4/locale-fr.m4.
78368         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
78370 2008-12-20  Bruno Haible  <bruno@clisp.org>
78372         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
78373         /dev/null.
78374         * tests/test-select-in.sh: Likewise.
78375         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
78377 2008-12-20  Bruno Haible  <bruno@clisp.org>
78379         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
78380         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
78381         Cygwin 1.5.x.
78383 2008-12-20  Bruno Haible  <bruno@clisp.org>
78385         Ensure mbstate_t is defined on HP-UX 11.11.
78386         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
78387         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
78388         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
78389         AC_USE_SYSTEM_EXTENSIONS.
78390         * modules/fnmatch (Depends-on): Add extensions.
78391         * modules/mbrlen (Depends-on): Likewise.
78392         * modules/mbrtowc (Depends-on): Likewise.
78393         * modules/mbsinit (Depends-on): Likewise.
78394         * modules/mbsrtowcs (Depends-on): Likewise.
78395         * modules/mbswidth (Depends-on): Likewise.
78396         * modules/quotearg (Depends-on): Likewise.
78397         * modules/strftime (Depends-on): Likewise.
78399 2008-12-20  Bruno Haible  <bruno@clisp.org>
78401         Ensure wctob is declared on IRIX 6.5.
78402         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
78403         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
78404         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
78405         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
78406         of HAVE_WCTOB.
78407         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
78408         HAVE_WCTOB.
78409         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
78411 2008-12-19  Bruno Haible  <bruno@clisp.org>
78413         * modules/mbsrtowcs-tests: New file.
78414         * tests/test-mbsrtowcs1.sh: New file.
78415         * tests/test-mbsrtowcs2.sh: New file.
78416         * tests/test-mbsrtowcs3.sh: New file.
78417         * tests/test-mbsrtowcs4.sh: New file.
78418         * tests/test-mbsrtowcs.c: New file.
78420         New module 'mbsrtowcs'.
78421         * lib/wchar.in.h (mbsrtowcs): New declaration.
78422         * lib/mbsrtowcs.c: New file.
78423         * m4/mbsrtowcs.m4: New file.
78424         * modules/mbsrtowcs: New file.
78425         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
78426         HAVE_MBSRTOWCS.
78427         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
78428         HAVE_MBSRTOWCS.
78429         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
78431 2008-12-19  Bruno Haible  <bruno@clisp.org>
78433         New module 'mbrlen'.
78434         * lib/wchar.in.h (mbrlen): New declaration.
78435         * lib/mbrlen.c: New file.
78436         * m4/mbrlen.m4: New file.
78437         * modules/mbrlen: New file.
78438         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
78439         HAVE_MBRLEN.
78440         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
78441         HAVE_MBRLEN.
78442         * doc/posix-functions/mbrlen.texi: Document the new module.
78444 2008-12-19  Bruno Haible  <bruno@clisp.org>
78446         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
78447         * modules/mbrtowc (Depends-on): Add verify.
78448         Suggested by Paul Eggert.
78450 2008-12-18  Bruno Haible  <bruno@clisp.org>
78452         * modules/mbsinit-tests: New file.
78453         * tests/test-mbsinit.sh: New file.
78454         * tests/test-mbsinit.c: New file.
78456 2008-12-18  Bruno Haible  <bruno@clisp.org>
78458         * modules/mbrtowc-tests: New file.
78459         * tests/test-mbrtowc1.sh: New file.
78460         * tests/test-mbrtowc2.sh: New file.
78461         * tests/test-mbrtowc3.sh: New file.
78462         * tests/test-mbrtowc4.sh: New file.
78463         * tests/test-mbrtowc.c: New file.
78465         New module 'mbrtowc'.
78466         * lib/wchar.in.h (mbstate_t): Override when the system does not have
78467         mbsinit and mbrtowc.
78468         (mbrtowc): New declaration.
78469         * lib/mbrtowc.c: New file.
78470         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
78471         * modules/mbrtowc: New file.
78472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
78473         HAVE_MBRTOWC.
78474         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
78475         HAVE_MBRTOWC.
78476         * doc/posix-functions/mbrtowc.texi: Document the new module.
78478 2008-12-18  Bruno Haible  <bruno@clisp.org>
78480         New module 'wctob'.
78481         * lib/wchar.in.h (wctob): New declaration.
78482         * lib/wctob.c: New file.
78483         * m4/wctob.m4: New file.
78484         * modules/wctob: New file.
78485         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
78486         HAVE_WCTOB.
78487         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
78488         * doc/posix-functions/wctob.texi: Document the new module.
78490 2008-12-18  Bruno Haible  <bruno@clisp.org>
78492         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
78493         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
78495 2008-12-18  Simon Josefsson  <simon@josefsson.org>
78497         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
78498         G. Christensen" <tgc@jupiterrise.com>.
78500         * lib/flock.c: Need to include errno.h.  Reported by "Tom
78501         G. Christensen" <tgc@jupiterrise.com>.
78503         * lib/flock.c: Need to include string.h.  Reported by "Tom
78504         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
78505         <ebb9@byu.net>.
78507 2008-12-18  Bruno Haible  <bruno@clisp.org>
78509         * m4/locale-ja.m4: New file, from GNU gettext.
78511 2008-12-17  Bruno Haible  <bruno@clisp.org>
78513         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
78514         Suggested by Eric Blake.
78516 2008-12-17  Bruno Haible  <bruno@clisp.org>
78518         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
78520 2008-12-17  Bruno Haible  <bruno@clisp.org>
78522         * lib/mbsinit.c: Include verify.h. Verify an assumption.
78523         * modules/mbsinit (Depends-on): Add verify.
78524         Suggested by Paul Eggert.
78526 2008-12-17  Bruno Haible  <bruno@clisp.org>
78528         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
78529         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
78530         gl_FUNC_MBRTOWC.
78531         * m4/mbiter.m4 (gl_MBITER): LIkewise.
78532         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
78533         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
78534         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
78535         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
78536         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
78537         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
78538         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
78539         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
78540         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
78541         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
78542         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
78543         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
78544         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
78545         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
78546         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
78547         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
78548         * modules/trim (configure.ac): Likewise.
78550 2008-12-17  Bruno Haible  <bruno@clisp.org>
78552         * modules/btowc-tests: New file.
78553         * tests/test-btowc1.sh: New file.
78554         * tests/test-btowc2.sh: New file.
78555         * tests/test-btowc.c: New file.
78557         New module 'btowc'.
78558         * lib/wchar.in.h (btowc): New declaration.
78559         * lib/btowc.c: New file.
78560         * m4/btowc.m4: New file.
78561         * modules/btowc: New file.
78562         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
78563         HAVE_BTOWC.
78564         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
78565         * doc/posix-functions/btowc.texi: Document the new module.
78567 2008-12-17  Bruno Haible  <bruno@clisp.org>
78569         New module 'mbsinit'.
78570         * lib/wchar.in.h (mbsinit): New declaration.
78571         * lib/mbsinit.c: New file.
78572         * m4/mbsinit.m4: New file.
78573         * modules/mbsinit: New file.
78574         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
78575         HAVE_MBSINIT.
78576         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
78577         HAVE_MBSINIT.
78578         * doc/posix-functions/mbsinit.texi: Document the new module.
78580 2008-12-16  Bruno Haible  <bruno@clisp.org>
78582         * lib/unistd.in.h: Add comment.
78583         * tests/test-environ.c: Don't include <stdlib.h>.
78585 2008-12-16  Bruno Haible  <bruno@clisp.org>
78587         * lib/parse-duration.h (parse_duration): Document return value
78588         convention.
78589         * lib/parse-duration.c: Include specification header first. Add
78590         comments.
78591         (_): Remove macro.
78592         (parse_year_month_day, parse_hour_minute_second): Move side effects
78593         outside of strchr call.
78594         (parse_non_iso8601): Move side effects outside of isspace call.
78595         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
78596         call.
78598 2008-12-16  Bruno Haible  <bruno@clisp.org>
78600         * tests/test-parse-duration.sh: Produce no output when the test
78601         succeeds.
78603 2008-12-16  Bruno Haible  <bruno@clisp.org>
78605         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
78606         expressions.
78608 2008-12-15  Bruno Haible  <bruno@clisp.org>
78610         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
78611         * doc/glibc-functions/flistxattr.texi: Likewise.
78612         * doc/glibc-functions/fopencookie.texi: Likewise.
78613         * doc/glibc-functions/fremovexattr.texi: Likewise.
78614         * doc/glibc-functions/fsetxattr.texi: Likewise.
78615         * doc/glibc-functions/getxattr.texi: Likewise.
78616         * doc/glibc-functions/lgetxattr.texi: Likewise.
78617         * doc/glibc-functions/listxattr.texi: Likewise.
78618         * doc/glibc-functions/llistxattr.texi: Likewise.
78619         * doc/glibc-functions/lremovexattr.texi: Likewise.
78620         * doc/glibc-functions/lsetxattr.texi: Likewise.
78621         * doc/glibc-functions/removexattr.texi: Likewise.
78622         * doc/glibc-functions/setxattr.texi: Likewise.
78623         * doc/posix-functions/open_memstream.texi: Likewise.
78625 2008-12-15  Eric Blake  <ebb9@byu.net>
78627         Update doc for cygwin 1.7.
78628         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
78629         functions.
78630         * doc/posix-functions/fchmodat.texi: Likewise.
78631         * doc/posix-functions/fchownat.texi: Likewise.
78632         * doc/posix-functions/fdopendir.texi: Likewise.
78633         * doc/posix-functions/fmemopen.texi: Likewise.
78634         * doc/posix-functions/freeaddrinfo.texi: Likewise.
78635         * doc/posix-functions/fstatat.texi: Likewise.
78636         * doc/posix-functions/futimens.texi: Likewise.
78637         * doc/posix-functions/gai_strerror.texi: Likewise.
78638         * doc/posix-functions/getaddrinfo.texi: Likewise.
78639         * doc/posix-functions/getnameinfo.texi: Likewise.
78640         * doc/posix-functions/if_freenameindex.texi: Likewise.
78641         * doc/posix-functions/if_indextoname.texi: Likewise.
78642         * doc/posix-functions/if_nameindex.texi: Likewise.
78643         * doc/posix-functions/if_nametoindex.texi: Likewise.
78644         * doc/posix-functions/insque.texi: Likewise.
78645         * doc/posix-functions/linkat.texi: Likewise.
78646         * doc/posix-functions/llrint.texi: Likewise.
78647         * doc/posix-functions/llrintf.texi: Likewise.
78648         * doc/posix-functions/llrintl.texi: Likewise.
78649         * doc/posix-functions/lockf.texi: Likewise.
78650         * doc/posix-functions/lrintl.texi: Likewise.
78651         * doc/posix-functions/mkdirat.texi: Likewise.
78652         * doc/posix-functions/mkfifoat.texi: Likewise.
78653         * doc/posix-functions/mknodat.texi: Likewise.
78654         * doc/posix-functions/mq_close.texi: Likewise.
78655         * doc/posix-functions/mq_getattr.texi: Likewise.
78656         * doc/posix-functions/mq_notify.texi: Likewise.
78657         * doc/posix-functions/mq_open.texi: Likewise.
78658         * doc/posix-functions/mq_receive.texi: Likewise.
78659         * doc/posix-functions/mq_send.texi: Likewise.
78660         * doc/posix-functions/mq_setattr.texi: Likewise.
78661         * doc/posix-functions/mq_timedreceive.texi: Likewise.
78662         * doc/posix-functions/mq_timedsend.texi: Likewise.
78663         * doc/posix-functions/mq_unlink.texi: Likewise.
78664         * doc/posix-functions/open_memstream.texi: Likewise.
78665         * doc/posix-functions/openat.texi: Likewise.
78666         * doc/posix-functions/posix_fadvise.texi: Likewise.
78667         * doc/posix-functions/posix_fallocate.texi: Likewise.
78668         * doc/posix-functions/posix_madvise.texi: Likewise.
78669         * doc/posix-functions/posix_memalign.texi: Likewise.
78670         * doc/posix-functions/posix_openpt.texi: Likewise.
78671         * doc/posix-functions/readlinkat.texi: Likewise.
78672         * doc/posix-functions/remque.texi: Likewise.
78673         * doc/posix-functions/renameat.texi: Likewise.
78674         * doc/posix-functions/rintl.texi: Likewise.
78675         * doc/posix-functions/sem_unlink.texi: Likewise.
78676         * doc/posix-functions/shm_open.texi: Likewise.
78677         * doc/posix-functions/shm_unlink.texi: Likewise.
78678         * doc/posix-functions/signgam.texi: Likewise.
78679         * doc/posix-functions/sigset.texi: Likewise.
78680         * doc/posix-functions/stpcpy.texi: Likewise.
78681         * doc/posix-functions/stpncpy.texi: Likewise.
78682         * doc/posix-functions/strerror.texi: Likewise.
78683         * doc/posix-functions/strtod.texi: Likewise.
78684         * doc/posix-functions/symlinkat.texi: Likewise.
78685         * doc/posix-functions/unlinkat.texi: Likewise.
78686         * doc/posix-functions/utimensat.texi: Likewise.
78687         * doc/glibc-functions/bindresvport.texi: Likewise.
78688         * doc/glibc-functions/dn_expand.texi: Likewise.
78689         * doc/glibc-functions/exp10.texi: Likewise.
78690         * doc/glibc-functions/exp10f.texi: Likewise.
78691         * doc/glibc-functions/fgetxattr.texi: Likewise.
78692         * doc/glibc-functions/flistxattr.texi: Likewise.
78693         * doc/glibc-functions/fopencookie.texi: Likewise.
78694         * doc/glibc-functions/freeifaddrs.texi: Likewise.
78695         * doc/glibc-functions/fremovexattr.texi: Likewise.
78696         * doc/glibc-functions/fsetxattr.texi: Likewise.
78697         * doc/glibc-functions/getifaddrs.texi: Likewise.
78698         * doc/glibc-functions/getxattr.texi: Likewise.
78699         * doc/glibc-functions/lgetxattr.texi: Likewise.
78700         * doc/glibc-functions/listxattr.texi: Likewise.
78701         * doc/glibc-functions/llistxattr.texi: Likewise.
78702         * doc/glibc-functions/lremovexattr.texi: Likewise.
78703         * doc/glibc-functions/lsetxattr.texi: Likewise.
78704         * doc/glibc-functions/pow10.texi: Likewise.
78705         * doc/glibc-functions/pow10f.texi: Likewise.
78706         * doc/glibc-functions/rcmd_af.texi: Likewise.
78707         * doc/glibc-functions/removexattr.texi: Likewise.
78708         * doc/glibc-functions/res_init.texi: Likewise.
78709         * doc/glibc-functions/res_mkquery.texi: Likewise.
78710         * doc/glibc-functions/res_query.texi: Likewise.
78711         * doc/glibc-functions/res_querydomain.texi: Likewise.
78712         * doc/glibc-functions/res_send.texi: Likewise.
78713         * doc/glibc-functions/rresvport_af.texi: Likewise.
78714         * doc/glibc-functions/setxattr.texi: Likewise.
78715         * doc/glibc-functions/strcasestr.texi: Likewise.
78717 2008-12-15  Bruno Haible  <bruno@clisp.org>
78719         Fix compilation error on OSF/1 4.0.
78720         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
78721         <sys/time.h>, simply delegate to the system header.
78722         Reported by Daniel Richard G. <oss@teragram.com>.
78724 2008-12-15  Bruno Haible  <bruno@clisp.org>
78726         * doc/posix-functions/openat.texi: Mention the 'openat' module.
78727         * doc/posix-functions/fchmodat.texi: Likewise.
78728         * doc/posix-functions/fchownat.texi: Likewise.
78729         * doc/posix-functions/fdopendir.texi: Likewise.
78730         * doc/posix-functions/fstatat.texi: Likewise.
78731         * doc/posix-functions/mkdirat.texi: Likewise.
78732         * doc/posix-functions/unlinkat.texi: Likewise.
78734 2008-12-14  Bruno Haible  <bruno@clisp.org>
78736         Update doc for POSIX:2008.
78737         * doc/posix-functions/faccessat.texi: New file.
78738         * doc/posix-functions/fchmodat.texi: New file.
78739         * doc/posix-functions/fchownat.texi: New file.
78740         * doc/posix-functions/fdopendir.texi: New file.
78741         * doc/posix-functions/fstatat.texi: New file.
78742         * doc/posix-functions/futimens.texi: New file.
78743         * doc/posix-functions/linkat.texi: New file.
78744         * doc/posix-functions/mkdirat.texi: New file.
78745         * doc/posix-functions/mkfifoat.texi: New file.
78746         * doc/posix-functions/mknodat.texi: New file.
78747         * doc/posix-functions/open_wmemstream.texi: New file.
78748         * doc/posix-functions/openat.texi: New file.
78749         * doc/posix-functions/psiginfo.texi: New file.
78750         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
78751         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
78752         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
78753         * doc/posix-functions/readlinkat.texi: New file.
78754         * doc/posix-functions/renameat.texi: New file.
78755         * doc/posix-functions/strerror_l.texi: New file.
78756         * doc/posix-functions/symlinkat.texi: New file.
78757         * doc/posix-functions/unlinkat.texi: New file.
78758         * doc/posix-functions/utimensat.texi: New file.
78759         * doc/gnulib.texi (Function Substitutes): Add these subsections.
78761 2008-12-14  Bruno Haible  <bruno@clisp.org>
78763         Update doc for POSIX:2008.
78764         * doc/posix-functions/alphasort.texi: Renamed from
78765         doc/glibc-functions/alphasort.texi.
78766         * doc/posix-functions/dirfd.texi: Renamed from
78767         doc/glibc-functions/dirfd.texi.
78768         * doc/posix-functions/dprintf.texi: Renamed from
78769         doc/glibc-functions/dprintf.texi.
78770         * doc/posix-functions/duplocale.texi: Renamed from
78771         doc/glibc-functions/duplocale.texi.
78772         * doc/posix-functions/fexecve.texi: Renamed from
78773         doc/glibc-functions/fexecve.texi.
78774         * doc/posix-functions/fmemopen.texi: Renamed from
78775         doc/glibc-functions/fmemopen.texi.
78776         * doc/posix-functions/freelocale.texi: Renamed from
78777         doc/glibc-functions/freelocale.texi.
78778         * doc/posix-functions/getdate_err.texi: Renamed from
78779         doc/glibc-functions/getdate_err.texi.
78780         * doc/posix-functions/isalnum_l.texi: Renamed from
78781         doc/glibc-functions/isalnum_l.texi.
78782         * doc/posix-functions/isalpha_l.texi: Renamed from
78783         doc/glibc-functions/isalpha_l.texi.
78784         * doc/posix-functions/isblank_l.texi: Renamed from
78785         doc/glibc-functions/isblank_l.texi.
78786         * doc/posix-functions/iscntrl_l.texi: Renamed from
78787         doc/glibc-functions/iscntrl_l.texi.
78788         * doc/posix-functions/isdigit_l.texi: Renamed from
78789         doc/glibc-functions/isdigit_l.texi.
78790         * doc/posix-functions/isgraph_l.texi: Renamed from
78791         doc/glibc-functions/isgraph_l.texi.
78792         * doc/posix-functions/islower_l.texi: Renamed from
78793         doc/glibc-functions/islower_l.texi.
78794         * doc/posix-functions/isprint_l.texi: Renamed from
78795         doc/glibc-functions/isprint_l.texi.
78796         * doc/posix-functions/ispunct_l.texi: Renamed from
78797         doc/glibc-functions/ispunct_l.texi.
78798         * doc/posix-functions/isspace_l.texi: Renamed from
78799         doc/glibc-functions/isspace_l.texi.
78800         * doc/posix-functions/isupper_l.texi: Renamed from
78801         doc/glibc-functions/isupper_l.texi.
78802         * doc/posix-functions/iswalnum_l.texi: Renamed from
78803         doc/glibc-functions/iswalnum_l.texi.
78804         * doc/posix-functions/iswalpha_l.texi: Renamed from
78805         doc/glibc-functions/iswalpha_l.texi.
78806         * doc/posix-functions/iswblank_l.texi: Renamed from
78807         doc/glibc-functions/iswblank_l.texi.
78808         * doc/posix-functions/iswcntrl_l.texi: Renamed from
78809         doc/glibc-functions/iswcntrl_l.texi.
78810         * doc/posix-functions/iswctype_l.texi: Renamed from
78811         doc/glibc-functions/iswctype_l.texi.
78812         * doc/posix-functions/iswdigit_l.texi: Renamed from
78813         doc/glibc-functions/iswdigit_l.texi.
78814         * doc/posix-functions/iswgraph_l.texi: Renamed from
78815         doc/glibc-functions/iswgraph_l.texi.
78816         * doc/posix-functions/iswlower_l.texi: Renamed from
78817         doc/glibc-functions/iswlower_l.texi.
78818         * doc/posix-functions/iswprint_l.texi: Renamed from
78819         doc/glibc-functions/iswprint_l.texi.
78820         * doc/posix-functions/iswpunct_l.texi: Renamed from
78821         doc/glibc-functions/iswpunct_l.texi.
78822         * doc/posix-functions/iswspace_l.texi: Renamed from
78823         doc/glibc-functions/iswspace_l.texi.
78824         * doc/posix-functions/iswupper_l.texi: Renamed from
78825         doc/glibc-functions/iswupper_l.texi.
78826         * doc/posix-functions/iswxdigit_l.texi: Renamed from
78827         doc/glibc-functions/iswxdigit_l.texi.
78828         * doc/posix-functions/isxdigit_l.texi: Renamed from
78829         doc/glibc-functions/isxdigit_l.texi.
78830         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
78831         doc/glibc-functions/mbsnrtowcs.texi.
78832         * doc/posix-functions/mkdtemp.texi: Renamed from
78833         doc/glibc-functions/mkdtemp.texi.
78834         * doc/posix-functions/newlocale.texi: Renamed from
78835         doc/glibc-functions/newlocale.texi.
78836         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
78837         doc/glibc-functions/nl_langinfo_l.texi.
78838         * doc/posix-functions/open_memstream.texi: Renamed from
78839         doc/glibc-functions/open_memstream.texi.
78840         * doc/posix-functions/opterr.texi: Renamed from
78841         doc/glibc-functions/opterr.texi.
78842         * doc/posix-functions/optind.texi: Renamed from
78843         doc/glibc-functions/optind.texi.
78844         * doc/posix-functions/optopt.texi: Renamed from
78845         doc/glibc-functions/optopt.texi.
78846         * doc/posix-functions/psignal.texi: Renamed from
78847         doc/glibc-functions/psignal.texi.
78848         * doc/posix-functions/scandir.texi: Renamed from
78849         doc/glibc-functions/scandir.texi.
78850         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
78851         doc/glibc-functions/sched_get_priority_min.texi.
78852         * doc/posix-functions/signgam.texi: Renamed from
78853         doc/glibc-functions/signgam.texi.
78854         * doc/posix-functions/stpcpy.texi: Renamed from
78855         doc/glibc-functions/stpcpy.texi.
78856         * doc/posix-functions/stpncpy.texi: Renamed from
78857         doc/glibc-functions/stpncpy.texi.
78858         * doc/posix-functions/strcasecmp_l.texi: Renamed from
78859         doc/glibc-functions/strcasecmp_l.texi.
78860         * doc/posix-functions/strcoll_l.texi: Renamed from
78861         doc/glibc-functions/strcoll_l.texi.
78862         * doc/posix-functions/strfmon_l.texi: Renamed from
78863         doc/glibc-functions/strfmon_l.texi.
78864         * doc/posix-functions/strftime_l.texi: Renamed from
78865         doc/glibc-functions/strftime_l.texi.
78866         * doc/posix-functions/strncasecmp_l.texi: Renamed from
78867         doc/glibc-functions/strncasecmp_l.texi.
78868         * doc/posix-functions/strndup.texi: Renamed from
78869         doc/glibc-functions/strndup.texi.
78870         * doc/posix-functions/strnlen.texi: Renamed from
78871         doc/glibc-functions/strnlen.texi.
78872         * doc/posix-functions/strsignal.texi: Renamed from
78873         doc/glibc-functions/strsignal.texi.
78874         * doc/posix-functions/strxfrm_l.texi: Renamed from
78875         doc/glibc-functions/strxfrm_l.texi.
78876         * doc/posix-functions/timer_gettime.texi: Renamed from
78877         doc/glibc-functions/timer_gettime.texi.
78878         * doc/posix-functions/tolower_l.texi: Renamed from
78879         doc/glibc-functions/tolower_l.texi.
78880         * doc/posix-functions/toupper_l.texi: Renamed from
78881         doc/glibc-functions/toupper_l.texi.
78882         * doc/posix-functions/towctrans_l.texi: Renamed from
78883         doc/glibc-functions/towctrans_l.texi.
78884         * doc/posix-functions/towlower_l.texi: Renamed from
78885         doc/glibc-functions/towlower_l.texi.
78886         * doc/posix-functions/towupper_l.texi: Renamed from
78887         doc/glibc-functions/towupper_l.texi.
78888         * doc/posix-functions/uselocale.texi: Renamed from
78889         doc/glibc-functions/uselocale.texi.
78890         * doc/posix-functions/vdprintf.texi: Renamed from
78891         doc/glibc-functions/vdprintf.texi.
78892         * doc/posix-functions/wcpcpy.texi:
78893         Renamed from doc/glibc-functions/wcpcpy.texi.
78894         * doc/posix-functions/wcpncpy.texi: Renamed from
78895         doc/glibc-functions/wcpncpy.texi.
78896         * doc/posix-functions/wcscasecmp.texi: Renamed from
78897         doc/glibc-functions/wcscasecmp.texi.
78898         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
78899         doc/glibc-functions/wcscasecmp_l.texi.
78900         * doc/posix-functions/wcscoll_l.texi: Renamed from
78901         doc/glibc-functions/wcscoll_l.texi.
78902         * doc/posix-functions/wcsdup.texi: Renamed from
78903         doc/glibc-functions/wcsdup.texi.
78904         * doc/posix-functions/wcsncasecmp.texi: Renamed from
78905         doc/glibc-functions/wcsncasecmp.texi.
78906         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
78907         doc/glibc-functions/wcsncasecmp_l.texi.
78908         * doc/posix-functions/wcsnlen.texi: Renamed from
78909         doc/glibc-functions/wcsnlen.texi.
78910         * doc/posix-functions/wcsnrtombs.texi: Renamed from
78911         doc/glibc-functions/wcsnrtombs.texi.
78912         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
78913         doc/glibc-functions/wcsxfrm_l.texi.
78914         * doc/posix-functions/wctrans_l.texi: Renamed from
78915         doc/glibc-functions/wctrans_l.texi.
78916         * doc/posix-functions/wctype_l.texi: Renamed from
78917         doc/glibc-functions/wctype_l.texi.
78918         * doc/gnulib.texi (Function Substitutes): Add these subsections.
78919         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
78920         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
78921         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
78922         these subsections.
78923         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
78924         Remove sections.
78926 2008-12-14  Bruno Haible  <bruno@clisp.org>
78928         Update doc for POSIX:2008.
78929         * doc/posix-functions/*.texi: Update URL of POSIX specification.
78931 2008-12-14  Bruno Haible  <bruno@clisp.org>
78933         Update doc for POSIX:2008.
78934         * doc/pastposix-functions/bcmp.texi: Renamed from
78935         doc/posix-functions/bcmp.texi.
78936         * doc/pastposix-functions/bcopy.texi: Renamed from
78937         doc/posix-functions/bcopy.texi.
78938         * doc/pastposix-functions/bsd_signal.texi: Renamed from
78939         doc/posix-functions/bsd_signal.texi.
78940         * doc/pastposix-functions/bzero.texi: Renamed from
78941         doc/posix-functions/bzero.texi.
78942         * doc/pastposix-functions/ecvt.texi: Renamed from
78943         doc/posix-functions/ecvt.texi.
78944         * doc/pastposix-functions/fcvt.texi: Renamed from
78945         doc/posix-functions/fcvt.texi.
78946         * doc/pastposix-functions/ftime.texi: Renamed from
78947         doc/posix-functions/ftime.texi.
78948         * doc/pastposix-functions/gcvt.texi: Renamed from
78949         doc/posix-functions/gcvt.texi.
78950         * doc/pastposix-functions/getcontext.texi: Renamed from
78951         doc/posix-functions/getcontext.texi.
78952         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
78953         doc/posix-functions/gethostbyaddr.texi.
78954         * doc/pastposix-functions/gethostbyname.texi: Renamed from
78955         doc/posix-functions/gethostbyname.texi.
78956         * doc/pastposix-functions/getwd.texi: Renamed from
78957         doc/posix-functions/getwd.texi.
78958         * doc/pastposix-functions/h_errno.texi: Renamed from
78959         doc/posix-functions/h_errno.texi.
78960         * doc/pastposix-functions/index.texi: Renamed from
78961         doc/posix-functions/index.texi.
78962         * doc/pastposix-functions/makecontext.texi: Renamed from
78963         doc/posix-functions/makecontext.texi.
78964         * doc/pastposix-functions/mktemp.texi: Renamed from
78965         doc/posix-functions/mktemp.texi.
78966         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
78967         doc/posix-functions/pthread_attr_getstackaddr.texi.
78968         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
78969         doc/posix-functions/pthread_attr_setstackaddr.texi.
78970         * doc/pastposix-functions/rindex.texi: Renamed from
78971         doc/posix-functions/rindex.texi.
78972         * doc/pastposix-functions/scalb.texi: Renamed from
78973         doc/posix-functions/scalb.texi.
78974         * doc/pastposix-functions/setcontext.texi: Renamed from
78975         doc/posix-functions/setcontext.texi.
78976         * doc/pastposix-functions/swapcontext.texi: Renamed from
78977         doc/posix-functions/swapcontext.texi.
78978         * doc/pastposix-functions/ualarm.texi: Renamed from
78979         doc/posix-functions/ualarm.texi.
78980         * doc/pastposix-functions/usleep.texi: Renamed from
78981         doc/posix-functions/usleep.texi.
78982         * doc/pastposix-functions/vfork.texi: Renamed from
78983         doc/posix-functions/vfork.texi.
78984         * doc/pastposix-functions/wcswcs.texi: Renamed from
78985         doc/posix-functions/wcswcs.texi.
78986         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
78987         (Function Substitutes): Update.
78989 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78991         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
78992         m4/strerror.m4.
78994 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78995             Bruno Haible  <bruno@clisp.org>
78997         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
78999 2008-12-13  Bruno Haible  <bruno@clisp.org>
79001         * modules/strtoull (Depends-on): Remove unistd.
79003 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79005         * modules/strtoull (Depends-on): Add stdlib.
79007 2008-12-11  Simon Josefsson  <simon@josefsson.org>
79009         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
79011 2008-12-10  Jim Meyering  <meyering@redhat.com>
79013         gl_ASSERT: don't say assertions are disabled when they're not
79014         * m4/assert.m4 (gl_ASSERT): Do not make configure report
79015         "checking whether to enable assertions... no", when they are in
79016         fact enabled.  This is solely a bug in the output of configure.
79017         In spite of saying "no", NDEBUG was not defined in that case.
79018         Also, as noted by Eric Blake, leave assertions enabled upon
79019         --enable-assert=INVALID.
79021 2008-12-10  Bruno Haible  <bruno@clisp.org>
79023         Change MODULES.html to refer to POSIX:2008 where possible.
79024         * MODULES.html.sh (POSIX2008_URL): New variable.
79025         (posix_headers): Remove sys/timeb, ucontext.
79026         (posix2001_headers): New variable.
79027         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
79028         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
79029         index, makecontext, mktemp, pthread_attr_getstackaddr,
79030         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
79031         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
79032         (posix2001_functions): New variable.
79033         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
79034         otherwise.
79036 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79038         add missing include to parse-duration.c
79039         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
79040         * modules/parse-duration (Depends-on): Add xalloc.
79042         fix sed script reading maint.mk
79043         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
79044         (syntax-check-rules): Use it.
79046 2008-12-09  Bruno Haible  <bruno@clisp.org>
79048         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
79049         MacOS X 10.4/PowerPC.
79050         Reported by Simon Josefsson.
79052 2008-12-08  Jim Meyering  <meyering@redhat.com>
79054         work around mingw's lack of some S_IF definitions
79055         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
79056         Reported by Simon Josefsson.
79058 2008-12-08  Bruno Haible  <bruno@clisp.org>
79060         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
79061         applied to variables. Needed on MacOS X 10.4/PowerPC.
79062         Reported by Simon Josefsson.
79064 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
79065         and Eric Blake  <ebb9@byu.net>
79067         assert: honor --enable-assert
79068         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
79069         order to honor --enable-assert, rather than treating it as a
79070         synonym for --disable-assert.
79072 2008-12-08  Jim Meyering  <meyering@redhat.com>
79074         * lib/posixtm.c: Remove now-useless declaration of mktime.
79076         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
79078 2008-12-07  Bruno Haible  <bruno@clisp.org>
79080         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
79081         test_once): Mark functions as static.
79082         * tests/test-tls.c (test_tls): Likewise.
79084 2008-12-07  Bruno Haible  <bruno@clisp.org>
79086         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
79087         iconv_register_autodetect.
79089 2008-12-07  Jim Meyering  <meyering@redhat.com>
79091         posixtm.c: avoid a warning
79092         * lib/posixtm.c (posixtime): Don't initialize tm0.
79093         It's no longer needed to placate gcc4's -Wuninitialized,
79094         and the attempt to placate would elicit a new warning.
79096         unicodeio.c: mark unused parameters
79097         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
79098         (fallback_failure_callback): Likewise.
79100 2008-12-07  Bruno Haible  <bruno@clisp.org>
79102         * gnulib-tool (func_create_testdir): When building the tests
79103         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
79104         Reported by Simon Josefsson.
79106 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79108         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
79110 2008-12-06  Bruno Haible  <bruno@clisp.org>
79112         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
79113         Suggested by Eric Blake.
79115 2008-12-06  Bruno Haible  <bruno@clisp.org>
79117         Fix a c-stack test failure on MacOS X.
79118         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
79119         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
79120         handler for SIGBUS as well.
79121         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
79122         install a signal handler for SIGBUS as well.
79123         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
79125 2008-12-06  Bruno Haible  <bruno@clisp.org>
79127         Advocacy documentation.
79128         * doc/gnulib-intro.texi (Benefits): New section.
79129         * doc/gnulib.texi: Update.
79131 2008-12-06  Bruno Haible  <bruno@clisp.org>
79133         Document the 'manywarnings' module.
79134         * doc/manywarnings.texi: New file.
79135         * doc/gnulib.texi: Include it.
79137 2008-12-05  Eric Blake  <ebb9@byu.net>
79139         tests: silence some gcc warnings
79140         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
79141         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
79142         type mismatches.
79144 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79145             Bruno Haible  <bruno@clisp.org>
79147         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
79149 2008-11-29  Jim Meyering  <meyering@redhat.com>
79151         unicodeio.c: mark unused parameters
79152         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
79153         (fallback_failure_callback): Likewise.
79155         fts: fix a thinko
79156         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
79157         (set_stat_type): Return S_IF*-valued "type" directly.
79158         Prompted by James Youngman's spotting a related bug.
79159         Confirmed by further testing through find.
79161         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
79162         * lib/fts.c (D_TYPE): Define.
79163         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
79164         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
79165         (s_ifmt_shift_bits): New function.
79166         (set_stat_type): New function.
79167         (fts_build): When not calling fts_stat, call set_stat_type
79168         to propagate dirent.d_type info to fts_read caller.
79169         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
79170         fts_statp->st_mode type information may be valid.
79172 2008-11-28  Simon Josefsson  <simon@josefsson.org>
79174         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
79175         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
79176         <sds@gnu.org>.
79178 2008-11-20  Bruno Haible  <bruno@clisp.org>
79180         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
79181         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
79182         INCLUDE_NEXT.
79183         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
79184         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
79185         * modules/math (Makefile.am): Substitute
79186         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
79187         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
79189 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
79190             Bruno Haible  <bruno@clisp.org>
79192         * lib/stdint.in.h: Define all type macros so that their expansion is
79193         a single typedef'ed token. Fixes a compilation failure in Boost which
79194         does "using ::int8_t;".
79196 2008-11-18  Simon Josefsson  <simon@josefsson.org>
79198         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
79199         gl_MANYWARN_ALL_GCC.
79200         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
79201         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
79202         * modules/manywarnings: New file.
79203         * MODULES.html.sh: Mention manywarnings module.
79205 2008-11-18  Bruno Haible  <bruno@clisp.org>
79207         * doc/gnulib-tool.texi (Unit tests): New section.
79209 2008-11-18  Simon Josefsson  <simon@josefsson.org>
79211         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
79212         paths like 'lib/po/foo.po'.
79214 2008-11-17  Simon Josefsson  <simon@josefsson.org>
79216         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
79217         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
79219 2008-11-17  Simon Josefsson  <simon@josefsson.org>
79221         * m4/warnings.m4: Use CPPFLAGS to really check whether the
79222         parameter works.
79224 2008-11-17  Simon Josefsson  <simon@josefsson.org>
79226         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
79228 2008-11-17  Bruce Korb  <bkorb@gnu.org>
79230         * modules/parse-duration-tests: New file.
79231         * tests/test-parse-duration.sh: New file.
79232         * tests/test-parse-duration.c: New file.
79234         New module 'parse-duration'.
79235         * lib/parse-duration.h: New file.
79236         * lib/parse-duration.c: New file.
79237         * modules/parse-duration: New file.
79239 2008-11-17  Bruno Haible  <bruno@clisp.org>
79241         * tests/test-select-out.sh: Comment out the first pipe test.
79242         Reported by Simon Josefsson.
79244 2008-11-17  Bruno Haible  <bruno@clisp.org>
79246         * modules/getaddrinfo (Depends-on): Add servent, hostent.
79247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
79248         gl_HOSTENT.
79250 2008-11-17  Bruno Haible  <bruno@clisp.org>
79252         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
79253         -lnetwork and -lnet. Needed for Haiku and BeOS.
79255 2008-11-16  Bruno Haible  <bruno@clisp.org>
79257         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
79259 2008-11-16  Bruno Haible  <bruno@clisp.org>
79261         Avoid test failure on Haiku.
79262         * tests/test-fsync.c: Include <errno.h>.
79263         (main): Don't require that fsync (0) fails.
79265 2008-11-15  Bruno Haible  <bruno@clisp.org>
79267         New module 'hostent'.
79268         * modules/hostent: New file.
79269         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
79271 2008-11-15  Bruno Haible  <bruno@clisp.org>
79273         New module 'servent'.
79274         * modules/servent: New file.
79275         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
79277 2008-11-15  Bruno Haible  <bruno@clisp.org>
79279         Avoid generating same test program with two different rules.
79280         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
79281         test-frexp to test-frexp-nolibm.
79282         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
79283         test-frexpl to test-frexpl-nolibm.
79285 2008-11-15  Bruno Haible  <bruno@clisp.org>
79287         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
79288         $(FREXPL_LIBM).
79290 2008-11-15  Bruno Haible  <bruno@clisp.org>
79292         * lib/netdb.in.h: Activate the definitions also when the system's
79293         <netdb.h> has 'struct addrinfo'.
79294         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
79295         EAI_OVERFLOW or AI_NUMERICSERV.
79296         * doc/posix-headers/netdb.texi: Document the problem.
79298 2008-11-15  Bruno Haible  <bruno@clisp.org>
79300         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
79302         Make the 'sched' module work on platforms where <sched.h> exists but
79303         is incomplete (such as Haiku).
79304         * lib/sched.in.h; Include the system's <sched.h> if it exists.
79305         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
79306         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
79307         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
79308         HAVE_STRUCT_SCHED_PARAM.
79309         * modules/sched (Depends-on): Add include_next.
79310         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
79311         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
79312         * doc/posix-headers/sched.texi: Document the issue.
79314 2008-11-13  Jim Meyering  <meyering@redhat.com>
79316         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
79317         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
79318         test would fail due to the difference in the Report bugs to ...
79319         line.  The expected address is empty, "<>", while the actual
79320         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
79322 2008-11-12  Bruno Haible  <bruno@clisp.org>
79324         lstat: don't compile lstat.c on systems lacking lstat
79325         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
79326         which don't have lstat; this is handled by lib/sys_stat.in.h already.
79327         Reported by Daniel P. Berrange via Jim Meyering.
79329 2008-11-12  Jim Meyering  <meyering@redhat.com>
79331         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
79333 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79335         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
79336         instead.
79338 2008-11-12  Bruno Haible  <bruno@clisp.org>
79340         * lib/unicodeio.c: Include unistr.h.
79341         (utf8_wctomb): Remove function.
79342         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
79344 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79346         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
79347         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
79348         <bruno@clisp.org>.
79349         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
79351 2008-11-12  Simon Josefsson  <simon@josefsson.org>
79353         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
79354         * doc/gnulib.texi: Add section for warnings.
79356 2008-11-11  Bruno Haible  <bruno@clisp.org>
79358         * lib/sockets.h: Add a comment.
79360 2008-11-11  Karl Berry  <karl@gnu.org>
79362         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
79364 2008-11-11  Eric Blake  <ebb9@byu.net>
79366         fdl.texi: avoid git symlinks
79367         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
79369 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79371         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
79373 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79375         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
79376         (gl_WARN_ADD): Substitute $2 if literal.
79378 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79380         * m4/warning.m4: Remove.
79382 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
79384         * m4/warnings.m4: Almost complete rewrite. :-)
79386 2008-11-10  Simon Josefsson  <simon@josefsson.org>
79388         * modules/warnings: New module.
79389         * m4/warnings.m4: New file.
79390         * MODULES.html.sh: Mention warnings module.
79391         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
79392         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79394 2008-11-10  Eric Blake  <ebb9@byu.net>
79396         fdl.texi: make a symlink to the latest version
79397         * doc/standards.texi: Revert today's earlier change.
79398         * doc/fdl-1.2.texi: Rename from old fdl.texi...
79399         * doc/fdl.texi: ...and replace this with a symlink to the newer
79400         fdl-1.3.texi.
79402 2008-11-10  Bruno Haible  <bruno@clisp.org>
79404         * tests/test-select-fd.c (main): Accept the result file name as fourth
79405         argument.
79406         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
79407         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
79409 2008-11-10  Bruno Haible  <bruno@clisp.org>
79411         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
79412         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
79413         as autoconf-substituted macros.
79414         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
79415         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
79416         gl_NETDB_H_DEFAULTS. Set these variables.
79417         * modules/netdb (Makefile.am): Substitute these variables.
79419 2008-11-10  Eric Blake  <ebb9@byu.net>
79421         standards.texi: include correct file for FDL 1.3
79422         * doc/standards.texi (GNU Free Documentation License): Change
79423         include file to pull in FDL 1.3, not 1.2.
79425         fdl.texi: revert accidental change to license
79426         * doc/fdl.texi: This is FDL 1.2, not 1.3.
79428 2008-11-10  Bruno Haible  <bruno@clisp.org>
79430         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
79431         cross-compiling guesses also when the native compile gives no result.
79433 2008-11-10  Bruno Haible  <bruno@clisp.org>
79435         * lib/spawni.c (__spawni): Force variable into the stack.
79437 2008-11-10  Bruno Haible  <bruno@clisp.org>
79439         Add support for Haiku.
79440         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
79441         glibc and BeOS, but also on Haiku.
79442         * lib/fpurge.c (fpurge): Likewise.
79443         * lib/freadable.c (freadable): Likewise.
79444         * lib/freadahead.c (freadahead): Likewise.
79445         * lib/freading.c (freading): Likewise.
79446         * lib/freadptr.c (freadptr): Likewise.
79447         * lib/freadseek.c (freadptrinc): Likewise.
79448         * lib/fseeko.c (rpl_fseeko): Likewise.
79449         * lib/fseterr.c (fseterr): Likewise.
79450         * lib/fwritable.c (fwritable): Likewise.
79451         * lib/fwriting.c (fwriting): Likewise.
79452         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
79454 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
79456         * lib/config.charset: Treat Haiku like BeOS.
79458 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
79460         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
79461         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
79463 2008-11-08  Bruno Haible  <bruno@clisp.org>
79465         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
79466         AC_CACHE_CHECK.
79468 2008-11-08  Bruno Haible  <bruno@clisp.org>
79470         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
79472 2008-11-08  Bruno Haible  <bruno@clisp.org>
79474         * tests/test-select-fd.c: New file.
79475         * tests/test-select-in.sh: New file.
79476         * tests/test-select-out.sh: New file.
79477         * tests/test-select-stdin.c: New file.
79478         * modules/select-tests (Files): Add the new files.
79479         (Depends-on): Add gettimeofday.
79480         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
79481         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
79482         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
79484 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
79485             Bruno Haible  <bruno@clisp.org>
79487         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
79489 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
79491         * build-aux/pmccabe2html: Added support for C++ source files.
79493 2008-11-05  Ben Pfaff  <blp@gnu.org>
79495         Fix lib/close.c build on Windows.
79496         * modules/close (Files): Add lib/w32sock.h.
79498 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
79500         Accept Bison's NEWS format.
79501         * build-aux/announce-gen (print_news_deltas): Tweak
79502         $re_prefix.
79504 2008-11-04  Bruno Haible  <bruno@clisp.org>
79506         * modules/random_r (Maintainer): Add glibc.
79508 2008-11-04  Simon Josefsson  <simon@josefsson.org>
79510         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
79511         by karl@freefriends.org (Karl Berry).
79512         * doc/alloca.texi: Likewise.
79513         * doc/c-ctype.texi: Likewise.
79514         * doc/c-strcase.texi: Likewise.
79515         * doc/c-strcaseeq.texi: Likewise.
79516         * doc/c-strcasestr.texi: Likewise.
79517         * doc/c-strstr.texi: Likewise.
79518         * doc/c-strtod.texi: Likewise.
79519         * doc/c-strtold.texi: Likewise.
79520         * doc/ctime.texi: Likewise.
79521         * doc/error.texi: Likewise.
79522         * doc/fdl.texi: Likewise.
79523         * doc/gcd.texi: Likewise.
79524         * doc/getdate.texi: Likewise.
79525         * doc/gnulib-intro.texi: Likewise.
79526         * doc/gnulib-tool.texi: Likewise.
79527         * doc/gnulib.texi: Likewise.
79528         * doc/inet_ntoa.texi: Likewise.
79529         * doc/maintain.texi: Likewise.
79530         * doc/make-stds.texi: Likewise.
79531         * doc/quote.texi: Likewise.
79532         * doc/regexprops-generic.texi: Likewise.
79533         * doc/standards.texi: Likewise.
79534         * doc/verify.texi: Likewise.
79535         * doc/visibility.texi: Likewise.
79536         * doc/gnulib.texi (GNU Free Documentation License): Include
79537         fdl-1.3.texi instead of fdl.texi.
79539 2008-11-04  Simon Josefsson  <simon@josefsson.org>
79541         * doc/fdl-1.3.texi: New file, from
79542         <http://www.gnu.org/licenses/fdl-1.3.texi>.
79543         * modules/fdl-1.3: Add.
79544         * MODULES.html.sh: Add fdl-1.3.
79546 2008-11-03  Bruno Haible  <bruno@clisp.org>
79548         Make determination of absolute name of header file work with AIX xlc.
79549         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
79550         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
79551         preprocessing.
79552         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
79553         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
79555 2008-11-03  Simon Josefsson  <simon@josefsson.org>
79557         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
79558         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
79559         <ludo@gnu.org>.
79561 2008-11-02  Bruno Haible  <bruno@clisp.org>
79563         Mark 'strpbrk' obsolete.
79564         * modules/strpbrk (Status, Notice): New sections.
79565         * modules/strtok_r (Depends-on): Add strpbrk.
79567 2008-11-02  Bruno Haible  <bruno@clisp.org>
79569         Mark 'strdup' obsolete.
79570         * modules/strdup (Status, Notice): New sections.
79571         * modules/findprog (Depends-on): Add strdup.
79572         * modules/getaddrinfo (Depends-on): Likewise.
79573         * modules/localename (Depends-on): Likewise.
79574         * modules/relocatable-lib (Depends-on): Likewise.
79575         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
79576         * modules/relocatable-prog (Depends-on): Likewise.
79577         * modules/trim (Depends-on): Likewise.
79578         * modules/unictype/gen-ctype (Depends-on): Likewise.
79579         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
79581 2008-11-02  Bruno Haible  <bruno@clisp.org>
79583         Mark 'strcspn' obsolete.
79584         * modules/strcspn (Status, Notice): New sections.
79586 2008-11-02  Bruno Haible  <bruno@clisp.org>
79588         Mark 'rmdir' obsolete.
79589         * modules/rmdir (Status, Notice): New sections.
79590         * modules/clean-temp (Depends-on): Add rmdir.
79591         * modules/openat (Depends-on): Likewise.
79593 2008-11-02  Bruno Haible  <bruno@clisp.org>
79595         Mark 'raise' obsolete.
79596         * modules/raise (Status, Notice): New sections.
79597         (Include): Specify <signal.h>.
79598         * modules/stdio (Depends-on): Add raise.
79599         * modules/write (Depends-on): Likewise.
79601 2008-11-02  Bruno Haible  <bruno@clisp.org>
79603         Mark 'memset' obsolete.
79604         * modules/memset (Status, Notice): New sections.
79606 2008-11-02  Bruno Haible  <bruno@clisp.org>
79608         Mark 'memmove' obsolete.
79609         * modules/memmove (Status, Notice): New sections.
79610         * modules/argp (Depends-on): Add memmove.
79611         * modules/argz (Depends-on): Likewise.
79612         * modules/canonicalize (Depends-on): Likewise.
79613         * modules/canonicalize-lgpl (Depends-on): Likewise.
79614         * modules/fts (Depends-on): Likewise.
79615         * modules/getcwd (Depends-on): Likewise.
79616         * modules/human (Depends-on): Likewise.
79617         * modules/regex (Depends-on): Likewise.
79618         * modules/striconveh (Depends-on): Likewise.
79619         * modules/trim (Depends-on): Likewise.
79620         * modules/unistr/u8-move (Depends-on): Likewise.
79621         * modules/unistr/u16-move (Depends-on): Likewise.
79622         * modules/unistr/u32-move (Depends-on): Likewise.
79624 2008-11-02  Bruno Haible  <bruno@clisp.org>
79626         Mark 'memcpy' obsolete.
79627         * modules/memcpy (Status, Notice): New sections.
79629 2008-11-02  Bruno Haible  <bruno@clisp.org>
79631         Mark 'memcmp' obsolete.
79632         * modules/memcmp (Status, Notice): New sections.
79633         * modules/argmatch (Depends-on): Add memchr.
79634         * modules/backupfile (Depends-on): Likewise.
79635         * modules/c-strcasestr (Depends-on): Likewise.
79636         * modules/crypto/des (Depends-on): Likewise.
79637         * modules/csharpcomp (Depends-on): Likewise.
79638         * modules/fnmatch (Depends-on): Likewise.
79639         * modules/git-merge-changelog (Depends-on): Likewise.
79640         * modules/isnand (Depends-on): Likewise.
79641         * modules/isnand-nolibm (Depends-on): Likewise.
79642         * modules/isnanf (Depends-on): Likewise.
79643         * modules/isnanf-nolibm (Depends-on): Likewise.
79644         * modules/isnanl (Depends-on): Likewise.
79645         * modules/isnanl-nolibm (Depends-on): Likewise.
79646         * modules/mbchar (Depends-on): Likewise.
79647         * modules/memcoll (Depends-on): Likewise.
79648         * modules/quotearg (Depends-on): Likewise.
79649         * modules/regex (Depends-on): Likewise.
79650         * modules/relocatable-prog (Depends-on): Likewise.
79651         * modules/same (Depends-on): Likewise.
79652         * modules/signbit (Depends-on): Likewise.
79653         * modules/strcasestr-simple (Depends-on): Likewise.
79654         * modules/unictype/gen-ctype (Depends-on): Likewise.
79655         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
79656         * modules/uniname/uniname (Depends-on): Likewise.
79657         * modules/unistr/u8-cmp (Depends-on): Likewise.
79659 2008-11-02  Bruno Haible  <bruno@clisp.org>
79661         Mark 'memchr' obsolete.
79662         * modules/memchr (Status, Notice): New sections.
79663         * modules/argp (Depends-on): Add memchr.
79664         * modules/base64 (Depends-on): Likewise.
79665         * modules/c-strcasestr (Depends-on): Likewise.
79666         * modules/chdir-long (Depends-on): Likewise.
79667         * modules/fnmatch (Depends-on): Likewise.
79668         * modules/getsubopt (Depends-on): Likewise.
79669         * modules/git-merge-changelog (Depends-on): Likewise.
79670         * modules/glob (Depends-on): Likewise.
79671         * modules/strcasestr-simple (Depends-on): Likewise.
79672         * modules/strnlen (Depends-on): Likewise.
79674 2008-11-02  Bruno Haible  <bruno@clisp.org>
79676         Mark 'atexit' obsolete.
79677         * modules/atexit (Status, Notice): New sections.
79678         * modules/chdir-long (Depends-on): Add atexit.
79679         * modules/wait-process (Depends-on): Likewise.
79681 2008-11-02  Bruno Haible  <bruno@clisp.org>
79683         * gnulib-tool: New option --with-obsolete.
79684         (func_usage): Document it.
79685         (func_modules_transitive_closure): Drop obsolete dependencies if
79686         incobsolete is not true.
79687         (func_import): Read and save the incobsolete variable to the cache.
79689 2008-11-02  Bruno Haible  <bruno@clisp.org>
79691         * modules/TEMPLATE-EXTENDED: New field 'Status'.
79692         * gnulib-tool: New option --extract-status.
79693         (func_usage): Document it.
79694         (sed_extract_prog): Recognize it.
79695         (func_get_status): New function.
79697 2008-10-30  Simon Josefsson  <simon@josefsson.org>
79699         * modules/sockets (License): Change from LGPL to LGPLv2+.
79701 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79703         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
79705 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79707         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79708         Mention times and sys_times.
79709         * modules/sys_times, modules/sys_times-tests: New modules.
79710         * modules/times, modules/times-tests: Likewise
79711         * m4/sys_times_h.m4: New file.
79712         * lib/sys_times.in.h: Likewise
79713         * lib/times.c: Likewise.
79714         * tests/test-sys_times.c: Likewise.
79715         * tests/test-times.c: Likewise.
79716         * doc/posix-headers/sys_times.texi: Update.
79717         * doc/posix-functions/times.texi: Update.
79719 2008-10-28  Jim Meyering  <meyering@redhat.com>
79721         * modules/tempname (Depends-on): Add lstat.
79723         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
79725 2008-10-28  Simon Josefsson  <simon@josefsson.org>
79727         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
79728         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
79729         using idiom used elsewhere in gnulib.
79731 2008-10-27  Jim Meyering  <meyering@redhat.com>
79733         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
79735 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79737         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
79738         TESTS_ENVIRONMENT, for shell scripts that needs to call built
79739         programs.
79740         * tests/test-argp-2.sh: Use $EXEEXT when needed.
79742 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79744         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
79746 2008-10-27  Bruno Haible  <bruno@clisp.org>
79748         * tests/test-lstat.c: Include <stdio.h>.
79750 2008-10-27  Simon Josefsson  <simon@josefsson.org>
79752         * modules/lstat-tests: New module.
79753         * tests/test-lstat.c: New file.
79755 2008-10-26  Jim Meyering  <meyering@redhat.com>
79757         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
79759 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79760             Bruno Haible  <bruno@clisp.org>
79762         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
79763         * modules/configmake (Include): Add a note that the include must come
79764         after all system headers.
79765         * lib/javaversion.c: Include configmake.h after all other includes.
79767 2008-10-26  Bruno Haible  <bruno@clisp.org>
79769         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
79770         HAVE_STRUCT_RANDOM_DATA to 1.
79771         (gl_STDLIB_H): Simplify.
79773 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79775         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
79776         substitute HAVE_STRUCT_RANDOM_DATA.
79777         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
79778         random_data.
79779         * modules/stdlib (Makefile.am): Substitute
79780         HAVE_STRUCT_RANDOM_DATA.
79782 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79784         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
79785         * doc/gnulib-intro.texi (Copyright): Likewise.
79787 2008-10-26  Simon Josefsson  <simon@josefsson.org>
79789         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
79790         findings.
79792 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
79793             Bruno Haible  <bruno@clisp.org>
79795         * lib/unistd.in.h: Include <winsock2.h>.
79796         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
79797         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
79798         Provide dummy declarations.
79799         (gethostname): Override.
79800         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
79801         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
79802         gl_PREREQ_SYS_H_WINSOCK2.
79803         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
79804         * doc/posix-functions/gethostname.texi: More details.
79806 2008-10-25  Bruno Haible  <bruno@clisp.org>
79808         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
79809         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
79810         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
79812         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
79813         here ...
79814         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
79815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
79816         gl_UNISTD_H_DEFAULTS.
79818 2008-10-25  Eric Blake  <ebb9@byu.net>
79820         signbit: avoid spurious compiler failure
79821         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
79822         declarations inside function.
79824 2008-10-24  Simon Josefsson  <simon@josefsson.org>
79825             Bruno Haible  <bruno@clisp.org>
79827         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
79828         * modules/random_r (Depends-on): Add stdint.
79830 2008-10-24  Bruno Haible  <bruno@clisp.org>
79832         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
79833         Eggert.
79834         * modules/strerror (License): Likewise.
79836 2008-10-24  Jim Meyering  <meyering@redhat.com>
79838         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
79839         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
79841 2008-10-24  Eric Blake  <ebb9@byu.net>
79843         getgroups: fix compilation when getgroups is available
79844         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
79845         but with <config.h> override of getgroups disabled.
79847 2008-10-24  Simon Josefsson  <simon@josefsson.org>
79849         * doc/gnulib.texi (Header files): Add note about C++ problems.
79850         Explained by Bruno Haible <bruno@clisp.org>.
79852 2008-10-23  Bruno Haible  <bruno@clisp.org>
79854         Define a dummy SA_NODEFER macro on Interix.
79855         * lib/signal.in.h (SA_NODEFER): Define fallback.
79856         Reported by Aleksey Cheusov <cheusov@tut.by> via
79857         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
79859 2008-10-23  Bruno Haible  <bruno@clisp.org>
79861         * modules/freadahead (License): Change to LGPLv2+.
79862         Suggested by Simon Josefsson.
79864 2008-10-23  Jim Meyering  <meyering@redhat.com>
79866         random_r: new module
79867         * modules/random_r: New file.
79868         * m4/random_r.m4: New file.
79869         * lib/random_r.c: New file, from glibc.
79870         * modules/random_r-tests: New file.
79871         * tests/test-random_r.c: New file.
79872         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
79873          Declare.
79874         (RAND_MAX): Define.
79875         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
79876         * modules/stdlib: Substitute them, too.
79877         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
79878         * doc/glibc-functions/initstate_r.texi: Mention the new module.
79879         * doc/glibc-functions/random_r.texi: Likewise.
79880         * doc/glibc-functions/setstate_r.texi: Likewise.
79881         * doc/glibc-functions/srandom_r.texi: Likewise.
79882         * config/srclist.txt: Mention it.
79884 2008-10-23  David Lutterkort  <lutter@redhat.com>
79886         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
79887         link requirement
79889 2008-10-23  Jim Meyering  <meyering@redhat.com>
79891         selinux-h: mark parameters of stub functions as intentionally unused
79892         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
79893         * lib/se-context.in.h: Likewise.
79895 2008-10-22  Simon Josefsson  <simon@josefsson.org>
79897         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
79899 2008-10-22  Simon Josefsson  <simon@josefsson.org>
79901         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
79903 2008-10-22  Eric Blake  <ebb9@byu.net>
79905         glthread/thread: avoid compiler warning
79906         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
79907         Add unreachable abort to silence compiler.
79909 2008-10-22  Eric Blake  <ebb9@byu.net>
79911         netdb: also supply struct addrinfo for cygwin 1.5.x
79912         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
79913         older cygwin.
79914         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
79915         cygwin.
79916         * doc/posix-headers/netdb.texi (netdb.h): Document this.
79918 2008-10-22  Bruno Haible  <bruno@clisp.org>
79920         * users.txt: Update entry about pspp.
79922 2008-10-21  Bruno Haible  <bruno@clisp.org>
79924         Simplification.
79925         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
79926         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
79928         Simplification.
79929         * lib/ioctl.c (ioctl): Don't undefine.
79930         * lib/socket.c (socket): Don't undefine.
79932         Remove unused module indicator macros.
79933         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
79934         GNULIB_$1 as a C macro.
79936         * doc/posix-functions/close.texi: Undo last change.
79937         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
79938         Windows platforms.
79940 2008-10-21  Bruno Haible  <bruno@clisp.org>
79942         Add gethostname() declaration to <unistd.h>.
79943         * lib/unistd.in.h (gethostname): New declaration.
79944         * lib/gethostname.c: Include <unistd.h>.
79945         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
79946         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
79947         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
79948         and HAVE_GETHOSTNAME.
79949         * modules/gethostname (Depends-on): Add unistd.
79950         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
79951         (Include): Specify <unistd.h>.
79952         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
79953         HAVE_GETHOSTNAME.
79954         * tests/test-gethostname.c: Include <unistd.h> first.
79956 2008-10-21  Bruno Haible  <bruno@clisp.org>
79958         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
79959         * modules/select-tests (Depends-on): Likewise.
79960         Reported by Simon Josefsson.
79962 2008-10-21  Simon Josefsson  <simon@josefsson.org>
79964         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
79965         * lib/accept.c: New file, based on winsock.c.
79966         * lib/bind.c: New file, based on winsock.c.
79967         * lib/connect.c: New file, based on winsock.c.
79968         * lib/getpeername.c: New file, based on winsock.c.
79969         * lib/getsockname.c: New file, based on winsock.c.
79970         * lib/getsockopt.c: New file, based on winsock.c.
79971         * lib/ioctl.c: New file, based on winsock.c.
79972         * lib/listen.c: New file, based on winsock.c.
79973         * lib/recv.c: New file, based on winsock.c.
79974         * lib/recvfrom.c: New file, based on winsock.c.
79975         * lib/send.c: New file, based on winsock.c.
79976         * lib/sendto.c: New file, based on winsock.c.
79977         * lib/setsockopt.c: New file, based on winsock.c.
79978         * lib/shutdown.c: New file, based on winsock.c.
79979         * lib/socket.c: New file, based on winsock.c.
79980         * lib/w32sock.h: New file, based on winsock.c.
79981         * lib/winsock.c: Remove file.
79982         * modules/accept: Likewise.
79983         * modules/bind: Likewise.
79984         * modules/connect: Likewise.
79985         * modules/getpeername: Likewise.
79986         * modules/getsockname: Likewise.
79987         * modules/getsockopt: Likewise.
79988         * modules/ioctl: Likewise.
79989         * modules/listen: Likewise.
79990         * modules/recv: Likewise.
79991         * modules/recvfrom: Likewise.
79992         * modules/send: Likewise.
79993         * modules/sendto: Likewise.
79994         * modules/setsockopt: Likewise.
79995         * modules/shutdown: Likewise.
79996         * modules/socket: Use socket.c instead of winsock.c.
79997         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
79998         * doc/posix-functions/accept.texi: Doc fix.
79999         * doc/posix-functions/bind.texi: Doc fix.
80000         * doc/posix-functions/close.texi: Doc fix.
80001         * doc/posix-functions/connect.texi: Doc fix.
80002         * doc/posix-functions/getpeername.texi: Doc fix.
80003         * doc/posix-functions/getsockname.texi: Doc fix.
80004         * doc/posix-functions/getsockopt.texi: Doc fix.
80005         * doc/posix-functions/ioctl.texi: Doc fix.
80006         * doc/posix-functions/listen.texi: Doc fix.
80007         * doc/posix-functions/recv.texi: Doc fix.
80008         * doc/posix-functions/recvfrom.texi: Doc fix.
80009         * doc/posix-functions/send.texi: Doc fix.
80010         * doc/posix-functions/sendto.texi: Doc fix.
80011         * doc/posix-functions/setsockopt.texi: Doc fix.
80012         * doc/posix-functions/shutdown.texi: Doc fix.
80013         * doc/posix-functions/socket.texi: Doc fix.
80015 2008-10-20  Bruno Haible  <bruno@clisp.org>
80017         Take into account the role of SIGABRT_COMPAT on Windows 2008.
80018         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
80019         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
80020         as an alias for SIGABRT.
80021         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
80022         (sigaction): Map it to SIGABRT.
80023         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
80025 2008-10-20  Bruno Haible  <bruno@clisp.org>
80027         * lib/fts.c: Don't include lstat.h.
80028         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
80030         Move the lstat() declaration to <sys/stat.h>.
80031         * lib/lstat.h: Remove file.
80032         * lib/sys_stat.in.h: Add special invocation convention.
80033         (lstat): New declaration.
80034         * lib/lstat.c (orig_lstat): New function.
80035         (rpl_lstat): Use orig_lstat instead of lstat.
80036         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
80037         AC_C_INLINE. Set REPLACE_LSTAT.
80038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
80039         and REPLACE_LSTAT.
80040         * modules/lstat (Files): Remove lib/lstat.h.
80041         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
80042         (Include): Specify <sys/stat.h> instead of lstat.h.
80043         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
80044         REPLACE_LSTAT.
80045         * NEWS: Mention the change.
80047 2008-10-20  Bruno Haible  <bruno@clisp.org>
80049         * modules/posix_spawn-tests: New file.
80050         * tests/test-posix_spawn3.c: New file.
80052 2008-10-20  Bruno Haible  <bruno@clisp.org>
80054         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
80055         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
80056         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
80057         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
80058         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
80060 2008-10-20  Bruno Haible  <bruno@clisp.org>
80062         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
80063         of posix_spawn on AIX 5.3.
80065 2008-10-20  Bruno Haible  <bruno@clisp.org>
80067         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
80069 2008-10-20  Bruno Haible  <bruno@clisp.org>
80071         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
80072         of AC_LANG_PROGRAM.
80074 2008-10-20  Simon Josefsson  <simon@josefsson.org>
80076         * lib/netdb.in.h: Don't define GNU specific constants until they
80077         are supported or needed.  Reported by Bruno Haible
80078         <bruno@clisp.org>.
80080 2008-10-20  Simon Josefsson  <simon@josefsson.org>
80082         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
80084 2008-10-20  Simon Josefsson  <simon@josefsson.org>
80086         * lib/getaddrinfo.h: Remove file.
80087         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
80088         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
80089         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
80090         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
80091         * modules/netdb: Substitute GNULIB_GETADDRINFO.
80092         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
80093         * tests/test-getaddrinfo.c: Likewise.
80094         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
80095         * NEWS: Mention change.
80097 2008-10-19  Bruno Haible  <bruno@clisp.org>
80099         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
80101 2008-10-19  Bruno Haible  <bruno@clisp.org>
80103         * lib/wait-process.c: Include simply <sys/wait.h>.
80104         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
80105         WIFSTOPPED): Remove fallback definitions.
80106         * modules/wait-process (Depends-on): Add sys_wait.
80108         New module 'sys_wait'.
80109         * modules/sys_wait: New file.
80110         * lib/sys_wait.in.h: New file, partially copied from
80111         lib/wait-process.c.
80112         * m4/sys_wait_h.m4: New file.
80113         * doc/posix-headers/sys_wait.texi: Mention the new module.
80115 2008-10-19  Bruno Haible  <bruno@clisp.org>
80117         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
80119 2008-10-19  Bruno Haible  <bruno@clisp.org>
80121         Assume that waitpid() fills an 'int' status, not a 'union wait'.
80122         * lib/wait-process.c (WAIT_T): Remove type.
80123         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
80124         (wait_subprocess): Update.
80126 2008-10-19  Bruno Haible  <bruno@clisp.org>
80128         New module 'atoll'.
80129         * modules/atoll: New file.
80130         * lib/stdlib.in.h (atoll): New declaration.
80131         * lib/atoll.c: New file, from glibc with modifications.
80132         * m4/atoll.m4: New file.
80133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
80134         HAVE_ATOLL.
80135         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
80136         * doc/posix-functions/atoll.texi: Mention the new module.
80138 2008-10-19  Bruno Haible  <bruno@clisp.org>
80140         Add strtoull() declaration to <stdlib.h>.
80141         * lib/stdlib.in.h (strtoull): New declaration.
80142         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
80143         Set HAVE_STRTOULL.
80144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
80145         HAVE_STRTOULL.
80146         * modules/strtoull (Depends-on): Add stdlib.
80147         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80148         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
80149         HAVE_STRTOULL.
80151 2008-10-19  Bruno Haible  <bruno@clisp.org>
80153         Add strtoll() declaration to <stdlib.h>.
80154         * lib/stdlib.in.h (strtoll): New declaration.
80155         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
80156         Set HAVE_STRTOLL.
80157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
80158         HAVE_STRTOLL.
80159         * modules/strtoll (Depends-on): Add stdlib.
80160         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80161         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
80163 2008-10-19  Bruno Haible  <bruno@clisp.org>
80165         * modules/bcopy (Depends-on): Add strings.
80166         (Include): Specify <strings.h>.
80168 2008-10-19  Bruno Haible  <bruno@clisp.org>
80170         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
80172 2008-10-19  Bruno Haible  <bruno@clisp.org>
80174         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
80175         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
80176         mingw.
80178 2008-10-19  Bruno Haible  <bruno@clisp.org>
80180         * lib/atanl.c: Don't include isnanl.h.
80181         * lib/cosl.c: Likewise.
80182         * lib/ldexpl.c: Likewise.
80183         * lib/logl.c: Likewise.
80184         * lib/sinl.c: Likewise.
80185         * lib/sqrtl.c: Likewise.
80186         * lib/tanl.c: Likewise.
80188         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
80189         * lib/isnanf.h: Remove file.
80190         * lib/isnand.h: Remove file.
80191         * lib/isnanl.h: Remove file.
80192         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
80193         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
80194         macros.
80195         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
80196         HAVE_ISNANF, don't define it as a C macro.
80197         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
80198         HAVE_ISNAND, don't define it as a C macro.
80199         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
80200         HAVE_ISNANL, don't define it as a C macro.
80201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
80202         HAVE_ISNAN[FDL].
80203         * modules/isnanf (Files): Remove lib/isnanf.h.
80204         (Depends-on): Add math.
80205         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
80206         (Include): Specify <math.h> instead of isnanf.h.
80207         * modules/isnand (Files): Remove lib/isnand.h.
80208         (Depends-on): Add math.
80209         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
80210         (Include): Specify <math.h> instead of isnand.h.
80211         * modules/isnanl (Files): Remove lib/isnanl.h.
80212         (Depends-on): Add math.
80213         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
80214         (Include): Specify <math.h> instead of isnanl.h.
80215         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
80216         HAVE_ISNAN[FDL].
80217         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
80218         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
80219         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
80220         * NEWS: Mention the change.
80222 2008-10-18  Bruno Haible  <bruno@clisp.org>
80224         Add getusershell(), setusershell(), endusershell() declarations to
80225         <unistd.h>.
80226         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
80227         declarations.
80228         * lib/getusershell.c: Include unistd.h.
80229         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
80230         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
80231         HAVE_GETUSERSHELL.
80232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
80233         and HAVE_GETUSERSHELL.
80234         * modules/getusershell (Depends-on): Add unistd, extensions.
80235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80236         (Include): Specify <unistd.h>.
80237         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
80238         HAVE_GETUSERSHELL.
80240 2008-10-18  Bruno Haible  <bruno@clisp.org>
80242         Add a getloadavg() declaration to <stdlib.h>.
80243         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
80244         getloadavg declaration.
80245         (getloadavg): New declaration.
80246         * lib/getloadavg.c: Include <stdlib.h> first.
80247         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
80248         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
80249         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
80250         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
80251         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
80252         * modules/getloadavg (Depends-on): Add stdlib, extensions.
80253         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
80254         (Include): Specify <stdlib.h>.
80255         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
80256         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
80258 2008-10-18  Bruno Haible  <bruno@clisp.org>
80260         * lib/dirchownmod.c: Don't include lchmod.h.
80262         Move the lchmod() declaration to <sys/stat.h>.
80263         * lib/lchmod.h: Remove file.
80264         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
80265         (lchmod): New declaration, moved here from lib/lchown.h.
80266         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
80267         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
80268         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
80269         and HAVE_LCHMOD.
80270         * modules/lchmod (Files): Remove lib/lchmod.h.
80271         (Depends-on): Add sys_stat, extensions.
80272         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
80273         (Include): Specify <sys/stat.h> instead of lchmod.h.
80274         * modules/sys_stat (Depends-on): Add link-warning.
80275         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
80276         definition of GL_LINK_WARNING.
80277         * NEWS: Mention the change.
80279 2008-10-18  Bruno Haible  <bruno@clisp.org>
80281         * lib/fchdir.c: Don't include dirfd.h.
80282         * lib/fts.c: Likewise.
80283         * lib/getcwd.c: Likewise.
80284         * lib/glob.c: Likewise.
80286         Move the dirfd() declaration to <dirent.h>.
80287         * lib/dirfd.h: Remove file.
80288         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
80289         (dirfd): New declaration.
80290         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
80291         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
80292         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
80293         HAVE_DECL_DIRFD.
80294         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
80295         HAVE_DECL_DIRFD.
80296         * modules/dirfd (Files): Remove lib/dirfd.h.
80297         (Depends-on): Add dirent, extensions.
80298         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
80299         (Include): Specify <dirent.h> instead of dirfd.h.
80300         * modules/dirent (Depends-on): Add link-warning.
80301         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
80302         definition of GL_LINK_WARNING.
80303         * NEWS: Mention the change.
80305 2008-10-18  Bruno Haible  <bruno@clisp.org>
80307         Move the euidaccess() declaration to <unistd.h>.
80308         * lib/euidaccess.h: Remove file.
80309         * lib/unistd.in.h (euidaccess): New declaration.
80310         * lib/euidaccess.c: Don't include euidaccess.h.
80311         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
80312         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
80313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
80314         and HAVE_EUIDACCESS.
80315         * modules/euidaccess (Files): Remove lib/euidaccess.h.
80316         (Depends-on): Add unistd.
80317         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80318         (Include): Specify <unistd.h> instead of euidaccess.h.
80319         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
80320         HAVE_EUIDACCESS.
80321         * NEWS: Mention the change.
80323 2008-10-18  Bruno Haible  <bruno@clisp.org>
80325         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
80327         Move the getdomainname() declaration to <unistd.h>.
80328         * lib/getdomainname.h: Remove file.
80329         * lib/unistd.in.h (getdomainname): New declaration.
80330         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
80331         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
80332         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
80333         HAVE_GETDOMAINNAME.
80334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80335         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
80336         * modules/getdomainname (Files): Remove lib/getdomainname.h.
80337         (Depends-on): Add unistd, extensions.
80338         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
80339         (Includes): Specify <unistd.h> instead of getdomainname.h.
80340         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
80341         HAVE_GETDOMAINNAME.
80342         * NEWS: Mention the change.
80344 2008-10-18  Bruno Haible  <bruno@clisp.org>
80346         * modules/dirent: New file.
80347         * m4/dirent_h.m4: New file.
80348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
80349         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
80350         * modules/fchdir (Files): Remove lib/dirent.in.h.
80351         (Depends-on): Add dirent.
80352         (Makefile.am): Move rules to modules/dirent.
80353         * doc/posix-headers/dirent.texi: Mention the new module.
80355 2008-10-18  Bruno Haible  <bruno@clisp.org>
80357         Avoid -Wunused-parameter warnings in public gnulib header files.
80358         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
80359         macro.
80360         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
80362 2008-10-18  Bruno Haible  <bruno@clisp.org>
80364         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
80365         * doc/glibc-functions/error.texi: Mention the module 'error'.
80366         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
80367         * doc/glibc-functions/getdomainname.texi: Mention the module
80368         'getdomainname'.
80369         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
80370         * doc/glibc-functions/getpagesize.texi: Mention the module
80371         'getpagesize'.
80372         * doc/glibc-functions/getusershell.texi: Mention the module
80373         'getusershell'.
80374         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
80375         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
80376         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
80377         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
80378         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
80379         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
80380         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
80381         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
80382         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
80383         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
80384         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
80385         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
80386         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
80387         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
80389 2008-10-17  Bruno Haible  <bruno@clisp.org>
80391         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
80392         HP-UX and IRIX, use -0.0L.
80393         * tests/test-ceill.c (minus_zero): Likewise.
80394         * tests/test-floorl.c (minus_zero): Likewise.
80395         * tests/test-frexpl.c (minus_zero): Likewise.
80396         * tests/test-isnan.c (minus_zerol): Likewise.
80397         * tests/test-isnanl.h (minus_zero): Likewise.
80398         * tests/test-ldexpl.c (minus_zero): Likewise.
80399         * tests/test-roundl.c (minus_zero): Likewise.
80400         * tests/test-signbit.c (minus_zerol): Likewise.
80401         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
80402         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
80403         * tests/test-truncl.c (minus_zero): Likewise.
80404         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
80405         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
80406         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
80407         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
80409 2008-10-17  Bruno Haible  <bruno@clisp.org>
80411         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
80412         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
80413         that it gets activated only for gcc >= 3.0.
80414         * lib/dirent.in.h: Likewise.
80415         * lib/errno.in.h: Likewise.
80416         * lib/fcntl.in.h: Likewise.
80417         * lib/float.in.h: Likewise.
80418         * lib/iconv.in.h: Likewise.
80419         * lib/inttypes.in.h: Likewise.
80420         * lib/locale.in.h: Likewise.
80421         * lib/math.in.h: Likewise.
80422         * lib/netdb.in.h: Likewise.
80423         * lib/netinet_in.in.h: Likewise.
80424         * lib/search.in.h: Likewise.
80425         * lib/signal.in.h: Likewise.
80426         * lib/spawn.in.h: Likewise.
80427         * lib/stdarg.in.h: Likewise.
80428         * lib/stdint.in.h: Likewise.
80429         * lib/stdio.in.h: Likewise.
80430         * lib/stdlib.in.h: Likewise.
80431         * lib/string.in.h: Likewise.
80432         * lib/strings.in.h: Likewise.
80433         * lib/sys_file.in.h: Likewise.
80434         * lib/sys_ioctl.in.h: Likewise.
80435         * lib/sys_select.in.h: Likewise.
80436         * lib/sys_socket.in.h: Likewise.
80437         * lib/sys_stat.in.h: Likewise.
80438         * lib/sys_time.in.h: Likewise.
80439         * lib/sysexits.in.h: Likewise.
80440         * lib/time.in.h: Likewise.
80441         * lib/unistd.in.h: Likewise.
80442         * lib/wchar.in.h: Likewise.
80443         * lib/wctype.in.h: Likewise.
80444         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80446 2008-10-17  Jim Meyering  <meyering@redhat.com>
80448         ignore-value: don't depend on inline module
80449         * modules/ignore-value (Depends-on): Remove 'inline'.
80450         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
80451         Suggestion from Bruno Haible.
80453 2008-10-17  Bruno Haible  <bruno@clisp.org>
80455         New implementation of condition variables for Win32.
80456         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
80457         (gl_linked_waitqueue_t): New type.
80458         (gl_cond_t): Use it.
80459         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
80460         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
80461         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
80462         (glthread_cond_init_func, glthread_cond_wait_func,
80463         glthread_cond_timedwait_func, glthread_cond_signal_func,
80464         glthread_cond_broadcast_func, glthread_cond_destroy_func):
80465         Reimplemented on the basis of gl_linked_waitqueue_t.
80466         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
80467         gl_waitqueue_t.
80468         (gl_rwlock_t): Update.
80469         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
80471 2008-10-17  Simon Josefsson  <simon@josefsson.org>
80473         * modules/recvfrom (Depends-on): Add dependency on getpeername.
80474         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80476 2008-10-17  Jim Meyering  <meyering@redhat.com>
80478         ignore-value: new module
80479         * modules/ignore-value: New file.
80480         * lib/ignore-value.h: New file.
80481         * MODULES.html.sh (Compiler warning management): New section,
80482         just for this module.  More to come.
80484 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
80486         open-safer.c: avoid 'signed and unsigned in conditional...' warning
80487         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
80488         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
80490 2008-10-16  Jim Meyering  <meyering@redhat.com>
80492         openat-die.c: avoid 'no previous prototype' warning
80493         * lib/openat-die.c: Include "openat.h".
80494         Reported by Reuben Thomas <rrt@sc3d.org>.
80496 2008-10-16  Simon Josefsson  <simon@josefsson.org>
80498         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
80499         * lib/netdb.in.h: Fix typo.
80500         Reported by Bruno Haible  <bruno@clisp.org>
80502         * lib/netdb.in.h: Include sys/socket.h for platforms without
80503         netdb.h, to get structures like hostent on MinGW.
80504         * modules/netdb (Depends-on): Add sys_socket.
80506 2008-10-15  Simon Josefsson  <simon@josefsson.org>
80508         * modules/netdb, modules/netdb-tests: New file.
80509         * m4/netdb_h.m4: New file.
80510         * lib/netdb.in.h: Add, currently just an empty file pending
80511         definitions.
80512         * tests/test-netdb.c: New file.
80513         * doc/posix-headers/netdb.texi: Mention that we replace it if
80514         needed.
80515         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80516         netdb.
80518 2008-10-15  Simon Josefsson  <simon@josefsson.org>
80520         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
80521         with code.
80523 2008-10-13  Bruno Haible  <bruno@clisp.org>
80525         * lib/glthread/cond.c (glthread_cond_wait_func,
80526         glthread_cond_timedwait_func): Add a comment.
80528 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80530         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
80531         * tests/test-select.c: Likewise,
80533 2008-10-13  Bruno Haible  <bruno@clisp.org>
80535         * lib/glthread/cond.c (glthread_cond_wait_func,
80536         glthread_cond_timedwait_func): Fix variable name.
80537         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
80539 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
80541         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
80542         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
80543         struct sockaddr.sa_len.
80544         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
80546 2008-10-13  Simon Josefsson  <simon@josefsson.org>
80548         * build-aux/pmccabe2html: Add css and css_url parameters.
80550 2008-10-12  Bruno Haible  <bruno@clisp.org>
80552         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
80553         calling aclx_get.
80554         Reported by Rainer Tammer <tammer@tammer.net>.
80556 2008-10-12  Bruno Haible  <bruno@clisp.org>
80558         Use msvcrt aware primitives for creation/termination of Win32 threads.
80559         * lib/glthread/thread.c: Include <process.h>.
80560         (glthread_create_func): Use _beginthreadex instead of CreateThread.
80561         (wrapper_func): Update signature.
80562         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
80564 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
80565             Bruno Haible  <bruno@clisp.org>
80567         Provide a Win32 implementation of the 'cond' module.
80568         * lib/glthread/cond.h [USE_WIN32]: New implementation.
80569         * lib/glthread/cond.c (glthread_cond_init_func,
80570         glthread_cond_wait_func, glthread_cond_timedwait_func,
80571         glthread_cond_signal_func, glthread_cond_broadcast_func,
80572         glthread_cond_destroy_func) [USE_WIN32]: New functions.
80573         * modules/cond (Dependencies): Add gettimeofday.
80575 2008-10-11  Bruno Haible  <bruno@clisp.org>
80577         Make sleep work on older versions of mingw.
80578         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
80579         only whether it exists.
80580         * doc/posix-functions/sleep.texi: Mention the problem with older
80581         versions of mingw.
80583 2008-10-11  Bruno Haible  <bruno@clisp.org>
80585         New module 'shutdown'.
80586         * modules/shutdown: New file.
80587         * lib/sys_socket.in.h (shutdown): New declaration.
80588         * lib/winsock.c (shutdown): New function.
80589         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
80590         GNULIB_SHUTDOWN.
80591         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
80592         * doc/posix-functions/shutdown.texi: Document the new module.
80594 2008-10-11  Jim Meyering  <meyering@redhat.com>
80596         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
80598 2008-10-11  Bruno Haible  <bruno@clisp.org>
80600         New module 'fclose'.
80601         * modules/fclose: New file.
80602         * lib/stdio.in.h (fclose): New declaration.
80603         * lib/fclose.c: New file.
80604         * m4/fclose.m4: New file.
80605         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
80606         REPLACE_FCLOSE.
80607         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
80608         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
80609         REPLACE_FCLOSE.
80610         * modules/close (Depends-on): fclose.
80611         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
80613 2008-10-11  Bruno Haible  <bruno@clisp.org>
80615         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
80616         set errno and don't call _close.
80618 2008-10-10  Bruno Haible  <bruno@clisp.org>
80620         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
80621         ACL, not afterwards. Fixes test failure on Cygwin.
80623 2008-10-09  Ben Pfaff  <blp@gnu.org>
80625         * build-aux/announce-gen: Fix gnulib version related part of usage
80626         message.  Die with a useful error message if no tarballs are
80627         found.
80629 2008-10-10  Jim Meyering  <meyering@redhat.com>
80631         bootstrap: use git's --depth=N option only if it's supported
80632         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
80633         recognize the --depth option.  Reported by Pádraig Brady.
80635 2008-10-09  Bruno Haible  <bruno@clisp.org>
80637         New module 'ioctl'.
80638         * modules/ioctl: New file.
80639         * lib/sys_socket.in.h (ioctl): Remove declaration.
80640         * lib/winsock.c: Include <sys/ioctl.h>.
80641         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
80642         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
80643         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
80644         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
80645         * doc/posix-functions/ioctl.texi: Mention the new module.
80647 2008-10-09  Bruno Haible  <bruno@clisp.org>
80649         New module 'sys_ioctl'.
80650         * lib/sys_ioctl.in.h: New file.
80651         * m4/sys_ioctl_h.m4: New file.
80652         * modules/sys_ioctl: New file.
80653         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
80655 2008-10-09  Bruno Haible  <bruno@clisp.org>
80657         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
80658         * lib/winsock.c: Include <stdarg.h>.
80659         (rpl_ioctl): Change to second argument 'int' and then varargs.
80661 2008-10-09  Bruno Haible  <bruno@clisp.org>
80663         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
80664         when the sys_socket module is present and the system has <winsock2.h>.
80666 2008-10-09  Bruno Haible  <bruno@clisp.org>
80668         * doc/posix-functions/close.texi: Mention module 'close' instead of
80669         module 'sys_socket'.
80671 2008-10-09  Bruno Haible  <bruno@clisp.org>
80673         * doc/glibc-headers/sys_ioctl.texi: New file.
80674         * doc/gnulib.texi: Include it.
80676 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80677             Bruno Haible  <bruno@clisp.org>
80679         Combine the two replacements of 'close'.
80680         * lib/sys_socket.in.h (close): Define to a reminder to include
80681         <unistd.h>.
80682         (_gl_close_fd_maybe_socket): New declaration.
80683         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
80684         * lib/winsock.c (close): Remove undefinition.
80685         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
80686         needed for the gnulib module 'close'.
80687         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
80688         define to an error symbol or to a warning, if suitable.
80689         * lib/close.c: Include <sys/socket.h>.
80690         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
80691         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
80692         UNISTD_H_HAVE_WINSOCK2_H.
80693         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
80694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
80695         UNISTD_H_HAVE_WINSOCK2_H.
80696         * modules/sys_socket (Files): Add m4/unistd_h.m4.
80697         (configure.ac): Set a module indicator.
80698         (Makefile.am): Substitute GNULIB_CLOSE.
80699         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
80700         * modules/poll-tests (Depends-on): Add close.
80701         * modules/select-tests (Depends-on): Likewise.
80703 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80704             Bruno Haible  <bruno@clisp.org>
80706         New module 'close'.
80707         * modules/close: New file.
80708         * lib/unistd.in.h (close): Move declaration out of the
80709         FCHDIR_REPLACEMENT scope.
80710         (_gl_unregister_fd): New declaration.
80711         * lib/close.c: New file.
80712         * lib/fchdir.c (rpl_close): Remove function.
80713         * m4/close.m4: New file.
80714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
80715         close.
80716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
80717         REPLACE_CLOSE.
80718         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
80719         REPLACE_CLOSE.
80720         * modules/fchdir (Depends-on): Add close.
80722 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80723             Bruno Haible  <bruno@clisp.org>
80725         * lib/fcntl.in.h (open): Simplify conditionals.
80726         (_gl_register_fd): New declaration.
80727         * lib/fchdir.c (rpl_open): Remove function.
80728         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
80729         also.
80730         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
80731         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
80732         open.
80734 2008-10-09  Jim Meyering  <meyering@redhat.com>
80736         GNUmakefile: use the more name-space-friendly "_version"
80737         * top/GNUmakefile (_dummy): Update.
80738         (_version): Rename from "version".
80740 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80741             Bruno Haible  <bruno@clisp.org>
80743         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
80744         rpl_close.
80745         (_gl_register_fd): New function, extracted from rpl_open.
80746         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
80747         (rpl_open, rpl_opendir): Use _gl_register_fd.
80749 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
80751         Fix organization of 'open' replacement.
80752         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
80753         (gl_FUNC_OPEN): Use it.
80754         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
80756 2008-10-08  Bruno Haible  <bruno@clisp.org>
80758         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
80760 2008-10-08  Simon Josefsson  <simon@josefsson.org>
80762         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
80763         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
80764         listen).
80766 2008-10-08  Eric Blake  <ebb9@byu.net>
80768         GNUmakefile: add 'make version' target
80769         * top/GNUmakefile (_curr-ver): Split version update rules...
80770         (version): ...into a target.
80772 2008-10-07  Bruno Haible  <bruno@clisp.org>
80774         Use a more portable replacement expression for -0.0L.
80775         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
80776         instead of -0.0L. Fix m4 quotation.
80778         * tests/test-signbit.c: Include <float.h>.
80779         (minus_zero): New variable.
80780         (test_signbitl): Use minus_zero instead of -zero.
80781         * modules/signbit-tests (Depends-on): Add float.
80783         * tests/test-ceill.c: Include <float.h>.
80784         (zero): Remove variable.
80785         (minus_zero): New variable.
80786         (main): Use minus_zero instead of -zero.
80787         * modules/ceill-tests (Depends-on): Add float.
80789         * tests/test-floorl.c: Include <float.h>.
80790         (zero): Remove variable.
80791         (minus_zero): New variable.
80792         (main): Use minus_zero instead of -zero.
80793         * modules/floorl-tests (Depends-on): Add float.
80795         * tests/test-roundl.c: Include <float.h>.
80796         (zero): Remove variable.
80797         (minus_zero): New variable.
80798         (main): Use minus_zero instead of -zero.
80799         * modules/roundl-tests (Depends-on): Add float.
80801         * tests/test-truncl.c: Include <float.h>.
80802         (zero): Remove variable.
80803         (minus_zero): New variable.
80804         (main): Use minus_zero instead of -zero.
80805         * modules/truncl-tests (Depends-on): Add float.
80807         * tests/test-frexpl.c (zero): Remove variable.
80808         (minus_zero): New variable.
80809         (main): Use minus_zero instead of -zero.
80810         * modules/frexpl-tests (Depends-on): Add float.
80812         * tests/test-isnan.c (zerol): Remove variable.
80813         (minus_zerol): New variable.
80814         (test_long_double): Use minus_zerol instead of -zerol.
80815         * modules/isnan-tests (Depends-on): Add float.
80817         * tests/test-isnanl.h (zero): Remove variable.
80818         (minus_zero): New variable.
80819         (main): Use minus_zero instead of -zero.
80820         * modules/isnanl-nolibm-tests (Depends-on): Add float.
80821         * modules/isnanl-tests (Depends-on): Add float.
80823         * tests/test-ldexpl.c (zero): Remove variable.
80824         (minus_zero): New variable.
80825         (main): Use minus_zero instead of -zero.
80826         * modules/ldexpl-tests (Depends-on): Add float.
80828         * tests/test-snprintf-posix.h (zerol): Remove variable.
80829         (minus_zerol): New variable.
80830         (test_function): Use minus_zerol instead of -zerol.
80831         * modules/snprintf-posix-tests (Depends-on): Add float.
80832         * modules/vsnprintf-posix-tests (Depends-on): Add float.
80834         * tests/test-sprintf-posix.h (zerol): Remove variable.
80835         (minus_zerol): New variable.
80836         (test_function): Use minus_zerol instead of -zerol.
80837         * modules/sprintf-posix-tests (Depends-on): Add float.
80838         * modules/vsprintf-posix-tests (Depends-on): Add float.
80840         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
80841         (minus_zerol): New variable.
80842         (test_function): Use minus_zerol instead of -zerol.
80843         * modules/vasnprintf-posix-tests (Depends-on): Add float.
80845         * tests/test-vasprintf-posix.c (zerol): Remove variable.
80846         (minus_zerol): New variable.
80847         (test_function): Use minus_zerol instead of -zerol.
80848         * modules/vasprintf-posix-tests (Depends-on): Add float.
80850 2008-10-07  Simon Josefsson  <simon@josefsson.org>
80852         * MODULES.html.sh (Support for building documentation): Mention
80853         pmccabe2html.  Sort entries.
80855         Add pmccabe2html module, from gnupdf.
80856         * build-aux/pmccabe.css: New file.
80857         * build-aux/pmccabe2html: New file.
80858         * m4/pmccabe2html.m4: New file.
80859         * modules/pmccabe2html: New file.
80861 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
80863         flock: new module
80864         * MODULES.html.sh: Add to list of modules.
80865         * lib/flock.c: flock implementation for Windows and Unix systems
80866         which have fcntl.
80867         * doc/glibc-functions/flock.texi: Update documentation.
80868         * lib/sys_file.in.h: <sys/file.h> header file.
80869         * m4/flock.m4: M4 macros.
80870         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
80871         * modules/flock: flock module.
80872         * modules/flock-tests: flock tests module.
80873         * modules/sys_file: sys/file.h module.
80874         * tests/test-flock.c: test suite for flock.
80876 2008-10-06  Jim Meyering  <meyering@redhat.com>
80878         bootstrap: check for LT_INIT more portably still ;-)
80879         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
80880         Spotted by Bruno Haible.
80882 2008-10-06  Eric Blake  <ebb9@byu.net>
80884         test-signbit: avoid tripping Irix cc bug on -0.0L
80885         * tests/test-signbit.c (minus_zerol): Delete, and replace with
80886         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
80887         entire testsuite consistent and avoids an Irix 6.2 bug.
80889 2008-10-05  Bruno Haible  <bruno@clisp.org>
80890             Jim Meyering  <jim@meyering.net>
80892         Add an option for ignoring EPIPE during close_stdout.
80893         * lib/closeout.h: Include <stdbool.h>.
80894         (close_stdout_set_ignore_EPIPE): New declaration.
80895         * lib/closeout.c: Include <stdbool.h>.
80896         (ignore_EPIPE): New variable.
80897         (close_stdout_set_ignore_EPIPE): New function.
80898         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
80899         * lib/close-stream.c (close_stream): Mention the possible EPIPE
80900         failure.
80901         * modules/closeout (Depends-on): Add stdbool.
80903 2008-10-05  Bruno Haible  <bruno@clisp.org>
80905         * modules/accept: New file.
80906         * modules/bind: New file.
80907         * modules/connect: New file.
80908         * modules/getpeername: New file.
80909         * modules/getsockname: New file.
80910         * modules/getsockopt: New file.
80911         * modules/listen: New file.
80912         * modules/recv: New file.
80913         * modules/recvfrom: New file.
80914         * modules/send: New file.
80915         * modules/sendto: New file.
80916         * modules/setsockopt: New file.
80917         * modules/socket: New file.
80918         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
80919         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
80920         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
80921         the particular module is requested. Add a link warning when the
80922         particular module is not requested.
80923         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
80924         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
80925         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
80926         the particular module is requested.
80927         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
80928         gl_SYS_SOCKET_H_DEFAULTS): New macros.
80929         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
80930         * modules/sys_socket (Depends-on): Add link-warning.
80931         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
80932         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
80933         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
80934         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
80935         GL_LINK_WARNING.
80936         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
80937         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
80938         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
80939         * doc/posix-functions/getpeername.texi: Mention the new module
80940         'getpeername'.
80941         * doc/posix-functions/getsockname.texi: Mention the new module
80942         'getsockname'.
80943         * doc/posix-functions/getsockopt.texi: Mention the new module
80944         'getsockopt'.
80945         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
80946         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
80947         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
80948         * doc/posix-functions/send.texi: Mention the new module 'send'.
80949         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
80950         * doc/posix-functions/setsockopt.texi: Mention the new module
80951         'setsockopt'.
80952         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
80953         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
80954         listen, connect, accept.
80955         * modules/select-tests (Depends-on): Likewise.
80957 2008-10-05  Bruno Haible  <bruno@clisp.org>
80959         * lib/winsock.c (strerror): Remove unused #undef.
80960         (rpl_close): Remove unused local variable.
80962         * modules/sys_socket (Depends-on); Add errno.
80964 2008-10-05  Bruno Haible  <bruno@clisp.org>
80966         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
80967         (select): Add a link warning when the 'select' module is not used.
80968         * modules/sys_select (Depends-on): Add link-warning.
80969         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
80970         Suggested by Paolo Bonzini.
80972 2008-10-05  Jim Meyering  <meyering@redhat.com>
80974         bootstrap: check for LT_INIT more portably
80975         * build-aux/bootstrap: Avoid using grep -E, since it's not
80976         portable enough.  Suggestion from Bruno Haible.
80978 2008-10-05  Bruno Haible  <bruno@clisp.org>
80980         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
80981         as being fixed by gnulib.
80983 2008-10-05  Bruno Haible  <bruno@clisp.org>
80985         * modules/select-tests: New file, mostly copied from
80986         modules/sys_select-tests.
80987         * tests/test-select.c: New file, mostly copied from
80988         tests/test-sys_select.c.
80989         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
80990         * modules/sys_select-tests (Depends-on): Remove all dependencies.
80991         (Makefile.am): Remove test_sys_select_LDADD.
80993         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
80994         to an undefined symbol, for an error message.
80995         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
80996         (gl_SYS_SELECT_H_DEFAULTS): New macro.
80997         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
80998         winsock-select.c here.
80999         * modules/sys_select (Files): Remove lib/winsock-select.c.
81000         (Depends-on): Remove alloca.
81001         (Makefile.am): Substitute GNULIB_SELECT.
81002         * modules/select: New file.
81003         * doc/posix-functions/select.texi: Update.
81005 2008-10-05  Bruno Haible  <bruno@clisp.org>
81007         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
81008         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
81009         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
81010         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
81011         getdtablesize.
81012         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
81013         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
81015 2008-10-05  Bruno Haible  <bruno@clisp.org>
81017         * modules/getdtablesize-tests: New file.
81018         * tests/test-getdtablesize.c: New file.
81020         New module 'getdtablesize'.
81021         * lib/unistd.in.h (getdtablesize): New declaration.
81022         * lib/getdtablesize.c: New file.
81023         * m4/getdtablesize.m4: New file.
81024         * modules/getdtablesize: New file.
81025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81026         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
81027         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
81028         HAVE_GETDTABLESIZE.
81029         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
81031 2008-10-05  Bruno Haible  <bruno@clisp.org>
81033         * modules/sched (Makefile.am): Fix typo.
81034         Reported by Simon Josefsson.
81036 2008-10-05  Jim Meyering  <meyering@redhat.com>
81038         bootstrap: check for LT_INIT, too
81039         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
81040         are deprecated.  Suggestion from Ralf Wildenhues.
81042 2008-10-05  Bruno Haible  <bruno@clisp.org>
81044         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
81045         overriding them by ours.
81046         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
81048 2008-10-05  Jim Meyering  <meyering@redhat.com>
81050         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
81051         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
81052         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
81054 2008-10-04  Bruno Haible  <bruno@clisp.org>
81056         * modules/dup2 (License): Change to LGPLv2+.
81057         * modules/sleep (License): Likewise.
81058         * modules/perror (License): Likewise.
81059         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
81060         Blake.
81061         * modules/signal (License): Likewise.
81062         * modules/sigprocmask (License): Likewise.
81063         * modules/raise (License): Change to LGPLv2+, with approval by Jim
81064         Meyering.
81066 2008-10-04  Bruno Haible  <bruno@clisp.org>
81068         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
81069         Reported by Rainer Tammer <tammer@tammer.net>.
81071 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
81072             Bruno Haible  <bruno@clisp.org>
81074         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
81075         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
81076         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
81078 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
81080         filevercmp: new module
81081         * lib/filevercmp.h: New function filevercmp comparing version strings.
81082         * lib/filevercmp.c: Implementation of filevercmp function.
81083         * modules/filevercmp: Module metadata.
81084         * tests/test-filevercmp.c: Unit test for new module.
81085         * modules/filevercmp-tests: Unit test metadata.
81086         * MODULES.html.sh: Add filevercmp module.
81088 2008-10-03  Bruno Haible  <bruno@clisp.org>
81090         * lib/c-ctype.h: Add comment.
81091         Reported by Jim Meyering.
81093 2008-10-02  Bruno Haible  <bruno@clisp.org>
81095         * modules/posix_spawn-internal (Depends-on): Add 'open'.
81097 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
81099         * build-aux/bootstrap: Allow renaming bootstrap, and change the
81100         name of bootstrap.conf accordingly.
81102 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
81104         * build-aux/bootstrap: Install git-merge-changelog configuration
81105         items into .gitconfig if needed.
81107 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
81109         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
81110         git repository, and initialize/update it accordingly.
81112 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
81114         * modules/fsync-tests: New file.
81115         * tests/test-fsync.c: New file.
81117         New module 'fsync'.
81118         * lib/fsync.c: New file.
81119         * m4/fsync.m4: New file.
81120         * modules/fsync: New file.
81121         * lib/unistd.in.h (fsync): New declaration.
81122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
81123         GNULIB_FSYNC and HAVE_FSYNC.
81124         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
81125         * MODULES.html.sh (posix_functions): Add fsync.
81126         * doc/posix-functions/fsync.texi: Mention the new module.
81128 2008-10-02  Jim Meyering  <meyering@redhat.com>
81130         fts.c: sync with similar code from coreutils' remove.c
81131         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
81132         Guard also with "#if defined __linux__", since for now at least,
81133         this code is Linux-kernel-specific.
81135 2008-10-02  Jim Meyering  <meyering@redhat.com>
81137         fts: bug fixes
81138         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
81139         Include <sys/vfs.h>, not <sys/statfs.h>.
81141         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
81142         Include <sys/vfs.h>, not <sys/statfs.h>.
81144 2008-10-01  Bruno Haible  <bruno@clisp.org>
81146         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
81147         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
81148         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
81149         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
81150         * doc/posix-functions/posix_spawnp.texi: Likewise.
81151         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
81152         whether posix_spawn actually works.
81153         * m4/pipe.m4 (gl_PIPE): Likewise.
81154         * modules/execute (Files): Add m4/posix_spawn.m4.
81155         * modules/pipe (Files): Add m4/posix_spawn.m4.
81156         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
81158 2008-10-01  Jim Meyering  <meyering@redhat.com>
81160         remove trailing spaces
81161         * NEWS: Likewise.
81162         * lib/poll.c (poll): Likewise.
81163         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
81164         * lib/winsock.c (rpl_close): Likewise.
81165         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
81166         * modules/yield: Likewise.
81167         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
81168         * tests/test-sys_select.c (connect_to_socket): Likewise.
81170         fts.c: adjust a new interface to be more generally useful
81171         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
81172         (fts_build): Adjust caller.
81174 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81176         * modules/cond-tests: New file.
81177         * tests/test-cond.c: New file.
81179 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81180             Bruno Haible  <bruno@clisp.org>
81182         * modules/cond (Dependencies): Add errno, time.
81183         * lib/glthread/cond.h: Include <time.h>.
81184         (gl_cond_define, gl_cond_define_initialized): Use the same definition
81185         across platforms.
81187 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81188             Bruno Haible  <bruno@clisp.org>
81190         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
81192 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81193             Bruno Haible  <bruno@clisp.org>
81195         * modules/tls-tests (Depends-on): Add thread, yield.
81196         (configure.ac): Remove all checks.
81197         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
81198         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
81199         gl_thread_self): Remove definitions. Include glthread/thread.h and
81200         glthread/yield.h instead.
81201         (test_tls): Pass an additional NULL argument to gl_thread_join.
81203 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81204             Bruno Haible  <bruno@clisp.org>
81206         * modules/lock-tests (Depends-on): Add thread, yield.
81207         (configure.ac): Remove all checks.
81208         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
81209         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
81210         gl_thread_self): Remove definitions. Include glthread/thread.h and
81211         glthread/yield.h instead.
81212         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
81213         additional NULL argument to gl_thread_join.
81215 2008-09-30  Bruno Haible  <bruno@clisp.org>
81217         Fix the Win32 implementation of the 'thread' module.
81218         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
81219         pointer type.
81220         (gl_thread_self): Invoke gl_thread_self_func.
81221         (gl_thread_self_func): New declaration.
81222         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
81223         (do_init_self_key, init_self_key): New functions.
81224         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
81225         Remove some fields.
81226         (running_threads, running_lock): Remove variables.
81227         (get_current_thread_handle): New function.
81228         (gl_thread_self_func, wrapper_func, glthread_create_func,
81229         glthread_join_func, gl_thread_exit_func): Largely rewritten and
81230         simplified.
81232 2008-09-30  Bruno Haible  <bruno@clisp.org>
81234         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
81235         files.
81237 2008-09-30  Jim Meyering  <meyering@redhat.com>
81239         fts.m4: correct the test for statfs.f_type
81240         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
81241         when checking for statfs.f_type.
81243 2008-09-15  Simon Josefsson  <simon@josefsson.org>
81245         tests: avoid some compiler warnings
81246         * tests/test-memchr.c (main): Pass NULL indirectly.
81247         * tests/test-getdate.c (main): Remove unused variable 'ret'.
81249 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
81251         getdate.y: disallow countable dayshifts like "4 yesterday ago"
81252         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
81253         exactly specified dayshifts.
81254         (dayshift): New rule.
81255         (rel): Add dayshift.
81256         (relative_time_table) [tomorrow, yesterday, today, now]:
81257         Use tDAY_SHIFT in place of tDAY_UNIT.
81258         * tests/test-getdate.c: Add tests for now-disallowed countable
81259         dayshifts, e.g., "4 yesterday ago".
81261 2008-09-29  Bruno Haible  <bruno@clisp.org>
81263         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
81264         * tests/test-posix_spawn1.in.sh: Renamed from
81265         tests/test-posix_spawn.in.sh.
81266         * tests/test-posix_spawn2.c: New file.
81267         * tests/test-posix_spawn2.in.sh: New file.
81268         * modules/posix_spawnp-tests (Files): Update.
81269         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
81271 2008-09-29  Bruno Haible  <bruno@clisp.org>
81273         Propagate effects of putenv/setenv/unsetenv to child processes.
81274         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
81275         * lib/pipe.c (create_pipe): Likewise.
81277 2008-09-29  Bruno Haible  <bruno@clisp.org>
81279         Enable use of shell scripts as executables in mingw.
81280         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
81281         run the program as a shell script.
81282         * lib/pipe.c (create_pipe): Likewise.
81283         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
81284         resulting array.
81286 2008-09-29  Eric Blake  <ebb9@byu.net>
81288         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
81290 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
81292         * doc/posix-functions/accept.texi: Update mingw problems.
81293         * doc/posix-functions/bind.texi: Update mingw problems.
81294         * doc/posix-functions/close.texi: Update mingw problems.
81295         * doc/posix-functions/connect.texi: Update mingw problems.
81296         * doc/posix-functions/getpeername.texi: Update mingw problems.
81297         * doc/posix-functions/getsockname.texi: Update mingw problems.
81298         * doc/posix-functions/getsockopt.texi: Update mingw problems.
81299         * doc/posix-functions/ioctl.texi: Update mingw problems.
81300         * doc/posix-functions/listen.texi: Update mingw problems.
81301         * doc/posix-functions/recv.texi: Update mingw problems.
81302         * doc/posix-functions/recvfrom.texi: Update mingw problems.
81303         * doc/posix-functions/select.texi: Update mingw problems.
81304         * doc/posix-functions/send.texi: Update mingw problems.
81305         * doc/posix-functions/sendto.texi: Update mingw problems.
81306         * doc/posix-functions/setsockopt.texi: Update mingw problems.
81307         * doc/posix-functions/socket.texi: Update mingw problems.
81309 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
81310             Bruno Haible  <bruno@clisp.org>
81312         * lib/sys_select.in.h: Include sys/time.h.
81313         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
81314         * modules/sys_select: Depend on sys_time.
81315         * tests/test-sys_select.c: Test that sys/select.h defines struct
81316         timeval fully.
81318 2008-09-29  Bruno Haible  <bruno@clisp.org>
81320         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
81321         * lib/sys_select.in.h: Likewise.
81323 2008-09-29  Bruno Haible  <bruno@clisp.org>
81325         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
81327 2008-09-29  Bruno Haible  <bruno@clisp.org>
81329         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
81330         Set LIBSOCKET instead of augmenting LIBS.
81331         * modules/sockets (Link): New section.
81332         * modules/sockets-tests (test_sockets_LDADD): New variable.
81333         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
81334         * modules/poll-tests (test_poll_LDADD): New variable.
81335         * NEWS: Document the change.
81337 2008-09-29  Bruno Haible  <bruno@clisp.org>
81339         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
81340         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
81341         ARPA_INET_H directly.
81342         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
81344 2008-09-28  Bruno Haible  <bruno@clisp.org>
81346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
81347         from gl_HEADER_SYS_SOCKET.
81348         (gl_HEADER_SYS_SOCKET): Invoke it.
81349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
81351 2008-09-28  Bruno Haible  <bruno@clisp.org>
81353         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
81354         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
81355         Needed on OSF/1 4.0.
81357 2008-09-28  Bruno Haible  <bruno@clisp.org>
81359         Override open more carefully.
81360         * lib/open.c (orig_open): New function.
81361         (rpl_open): Use orig_open instead of open.
81362         * lib/fcntl.in.h: Add special invocation convention.
81363         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
81364         (gl_FUNC_OPEN): Invoke it.
81366         Override freopen more carefully.
81367         * lib/freopen.c (orig_freopen): New function.
81368         (rpl_freopen): Use orig_freopen instead of freopen.
81369         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
81370         (gl_FUNC_FREOPEN): Invoke it.
81372         Override fopen more carefully.
81373         * lib/fopen.c (orig_fopen): New function.
81374         (rpl_fopen): Use orig_fopen instead of fopen.
81375         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
81376         (gl_FUNC_FOPEN): Invoke it.
81377         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
81379 2008-09-28  Bruno Haible  <bruno@clisp.org>
81381         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
81382         SIGPIPE.
81384 2008-09-28  Bruno Haible  <bruno@clisp.org>
81386         * tests/test-sigaction.c (handler, main): Disable the check whether
81387         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
81388         glibc systems with LinuxThreads.
81390 2008-09-28  Bruno Haible  <bruno@clisp.org>
81392         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
81394         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
81395         with AIX xlc.
81396         * lib/fcntl.in.h (open): Likewise.
81397         Reported by Rainer Tammer <tammer@tammer.net>.
81399 2008-09-28  Bruno Haible  <bruno@clisp.org>
81401         * modules/posix_spawnp-tests: New file.
81402         * tests/test-posix_spawn.c: New file.
81403         * tests/test-posix_spawn.in.sh: New file.
81405         New module 'posix_spawnp'.
81406         * modules/posix_spawnp: New file.
81407         * lib/spawnp.c: New file, from GNU libc with modifications.
81408         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
81410         New module 'posix_spawn'.
81411         * modules/posix_spawn: New file.
81412         * lib/spawn.c: New file, from GNU libc with modifications.
81413         * doc/posix-functions/posix_spawn.texi: Mention the new module.
81415         New module 'posix_spawnattr_destroy'.
81416         * modules/posix_spawnattr_destroy: New file.
81417         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
81418         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
81419         module.
81421         New module 'posix_spawnattr_setsigmask'.
81422         * modules/posix_spawnattr_setsigmask: New file.
81423         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
81424         modifications.
81425         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
81426         new module.
81428         New module 'posix_spawnattr_getsigmask'.
81429         * modules/posix_spawnattr_getsigmask: New file.
81430         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
81431         modifications.
81432         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
81433         new module.
81435         New module 'posix_spawnattr_setsigdefault'.
81436         * modules/posix_spawnattr_setsigdefault: New file.
81437         * lib/spawnattr_setdefault.c: New file, from GNU libc with
81438         modifications.
81439         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
81440         new module.
81442         New module 'posix_spawnattr_getsigdefault'.
81443         * modules/posix_spawnattr_getsigdefault: New file.
81444         * lib/spawnattr_getdefault.c: New file, from GNU libc with
81445         modifications.
81446         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
81447         new module.
81449         New module 'posix_spawnattr_setschedpolicy'.
81450         * modules/posix_spawnattr_setschedpolicy: New file.
81451         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
81452         modifications.
81453         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
81454         new module.
81456         New module 'posix_spawnattr_getschedpolicy'.
81457         * modules/posix_spawnattr_getschedpolicy: New file.
81458         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
81459         modifications.
81460         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
81461         new module.
81463         New module 'posix_spawnattr_setschedparam'.
81464         * modules/posix_spawnattr_setschedparam: New file.
81465         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
81466         modifications.
81467         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
81468         new module.
81470         New module 'posix_spawnattr_getschedparam'.
81471         * modules/posix_spawnattr_getschedparam: New file.
81472         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
81473         modifications.
81474         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
81475         new module.
81477         New module 'posix_spawnattr_setpgroup'.
81478         * modules/posix_spawnattr_setpgroup: New file.
81479         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
81480         modifications.
81481         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
81482         module.
81484         New module 'posix_spawnattr_getpgroup'.
81485         * modules/posix_spawnattr_getpgroup: New file.
81486         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
81487         modifications.
81488         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
81489         module.
81491         New module 'posix_spawnattr_setflags'.
81492         * modules/posix_spawnattr_setflags: New file.
81493         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
81494         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
81495         module.
81497         New module 'posix_spawnattr_getflags'.
81498         * modules/posix_spawnattr_getflags: New file.
81499         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
81500         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
81501         module.
81503         New module 'posix_spawnattr_init'.
81504         * modules/posix_spawnattr_init: New file.
81505         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
81506         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
81507         module.
81509         New module 'posix_spawn_file_actions_destroy'.
81510         * modules/posix_spawn_file_actions_destroy: New file.
81511         * lib/spawn_faction_destroy.c: New file, from GNU libc with
81512         modifications.
81513         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
81514         the new module.
81516         New module 'posix_spawn_file_actions_addopen'.
81517         * modules/posix_spawn_file_actions_addopen: New file.
81518         * lib/spawn_faction_addopen.c: New file, from GNU libc with
81519         modifications.
81520         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
81521         the new module.
81523         New module 'posix_spawn_file_actions_adddup2'.
81524         * modules/posix_spawn_file_actions_adddup2: New file.
81525         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
81526         modifications.
81527         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
81528         the new module.
81530         New module 'posix_spawn_file_actions_addclose'.
81531         * modules/posix_spawn_file_actions_addclose: New file.
81532         * lib/spawn_faction_addclose.c: New file, from GNU libc with
81533         modifications.
81534         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
81535         the new module.
81537         New module 'posix_spawn_file_actions_init'.
81538         * modules/posix_spawn_file_actions_init: New file.
81539         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
81540         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
81541         new module.
81543         New module 'posix_spawn-internal'.
81544         * modules/posix_spawn-internal: New file.
81545         * lib/spawn_int.h: New file, from GNU libc with modifications.
81546         * lib/spawni.c: New file, from GNU libc with modifications.
81547         * m4/posix_spawn.m4: New file.
81549         New module 'spawn'.
81550         * modules/spawn: New file.
81551         * lib/spawn.in.h: New file, from GNU libc with modifications.
81552         * m4/spawn_h.m4: New file.
81553         * doc/posix-headers/spawn.texi: Mention the new module.
81555 2008-09-28  Bruno Haible  <bruno@clisp.org>
81557         * modules/sched-tests: New file.
81558         * tests/test-sched.c: New file.
81560         New module 'sched'.
81561         * modules/sched: New file.
81562         * lib/sched.in.h: New file.
81563         * m4/sched_h.m4: New file.
81564         * doc/posix-headers/sched.texi: Mention the new module.
81566 2008-09-27  Eric Blake  <ebb9@byu.net>
81568         Fix previous patch, and tweak references to $0.
81569         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
81570         (func_version, func_gnulib_dir): Don't call this program
81571         gnulib-tool.
81572         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
81573         with using $0 in function.
81574         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
81575         (func_fatal_error): Reuse the name the user invoked us with.
81577 2008-09-27  Bruno Haible  <bruno@clisp.org>
81579         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
81580         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
81581         (gl_ICONV_H): Not here.
81582         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
81583         instead of assigning ICONV_H directly.
81585         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
81586         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
81587         WCHAR_H directly.
81589 2008-09-27  Bruno Haible  <bruno@clisp.org>
81591         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
81592         * modules/arpa_inet (Depends-on): Add link-warning.
81593         (Makefile.am): Insert the definition of GL_LINK-WARNING.
81594         * modules/unistd (Makefile.am): Likewise.
81596 2008-09-26  Bruno Haible  <bruno@clisp.org>
81598         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
81599         variables.
81600         (func_version): Essentially copied from gnulib-tool.
81601         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
81602         func_readlink): Copied from gnulib-tool.
81604 2008-09-26  Bruno Haible  <bruno@clisp.org>
81606         * gnulib-tool (func_version): Change directory to $gnulib_dir before
81607         invoking git-version-gen.
81609 2008-09-26  Bruno Haible  <bruno@clisp.org>
81611         * posix-modules: Update to directory names changed on 2008-01-19.
81612         Remove commas in output before splitting into words. No more need to
81613         avoid 'ftruncate' since 2007-02-19.
81615 2008-09-26  Bruno Haible  <bruno@clisp.org>
81617         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
81619 2008-09-26  Bruno Haible  <bruno@clisp.org>
81621         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
81622         * modules/fwriteerror (Depends-on): Add errno.
81624 2008-09-26  Bruno Haible  <bruno@clisp.org>
81626         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
81627         * tests/test-vc-list-files-cvs.sh: Likewise.
81629 2008-09-26  Bruno Haible  <bruno@clisp.org>
81631         * doc/posix-headers/sys_resource.texi: Reorder items.
81633 2008-09-26  Jim Meyering  <meyering@redhat.com>
81635         fts: tweak inode comparison function
81636         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
81637         inode numbers, as documented.
81639         fts: sort dirent entries on inode number before traversing
81640         This avoids a quadratic, seek-related performance penalty when
81641         operating on a directory containing many entries (measurable at 10k;
81642         3.5 hours at 2 million entries with a cold cache) on certain types
81643         of file systems, including ext3 and ext4, but not tmpfs.
81644         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
81645         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
81646         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
81647         (fs_handles_readdir_ordered_dirents_efficiently): New function.
81648         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
81649         (fts_build): Set the stat.st_ino member from D_INO.
81650         If it is likely to be useful, sort dirent entries on inode number.
81652         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
81653         and the struct statfs.f_type member.
81654         * modules/fts (Depends-on): Add d-ino.
81656 2008-09-26  Bruno Haible  <bruno@clisp.org>
81658         * modules/sigpipe-die (Depends-on): Add sigpipe.
81660         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
81661         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
81662         and GNULIB_STDIO_H_SIGPIPE are set.
81663         * lib/stdio-write.c: New file.
81664         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
81665         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81666         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81667         REPLACE_STDIO_WRITE_FUNCS.
81668         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
81669         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81670         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81671         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
81672         * modules/stdio (Files): Add lib/stdio-write.c.
81673         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
81674         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
81675         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
81676         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
81677         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
81678         REPLACE_FPRINTF_POSIX.
81679         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
81680         REPLACE_PRINTF_POSIX.
81681         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
81682         REPLACE_VFPRINTF_POSIX.
81683         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
81684         REPLACE_VPRINTF_POSIX.
81685         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
81686         SIGPIPE issue.
81687         * doc/posix-functions/fputc.texi: Likewise.
81688         * doc/posix-functions/fputs.texi: Likewise.
81689         * doc/posix-functions/fwrite.texi: Likewise.
81690         * doc/posix-functions/printf.texi: Likewise.
81691         * doc/posix-functions/putc.texi: Likewise.
81692         * doc/posix-functions/putchar.texi: Likewise.
81693         * doc/posix-functions/puts.texi: Likewise.
81694         * doc/posix-functions/vfprintf.texi: Likewise.
81695         * doc/posix-functions/vprintf.texi: Likewise.
81697         * modules/safe-write (Depends-on): Add write.
81699         * modules/sigpipe-tests: New file.
81700         * tests/test-sigpipe.c: New file.
81701         * tests/test-sigpipe.sh: New file.
81703         * modules/write: New file.
81704         * lib/unistd.in.h: Include <sys/types.h>.
81705         (write): New declaration.
81706         * lib/write.c: New file.
81707         * m4/write.m4: New file.
81708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
81709         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
81710         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
81711         GNULIB_WRITE, REPLACE_WRITE.
81712         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
81713         and the SIGPIPE issue.
81715         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
81716         (raise): New declaration.
81717         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
81718         (ext_signal): New function.
81719         (rpl_raise): New function.
81720         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
81721         GNULIB_SIGNAL_H_SIGPIPE.
81722         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
81723         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
81725         * modules/sigpipe: New file.
81726         * m4/sigpipe.m4: New file.
81728 2008-09-25  Derek Price  <derek@ximbiot.com>
81729             Bruno Haible  <bruno@clisp.org>
81731         * gnulib-tool (func_import): Report all license incompatibilities, not
81732         just the first one.
81734 2008-09-25  Bruno Haible  <bruno@clisp.org>
81736         * gnulib-tool (func_import): When computing the edits, consider not
81737         only the Makefile.ams that exist but also those that will be generated.
81739 2008-09-25  Simon Josefsson  <simon@josefsson.org>
81741         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
81742         fixes gnulib-tool --test warning about duplicate dependency.
81744 2008-09-25  Bruno Haible  <bruno@clisp.org>
81746         * gnulib-tool: Don't ask the user to perform edits in the generated
81747         Makefile.ams.
81748         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
81749         apply to the Makefile.am being generated.
81750         (func_emit_tests_Makefile_am): Execute edits that apply to the
81751         Makefile.am being generated.
81752         (func_import): Setup list of Makefile.am edits before emitting the
81753         Makefile.ams, not at the end.
81754         (func_create_testdir): Update.
81755         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81757 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81759         * gnulib-tool (func_import): Store the --tests-base option in the
81760         comment in gnulib-cache.m4.
81762 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
81764         * NEWS: Document increased portability that sys_select now provides.
81766         * lib/sys_select.in.h: Install select wrapper.
81767         * lib/sys_socket.in.h: Use more descriptive name when there is no
81768         select wrapper.
81769         * lib/winsock-select.c: New.
81770         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
81771         Require gl_HEADER_SYS_SOCKET.
81772         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
81773         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
81774         * tests/test-sys_select.c: Add functional tests.
81776 2008-09-24  Eric Blake  <ebb9@byu.net>
81778         open, fopen: close fd leak in last patch
81779         * lib/open.c (rpl_open): Close fd before returning error.
81780         * lib/fopen.c (rpl_fopen): Close fd before returning error.
81781         * doc/posix-functions/open.texi (open): Document that Irix also
81782         has the bug.
81783         * doc/posix-functions/fopen.texi (fopen): Likewise.
81784         Reported by Paolo Bonzini.
81786 2008-09-24  Bruno Haible  <bruno@clisp.org>
81788         Ensure that a filename ending in a slash cannot be used to access a
81789         non-directory.
81790         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
81791         to check whether it's really a directory.
81792         * lib/fopen.c: Include fcntl.h, unistd.h.
81793         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
81794         and fdopen().
81795         * modules/fopen (Depends-on): Add unistd.
81796         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
81797         * tests/test-fopen.c (main): Likewise.
81798         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
81799         * doc/posix-functions/fopen.texi: Likewise.
81800         Reported by Eric Blake.
81802 2008-09-23  Eric Blake  <ebb9@byu.net>
81804         c-stack: avoid compiler optimizations when provoking overflow
81805         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
81806         recursion harder to optimize, to ensure a stack overflow occurs.
81807         * tests/test-c-stack.c (recurse): Likewise.
81808         Borrowed from libsigsegv.
81810         c-stack: work around Irix sigaltstack bug
81811         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
81812         whether sigaltstack uses wrong end of stack_t (copied in part from
81813         libsigsegv).
81814         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
81815         Irix bug, without requiring an over-allocation.
81816         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
81817         bug.
81819         fopen: document mingw bug on directories
81820         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
81821         not allowing a stream visiting a directory, even though reading
81822         from such a stream is not portable.
81824 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81826         * lib/poll.c: Rewrite.
81827         * modules/poll: Depend on alloca.
81829 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81831         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
81832         instead define prototypes for a full set of wrappers.  Ensure
81833         that Cygwin does not use the compatibility code, which is only
81834         for MinGW.
81835         * lib/winsock.c: New.
81836         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
81837         * modules/sys_socket: Add lib/winsock.c.
81839         * modules/poll-tests: Add errno and perror.
81840         * tests/test-poll.c: Use ioctl, not ioctlsocket.
81842 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
81844         * tests/test-poll.c: Downgrade minimum needed Winsock version.
81846 2008-09-23  Bruno Haible  <bruno@clisp.org>
81848         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
81849         * doc/glibc-functions/*: Likewise.
81851 2008-09-23  Simon Josefsson  <simon@josefsson.org>
81853         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
81854         success.
81856 2008-09-22  Eric Blake  <ebb9@byu.net>
81857             Bruno Haible  <bruno@clisp.org>
81859         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
81860         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
81861         supply %A but mishandle pseudo-NaN.
81862         Reported by Simon Josefsson.
81864 2008-09-21  Bruno Haible  <bruno@clisp.org>
81866         * tests/test-lock.c (main): Tweak skip message.
81867         * tests/test-tls.c (main): Likewise.
81869 2008-09-21  Bruno Haible  <bruno@clisp.org>
81871         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
81872         whether 'struct sigaction' has sa_sigaction here...
81873         (gl_PREREQ_SIG_HANDLER_H): ... not here.
81874         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
81876 2008-09-21  Bruno Haible  <bruno@clisp.org>
81878         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
81879         section.
81880         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
81881         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
81882         the new section.
81883         (Support for obsolete systems lacking POSIX:2001): New section.
81884         (String handling <string.h>): Move strdup to the new section.
81885         Suggested by Simon Josefsson and Paolo Bonzini.
81887 2008-09-21  Bruno Haible  <bruno@clisp.org>
81889         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
81890         exponents in %e and %g results on 'long double'. Needed for mingw's
81891         improved *printf functions.
81892         * tests/test-vasprintf-posix.c (test_function): Likewise.
81893         * tests/test-snprintf-posix.h (test_function): Likewise.
81894         * tests/test-sprintf-posix.h (test_function): Likewise.
81895         Reported by Eric Blake.
81897 2008-09-21  Bruno Haible  <bruno@clisp.org>
81899         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
81900         * tests/test-sprintf-posix.h (test_function): Likewise.
81902 2008-09-21  Bruno Haible  <bruno@clisp.org>
81904         * modules/getpass (Depends-on): Add strdup-posix.
81906         New module 'strdup-posix'.
81907         * modules/strdup-posix: New file.
81908         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
81909         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
81910         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81911         REPLACE_STRDUP.
81912         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
81913         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
81914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81915         strdup-posix.
81917         * modules/strdup (Depends-on): Remove malloc-posix.
81919 2008-09-20  Bruno Haible  <bruno@clisp.org>
81921         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
81922         Wildenhues.
81924 2008-09-20  Bruno Haible  <bruno@clisp.org>
81926         Ensure that wint_t gets defined on IRIX 5.3.
81927         * lib/wchar.in.h (wint_t): Define if not defined by the system.
81928         * lib/wctype.in.h (wint_t): Likewise.
81929         (__wctype_wint_t): Remove type.
81930         (isw*): Use wint_t instead of __wctype_wint_t.
81931         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
81932         * modules/wchar (Files): Add m4/wint_t.m4.
81933         (Makefile.am): Substitute HAVE_WINT_T.
81934         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
81935         * tests/test-wctype.c: Check that wint_t is defined.
81936         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
81937         * doc/posix-headers/wctype.texi: Likewise.
81938         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81940 2008-09-18  Bruno Haible  <bruno@clisp.org>
81942         * gnulib-tool (func_exit): Update comment.
81944 2008-09-18  Simon Josefsson  <simon@josefsson.org>
81946         * modules/getaddrinfo (Depends-on): Remove strdup, this module
81947         assumes strdup exists and does not depend on strdup to return
81948         ENOMEM on out of memory conditions.
81950 2008-09-18  Bruno Haible  <bruno@clisp.org>
81952         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
81953         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
81954         digits for the exponent.
81956 2008-09-18  Jim Meyering  <meyering@redhat.com>
81957             Bruno Haible  <bruno@clisp.org>
81959         * lib/vasnprintf.c (decimal_point_char): Define also if
81960         NEED_PRINTF_INFINITE_LONG_DOUBLE.
81962 2008-09-16  Bruno Haible  <bruno@clisp.org>
81963         and Eric Blake  <ebb9@byu.net>
81965         vasnprintf: support Irix 5.3
81966         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
81967         that mishandle long double infinity.
81968         Reported by Tom G. Christensen.
81970 2008-09-16  Bruno Haible  <bruno@clisp.org>
81972         * doc/glibc-functions/scandir.texi: Mention the function is missing on
81973         Solaris 9.
81974         * doc/glibc-functions/alphasort.texi: Likewise.
81975         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
81977 2008-09-16  Jim Meyering  <meyering@redhat.com>
81979         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
81980         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
81981         a umask modification leak out of a subshell.  Otherwise, the
81982         opensolaris /bin/sh would be accepted and thus cause unwarranted
81983         failures in the coreutils test suite.
81985 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
81987         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
81988         to succeed.
81990 2008-09-16  Jim Meyering  <meyering@redhat.com>
81992         avoid spurious test failure when library is built without ACL support
81993         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
81994         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
81995         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
81996         * tests/test-copy-acl.sh: Likewise.
81998 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82000         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
82001         based on character occurrence counts.
82003 2008-09-15  Eric Blake  <ebb9@byu.net>
82005         tests: avoid some compiler warnings
82006         * tests/test-memchr.c (main): Pass NULL indirectly.
82007         * tests/test-closein.c (main): Avoid unused variable.
82009 2008-09-15  Bruno Haible  <bruno@clisp.org>
82011         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
82012         are missing on OpenBSD 4.0 individually.
82013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82015 2008-09-15  Bruno Haible  <bruno@clisp.org>
82017         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
82018         * doc/posix-functions/strerror.texi: Mention also Cygwin.
82019         * doc/posix-functions/perror.texi: Likewise.
82020         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
82021         is missing.
82022         Reported by Eric Blake.
82024         * lib/errno.in.h: Use replacement values >= 2000.
82025         Reported by Eric Blake.
82027 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82029         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
82030         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
82031         limit.
82032         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
82033         compareseq was aborted.
82035 2008-09-14  Bruno Haible  <bruno@clisp.org>
82037         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
82038         yvec_edit_count.
82039         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
82040         (fstrcmp_bounded): Simplify result computation accordingly.
82042 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82044         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
82045         (fstrcmp): Define in terms of fstrcmp_bounded.
82046         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
82047         lower_bound argument.
82048         Return quickly if the result is certainly < lower_bound.
82049         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
82051 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82053         * lib/diffseq.h (EARLY_ABORT): New macro.
82054         (compareseq): Change return type to bool. Return true when EARLY_ABORT
82055         evaluates to true.
82057 2008-09-14  Bruno Haible  <bruno@clisp.org>
82059         * modules/perror-tests: New file.
82060         * tests/test-perror.sh: New file.
82061         * tests/test-perror.c: New file.
82063         New module 'perror'.
82064         * lib/stdio.in.h (perror): New declaration.
82065         * lib/perror.c: New file.
82066         * m4/perror.m4: New file.
82067         * modules/perror: New file.
82068         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
82069         * doc/posix-functions/perror.texi: Mention the perror module.
82070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
82071         REPLACE_PERROR.
82072         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
82073         REPLACE_PERROR.
82075 2008-09-14  Bruno Haible  <bruno@clisp.org>
82077         * modules/stdio (Makefile.am): Reorder to match the order in
82078         lib/stdio.in.h.
82079         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
82081 2008-09-13  Bruno Haible  <bruno@clisp.org>
82083         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
82085 2008-09-13  Bruno Haible  <bruno@clisp.org>
82087         Extend strerror to cover the added errno values.
82088         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
82089         (rpl_strerror): Provide error messages for the added errno values and
82090         for the WSA* values.
82091         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
82092         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
82093         strerror.
82094         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
82095         * modules/strerror (Depends-on): Add errno.
82096         * doc/posix-functions/strerror.texi: Document the change.
82097         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
82098         and EOVERFLOW.
82100 2008-09-13  Bruno Haible  <bruno@clisp.org>
82102         * modules/EOVERFLOW: Remove file.
82103         * m4/eoverflow.m4: Remove file.
82104         * modules/EOVERFLOW-tests: Remove file.
82105         * tests/test-EOVERFLOW.c: Remove file.
82106         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
82107         * modules/ftell (Depends-on): Likewise.
82108         * modules/getdelim (Depends-on): Likewise.
82109         * modules/getugroups (Depends-on): Likewise.
82110         * modules/poll (Depends-on): Likewise.
82111         * modules/snprintf (Depends-on): Likewise.
82112         * modules/sprintf-posix (Depends-on): Likewise.
82113         * modules/vasnprintf (Depends-on): Likewise.
82114         * modules/vasprintf (Depends-on): Likewise.
82115         * modules/vfprintf-posix (Depends-on): Likewise.
82116         * modules/vsnprintf (Depends-on): Likewise.
82117         * modules/vsprintf-posix (Depends-on): Likewise.
82118         * modules/xvasprintf (Depends-on): Likewise.
82119         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
82120         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
82121         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
82122         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
82123         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
82124         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
82125         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
82126         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
82127         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
82128         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
82129         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
82130         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
82131         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
82132         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
82133         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
82134         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
82135         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
82136         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
82137         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
82138         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
82139         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
82140         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
82141         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
82142         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
82143         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
82144         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
82145         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
82146         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
82147         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
82148         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
82149         * MODULES.html.sh: Remove EOVERFLOW.
82150         * NEWS: Mention the change.
82152 2008-09-13  Bruno Haible  <bruno@clisp.org>
82154         * modules/errno-tests: New file.
82155         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
82157         * lib/errno.in.h: New file.
82158         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
82159         * modules/errno: New file.
82160         * doc/posix-headers/errno.texi: Update documentation.
82161         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
82163 2008-09-13  Bruno Haible  <bruno@clisp.org>
82165         * tests/test-poll.c: Use #if for native Windows, rather than testing
82166         __MSVCRT__.
82168 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82169             Bruno Haible  <bruno@clisp.org>
82171         * lib/glob.c: Don't include <pwd.h> on native Windows.
82172         (WINDOWS32): New macro.
82173         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
82175 2008-09-13  Bruno Haible  <bruno@clisp.org>
82177         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
82178         (ETIMEDOUT): Remove macro.
82179         (glthread_cond_timedwait_multithreaded): New declaration.
82180         (glthread_cond_timedwait): Use it.
82181         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
82182         (glthread_cond_timedwait_multithreaded): New function.
82184 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
82186         * modules/poll-tests: Do not check for io.h.
82187         * tests/test-poll.c: Check for __MSVCRT__ instead.
82189 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
82191         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
82192         * modules/poll-tests: Add inet_pton, stdbool, sockets.
82193         * tests/test-poll.c: Use them.  Use _pipe on Windows.
82195 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
82197         * modules/poll-tests: New.
82198         * tests/test-poll.c: New.
82200 2008-09-12  Eric Blake  <ebb9@byu.net>
82202         frexp: test for NetBSD failure on -0.0
82203         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
82204         not all, bugs from NetBSD 3.0 have been fixed.
82205         * doc/posix-functions/frexp.texi (frexp): Document bug.
82206         Reported by Thomas Klausner.
82208         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
82209         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
82210         literal -0.0.
82211         Reported by Jonathan C. Patschke <jp@centtech.com>.
82213 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82215         * lib/glthread/cond.h: Use dummy implementation also if
82216         USE_WIN32_THREADS.
82218 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82220         * modules/fnmatch-posix (License): Change to LGPLv2+.
82221         * modules/fnmatch-gnu (License): Likewise.
82223 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82225         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
82227 2008-09-11  Jim Meyering  <meyering@redhat.com>
82229         * users.txt: Add gtk-vnc.
82231 2008-09-08  Simon Josefsson  <simon@josefsson.org>
82233         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
82234         rotate amounts.
82236         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
82237         required for 16-bit and 8-bit rotates.
82238         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
82239         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
82240         UINT8_MAX instead of hard-coded constants.
82241         Suggested by Paul Eggert.
82243 2008-09-07  Bruno Haible  <bruno@clisp.org>
82245         * tests/test-striconveh.c (main): Check behaviour when converting from
82246         UTF-7.
82248         Make striconveh work better with stateful encodings.
82249         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
82250         that iconv does not increment the inptr when returning -1/EINVAL.
82252 2008-09-07  Bruno Haible  <bruno@clisp.org>
82254         * build-aux/config.rpath: Update according to libtool-2.2.6.
82255         * build-aux/config.libpath: Likewise.
82257 2008-09-06  Bruno Haible  <bruno@clisp.org>
82259         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
82260         * lib/freadptr.c (freadptr): Likewise.
82261         * lib/freadseek.c (freadptrinc): Likewise.
82262         Reported by Simon Josefsson.
82264 2008-09-06  Bruno Haible  <bruno@clisp.org>
82266         * modules/freadptr (License): Change to LGPLv2+.
82267         * modules/freadseek (License): Likewise.
82268         Suggested by Eric Blake.
82270         * modules/memchr2 (License): Change to LGPLv2+.
82271         Approved by Eric Blake.
82273 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82274             Bruno Haible  <bruno@clisp.org>
82276         Make gnulib-tool work with native 'sed' on AIX.
82277         * gnulib-tool (sed_noop): New variable.
82278         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
82279         func_add_or_update, func_create_testdir): Use it to initialize sed
82280         script variables.
82281         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
82283 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
82284             Bruno Haible  <bruno@clisp.org>
82286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
82287         also works after #include directives.
82289 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
82291         getdate.y: reject an out-of-range timezone value
82292         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
82293         the range [-24...+24].  When specified with only one or two digits,
82294         * tests/test-getdate.c: Tests for the fix.
82295         * doc/getdate.texi: Document this change.
82297 2008-09-03  Bruno Haible  <bruno@clisp.org>
82299         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
82301 2008-09-02  Simon Josefsson  <simon@josefsson.org>
82303         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
82304         <bruce.korb@gmail.com> with ideas from Ben Pfaff
82305         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
82306         Blake <ebb9@byu.net>.
82308         * tests/test-bitrotate.c: Add more test vectors.
82310 2008-09-02  Eric Blake  <ebb9@byu.net>
82312         vasnprintf-posix: handle large precision via %.*d
82313         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
82314         when handling it ourselves.
82315         * tests/test-vasnprintf-posix.c (test_function): Add test.
82316         * tests/test-snprintf-posix.h (test_function): Likewise.
82317         * tests/test-sprintf-posix.h (test_function): Likewise.
82318         * tests/test-vasprintf-posix.c (test_function): Likewise.
82319         Reported by Alain Guibert.
82321 2008-09-01  Eric Blake  <ebb9@byu.net>
82323         c-stack: make configure-time check more robust
82324         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
82325         successful sigaction call.
82326         Reported by Tom G. Christensen.
82328 2008-09-01  Bruno Haible  <bruno@clisp.org>
82330         New module 'findprog-lgpl'.
82331         * modules/findprog-lgpl: New file.
82332         * lib/findprog-lgpl.c: New file.
82333         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
82334         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
82335         to decide whether to use strdup or xstrdup, concatenated_filename or
82336         xconcatenated_filename.
82338 2008-09-01  Bruno Haible  <bruno@clisp.org>
82340         Split module 'concat-filename' into 'concat-filename' (LGPL) and
82341         'xconcat-filename' (GPL).
82342         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
82343         (License): Change to LGPLv2+.
82344         * modules/xconcat-filename: New file.
82345         * lib/concat-filename.h (concatenated_filename): Change specification.
82346         (xconcatenated_filename): New declaration.
82347         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
82348         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
82349         memory situations.
82350         * lib/xconcat-filename.c: New file.
82351         * NEWS: Mention the change.
82352         * lib/findprog.c: Include concat-filename.h, not filename.h.
82353         (find_in_path): Use xconcatenated_filename instead of
82354         concatenated_filename.
82355         * lib/javacomp.c: Include concat-filename.h, not filename.h.
82356         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
82357         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
82358         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
82359         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
82360         instead of concatenated_filename.
82361         * lib/javaexec.c: Include concat-filename.h, not filename.h.
82362         (execute_java_class): Use xconcatenated_filename instead of
82363         concatenated_filename.
82364         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
82365         * modules/javacomp (Depends-on): Likewise.
82366         * modules/javaexec (Depends-on): Likewise.
82368 2008-09-01  Bruno Haible  <bruno@clisp.org>
82370         Split module 'filename' into 'filename' and 'concat-filename'.
82371         * modules/filename: Keep only lib/filename.h.
82372         (License): Change to LGPLv2+.
82373         * modules/concat-filename: New file, extracted from modules/filename.
82374         * lib/filename.h (concatenated_filename): Remove declaration.
82375         * lib/concat-filename.h: New file, extracted from lib/filename.h.
82376         * lib/concat-filename.c: Include concat-filename.h.
82377         * NEWS: Mention the change.
82379 2008-09-01  Simon Josefsson  <simon@josefsson.org>
82381         * lib/bitrotate.h (rotl8, rotr8): Add.
82383         * modules/bitrotate (configure.ac): Need
82384         AC_REQUIRE([AC_C_INLINE]).
82385         (Description): Mention stdint.h.  Reported by Bruno Haible
82386         <bruno@clisp.org>.
82388         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
82389         Paolo Bonzini <bonzini@gnu.org>.
82391 2008-08-31  Bruno Haible  <bruno@clisp.org>
82393         Assume Solaris specific bi-arch conventions on Solaris systems.
82394         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
82395         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
82396         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
82397         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
82398         like acl_libdirstem.
82399         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
82400         acl_libdirstem.
82401         * NEWS: Mention the change.
82402         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
82404 2008-08-31  Jim Meyering  <meyering@redhat.com>
82406         * lib/strftime.h: Add comments describing the two added arguments.
82408         remove duplicate #include directives
82409         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
82410         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
82412 2008-08-31  Bruno Haible  <bruno@clisp.org>
82414         New module 'sigpipe-die'.
82415         * modules/sigpipe-die: New file.
82416         * lib/sigpipe-die.h: New file.
82417         * lib/sigpipe-die.c: New file.
82418         * MODULES.html.sh (Signal handling): Add sigpipe-die.
82420 2008-08-31  Bruno Haible  <bruno@clisp.org>
82422         Don't override previously installed signal handlers.
82423         * lib/fatal-signal.c (saved_sigactions): New variable.
82424         (uninstall_handlers): Reset the signal to the saved handler, not
82425         to SIG_DFL (except when ignored).
82426         (install_handlers): Save the previous handlers.
82428 2008-08-30  Bruno Haible  <bruno@clisp.org>
82430         * gnulib-tool (func_reset_sigpipe): New function.
82431         (func_get_automake_snippet, func_modules_transitive_closure,
82432         func_import): Invoke it before a join command that reads from stdin,
82433         to avoid "echo: write error: Broken pipe" error messages on stderr.
82434         Reported by Sam Steingold <sds@gnu.org>.
82436 2008-08-30  Bruno Haible  <bruno@clisp.org>
82438         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
82439         Code copied from m4/open.m4.
82440         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
82441         access and the filename ends in a slash. Code copied from lib/open.c.
82442         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
82443         * tests/test-fopen.c (main): Check against bug with trailing slash.
82445 2008-08-29  Bruno Haible  <bruno@clisp.org>
82447         Avoid some "gcc -pedantic" warnings.
82448         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
82449         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
82450         * lib/dirent.in.h: Likewise.
82451         * lib/fcntl.in.h: Likewise.
82452         * lib/float.in.h: Likewise.
82453         * lib/iconv.in.h: Likewise.
82454         * lib/inttypes.in.h: Likewise.
82455         * lib/locale.in.h: Likewise.
82456         * lib/math.in.h: Likewise.
82457         * lib/netinet_in.in.h: Likewise.
82458         * lib/search.in.h: Likewise.
82459         * lib/signal.in.h: Likewise.
82460         * lib/stdarg.in.h: Likewise.
82461         * lib/stdint.in.h: Likewise.
82462         * lib/stdio.in.h: Likewise.
82463         * lib/stdlib.in.h: Likewise.
82464         * lib/string.in.h: Likewise.
82465         * lib/strings.in.h: Likewise.
82466         * lib/sys_select.in.h: Likewise.
82467         * lib/sys_socket.in.h: Likewise.
82468         * lib/sys_stat.in.h: Likewise.
82469         * lib/sys_time.in.h: Likewise.
82470         * lib/sysexits.in.h: Likewise.
82471         * lib/time.in.h: Likewise.
82472         * lib/unistd.in.h: Likewise.
82473         * lib/wchar.in.h: Likewise.
82474         * lib/wctype.in.h: Likewise.
82475         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
82476         * modules/fchdir (Makefile.am): Likewise.
82477         * modules/fcntl (Makefile.am): Likewise.
82478         * modules/float (Makefile.am): Likewise.
82479         * modules/iconv_open (Makefile.am): Likewise.
82480         * modules/inttypes (Makefile.am): Likewise.
82481         * modules/locale (Makefile.am): Likewise.
82482         * modules/math (Makefile.am): Likewise.
82483         * modules/netinet_in (Makefile.am): Likewise.
82484         * modules/search (Makefile.am): Likewise.
82485         * modules/signal (Makefile.am): Likewise.
82486         * modules/stdarg (Makefile.am): Likewise.
82487         * modules/stdint (Makefile.am): Likewise.
82488         * modules/stdio (Makefile.am): Likewise.
82489         * modules/stdlib (Makefile.am): Likewise.
82490         * modules/string (Makefile.am): Likewise.
82491         * modules/strings (Makefile.am): Likewise.
82492         * modules/sys_select (Makefile.am): Likewise.
82493         * modules/sys_socket (Makefile.am): Likewise.
82494         * modules/sys_stat (Makefile.am): Likewise.
82495         * modules/sys_time (Makefile.am): Likewise.
82496         * modules/sysexits (Makefile.am): Likewise.
82497         * modules/time (Makefile.am): Likewise.
82498         * modules/unistd (Makefile.am): Likewise.
82499         * modules/wchar (Makefile.am): Likewise.
82500         * modules/wctype (Makefile.am): Likewise.
82501         Reported by Reuben Thomas <rrt@sc3d.org>.
82503 2008-08-29  Bruno Haible  <bruno@clisp.org>
82505         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
82506         any more.
82508 2008-08-29  Simon Josefsson  <simon@josefsson.org>
82510         * MODULES.html.sh (Misc): Add bitrotate.
82512         * modules/bitrotate: New file.
82514         * lib/bitrotate.h: New file.
82516         * modules/bitrotate-tests: New file.
82518         * tests/test-bitrotate.c: New file.
82520         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
82521         on the bitrotate module.
82523         * lib/arctwo.c: Use new bitrotate module.
82525 2008-08-29  Jim Meyering  <meyering@redhat.com>
82527         bootstrap: merge changes from coreutils
82528         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
82529         of copied files.  Remove a kludge, now that this is fixed.
82530         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
82531         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
82532         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
82534 2008-08-29  Bruno Haible  <bruno@clisp.org>
82536         * MODULES.html.sh: Remove --cvs-urls option.
82538 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
82540         maint.mk: adjust to file name change
82541         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
82543 2008-08-28  Jim Meyering  <meyering@redhat.com>
82545         * modules/getndelim2 (License): Relicense to LGPLv2+.
82546         Approved by Richard Stallman for the version of 1995, and by
82547         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
82549 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
82551         * lib/getdelim.c (flockfile, funlockfile): Make all of them
82552         dummy if one is not available.  Do not touch them if
82553         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
82554         (getc_maybe_unlocked): New.
82555         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
82557 2008-08-26  Eric Blake  <ebb9@byu.net>
82559         doc/INSTALL: resync from autoconf
82560         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
82561         (INSTALL_PRELUDE): Delete; this is done more efficiently by
82562         moving...
82563         * install.texi [!autoconf]: ...here.  Resync from autoconf.
82564         * INSTALL: Regenerate.
82565         * INSTALL.ISO: New file.
82566         * INSTALL.UTF-8: Likewise.
82568 2008-08-26  Jim Meyering  <meyering@redhat.com>
82570         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
82571         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
82572         these definitions conditional, so that they may be overridden, too.
82574 2008-08-26  Bruno Haible  <bruno@clisp.org>
82576         Generate INSTALL file variants with prettier quotes.
82577         * doc/Makefile (INSTALL_PRELUDE): New macro.
82578         (INSTALL): Use it.
82579         (INSTALL.ISO, INSTALL.UTF-8): New rules.
82581 2008-08-26  Bruno Haible  <bruno@clisp.org>
82583         Run makeinfo in an English locale.
82584         * doc/Makefile (MAKEINFO): New variable.
82586 2008-08-26  Bruno Haible  <bruno@clisp.org>
82588         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
82589         Suggested by Eric Blake.
82591 2008-08-25  Bruno Haible  <bruno@clisp.org>
82593         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
82595 2008-08-25  Eric Blake  <ebb9@byu.net>
82597         c-stack: test that stack overflow can be caught
82598         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
82599         that platform allows handling stack overflow; at least OS/2 EMX
82600         has sigaltstack, but crashes before transferring control to
82601         handler on stack overflow.
82602         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
82603         check for HAVE_STACK_OVERFLOW_HANDLING.
82604         Reported by Elbert Pol.
82606 2008-08-25  Bruno Haible  <bruno@clisp.org>
82608         * doc/posix-functions/strftime.texi: Fix description of strftime
82609         module.
82611 2008-08-24  Bruno Haible  <bruno@clisp.org>
82613         * tests/uniwidth/test-uc_width2.c: New file.
82614         * tests/uniwidth/test-uc_width2.sh: New file.
82615         * modules/uniwidth/width-tests (Files): Add the new files.
82616         (TESTS): Add uniwidth/test-uc_width2.sh.
82617         (TESTS_ENVIRONMENT): New variable.
82618         (check_PROGRAMS): Add test-uc_width2.
82619         (test_uc_width2_SOURCES): New variable.
82621         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
82622         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
82623         not 0x00AB.
82624         Reported by Alexander V. Lukyanov <lav@netis.ru>.
82626 2008-08-22  Eric Blake  <ebb9@byu.net>
82628         test-lock, test-tls: mention why a test is skipped
82629         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
82630         skipped.
82631         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
82633         count-one-bits: relax license
82634         * modules/count-one-bits (License): Relicense to LGPLv2+.
82635         Suggested by Ludovic Courtès, approved by Ben Pfaff.
82637 2008-08-22  Andreas Schwab  <schwab@suse.de>
82639         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
82640         Remove spurious space in assignment.
82642 2008-08-21  Simon Josefsson  <simon@josefsson.org>
82644         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
82645         Paul Eggert <eggert@CS.UCLA.EDU>.
82647 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
82649         * modules/gettext: Add m4/threadlib.m4.
82651 2008-08-19  Eric Blake  <ebb9@byu.net>
82653         test-c-stack: fix compilation failure on FreeBSD 5.0
82654         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
82655         headers before <sys/resource.h>.
82656         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
82657         the bug.
82658         Reported by Nelson H. F. Beebe.
82660         strverscmp: migrate from "strverscmp.h" to <string.h>
82661         * modules/string (Makefile.am): Add new hooks.
82662         * modules/strverscmp (Files): Remove strverscmp.h.
82663         (Depends-on): Add string.
82664         (configure.ac): Add indicator.
82665         (Include): Mention new header.
82666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
82667         defaults.
82668         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
82669         results.
82670         * lib/strverscmp.h: Delete.
82671         * lib/string.in.h (strverscmp): Provide declaration, when needed.
82672         * tests/test-strverscmp.c (includes): Adjust client.
82673         * lib/check-version.c (includes): Likewise.
82674         * NEWS: Document the change.
82676         strverscmp: add unit test
82677         * modules/strverscmp-tests: New file.
82678         * tests/test-strverscmp.c: Likewise.
82680 2008-08-19  Simon Josefsson  <simon@josefsson.org>
82682         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
82683         regarding Windows crypto stuff, from Mono.
82685 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
82687         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
82688         if present, for intel RND.  Return error on failures.
82690 2008-08-18  Ben Pfaff  <blp@gnu.org>
82692         gitlog-to-changelog: give better diagnostic for failed pipe-open
82693         * build-aux/gitlog-to-changelog: Improve error message: suggest
82694         that the version of Git may be too old.
82696 2008-08-18  Simon Josefsson  <simon@josefsson.org>
82698         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
82699         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
82701 2008-08-18  Bruno Haible  <bruno@clisp.org>
82703         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
82704         pthread_in_use().
82706 2008-08-18  Bruno Haible  <bruno@clisp.org>
82708         * lib/glthread/threadlib.c: Include <pthread.h>.
82710 2008-08-18  Bruno Haible  <bruno@clisp.org>
82712         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
82713         glthread_recursive_lock_* macros.
82714         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
82715         Fix syntax error.
82717 2008-08-18  Bruno Haible  <bruno@clisp.org>
82719         * lib/glthread/thread.c: Avoid forcing a context switch right after
82720         thread creation.
82722 2008-08-17  Bruno Haible  <bruno@clisp.org>
82724         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
82725         * lib/glthread/thread.h: Provide Win32 specific implementation.
82726         * modules/thread (Files): Add lib/glthread/thread.c.
82727         (Depends-on): Add lock.
82728         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
82730 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82732         New module 'yield'.
82733         * modules/yield: New file.
82734         * lib/glthread/yield.h: New file.
82735         * m4/yield.m4: New file.
82736         * MODULES.html.sh (Multithreading): Add yield.
82738 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82740         New module 'thread'.
82741         * modules/thread: New file.
82742         * lib/glthread/thread.h: New file.
82743         * m4/thread.m4: New file.
82744         * MODULES.html.sh (Multithreading): Add thread.
82746 2008-08-17  Bruno Haible  <bruno@clisp.org>
82748         * lib/glthread/lock.h: Include <stdlib.h> always.
82749         * lib/glthread/tls.h: Likewise.
82750         * lib/glthread/cond.h: Likewise.
82752 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82754         New module 'cond'.
82755         * modules/cond: New file.
82756         * lib/glthread/cond.h: New file.
82757         * lib/glthread/cond.c: New file.
82758         * m4/cond.m4: New file.
82759         * MODULES.html.sh (Multithreading): Add cond.
82761 2008-08-16  Eric Blake  <ebb9@byu.net>
82763         c-stack: fix regression on Irix 5.3 from 2008-06-21
82764         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
82765         sa_sigaction...
82766         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
82767         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
82768         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
82769         * modules/signal (Makefile.am): Use the value.
82770         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
82771         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
82772         * doc/posix-headers/signal.texi (signal.h): Document this
82773         portability issue.
82774         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
82775         Reported by Tom G. Christensen.
82777 2008-08-17  Bruno Haible  <bruno@clisp.org>
82779         New module 'threadlib'.
82780         * modules/threadlib: New file.
82781         * lib/glthread/threadlib.c: New file, extracted from
82782         lib/glthread/lock.c.
82783         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
82784         functions.
82785         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
82786         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
82787         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
82788         macros.
82789         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
82790         (gl_DISABLE_THREADS): Remove macro.
82791         * modules/lock (Files): Remove build-aux/config.rpath.
82792         (Depends-on): Remove havelib. Add threadlib.
82793         (configure.ac-early): Remove section.
82794         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
82795         * modules/tls (Depends-on): Remove lock. Add threadlib.
82796         (Link): New section, copied from threadlib.
82797         * MODULES.html.sh (Multithreading): Add threadlib.
82799 2008-08-14  Bruno Haible  <bruno@clisp.org>
82801         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
82802         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
82803         glthread_rwlock_unlock, glthread_rwlock_destroy,
82804         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
82805         glthread_recursive_lock_destroy): Define as macros always.
82806         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
82807         glthread_lock_lock.
82808         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
82809         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
82810         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
82811         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
82812         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
82813         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
82814         (glthread_recursive_lock_lock_func): Renamed from
82815         glthread_recursive_lock_lock.
82816         (glthread_recursive_lock_unlock_func): Renamed from
82817         glthread_recursive_lock_unlock.
82818         (glthread_recursive_lock_destroy_func): Renamed from
82819         glthread_recursive_lock_destroy.
82821 2008-08-14  Bruno Haible  <bruno@clisp.org>
82823         * lib/glthread/lock.h: Renamed from lib/lock.h.
82824         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
82825         * lib/glthread/tls.h: Renamed from lib/tls.h.
82826         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
82827         * lib/fstrcmp.c: Update includes.
82828         * lib/strsignal.c: Update includes.
82829         * modules/lock (Files, Makefile.am): Update.
82830         (Include): Change to "glthread/lock.h".
82831         * modules/tls (Files, Makefile.am): Update.
82832         (Include): Change to "glthread/tls.h".
82833         * tests/test-lock.c: Update includes.
82834         * tests/test-tls.c: Update includes.
82835         * NEWS: Mention the renamed header files.
82837 2008-08-11  Jim Meyering  <meyering@redhat.com>
82839         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
82841 2008-08-11  Eric Blake  <ebb9@byu.net>
82843         test-c-stack: avoid C99-ism
82844         * tests/test-c-stack.c (main): Fix whitespace, move declaration
82845         before statement.
82846         Reported by Alain Guibert.
82848 2008-08-10  Jim Meyering  <meyering@redhat.com>
82850         ensure that return value of uinttostr et al are not ignored
82851         * lib/inttostr.h (__GNUC_PREREQ): Define.
82852         (__attribute_warn_unused_result__): Define.
82853         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
82855 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
82857         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
82858         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
82860 2008-08-07  Jim Meyering  <meyering@redhat.com>
82862         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
82864         * modules/mkstemp (License): Relicense under LGPLv2+.
82865         * modules/tempname (License): Likewise.
82867 2008-08-06  Bruno Haible  <bruno@clisp.org>
82869         * lib/poll.c (poll): Further micro-optimization.
82871 2008-08-06  Jim Meyering  <meyering@redhat.com>
82873         inet_pton.c: use locale-independent tolower
82874         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
82875         (inet_pton6): Use c_tolower rather than tolower.
82876         * modules/inet_pton (Depends-on): Add c-ctype.
82878 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
82880         * lib/poll.c (poll): Avoid division when timeout is 0, cache
82881         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
82883 2008-08-06  Jim Meyering  <meyering@redhat.com>
82885         * modules/inet_pton (License): Relicense under LGPLv2+.
82887 2008-08-03  Bruno Haible  <bruno@clisp.org>
82889         Additional non-aborting API for lock and tls.
82890         * lib/lock.h: Include <errno.h>.
82891         (glthread_lock_init): New macro/function.
82892         (gl_lock_init): Define as wrapper around glthread_lock_init.
82893         (glthread_lock_lock): New macro/function.
82894         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
82895         (glthread_lock_unlock): New macro/function.
82896         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
82897         (glthread_lock_destroy): New macro/function.
82898         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
82899         (glthread_rwlock_init): New macro/function.
82900         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
82901         (glthread_rwlock_rdlock): New macro/function.
82902         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
82903         (glthread_rwlock_wrlock): New macro/function.
82904         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
82905         (glthread_rwlock_unlock): New macro/function.
82906         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
82907         (glthread_rwlock_destroy): New macro/function.
82908         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
82909         (glthread_recursive_lock_init): New macro/function.
82910         (gl_recursive_lock_init): Define as wrapper around
82911         glthread_recursive_lock_init.
82912         (glthread_recursive_lock_lock): New macro/function.
82913         (gl_recursive_lock_lock): Define as wrapper around
82914         glthread_recursive_lock_lock.
82915         (glthread_recursive_lock_unlock): New macro/function.
82916         (gl_recursive_lock_unlock): Define as wrapper around
82917         glthread_recursive_lock_unlock.
82918         (glthread_recursive_lock_destroy): New macro/function.
82919         (gl_recursive_lock_destroy): Define as wrapper around
82920         glthread_recursive_lock_destroy.
82921         (glthread_once): New macro/function.
82922         (gl_once): Define as wrapper around glthread_once.
82923         Update function declarations.
82924         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
82925         glthread_rwlock_init. Return error code.
82926         (glthread_rwlock_rdlock_multithreaded): Renamed from
82927         glthread_rwlock_rdlock. Return error code.
82928         (glthread_rwlock_wrlock_multithreaded): Renamed from
82929         glthread_rwlock_wrlock. Return error code.
82930         (glthread_rwlock_unlock_multithreaded): Renamed from
82931         glthread_rwlock_unlock. Return error code.
82932         (glthread_rwlock_destroy_multithreaded): Renamed from
82933         glthread_rwlock_destroy. Return error code.
82934         (glthread_recursive_lock_init_multithreaded): Renamed from
82935         glthread_recursive_lock_init. Return error code.
82936         (glthread_recursive_lock_lock_multithreaded): Renamed from
82937         glthread_recursive_lock_lock. Return error code.
82938         (glthread_recursive_lock_unlock_multithreaded): Renamed from
82939         glthread_recursive_lock_unlock. Return error code.
82940         (glthread_recursive_lock_destroy_multithreaded): Renamed from
82941         glthread_recursive_lock_destroy. Return error code.
82942         (glthread_once_call): Make static.
82943         (glthread_once_multithreaded): Renamed from glthread_once.
82944         * lib/tls.h: Include <errno.h>.
82945         (glthread_tls_key_init): New macro/function.
82946         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
82947         (glthread_tls_set): New macro/function.
82948         (gl_tls_set): Define as wrapper around glthread_tls_set.
82949         (glthread_tls_key_destroy): New macro/function.
82950         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
82951         Update function declarations.
82952         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
82953         glthread_tls_get.
82954         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82956 2008-08-04  Eric Blake  <ebb9@byu.net>
82958         gnumakefile: use space, not TAB, outside of targets
82959         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
82961 2008-08-02  Jim Meyering  <meyering@redhat.com>
82963         getdate.y: avoid locale-dependent date parsing failure
82964         In Turkish locales, getdate would fail to recognize keywords
82965         containing a lowercase "i".  The solution is not to rely on
82966         locale-sensitive case-conversion.
82967         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
82968         (lookup_word): Use c_toupper in place of toupper.
82969         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
82970         Reported by Vefa Bicakci <bicave@superonline.com> in
82971         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
82972         * modules/getdate (Depends-on): Add c-ctype.
82974 2008-08-02  Bruno Haible  <bruno@clisp.org>
82976         * gnulib-tool (func_import): When updating or creating a .gitignore
82977         file, prepend each added line with a slash, and ignore leading slashes
82978         from the existing lines.
82979         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
82981 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82983         Portability fix for GNU make 3.79.1.
82984         * top/GNUmakefile: Avoid 'else COND', which older GNU make
82985         versions do not understand.
82987 2008-08-01  Bruno Haible  <bruno@clisp.org>
82989         Work around bug of HP-UX 10.20 cc with -0.0 literal.
82990         * tests/test-isnanf.h (zero): New variable.
82991         (main): Avoid literal -0.0f.
82992         * tests/test-isnand.h (zero): New variable.
82993         (main): Avoid literal -0.0.
82994         * tests/test-isnanl.h (zero): New variable.
82995         (main): Avoid literal -0.0L.
82996         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
82997         (test_float, test_double, test_long_double): Avoid literals -0.0f,
82998         -0.0, -0.0L.
82999         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
83000         (test_signbitd): Avoid literal -0.0.
83001         (test_signbitl): Avoid literal -0.0L.
83002         * tests/test-ceilf1.c (zero): New variable.
83003         (main): Avoid literal -0.0f.
83004         * tests/test-ceill.c (zero): New variable.
83005         (main): Avoid literal -0.0L.
83006         * tests/test-floorf1.c (zero): New variable.
83007         (main): Avoid literal -0.0f.
83008         * tests/test-floorl.c (zero): New variable.
83009         (main): Avoid literal -0.0L.
83010         * tests/test-roundf1.c (zero): New variable.
83011         (main): Avoid literal -0.0f.
83012         * tests/test-round1.c (zero): New variable.
83013         (main): Avoid literal -0.0.
83014         * tests/test-roundl.c (zero): New variable.
83015         (main): Avoid literal -0.0L.
83016         * tests/test-truncf1.c (zero): New variable.
83017         (main): Avoid literal -0.0f.
83018         * tests/test-trunc1.c (zero): New variable.
83019         (main): Avoid literal -0.0.
83020         * tests/test-truncl.c (zero): New variable.
83021         (main): Avoid literal -0.0L.
83022         * tests/test-frexp.c (zero): New variable.
83023         (main): Avoid literal -0.0.
83024         * tests/test-frexpl.c (zero): New variable.
83025         (main): Avoid literal -0.0L.
83026         * tests/test-ldexpl.c (zero): New variable.
83027         (main): Avoid literal -0.0L.
83028         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
83029         (zerod, zerol): New variables.
83030         (test_function): Avoid literals -0.0, -0.0L.
83031         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
83032         (zerod, zerol): New variables.
83033         (test_function): Avoid literals -0.0, -0.0L.
83034         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
83035         (zerod, zerol): New variables.
83036         (test_function): Avoid literals -0.0, -0.0L.
83037         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
83038         (zerod, zerol): New variables.
83039         (test_function): Avoid literals -0.0, -0.0L.
83040         * tests/test-strtod.c (zero): New variable.
83041         (main): Avoid literal -0.0.
83042         Reported by Jonathan C. Patschke <jp@centtech.com>.
83044 2008-07-31  Jim Meyering  <meyering@redhat.com>
83046         sha256.h: correct definition of SHA224_DIGEST_SIZE
83047         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
83048         Reported by Paulie Pena IV <paulie4@gmail.com>.
83049         Define as 224 / 8, rather than as a literal.
83050         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
83051         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
83052         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
83054 2008-07-31  Bruno Haible  <bruno@clisp.org>
83056         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
83057         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
83058         Reported by Jonathan Patschke <jp@centtech.com>.
83060 2008-07-31  Bruno Haible  <bruno@clisp.org>
83062         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
83063         Reported by Paolo Bonzini <bonzini@gnu.org>.
83065 2008-07-30  Eric Blake  <ebb9@byu.net>
83067         test-strtod: allow compilation without -lm
83068         * tests/test-strtod.c (main): Avoid link dependence on fabs.
83069         Reported by Dennis Clarke <blastwave@gmail.com>.
83071 2008-07-28  Jim Meyering  <meyering@redhat.com>
83073         bootstrap: work also when there are no .po files in po/
83074         * build-aux/bootstrap (update_po_files): Complete the change
83075         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
83077 2008-07-27  Jim Meyering  <meyering@redhat.com>
83079         * users.txt: Add zile.
83081 2008-07-26  Ben Pfaff  <blp@gnu.org>
83083         Add missing dependencies on new m4/exponent[fdl].m4 files.
83084         * modules/isnanf-nolibm: Add m4/exponentf.m4.
83085         * modules/isnand-nolibm: Add m4/exponentd.m4.
83086         * modules/isnanl-nolibm: Add m4/exponentl.m4.
83087         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
83088         m4/isnan[fdl].m4, because the macros actually used moved.
83089         Reported by Jim Meyering.
83091 2008-07-14  Ben Pfaff  <blp@gnu.org>
83093         Add isinf module.
83094         * lib/isinf.c: New file.
83095         * lib/math.in.h: Define isinf macro if we have decided to replace
83096         it.
83097         * m4/isinf.m4: New file.
83098         * m4/math_h.m4: Initialize and substitute variables for isinf
83099         module.
83100         * modules/isinf: New file.
83101         * modules/isinf-tests: New file.
83102         * modules/math: Add substitutions for new module.
83103         * tests/test-isinf.c: New file.
83104         * doc/posix-functions/isinf.texi: Mention new module.
83105         * MODULES.html.sh: Mention new module.
83107 2008-07-14  Ben Pfaff  <blp@gnu.org>
83109         Factor out some macros for use by additional modules.
83110         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
83111         exponentf.m4.
83112         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
83113         exponentd.m4.
83114         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
83115         file exponentl.m4.
83116         * m4/exponentf.m4: New file.
83117         * m4/exponentd.m4: New file.
83118         * m4/exponentl.m4: New file.
83119         * modules/isnanf: Use new file m4/exponentf.m4.
83120         * modules/isnand: Use new file m4/exponentd.m4.
83121         * modules/isnanl: Use new file m4/exponentl.m4.
83123 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
83125         mktime.c: normalize tp->tm_isdst value to -1/0/1.
83126         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
83127         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
83128         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
83130         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
83131         readlink on platforms without PATH_MAX.
83133 2008-07-21  Eric Blake  <ebb9@byu.net>
83135         Warn, not fail, on stale version.
83136         * top/GNUmakefile (_curr-ver): Tone down previous patch.
83138         Don't allow installation with stale devel version number.
83139         * top/GNUmakefile (_is-install-target): New macro.
83140         (_curr-ver): Forbid installation with stale version number.
83142 2008-07-20  Bruno Haible  <bruno@clisp.org>
83144         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
83145         TESTS_ENVIRONMENT.
83146         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
83148 2008-07-20  Bruno Haible  <bruno@clisp.org>
83150         * lib/c-stack.h (c_stack_action): Add documentation.
83151         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
83153 2008-07-20  Bruno Haible  <bruno@clisp.org>
83155         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
83156         * modules/readlink (License): Likewise.
83158 2008-07-17  Eric Blake  <ebb9@byu.net>
83160         * modules/c-stack (Link): Fix typo.
83162         Make c-stack use libsigsegv, when available.
83163         * modules/c-stack (Depends-on): Add libsigsegv.
83164         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
83165         needed.
83166         * lib/c-stack.c (SIGSTKSZ): Define fallback.
83167         (segv_handler, overflow_handler, c_stack_action)
83168         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
83169         implementation when libsigsegv is available, but only when using
83170         the library is necessary.
83171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
83172         comment, explaining why XSI check fails on Linux.
83173         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
83174         * tests/test-c-stack2.sh: Tweak skip message.
83175         * NEWS: Document new link-time requirements.
83177 2008-07-16  Eric Blake  <ebb9@byu.net>
83179         c-stack: Expose false positives when not using libsigsegv.
83180         * modules/c-stack-tests (Files): Expand test.
83181         * tests/test-c-stack.c (main): Add means to conditionally trigger
83182         non-overflow SIGSEGV.
83183         * tests/test-c-stack2.sh: New file.
83185 2008-07-14  Bruno Haible  <bruno@clisp.org>
83187         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
83188         Reported by Eric Blake.
83190 2008-07-14  Sam Steingold  <sds@gnu.org>
83191             Bruno Haible  <bruno@clisp.org>
83193         New module libsigsegv.
83194         * modules/libsigsegv: New file.
83195         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
83196         modifications.
83197         * MODULES.html.sh (Signal handling): New section.
83199 2008-07-14  Bruno Haible  <bruno@clisp.org>
83201         * modules/unictype/ctype-* (Description): Add the word "function".
83202         Improves the resulting doc in MODULES.html.
83204 2008-07-12  Ben Pfaff  <blp@gnu.org>
83206         Add longlong module.
83207         * modules/longlong: New file.
83209 2008-07-12  Bruno Haible  <bruno@clisp.org>
83211         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
83212         to empty.
83214 2008-07-10  Ben Pfaff  <blp@gnu.org>
83216         Add isnan module.
83217         * doc/posix-functions/isnan.texi: Mention new module.
83218         * lib/math.in.h: Define isnan macro if we have decided to replace
83219         it.
83220         * m4/isnan.m4: New file.
83221         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
83222         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
83223         also.
83224         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
83225         redundancy.
83226         * m4/math_h.m4: Initialize and substitute variables for isnan
83227         module.
83228         * modules/isnan: New file.
83229         * modules/isnan-tests: New file.
83230         * modules/math: Add substitutions for new module.
83231         * tests/test-isnan.c: New file.
83232         * MODULES.html.sh: Mention new module.
83234 2008-07-10  Ben Pfaff  <blp@gnu.org>
83236         Add isnanf module.
83237         * lib/isnanf.m4: New file.
83238         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
83239         (gl_HAVE_ISNANF_IN_LIBM): New macro.
83240         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
83241         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
83242         * modules/isnanf: New file.
83243         * modules/isnanf-tests: New file.
83244         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
83245         files.
83246         * tests/test-isnanf-nolibm.c: factored most of its contents into
83247         new file tests/test-isnanf.h.
83248         * tests/test-isnanf.h: New file.
83249         * tests/test-isnanf.c: New file.
83250         * MODULES.html.sh: Mention new module.
83251         * doc/glibc-functions/isnanf.texi: Mention new module.
83253 2008-07-10  Ben Pfaff  <blp@gnu.org>
83255         Add isnand module.
83256         * lib/isnand.h: New file.
83257         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
83258         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
83259         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
83260         functionality also.
83261         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
83262         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
83263         (gl_HAVE_ISNAND_IN_LIBM): New macro.
83264         * modules/isnand: New file.
83265         * modules/isnand-tests: New file.
83266         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
83267         files.
83268         * tests/test-isnand-nolibm.c: factored most of its contents into
83269         new file tests/test-isnand.h.
83270         * tests/test-isnand.h: New file.
83271         * tests/test-isnand.c: New file.
83272         * MODULES.html.sh: Mention new module.
83274 2008-07-10  Ben Pfaff  <blp@gnu.org>
83276         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
83277         * lib/isnand.h: Rename lib/isnand-nolibm.h.
83278         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
83279         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
83280         * modules/isnanf-nolibm: Update references to renamed files.
83281         * modules/isnand-nolibm: Likewise.
83282         * modules/isnanf-nolibm-tests: Likewise.
83283         * modules/isnand-nolibm-tests: Likewise.
83284         * lib/frexp.c: Likewise.
83285         * lib/isfinite.c: Likewise.
83286         * lib/signbitd.c: Likewise.
83287         * lib/signbitf.c: Likewise.
83288         * lib/vasnprintf.c: Likewise.
83289         * tests/test-ceilf1.c: Likewise.
83290         * tests/test-ceilf2.c: Likewise.
83291         * tests/test-floorf1.c: Likewise.
83292         * tests/test-floorf2.c: Likewise.
83293         * tests/test-frexp.c: Likewise.
83294         * tests/test-round1.c: Likewise.
83295         * tests/test-round2.c: Likewise.
83296         * tests/test-roundf1.c: Likewise.
83297         * tests/test-strtod.c: Likewise.
83298         * tests/test-trunc1.c: Likewise.
83299         * tests/test-trunc2.c: Likewise.
83300         * tests/test-truncf1.c: Likewise.
83301         * tests/test-truncf2.c: Likewise.
83302         * NEWS: Mention the renamed header files.
83304 2008-07-11  Jim Meyering  <meyering@redhat.com>
83306         vc-list-files: make the last-resort awk code more portable
83307         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
83308         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
83309         does not support it.
83311 2008-07-10  Eric Blake  <ebb9@byu.net>
83313         Work with tar's bootstrap.
83314         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
83315         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
83316         an m4 comment.
83318 2008-07-09  Jim Meyering  <meyering@redhat.com>
83320         posix-shell.m4: fix typo that made this test malfunction
83321         * m4/posix-shell.m4: Remove capitalization in variable name.
83323 2008-07-08  Bruno Haible  <bruno@clisp.org>
83325         * m4/onceonly.m4: Update comments.
83326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
83328 2008-07-04  Jim Meyering  <meyering@redhat.com>
83330         * users.txt: Add vc-dwim.
83331         (bison, coreutils): Use the gitweb URL.
83333 2008-07-03  Jim Meyering  <meyering@redhat.com>
83335         * users.txt: Add libffcall.  From Sam Steingold.
83337 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
83339         getdate.y: do not ignore TZ with relative day, month or year offset
83340         * lib/getdate.y (get_date): Move the tz-handling block to follow the
83341         relative-date-handling, since otherwise, the latter would clobber the
83342         sole output (an updated Start value) of the tz-handling block.
83343         * tests/test-getdate.c: Tests for the fix
83345 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83347         Recognize 'foo_LIBRARIES += libgnu.a'.
83348         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
83349         makefile snippet has already specified an installation location,
83350         also using '+='.
83352 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
83354         getdate.y: factor out common actions
83355         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
83356         Use them in place of open-coded actions.
83358 2008-07-01  Simon Josefsson  <simon@josefsson.org>
83360         Add self-test for getdate module.
83361         * modules/getdate-tests: New file.
83362         * tests/test-getdate.c: New file.
83364 2008-06-29  Bruno Haible  <bruno@clisp.org>
83366         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
83367         .gitignore.
83368         Reported by Sylvain Beucler <beuc@beuc.net>.
83370 2008-06-29  Bruno Haible  <bruno@clisp.org>
83372         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
83373         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
83375 2008-06-29  Bruno Haible  <bruno@clisp.org>
83377         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
83378         EXTRA_DIST.
83379         Reported by Sylvain Beucler <beuc@beuc.net>.
83381 2008-06-26  Jim Meyering  <meyering@redhat.com>
83383         make several modules depend on the "open" module
83384         This provides slightly increased consistency when opening-for-write
83385         the name of a non-directory spelled with a trailing slash.
83386         * modules/chdir-safer: Likewise.
83387         * modules/chown: Likewise.
83388         * modules/clean-temp: Likewise.
83389         * modules/copy-file: Likewise.
83390         * modules/fchdir: Likewise.
83391         * modules/fcntl-safer: Likewise.
83392         * modules/pipe: Likewise.
83393         * modules/utime: Likewise.
83394         Prompted by Eric Blake and Bruno Haible.
83396 2008-06-24  Andreas Schwab  <schwab@suse.de>
83398         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
83399         literals can be used as initializers for global variables.
83401 2008-06-23  Eric Blake  <ebb9@byu.net>
83403         Make gnulib-cache.m4 easier to diff.
83404         * gnulib-tool (func_import): Allow newlines when reading cached
83405         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
83407 2008-06-23  Bruno Haible  <bruno@clisp.org>
83409         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
83410         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
83411         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
83412         m4/signalblocking.m4.
83413         (gl_PREREQ_SIGACTION): Don't invoke it.
83414         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
83415         gl_PREREQ_SIG_HANDLER_H.
83416         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
83417         Don't check for sigaction here.
83419 2008-06-23  Bruno Haible  <bruno@clisp.org>
83421         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
83422         (install_handlers): Don't set the SA_RESETHAND flag.
83424 2008-06-23  Bruno Haible  <bruno@clisp.org>
83426         * m4/sigaction.m4: Comment fixes.
83427         * lib/signal.in.h: Likewise.
83429 2008-06-23  Eric Blake  <ebb9@byu.net>
83431         Fix typo.
83432         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
83434         Avoid SA_ namespace.
83435         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
83436         Reported by Ralf Wildenhues.
83438         Avoid test failure due to SA_RESTORER.
83439         * tests/test-sigaction.c (SA_MASK): New macro.
83440         (main): Avoid failing due to extension flags being set.
83441         Reported by Jim Meyering.
83443         Revert use of sig-handler.h in sigprocmask.c.
83444         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
83445         it requires the existence of struct sigaction.
83446         * lib/sigprocmask.c (handler_t): Restore typedef.
83447         (rpl_signal, old_handlers): Use local type.
83449 2008-06-22  Bruno Haible  <bruno@clisp.org>
83451         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
83452         conditionally.
83453         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
83455 2008-06-22  Bruno Haible  <bruno@clisp.org>
83457         * doc/posix-functions/siginterrupt.texi: Move note.
83459         * lib/signal.in.h (SA_RESTART): New macro.
83460         * lib/sigaction.c: Update comment.
83462         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
83464         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
83465         (gl_PREREQ_SIGPROCMASK): Invoke it.
83466         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
83468         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
83470         * lib/sigprocmask.c: Update a comment.
83472 2008-06-21  Eric Blake  <ebb9@byu.net>
83474         Use sigaction module rather than signal().
83475         * modules/c-stack (Depends-on): Add sigaction.
83476         * modules/fatal-signal (Depends-on): Likewise.
83477         * modules/nanosleep (Depends-on): Likewise.
83478         * modules/sigprocmask (Files): Add sig-handler.h.
83479         * modules/sigaction (Files): Likewise.
83480         * lib/sig-handler.h (get_handler): New file, suggested by Paul
83481         Eggert.
83482         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
83483         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
83484         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
83485         (init_fatal_signals): Likewise.
83486         * lib/nanosleep.c (rpl_nanosleep): Likewise.
83487         (siginterrupt): Delete fallback.
83488         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
83489         instead.
83490         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
83491         siginterrupt.
83493         New module sigaction, for mingw.
83494         * modules/sigaction: New module...
83495         * modules/sigaction-tests: ...and its test.
83496         * m4/sigaction.m4: New file.
83497         * lib/sigaction.c: Likewise.
83498         * tests/test-sigaction.c: Likewise.
83499         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
83500         * modules/signal (Makefile.am): Likewise.
83501         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
83502         needed.
83503         * doc/posix-headers/signal.texi (signal.h): Mention provided
83504         types.
83505         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
83506         that sigaction is preferable.
83507         * doc/posix-functions/sigaction.texi (sigaction): Mention new
83508         module.
83509         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83510         sigaction.
83512         Improve robustness of sigprocmask by overriding signal.
83513         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
83514         is in use.
83515         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
83516         (SIGKILL, SIGSTOP): Provide fallbacks.
83517         (rpl_signal): Implement.
83518         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
83519         signal can be called inside handlers.
83521         Fix nanosleep module on mingw.
83522         * modules/nanosleep (Depends-on): Add sys_select.
83523         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
83525         Fix licensing of sigprocmask.
83526         * modules/raise (License): Relicense as LGPL.
83528 2008-06-21  Bruno Haible  <bruno@clisp.org>
83530         * lib/propername.c (proper_name_utf8): Don't use the transliterated
83531         result if it contains question marks.
83532         Reported by Michael Geng <linux@michaelgeng.de>.
83534 2008-06-19  Bruno Haible  <bruno@clisp.org>
83536         Fix CVS-ism.
83537         * doc/gnulib.texi: Include updated-stamp.texi.
83538         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
83539         (updated-stamp.texi): New rule.
83540         (gnulib.info): Depend on it.
83541         * doc/.gitignore: Add updated-stamp.texi.
83542         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
83544 2008-06-19  Bruno Haible  <bruno@clisp.org>
83546         * doc/Makefile (gnulib.info): Update and simplify dependencies.
83547         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
83549 2008-06-19  Eric Blake  <ebb9@byu.net>
83551         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
83552         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
83553         Reported by Stepan Kasal.
83555 2008-06-18  Bruno Haible  <bruno@clisp.org>
83557         * lib/fatal-signal.c (init_fatal_signals): Add comment.
83558         Reported by Eric Blake.
83560 2008-06-18  Eric Blake  <ebb9@byu.net>
83562         Work around cygwin 1.5.25 strsignal bug.
83563         * tests/test-strsignal.c: Allow for const char *.
83564         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
83566 2008-06-18  Simon Josefsson  <simon@josefsson.org>
83568         * users.txt: Update URL to article and add author/date
83569         information.
83571 2008-06-17  Bruno Haible  <bruno@clisp.org>
83573         New macro gl_DISABLE_THREADS.
83574         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
83575         if the user did not pass --enable-threads or --disable-threads option.
83576         (gl_DISABLE_THREADS): New macro.
83577         Reported by Eric Blake <ebb9@byu.net>.
83579 2008-06-17  Bruno Haible  <bruno@clisp.org>
83581         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
83582         when the macro ignores it.
83583         Based on a patch by Eric Blake <ebb9@byu.net>.
83585 2008-06-17  Bruno Haible  <bruno@clisp.org>
83587         * modules/tls (License): Change to LGPLv2+.
83588         Reported by Eric Blake.
83590 2008-06-17  Eric Blake  <ebb9@byu.net>
83592         Simplify c-stack prerequisites.
83593         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
83594         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
83595         no longer requires <ucontext.h> to exist.  Optimize setrlimit
83596         check.
83597         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
83598         <sys/resource.h>.
83600         Move c-stack test into testsuite.
83601         * modules/c-stack-tests: New file.
83602         * lib/c-stack.c [DEBUG]: Move test program...
83603         * tests/test-c-stack.c: ...into this new file.  Skip rather than
83604         fail test if sigaltstack is lacking.
83605         * tests/test-c-stack.sh: New driver file.
83607 2008-06-16  Eric Blake  <ebb9@byu.net>
83609         Use raise module consistently.
83610         * modules/fatal-signal (Depends-on): Add raise.
83611         * modules/sigprocmask (Depends-on): Likewise.
83612         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
83613         * lib/sigprocmask.c (sigprocmask): Likewise.
83614         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
83615         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
83617         Fix compliance bug in sigpending.
83618         * lib/sigprocmask.c (sigpending): Return pending array via
83619         parameter, not return value.
83621 2008-06-14  Eric Blake  <ebb9@byu.net>
83623         Improve obstack-printf test code.
83624         * tests/test-obstack-printf.c (test_function): Fix comment, and
83625         simplify usage of obstack_* in macros.  Add a test for coverage.
83626         Reported by Bruno Haible.
83628 2008-06-14  Bruno Haible  <bruno@clisp.org>
83630         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
83631         array size as a constant, not as a const variable.
83632         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
83633         AC_USE_SYSTEM_EXTENSIONS.
83634         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
83635         Test whether the obstack_printf function actually exists.
83636         * modules/obstack-printf (Depends-on): Add extensions.
83637         (Include): Remove obstack.h.
83638         * modules/obstack-printf-posix (Depends-on): Add extensions.
83639         (Include): Remove obstack.h.
83641 2008-06-13  Eric Blake  <ebb9@byu.net>
83643         Add obstack-printf and obstack-printf-posix modules.
83644         * modules/obstack-printf: New file.
83645         * modules/obstack-printf-posix: Likewise.
83646         * MODULES.html.sh (Misc): Mention them.
83647         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
83648         Likewise.
83649         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
83650         Likewise.
83651         * modules/stdio (Makefile.am): Accomodate new modules.
83652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83653         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
83654         Declare.
83655         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
83656         functions.
83657         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
83658         (gl_REPLACE_OBSTACK_PRINTF): New macros
83659         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
83660         * tests/test-obstack-printf.c: New file.
83661         * modules/obstack-printf-tests: Likewise.
83662         * modules/obstack-printf-posix-tests: Likewise.
83664 2008-06-11  Bruno Haible  <bruno@clisp.org>
83666         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
83667         * lib/open.c: Include errno.h.
83668         (open): Fail when attempting to write to a file that has a trailing
83669         slash.
83670         * tests/test-open.c (main): Test against trailing slash bug.
83671         * doc/posix-functions/open.texi: Mention the trailing slash bug.
83673 2008-06-10  Bruno Haible  <bruno@clisp.org>
83675         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
83676         for $? to work inside the trap command, with various /bin/sh-s.
83677         * tests/test-vc-list-files-cvs.sh: Likewise.
83679 2008-06-10  Bruno Haible  <bruno@clisp.org>
83681         * lib/acl-internal.h: Don't include gettext.h here.
83682         * lib/set-mode-acl.c: Include gettext.h here.
83683         * lib/copy-acl.c: Likewise.
83685 2008-06-10  Bruno Haible  <bruno@clisp.org>
83687         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
83688         * lib/wait-process.c (wait_subprocess): Likewise.
83689         * lib/execute.h (execute): Add termsigp argument.
83690         * lib/execute.c (execute): Likewise.
83691         * lib/csharpcomp.c (compile_csharp_using_pnet,
83692         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
83693         * lib/csharpexec.c (execute_csharp_using_pnet,
83694         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
83695         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
83696         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
83697         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
83698         is_jikes_present): Update.
83699         * lib/javaexec.c (execute_java_class): Update.
83700         * lib/javaversion.c (execute_and_read_line): Update.
83701         * NEWS: Document the changes.
83702         Reported by Eric Blake.
83704 2008-06-10  Eric Blake  <ebb9@byu.net>
83706         Add missing include.
83707         * tests/test-strstr.c (includes): Add <signal.h>.
83708         * tests/test-strcasestr.c (includes): Likewise.
83709         * tests/test-memmem.c (includes): Likewise.
83711 2008-06-10  Bruno Haible  <bruno@clisp.org>
83713         * lib/wait-process.c (wait_subprocess): Add an assertion.
83715 2008-06-10  Bruno Haible  <bruno@clisp.org>
83717         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
83719 2008-06-10  Bruno Haible  <bruno@clisp.org>
83721         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
83722         using alarm().
83723         * tests/test-strcasestr.c (main): Likewise.
83724         * tests/test-strstr.c (main): Likewise.
83726 2008-06-09  Bruno Haible  <bruno@clisp.org>
83728         Work around the Solaris 10 ACE ACLs ABI change.
83729         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
83730         declare if ACL_NO_TRIVIAL is present.
83731         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
83732         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
83733         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
83734         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
83735         define if ACL_NO_TRIVIAL is present.
83736         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
83737         and use the current ABI.
83738         (file_has_acl): Use same #if condition as elsewhere.
83739         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
83740         in use, and use the current ABI.
83741         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
83742         Reported by Jim Meyering.
83744 2008-06-09  Eric Blake  <ebb9@byu.net>
83746         Work around environments that (stupidly) ignore SIGALRM.
83747         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
83748         before using alarm().
83749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
83750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
83751         Reported by Ian Beckwith <ianb@erislabs.net>.
83753         Produce autobuild blurb earlier in log.
83754         * modules/autobuild (configure.ac-early): Move AB_INIT here.
83756 2008-06-09  Jim Meyering  <meyering@redhat.com>
83757         and Ondřej Vašík  <ovasik@redhat.com>
83759         utimens.c: correct kernel bug work-around
83760         Ondřej Vašík found that the invalid return value of 280 indicates
83761         failure, not success, and the kernel bug we're trying to work
83762         around affects not just the utimensat call, but also the fallback
83763         futimens call.
83764         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
83765         not success.
83766         [HAVE_FUTIMENS]: Use the same work-around, here.
83768 2008-06-09  Jim Meyering  <meyering@redhat.com>
83770         add more guards around definition of ACE_-related code
83771         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
83772         ALLOW and ACE_OWNER are also defined.
83774 2008-06-08  Bruno Haible  <bruno@clisp.org>
83776         * lib/acl-internal.h: Add me as co-author.
83777         * lib/file-has-acl.c: Likewise.
83778         * lib/set-mode-acl.c: Likewise.
83779         * lib/copy-acl.c: Likewise.
83781 2008-06-08  Bruno Haible  <bruno@clisp.org>
83783         Add support for AIX ACLs.
83784         * lib/acl-internal.h (acl_nontrivial): New declaration.
83785         * lib/file-has-acl.c (acl_nontrivial): New function.
83786         (file_has_acl): Add implementation using AIX 4 ACL API.
83787         * lib/set-mode-acl.c (qset_acl): Likewise.
83788         * lib/copy-acl.c (qcopy_acl): Likewise.
83790 2008-06-08  Bruno Haible  <bruno@clisp.org>
83792         Add support for HP-UX ACLs.
83793         * lib/acl-internal.h (acl_nontrivial): New declaration.
83794         * lib/file-has-acl.c (acl_nontrivial): New function.
83795         (file_has_acl): Add implementation using HP-UX 11 ACL API.
83796         * lib/set-mode-acl.c (qset_acl): Likewise.
83797         * lib/copy-acl.c (qcopy_acl): Likewise.
83799 2008-06-08  Bruno Haible  <bruno@clisp.org>
83801         Add support for Cygwin ACLs.
83802         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
83803         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
83804         the chmod_or_fchmod call.
83805         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
83807 2008-06-08  Bruno Haible  <bruno@clisp.org>
83809         Fix bug with setuid modes in Solaris 10+ code.
83810         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
83811         succeeded, when the mode contains some special bits.
83813 2008-06-08  Bruno Haible  <bruno@clisp.org>
83815         Add support for Solaris 7..10 ACLs.
83816         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
83817         declarations.
83818         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
83819         functions.
83820         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
83821         * lib/set-mode-acl.c (qset_acl): Likewise.
83822         * lib/copy-acl.c (qcopy_acl): Likewise.
83824 2008-06-08  Bruno Haible  <bruno@clisp.org>
83826         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
83827         declaration.
83828         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
83829         (acl_access_nontrivial): Remove MacOS X case.
83830         (file_has_acl): Use acl_extended_nontrivial.
83831         * lib/copy-acl.c (qcopy_acl): Likewise.
83833 2008-06-08  Bruno Haible  <bruno@clisp.org>
83835         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
83837 2008-06-08  Jim Meyering  <meyering@redhat.com>
83839         * modules/acl (Maintainer): Add Bruno Haible.
83841 2008-06-07  Bruno Haible  <bruno@clisp.org>
83843         Improve support for Tru64 ACLs.
83844         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
83845         ACL on OSF/1.
83847 2008-06-07  Bruno Haible  <bruno@clisp.org>
83849         Add support for MacOS X ACLs.
83850         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
83851         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
83852         * lib/set-mode-acl.c (qset_acl): Likewise.
83853         * lib/copy-acl.c (qcopy_acl): Likewise.
83855 2008-06-07  Bruno Haible  <bruno@clisp.org>
83857         Fix memory leak introduced on 2008-05-22.
83858         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
83859         use.
83861 2008-06-07  Bruno Haible  <bruno@clisp.org>
83863         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
83864         to construct an empty ACL.
83866 2008-06-07  Bruno Haible  <bruno@clisp.org>
83868         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
83869         precisely.
83870         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
83872 2008-06-07  Bruno Haible  <bruno@clisp.org>
83874         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
83875         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
83877 2008-06-07  Bruno Haible  <bruno@clisp.org>
83879         * doc/posix-functions/_setjmp.texi: Explain the use of this function
83880         regardless of POSIX.
83881         * doc/posix-functions/_longjmp.texi: Likewise.
83882         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
83883         SystemV platform in this case.
83885 2008-06-06  Eric Blake  <ebb9@byu.net>
83887         Document abort() bugs.
83888         * doc/posix-functions/abort.texi (abort): Mention anomalies.
83890         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
83891         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
83892         sigsetjmp.
83893         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
83894         siglongjmp, but only as a macro.
83895         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
83896         is obsolete.
83897         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
83899         Tweak documentation to cover cygwin argz bugs.
83900         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
83901         argz bug fix; no code change needed since no cygwin releases
83902         occurred between the last fix and the bug being tested.
83903         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
83904         module and recently fixed cygwin bugs.
83905         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
83906         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
83907         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
83908         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
83909         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
83910         Likewise.
83911         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
83912         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
83913         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
83914         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
83915         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
83916         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
83917         Likewise.
83919         Avoid gcc warning on cygwin.
83920         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
83921         !ACL_NO_TRIVIAL]: Avoid unused variable.
83923 2008-06-05  Eric Blake  <ebb9@byu.net>
83925         Be tolerant of UNKNOWN version in gnulib-tool test dir.
83926         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
83927         git-version-gen fails to come up with a version.
83928         Reported by Simon Josefsson.
83930 2008-06-05  Jim Meyering  <meyering@redhat.com>
83931             Paul Eggert  <eggert@cs.ucla.edu>
83933         utimens.c: work around a probable Linux kernel bug
83934         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
83935         appears to be a kernel bug that causes utimensat to return 280
83936         instead of 0, indicating success.
83938 2008-06-04  Bruno Haible  <bruno@clisp.org>
83940         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
83941         2008-06-01 commit.
83943 2008-06-04  Bruno Haible  <bruno@clisp.org>
83945         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
83946         * lib/file-has-acl.c (acl_access_nontrivial): New function.
83947         (file_has_acl): Use it. Save errno afterwards.
83948         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
83950 2008-06-03  Bruno Haible  <bruno@clisp.org>
83952         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
83953         draft code. Simplify #ifs.
83954         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
83955         Put Solaris code after POSIX-draft code. Fix comments regarding
83956         Solaris 10, HP-UX. Mention Cygwin.
83957         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
83959 2008-06-03  Eric Blake  <ebb9@byu.net>
83961         Provide fallback for older kernels.
83962         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
83963         Provide runtime fallback if kernel lacks support.
83964         Reported by Mike Frysinger.
83966 2008-06-02  Bruno Haible  <bruno@clisp.org>
83968         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
83969         it exists.
83971 2008-06-02  Bruno Haible  <bruno@clisp.org>
83973         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
83974         * lib/copy-acl.c (qcopy_acl): Update comment.
83976 2008-06-02  Bruno Haible  <bruno@clisp.org>
83978         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
83979         like ACL APIs.
83981 2008-06-02  Bruno Haible  <bruno@clisp.org>
83983         * tests/test-file-has-acl.sh: Use different code for Cygwin.
83984         * tests/test-set-mode-acl.sh: Likewise.
83985         * tests/test-copy-acl.sh: Likewise.
83986         * tests/test-copy-file.sh: Likewise.
83988 2008-06-02  Bruno Haible  <bruno@clisp.org>
83990         * tests/test-file-has-acl.sh: Remove unused code.
83992 2008-06-01  Bruno Haible  <bruno@clisp.org>
83994         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
83995         (copy_acl): Just a wrapper around qcopy_acl that emits the error
83996         messages.
83997         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
83999 2008-06-01  Bruno Haible  <bruno@clisp.org>
84001         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
84002         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
84003         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
84004         APIs.
84005         * modules/acl-tests (configure.ac): Remove tests now contained in
84006         m4/acl.m4.
84008 2008-06-02  Jim Meyering  <meyering@redhat.com>
84010         announce-gen: use a better key-server host name
84011         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
84012         it may be more consistently reliable.  Suggested by Werner Koch
84013         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
84015 2008-06-01  Bruno Haible  <bruno@clisp.org>
84017         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
84018         Reported by Voroskoi Andras <voroskoi@gmail.com>.
84020 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
84022         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
84024 2008-06-01  Bruno Haible  <bruno@clisp.org>
84026         New ACL tests.
84027         * tests/test-file-has-acl.sh: New file.
84028         * tests/test-file-has-acl.c: New file.
84029         * tests/test-set-mode-acl.sh: New file.
84030         * tests/test-set-mode-acl.c: New file.
84031         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
84032         * tests/test-copy-acl.c: New file.
84033         * modules/acl-tests: New file, based on modules/copy-file-tests.
84034         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
84035         (Depends-on): Add acl-tests.
84036         (configure.ac): Remove checks.
84037         (Makefile.am): Don't create test-sameacls program here any more.
84039 2008-06-01  Bruno Haible  <bruno@clisp.org>
84041         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
84042         * tests/test-sameacls.c: Include progname.h.
84043         (main): Invoke set_program_name. Portability fixes for MacOS X,
84044         Solaris, HP-UX.
84046 2008-06-01  Bruno Haible  <bruno@clisp.org>
84048         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
84049         function.
84050         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
84052 2008-06-01  Bruno Haible  <bruno@clisp.org>
84054         * modules/rpmatch (Depends-on): Add strdup.
84056 2008-06-01  Bruno Haible  <bruno@clisp.org>
84058         * lib/pipe.c: Include unistd-safer.h.
84059         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
84060         * modules/pipe (Depends-on): Add unistd-safer.
84062 2008-05-30  Simon Josefsson  <simon@josefsson.org>
84064         * modules/autobuild (configure.ac): Call AB_INIT.
84066 2008-05-30  Simon Josefsson  <simon@josefsson.org>
84068         * tests/test-getaddrinfo.c: Don't print debug messages by default.
84069         Suggested by Bruno Haible <bruno@clisp.org>.
84071 2008-05-30  Simon Josefsson  <simon@josefsson.org>
84073         * tests/test-base64.c: Cast size_t to unsigned long when invoking
84074         printf.  Use %lu instead of %d.  Reported by Bruno Haible
84075         <bruno@clisp.org>.
84077 2008-05-29  Eric Blake  <ebb9@byu.net>
84079         Prefer new POSIX 200x interfaces over futimesat.
84080         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
84081         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
84082         when available.
84083         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
84085 2008-05-28  Bruno Haible  <bruno@clisp.org>
84087         * modules/stpcpy (License): Change to LGPLv2+.
84088         Requested by David Lutterkort <dlutter@redhat.com>.
84090 2008-05-27  Bruno Haible  <bruno@clisp.org>
84092         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
84093         current mingw.
84094         Reported by Jose E. Marchesi <jemarch@gnu.org>.
84096 2008-05-27  Bruno Haible  <bruno@clisp.org>
84098         * modules/iconv_open (Link): New section, from module 'iconv'.
84099         * modules/striconv (Link): Likewise.
84100         * modules/striconveh (Link): Likewise.
84101         * modules/xstriconv (Link): Likewise.
84102         * modules/unicodeio (Link): Likewise.
84103         * modules/propername (Link): Likewise.
84104         Reported by Jim Meyering.
84106 2008-05-26  Jim Meyering  <meyering@redhat.com>
84108         sha256: do not artificially restrict buffer length to be < 2^32
84109         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
84110         uint32_t to size_t.
84111         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
84112         to match.
84114         avoid unaligned access errors, e.g., on sparc
84115         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
84116         direct access through a possibly-unaligned uint64* pointer.
84117         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
84118         direct access through a possibly-unaligned uint32* pointer.
84119         Prompted by this patch from Tom "spot" Callaway:
84120         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
84122         sha512.c: fix typo in comment
84123         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
84125 2008-05-25  Bruno Haible  <bruno@clisp.org>
84127         * lib/set-mode-acl.c: Renamed from lib/acl.c.
84128         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
84129         (Makefile.am): Update lib_SOURCES.
84131 2008-05-25  Bruno Haible  <bruno@clisp.org>
84133         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
84135 2008-05-25  Jim Meyering  <meyering@redhat.com>
84137         useless-if-before-free: freed expr may have white-space differences
84138         * build-aux/useless-if-before-free: Recognize cases in which the
84139         freed expression differs from the tested one in embedded white
84140         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
84141         $1 was used, so we can't make any regexp shy.  Improved tests now
84142         detect this.
84144         useless-if-before-free: accept white space in the expression.
84145         * build-aux/useless-if-before-free: For now, any white space
84146         in the expression must be identical in the free argument.
84148         useless-if-before-free: efficiency tweak
84149         * build-aux/useless-if-before-free: Make the expression-matching
84150         regexp "shy".
84151         Make the *outer* regexp shy, not the expr-matching one.
84153         update code-in-comment to accept cast of free arg
84154         * build-aux/useless-if-before-free: Update regexp.
84156 2008-05-25  Bruno Haible  <bruno@clisp.org>
84158         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
84159         * modules/copy-file-tests (Files, Makefile.am): Update.
84160         * tests/test-copy-file.c (func_test_copy): Update.
84162 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
84164         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
84166 2008-05-23  Bruno Haible  <bruno@clisp.org>
84168         Improve support for ACLs on OSF/1.
84169         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
84170         Remove fallback for unknown flavors of ACLs.
84172 2008-05-22  Bruno Haible  <bruno@clisp.org>
84174         Add support for ACLs on OSF/1.
84175         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
84176         replacements.
84177         (acl_free_text): New macro fallback.
84178         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
84179         acl_free.
84180         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
84181         acl_free_text function. Require AC_C_INLINE.
84183 2008-05-22  Bruno Haible  <bruno@clisp.org>
84185         Make copy_acl work on MacOS X 10.5.
84186         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
84187         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
84188         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
84189         If MODE_INSIDE_ACL, don't assume that every system has the same text
84190         representation for ACLs as FreeBSD.
84191         * lib/copy-acl.c (copy_acl): Add support for platforms with
84192         !MODE_INSIDE_ACL.
84193         * lib/file-has-acl.c (file_has_acl): Likewise.
84194         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
84195         FreeBSD, MacOS X, or IRIX, respectively.
84197 2008-05-22  Bruno Haible  <bruno@clisp.org>
84199         * lib/acl.h: Don't include <sys/acl.h>.
84200         (GETACLCNT): Move fallback to lib/acl-internal.h.
84201         * lib/acl-internal.h: Include <sys/acl.h> here.
84202         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
84204 2008-05-22  Bruno Haible  <bruno@clisp.org>
84206         Split off copy_acl function to separate file.
84207         * lib/copy-acl.c: New file, extracted from lib/acl.c.
84208         * lib/acl.c (copy_acl): Moved function to separate file.
84209         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
84210         * modules/acl (Files): Add lib/copy-acl.c.
84211         (Makefiles.am): Augment lib_SOURCES.
84213 2008-05-22  Bruno Haible  <bruno@clisp.org>
84215         * modules/copy-file-tests: New file.
84216         * tests/test-copy-file.sh: New file.
84217         * tests/test-copy-file.c: New file.
84218         * tests/test-copy-file-sameacls.c: New file.
84220 2008-05-22  Eric Blake  <ebb9@byu.net>
84222         Avoid gcc warning.
84223         * tests/test-memcmp.c (main): Pass NULL indirectly.
84225 2008-05-21  Bruno Haible  <bruno@clisp.org>
84227         Add reference doc about ACLs.
84228         * doc/acl-resources.txt: New file.
84229         * doc/acl-cygwin.txt: New file.
84231 2008-05-21  Bruno Haible  <bruno@clisp.org>
84233         Avoid one more warning from gcc.
84234         * lib/vasnprintf.c (IF_LINT): Update comments.
84235         (VASNPRINTF): Use it also for the 'prefix' array initializer.
84237 2008-05-21  Jim Meyering  <meyering@redhat.com>
84239         avoid a warning from gcc
84240         * lib/vasnprintf.c (IF_LINT): Define.
84241         (scale10_round_decimal_long_double):
84242         Use it to avoid a "may be used uninitialized" warning.
84243         (scale10_round_decimal_double): Likewise.
84245 2008-05-21  Simon Josefsson  <simon@josefsson.org>
84247         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
84248         declared.
84250 2008-05-20  Bruno Haible  <bruno@clisp.org>
84252         * tests/test-memcmp.c (main): Test also the sign of the result. Test
84253         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
84255 2008-05-20  Simon Josefsson  <simon@josefsson.org>
84257         * modules/memcmp-tests: New file.
84258         * tests/test-memcmp.c: New file.
84260 2008-05-19  Bruno Haible  <bruno@clisp.org>
84262         * modules/propername (Notice, configure.ac): Put quoted "..." into
84263         --keyword option.
84264         * lib/propername.h: Update comments accordingly.
84265         Reported by Eric Blake.
84267 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
84269         * modules/getpass-gnu (Depends-on): Add fseeko.
84271 2008-05-19  Simon Josefsson  <simon@josefsson.org>
84273         * modules/base64-tests: New file.
84275 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
84277         * lib/base64.c (base64_decode_ctx): If a decode context structure
84278         was passed in use it to ignore newlines.  If a context structure
84279         was _not_ passed in, continue to treat newlines as garbage (this
84280         is the historical behavior).  Formerly base64_decode.
84281         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
84282         takes a decode context structure.
84283         * lib/base64.h (base64_decode): Macro for four-argument calls.
84284         (base64_decode_alloc): Likewise.
84285         * lib/base64.c (base64_decode_ctx): If a decode context structure
84286         was passed in use it to ignore newlines.  If a context structure
84287         was _not_ passed in, continue to treat newlines as garbage (this
84288         is the historical behavior).  Formerly base64_decode.
84289         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
84290         takes a decode context structure.
84291         * lib/base64.h (base64_decode): Macro for four-argument calls.
84292         (base64_decode_alloc): Likewise.
84294 2008-05-19  Jim Meyering  <meyering@redhat.com>
84296         avoid a warning from gcc
84297         * lib/trim.c (IF_LINT): Define.
84298         (trim2): Use it to avoid a "may be used uninitialized" warning.
84300         Fix doc typo.
84301         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
84303 2008-05-19  Bruno Haible  <bruno@clisp.org>
84305         * doc/glibc-functions/getpass.texi: Document limits of other
84306         implementations.
84308 2008-05-19  Simon Josefsson  <simon@josefsson.org>
84309             Bruno Haible <bruno@clisp.org>
84311         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
84313 2008-05-18  Bruno Haible  <bruno@clisp.org>
84315         * modules/propername: New file, from GNU gettext.
84316         * lib/propername.h: New file, from GNU gettext.
84317         * lib/propername.c: New file, from GNU gettext.
84318         * MODULES.html.sh (Internationalization functions): Add propername.
84320 2008-05-16  Jim Meyering  <meyering@redhat.com>
84321             Bruno Haible  <bruno@clisp.org>
84323         Avoid some warnings from "gcc -Wshadow".
84324         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
84326 2008-05-15  Eric Blake  <ebb9@byu.net>
84328         Extend previous patch to cygwin 1.7.0.
84329         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
84330         fast implementation in cygwin >= 1.7.0.
84331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84332         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84334 2008-05-15  Bruno Haible  <bruno@clisp.org>
84336         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
84337         implementation in glibc >= 2.9.
84338         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
84339         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
84341 2008-05-15  Bruno Haible  <bruno@clisp.org>
84343         * MODULES.html.sh (Internationalization functions): Remove linebreak.
84344         (Unicode string functions): Add unilbrk/*.
84345         Reported by Karl Berry.
84347 2008-05-15  Eric Blake  <ebb9@byu.net>
84349         Fix violation of <stdbool.h> replacement in regex.
84350         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
84351         * lib/regexec.c (re_search_internal): Likewise.
84352         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
84354 2008-05-15  Jim Meyering  <meyering@redhat.com>
84356         avoid distracting test output when git or cvs is not found
84357         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
84358         * tests/test-vc-list-files-git.sh: Likewise.
84360 2008-05-15  Eric Blake  <ebb9@byu.net>
84362         Glibc finally accepted the memmem speedup code, bugzilla #5514.
84363         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
84364         glibc version.
84365         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
84366         * doc/posix-functions/strstr.texi (strstr): Likewise.
84367         * lib/str-two-way.h (MAX): Sychronize with glibc.
84369 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
84371         * lib/regcomp.c (optimize_utf8): Add a note on why we test
84372         opr.ctx_type.
84373         (calc_first): Initialize constraint field.
84374         (duplicate_node_closure): Use it instead of special casing ANCHORS.
84375         Fix grammar.
84376         (duplicate_node): Merge constraint field for all node types.
84377         (calc_eclosure_iter): Look at constraint field for all node types.
84378         * lib/regex_internal.c (create_cd_newstate): Don't look at
84379         opr.ctx_type.
84381 2008-05-14  Bruno Haible  <bruno@clisp.org>
84383         Help GCC to do better code generation.
84384         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
84385         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
84386         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
84387         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
84388         Declare with attribute 'malloc' if supported.
84390 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
84392         use "echo STR|wc -c" rather than unportable "expr length STR"
84393         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
84394         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
84396 2008-05-14  Jim Meyering  <meyering@redhat.com>
84398         use dd ibs=$n count=1 ... rather than less-portable head -c$n
84399         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
84400         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
84401         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
84402         via Collin Lasse.
84404 2008-05-14  Eric Blake  <ebb9@byu.net>
84406         Avoid quadratic growth in gl_LIBSOURCES.
84407         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
84408         Suggested by Bruno Haible.
84410         Test xmemdup0.
84411         * modules/xmemdup0-tests: New file.
84412         * tests/test-xmemdup0.c: Likewise.
84414 2008-05-13  Eric Blake  <ebb9@byu.net>
84416         Split xmemdup0 into its own module.
84417         * modules/xmemdup0: New file.
84418         * lib/xmemdup0.h: Likewise.
84419         * lib/xmemdup0.c: Likewise.
84420         * MODULES.html.sh (Memory management functions): Add xmemdup0.
84421         * lib/xalloc.h (xmemdup0): Remove.
84422         * lib/xmalloc.c (xmemdup0): Likewise.
84424 2008-05-13  Eric Blake  <ebb9@byu.net>
84425             Bruno Haible  <bruno@clisp.org>
84427         Reduce number of forks required during autoconf.
84428         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
84429         and gl_LIBSOURCES_DIR.
84430         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
84431         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
84432         m4_syscmd per file.
84433         <m4_foreach_w>: Move...
84434         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
84436 2008-05-13  Eric Blake  <ebb9@byu.net>
84438         * gnulib-tool: Fix various comment typos.
84440 2008-05-12  Bruno Haible  <bruno@clisp.org>
84442         Tailor the linebreaking algorithm.
84443         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
84445 2008-05-12  Bruno Haible  <bruno@clisp.org>
84447         Update to Unicode 5.0.0.
84448         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
84449         LBP_JV, LBP_JT. Redistribute values.
84450         (unilbrk_table): Change size.
84451         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
84452         Unicode TR#14 rev. 22.
84453         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
84454         LBP_JV, LBP_JT. Redistribute values.
84455         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
84456         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
84457         Update.
84458         * lib/unilbrk/lbrkprop1.h: Regenerated.
84459         * lib/unilbrk/lbrkprop2.h: Regenerated.
84460         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
84461         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
84462         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
84463         Likewise.
84464         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
84465         Likewise.
84466         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
84467         result.
84468         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
84469         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
84470         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
84471         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
84472         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
84473         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
84475 2008-05-11  Bruno Haible  <bruno@clisp.org>
84477         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
84479 2008-05-11  Bruno Haible  <bruno@clisp.org>
84481         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
84482         * modules/unilbrk/gen-lbrk: New file.
84484 2008-05-11  Bruno Haible  <bruno@clisp.org>
84486         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
84487         * m4/sha512.m4 (gl_SHA512): Likewise.
84489 2008-05-11  Jim Meyering  <meyering@redhat.com>
84491         New modules: crypto/sha256, crypto/sha512 (from coreutils)
84492         * modules/crypto/sha256: New file.
84493         * modules/crypto/sha512: Likewise.
84494         * lib/sha256.c: Likewise.
84495         * lib/sha256.h: Likewise.
84496         * lib/sha512.c: Likewise.
84497         * lib/sha512.h: Likewise.
84498         * lib/u64.h: Likewise.
84499         * m4/sha256.m4: Likewise.
84500         * m4/sha512.m4: Likewise.
84501         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
84503 2008-05-10  Bruno Haible  <bruno@clisp.org>
84505         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
84506         (Input/Output <stdio.h>): Add xprintf.
84507         (Signal handling <signal.h>): Add strsignal.
84508         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
84509         (Core language properties): Add func.
84510         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
84511         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
84512         strings.
84513         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
84514         (Input/output): New section.
84515         (File system functions): Add openat-die, stat-macros.
84516         (Networking functions): Add sockets.
84517         (Unicode string functions): Add unictype/*.
84518         (Support for building libraries and executables): Add gperf.
84519         (Support for building documentation): Add agpl-3.0.
84520         (Misc): Add nocrash.
84522 2008-05-10  Bruno Haible  <bruno@clisp.org>
84524         * modules/unictype/gen-ctype: New file.
84526 2008-05-10  Jim Meyering  <meyering@redhat.com>
84528         Make chdir-safer.c more efficient on a system with no symlinks.
84529         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
84530         also if ELOOP is zero.  Suggested by Bruno Haible.
84532         Make chdir-safer.c slightly safer.
84533         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
84534         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
84536         Avoid compile failure on systems without ELOOP (like mingw).
84537         * lib/chdir-safer.c (ELOOP): Define if not already defined.
84538         Reported by Bruno Haible.
84540 2008-05-10  Bruno Haible  <bruno@clisp.org>
84542         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
84543         (is_utf8_encoding): Use a case-insensitive comparison.
84544         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
84545         streq.
84547 2008-05-10  Bruno Haible  <bruno@clisp.org>
84549         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
84550         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
84551         * lib/unilbrk/ulc-common.h (iconv_string_length,
84552         iconv_string_keeping_offsets): Remove declarations.
84553         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
84554         Don't include <iconv.h>, streq.h, xsize.h.
84555         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
84556         conversion.
84557         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
84558         <iconv.h>, streq.h, xsize.h.
84559         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
84560         conversion.
84561         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
84562         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
84563         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
84564         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
84566 2008-05-10  Bruno Haible  <bruno@clisp.org>
84568         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
84569         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
84571         * modules/unilbrk/u32-width-linebreaks-tests: New file.
84572         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
84574         * modules/unilbrk/u16-width-linebreaks-tests: New file.
84575         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
84577         * modules/unilbrk/u8-width-linebreaks-tests: New file.
84578         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
84580         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
84581         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
84583         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
84584         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
84586         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
84587         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
84589         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
84590         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
84592 2008-05-10  Bruno Haible  <bruno@clisp.org>
84594         Split up 'linebreak' module.
84595         * lib/unilbrk.h: New file, based on lib/linebreak.h.
84596         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
84597         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
84598         modifications.
84599         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
84600         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
84601         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
84602         lib/linebreak.c.
84603         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
84604         lib/linebreak.c.
84605         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
84606         lib/linebreak.c.
84607         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
84608         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
84609         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
84610         lib/linebreak.c.
84611         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
84612         lib/linebreak.c.
84613         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
84614         lib/linebreak.c.
84615         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
84616         lib/linebreak.c.
84617         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
84618         lib/linebreak.c.
84619         * modules/unilbrk/base: New file.
84620         * modules/unilbrk/tables: New file.
84621         * modules/unilbrk/u8-possible-linebreaks: New file.
84622         * modules/unilbrk/u16-possible-linebreaks: New file.
84623         * modules/unilbrk/u32-possible-linebreaks: New file.
84624         * modules/unilbrk/ulc-common: New file.
84625         * modules/unilbrk/ulc-possible-linebreaks: New file.
84626         * modules/unilbrk/u8-width-linebreaks: New file.
84627         * modules/unilbrk/u16-width-linebreaks: New file.
84628         * modules/unilbrk/u32-width-linebreaks: New file.
84629         * modules/unilbrk/ulc-width-linebreaks: New file.
84630         * lib/linebreak.h: Remove file.
84631         * lib/linebreak.c: Remove file.
84632         * m4/linebreak.m4: Remove file.
84633         * modules/linebreak: Remove file.
84634         * NEWS: Mention the changes.
84636 2008-05-09  Eric Blake  <ebb9@byu.net>
84638         Add xmemdup0.
84639         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
84640         implementation.
84641         * lib/xmalloc.c (xmemdup0): New C implementation.
84643 2008-05-08  Bruno Haible  <bruno@clisp.org>
84645         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
84647 2008-05-07  Eric Blake  <ebb9@byu.net>
84649         Support cross-compilation of <wctype.h>.
84650         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
84651         AC_CACHE_CHECK.
84653 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
84655         * build-aux/vc-list-files: Add support for bzr.
84657 2008-05-03  Jim Meyering  <meyering@redhat.com>
84659         avoid failed assertion with tight malloc
84660         * tests/test-getndelim2.c: Correct an off-by-one assertion.
84662 2008-05-03  Simon Josefsson  <simon@josefsson.org>
84664         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
84665         are needed from arpa/inet.h.
84666         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
84667         Reported by Bruno Haible.
84669 2008-05-02  Jim Meyering  <meyering@redhat.com>
84671         avoid compilation error on FreeBSD 6
84672         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
84674 2008-05-01  Jim Meyering  <meyering@redhat.com>
84676         useless-if-before-free: correct --help's exit status description
84677         * build-aux/useless-if-before-free (usage): Like grep, exit 0
84678         for one or more matches, etc.  Reported by Bruno Haible.
84680         vc-list-files: make the stand-alone gnulib test work
84681         * modules/vc-list-files-tests (configure.ac):
84682         Define and AC_SUBST abs_aux_dir.
84683         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
84684         $(abs_top_srcdir) to each script and having each of them
84685         duplicate the work of setting PATH, set PATH here, using
84686         the new variable, abs_aux_dir instead.
84687         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
84688         * tests/test-vc-list-files-git.sh: Likewise.
84689         Reported by Bruno Haible.
84691 2008-05-01  Bruno Haible  <bruno@clisp.org>
84693         * lib/getndelim2.c (getndelim2): Fix newsize computation during
84694         reallocation. Rename 'done' to 'found_delimiter'.
84696 2008-05-01  Jim Meyering  <meyering@redhat.com>
84698         vc-list-files: accommodate /bin/sh like the one from Solaris 10
84699         * build-aux/vc-list-files: Use `...`, not $(...).
84701 2008-04-30  Jim Meyering  <meyering@redhat.com>
84703         add tests for vc-list-files
84704         * modules/vc-list-files-tests: New module.
84705         * tests/test-vc-list-files-cvs.sh: New file.
84706         * tests/test-vc-list-files-git.sh: New file.
84708         avoid a warning from gcc
84709         * lib/getndelim2.c (IF_LINT): Define.
84710         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
84712         vc-list-files: work properly with build-aux/cvsu, too
84713         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
84714         to all cvs-based clauses.
84716         vc-list-files: work properly in the CVS+awk case, too
84717         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
84719         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
84720         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
84721         take more than one file argument, so .  Add quotes, just in case $dir
84722         ever contains a shell meta-character.  Prompted by Soren Hansen in
84723         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
84725 2008-04-29  Eric Blake  <ebb9@byu.net>
84727         Optimize getndelim2 to use block operations when possible.
84728         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
84729         freadseek, and memchr2.
84730         * lib/getndelim2.c (getndelim2): Use them for block reads.
84732 2008-04-29  Bruno Haible  <bruno@clisp.org>
84734         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
84735         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
84736         * modules/inet_ntop (Depends-on): Add extensions.
84737         * modules/inet_pton (Depends-on): Likewise.
84738         Reported by Simon Josefsson.
84740 2008-04-29  Jim Meyering  <meyering@redhat.com>
84742         When the is more than one match in a block, match all of them.
84743         * build-aux/useless-if-before-free: Iterate through each block
84744         until there are no more matches.
84746         Fix broken useless-if-before-free script.
84747         * build-aux/useless-if-before-free: Fix typo: missing "?" after
84748         the expression to match cast of argument to free-like function.
84750 2008-04-29  Eric Blake  <ebb9@byu.net>
84752         Use new header.
84753         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
84755 2008-04-29  Jim Meyering  <meyering@redhat.com>
84757         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
84758         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
84759         by gnulib to exist and to declare e.g., inet_ntop.
84760         Don't include "inet_ntop.h", now removed.
84762         * m4/arpa_inet_h.m4: Remove trailing blanks.
84764 2008-04-29  Eric Blake  <ebb9@byu.net>
84766         Silence valgrind on safe reads beyond potential array bounds.
84767         * lib/rawmemchr.valgrind: New file.
84768         * lib/strchrnul.valgrind: Likewise.
84769         * modules/rawmemchr (Files): Distribute new file.
84770         * modules/strchrnul (Files): Likewise.
84771         Suggested by Bruno Haible.
84773 2008-04-29  Bruno Haible  <bruno@clisp.org>
84775         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
84776         (inet_ntop, inet_pton): Change portability warning's wording.
84777         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
84778         Invoke gl_CHECK_NEXT_HEADERS.
84779         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
84780         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
84781         set ARPA_INET_H.
84782         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
84783         * modules/arpa_inet (Description): No longer only for systems that
84784         lack it.
84785         (Depends-on): Add include_next.
84786         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
84787         HAVE_ARPA_INET_H.
84789 2008-04-29  Jim Meyering  <meyering@redhat.com>
84791         * modules/mkdir (License): Re-license as LGPLv2+.
84793 2008-04-29  Bruno Haible  <bruno@clisp.org>
84795         * modules/rawmemchr (Maintainer): Set to Eric.
84796         * modules/strchrnul (Maintainer): Likewise.
84798 2008-04-29  Simon Josefsson  <simon@josefsson.org>
84800         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
84801         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
84803         * modules/arpa_inet (arpa/inet.h): Use them.
84805 2008-04-28  Eric Blake  <ebb9@byu.net>
84807         Test getndelim2.
84808         * modules/getndelim2-tests: New file.
84809         * tests/test-getndelim2.c: Likewise.
84810         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
84811         stream.
84812         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
84814         * MODULES.html.sh: Document new module.
84816 2008-04-20  Bruno Haible  <bruno@clisp.org>
84818         * lib/c-stack.c (die): Use raise.
84819         * modules/c-stack (Depends-on): Add raise.
84821 2008-04-28  Bruno Haible  <bruno@clisp.org>
84823         Expect rpmatch to be declared.
84824         * lib/yesno.c (rpmatch): Remove declaration.
84826         Declare rpmatch.
84827         * lib/stdlib.in.h (rpmatch): New declaration.
84828         * lib/rpmatch.c: Include <stdlib.h> first.
84829         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
84830         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
84831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
84832         HAVE_RPMATCH.
84833         * modules/rpmatch (Depends-on): Add stdlib, extensions.
84834         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
84835         (Include): Set to <stdlib.h>.
84836         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
84837         HAVE_RPMATCH.
84838         * NEWS: Document the change.
84840 2008-04-28  Bruno Haible  <bruno@clisp.org>
84842         Change rpmatch to use nl_langinfo when appropriate.
84843         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
84844         (N_): New macro.
84845         (localized_pattern): New function/macro.
84846         (try): Remove match, nomatch arguments. Copy the pattern into safe
84847         memory before caching it.
84848         (rpmatch): Use localized_pattern. Add translator comments.
84849         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
84850         Suggested by Eric Blake.
84851         * modules/rpmatch (Depends-on): Add stdbool.
84853 2008-04-28  Eric Blake  <ebb9@byu.net>
84855         Add rawmemchr module, matching glibc.
84856         * modules/string (Makefile.am): New indicator.
84857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
84858         * lib/string.in.h (rawmemchr): Declare when appropriate.
84859         * modules/rawmemchr: New file.
84860         * m4/rawmemchr.m4: Likewise.
84861         * lib/rawmemchr.c: Likewise.
84862         * modules/rawmemchr-tests: Likewise.
84863         * tests/test-rawmemchr.c: Likewise.
84864         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
84865         module.
84866         * modules/strchrnul (Depends-on): Add rawmemchr.
84867         * lib/strchrnul.c (strchrnul): Optimize a corner case.
84869         Whitespace cleanup.
84870         * tests/test-strchrnul.c: Reindent.
84871         * lib/strchrnul.c: Likewise.
84873         Optimize and test strchrnul.
84874         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
84875         * modules/strchrnul-tests: New file.
84876         * tests/test-strchrnul.c: Likewise.
84878         Remove intprops dependency.
84879         * modules/memchr (Depends-on): Remove intprops.
84880         * modules/memrchr (Depends-on): Likewise.
84881         * modules/memchr2 (Depends-on): Likewise.
84882         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
84883         * lib/memrchr.c (__memrchr): Likewise.
84884         * lib/memrchr2.c (memchr2): Likewise.
84885         Reported by Simon Josefsson.
84887 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84889         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
84890         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84892 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84894         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
84896         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
84898         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
84900         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
84901         declarations.
84902         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
84904         * m4/inet_pton.m4: Don't check for header files.
84906         * m4/inet_ntop.m4: Don't check for header files.
84908 2008-04-28  Simon Josefsson  <simon@josefsson.org>
84910         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
84911         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
84912         trigger for cygwin).
84913         Reported by Bruno Haible  <bruno@clisp.org>.
84915 2008-04-28  Bruno Haible  <bruno@clisp.org>
84917         * doc/posix-functions/strdup.texi: Mention mingw problem.
84919 2008-04-27  Bruno Haible  <bruno@clisp.org>
84921         * modules/stat-time-tests (Depends-on): Add sleep.
84922         * tests/test-stat-time.c (force_unlink): New function.
84923         (cleanup): Use it.
84924         (test_mtime): Remove the ctime related tests.
84925         (test_ctime): New function, containing the ctime related tests.
84926         (main): Call test_ctime, except on native Windows platforms.
84928 2008-04-27  Bruno Haible  <bruno@clisp.org>
84930         * lib/rpmatch.c (rpmatch): Add some comments.
84931         Reported by James Youngman <jay@gnu.org>.
84933 2008-04-27  Bruno Haible  <bruno@clisp.org>
84935         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
84936         quiet NaNs.
84938 2008-04-27  Bruno Haible  <bruno@clisp.org>
84940         Make test-yesno.sh work on mingw.
84941         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
84942         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
84943         (main): Set stdin to binary mode.
84944         * modules/yesno-tests (Depends-on): Add binary-io.
84946 2008-04-27  Bruno Haible  <bruno@clisp.org>
84948         Fix 'isfinite' on x86, x86_64, ia64 platforms.
84949         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
84950         argument that lie outside the IEEE 854 domain.
84951         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
84952         (gl_ISFINITE): Use it.
84953         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
84955 2008-04-27  Bruno Haible  <bruno@clisp.org>
84957         Allow local renaming in config.h.
84958         * lib/memrchr.c (memrchr): Don't undefine outside libc.
84960 2008-04-27  Bruno Haible  <bruno@clisp.org>
84962         * lib/memchr.c (__memchr): Change type of 'i'.
84963         * lib/memchr2.c (memchr2): Likewise.
84965 2008-04-26  Eric Blake  <ebb9@byu.net>
84966         and Bruno Haible  <bruno@clisp.org>
84968         Optimize and test memrchr.
84969         * modules/memrchr (Depends-on): Add intprops.
84970         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
84971         * modules/memrchr-tests: New file.
84972         * tests/test-memrchr.c: New file.
84974 2008-04-26  Bruno Haible  <bruno@clisp.org>
84976         Add tentative support for DragonFly BSD.
84977         * lib/stdio-impl.h: Add macros for DragonFly BSD.
84978         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
84979         fp.
84980         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
84981         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
84982         * lib/fpurge.c (fpurge): Likewise.
84983         * lib/freadable.c (freaadable): Likewise.
84984         * lib/freadahead.c (freadahead): Likewise.
84985         * lib/freading.c (freading): Likewise.
84986         * lib/freadptr.c (freadptr): Likewise.
84987         * lib/freadseek.c (freadptrinc): Likewise.
84988         * lib/fseeko.c (fseeko): Likewise.
84989         * lib/fseterr.c (fseterr): Likewise.
84990         * lib/fwritable.c (fwritable): Likewise.
84991         * lib/fwriting.c (fwriting): Likewise.
84993 2008-04-26  Bruno Haible  <bruno@clisp.org>
84995         * lib/stdio-impl.h: New file.
84996         * lib/fbufmode.c: Include stdio-impl.h.
84997         (fbufmode): Use fp_, remove redundant #defines.
84998         * lib/fflush.c: Include stdio-impl.h.
84999         (clear_ungetc_buffer): Remove redundant #defines.
85000         * lib/fpurge.c: Include stdio-impl.h.
85001         (fpurge): Remove redundant #defines.
85002         * lib/freadable.c: Include stdio-impl.h.
85003         (freadable): Remove redundant #defines.
85004         * lib/freadahead.c: Include stdio-impl.h.
85005         (freadahead): Remove redundant #defines.
85006         * lib/freading.c: Include stdio-impl.h.
85007         (freading): Remove redundant #defines.
85008         * lib/freadptr.c: Include stdio-impl.h.
85009         (freadptr): Remove redundant #defines.
85010         * lib/freadseek.c: Include stdio-impl.h.
85011         (freadptrinc): Remove redundant #defines.
85012         * lib/fseeko.c: Include stdio-impl.h.
85013         (rpl_fseeko): Remove redundant #defines.
85014         * lib/fseterr.c: Include stdio-impl.h.
85015         (fseterr): Remove redundant #defines.
85016         * lib/fwritable.c: Include stdio-impl.h.
85017         (fwritable: Remove redundant #defines.
85018         * lib/fwriting.c: Include stdio-impl.h.
85019         (fwriting): Remove redundant #defines.
85020         * modules/fbufmode (Files): Add lib/stdio-impl.h.
85021         * modules/fflush (Files): Likewise.
85022         * modules/fpurge (Files): Likewise.
85023         * modules/freadable (Files): Likewise.
85024         * modules/freadahead (Files): Likewise.
85025         * modules/freading (Files): Likewise.
85026         * modules/freadptr (Files): Likewise.
85027         * modules/freadseek (Files): Likewise.
85028         * modules/fseeko (Files): Likewise.
85029         * modules/fseterr (Files): Likewise.
85030         * modules/fwritable (Files): Likewise.
85031         * modules/fwriting (Files): Likewise.
85033 2008-04-26  Bruno Haible  <bruno@clisp.org>
85035         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
85036         restore_seek_optimization, update_fpos_cache): New functions, extracted
85037         from rpl_fflush.
85038         (rpl_fflush): Use them.
85039         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
85040         (gl_REPLACE_FFLUSH): Use it.
85042 2008-04-26  Bruno Haible  <bruno@clisp.org>
85044         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
85045         on Solaris.
85046         * tests/test-xstrtoimax.sh: Likewise.
85047         * tests/test-xstrtoumax.sh: Likewise.
85048         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
85050 2008-04-26  Bruno Haible  <bruno@clisp.org>
85052         * modules/memchr-tests: New file.
85053         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
85055 2008-04-26  Eric Blake  <ebb9@byu.net>
85056             Bruno Haible  <bruno@clisp.org>
85058         * lib/memchr.c: Include intprops.h.
85059         (__memchr): Optimize parallel detection of matching bytes. Rename local
85060         variables. Add explanatory comments.
85062 2008-04-26  Bruno Haible  <bruno@clisp.org>
85064         Fix module 'memchr', broken since 2000-10-28.
85065         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
85067 2008-04-26  Bruno Haible  <bruno@clisp.org>
85069         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
85070         comments.
85072 2008-04-25  Eric Blake  <ebb9@byu.net>
85074         Use native fstatat on cygwin 1.7.0.
85075         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
85076         first.
85078 2008-04-23  Eric Blake  <ebb9@byu.net>
85080         Improve memchr2 performance.
85081         * lib/memchr2.c (memchr2): Further optimize parallel detection of
85082         NUL bytes.
85083         * modules/memchr2 (Depends-on): Use intprops.h.
85085 2008-04-23  Simon Josefsson  <simon@josefsson.org>
85087         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
85088         an inline function instead of a CPP macro.  Patch by Ben Pfaff
85089         <blp@cs.stanford.edu>.
85091 2008-04-23  Simon Josefsson  <simon@josefsson.org>
85093         * lib/arpa_inet.in.h: New file.
85095         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
85096         (Makefile.am): Sed in substitute header file.
85098         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
85099         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
85101         * modules/inet_ntop (configure.ac): Use
85102         gl_ARPA_INET_MODULE_INDICATOR.
85104         * modules/inet_pton (configure.ac): Use
85105         gl_ARPA_INET_MODULE_INDICATOR.
85107 2008-04-22  Jim Meyering  <meyering@redhat.com>
85109         * modules/verify (License): Re-license as LGPLv2+.
85111 2008-04-22  Simon Josefsson  <simon@josefsson.org>
85113         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
85114         parameter to void* as per POSIX standard (MinGW uses char*).
85116 2008-04-21  Bruno Haible  <bruno@clisp.org>
85118         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
85119         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
85120         Define to replacements if REPLACE_ISWCNTRL is 1.
85121         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
85122         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
85123         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
85124         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
85125         what it fixes.
85126         * doc/posix-functions/iswalpha.texi: Likewise.
85127         * doc/posix-functions/iswblank.texi: Likewise.
85128         * doc/posix-functions/iswcntrl.texi: Likewise.
85129         * doc/posix-functions/iswdigit.texi: Likewise.
85130         * doc/posix-functions/iswgraph.texi: Likewise.
85131         * doc/posix-functions/iswlower.texi: Likewise.
85132         * doc/posix-functions/iswprint.texi: Likewise.
85133         * doc/posix-functions/iswpunct.texi: Likewise.
85134         * doc/posix-functions/iswspace.texi: Likewise.
85135         * doc/posix-functions/iswupper.texi: Likewise.
85136         * doc/posix-functions/iswxdigit.texi: Likewise.
85137         Reported by Alain Guibert.
85139 2008-04-21  Bruno Haible  <bruno@clisp.org>
85141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
85142         Patch by Alain Guibert.
85144 2008-04-21  Bruno Haible  <bruno@clisp.org>
85146         Fix test failures on mingw.
85147         * tests/test-xstrtol.c (print_no_progname): New function.
85148         (main): Install it in error_print_progname hook.
85149         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
85150         * tests/test-xstrtoimax.sh: Likewise.
85151         * tests/test-xstrtoumax.sh: Likewise.
85153 2008-04-21  Bruno Haible  <bruno@clisp.org>
85155         Fix test failure on mingw.
85156         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
85158 2008-04-21  Bruno Haible  <bruno@clisp.org>
85160         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
85161         Actually assign a value.
85163 2008-04-20  Bruno Haible  <bruno@clisp.org>
85165         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
85166         take 2.
85167         * lib/canonicalize.c (canonicalize_file_name): Elide if the
85168         'canonicalize-lgpl' module is also used.
85169         * lib/canonicalize-lgpl.c: Undo last change.
85170         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
85172 2008-04-20  Bruno Haible  <bruno@clisp.org>
85174         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
85175         config.h. Provide _mkdir based fallback for mingw.
85176         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
85177         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
85178         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
85179         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
85180         rather than defining mkdir in config.h.
85181         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
85182         (gl_SYS_STAT_H_DEFAULTS): New macro.
85183         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
85184         HAVE_IO_H any more.
85185         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
85186         HAVE_DECL_MKDIR and HAVE_IO_H.
85188 2008-04-20  Bruno Haible  <bruno@clisp.org>
85190         * lib/isapipe.c: Port to native Windows platforms.
85192 2008-04-20  Bruno Haible  <bruno@clisp.org>
85194         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
85196 2008-04-21  Eric Blake  <ebb9@byu.net>
85198         Work around preprocessors that don't handle UINTMAX_MAX.
85199         * lib/memchr2.c (memchr2): Avoid embedded #if.
85200         Reported by Alain Guibert, fix suggested by Bruno Haible.
85202 2008-04-21  Simon Josefsson  <simon@josefsson.org>
85204         * doc/posix-functions/strftime.texi (strftime): Explain better
85205         Windows incompatibility.  Suggested by Micah Cowan
85206         <micah@cowan.name>.
85208 2008-04-20  Bruno Haible  <bruno@clisp.org>
85210         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
85211         unistr/u8-mblen.
85213 2008-04-20  Bruno Haible  <bruno@clisp.org>
85215         Fix test failure on platforms with non-GNU iconv.
85216         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
85217         (U_TO_U8): Use it, rather than u16_to_u8.
85218         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
85219         units at the end of the input string.
85220         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
85222 2008-04-20  Bruno Haible  <bruno@clisp.org>
85224         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
85225         when the resulting length is 0.
85226         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
85228 2008-04-20  Bruno Haible  <bruno@clisp.org>
85230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
85231         works.
85232         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
85234 2008-04-20  Bruno Haible  <bruno@clisp.org>
85236         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
85237         * modules/tsearch-tests (configure.ac): Test for initstate function.
85239 2008-04-20  Bruno Haible  <bruno@clisp.org>
85241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
85242         for nlink_t if missing.
85243         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
85245 2008-04-19  Bruno Haible  <bruno@clisp.org>
85247         Work around snprintf bug on Linux libc5.
85248         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
85249         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
85250         gl_SNPRINTF_SIZE1.
85251         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85252         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
85253         that test failed.
85254         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
85255         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
85256         * modules/snprintf (Files): Add m4/printf.m4.
85257         * modules/vsnprintf (Files): Likewise.
85258         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
85259         * doc/posix-functions/vsnprintf.texi: Likewise.
85261 2008-04-19  Bruno Haible  <bruno@clisp.org>
85263         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
85264         from 0.0058 to less than 10^-7.
85266 2008-04-19  Bruno Haible  <bruno@clisp.org>
85268         Fix rounding when a precision is given.
85269         * lib/vasnprintf.c (is_borderline): New function.
85270         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
85271         9...9x.
85272         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
85273         %e, %g.
85274         * tests/test-vasprintf-posix.c (test_function): Likewise.
85275         * tests/test-snprintf-posix.h (test_function): Likewise.
85276         * tests/test-sprintf-posix.h (test_function): Likewise.
85277         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
85278         * tests/test-printf-posix.h (test_function): Likewise.
85279         * tests/test-printf-posix.output: Update.
85280         Reported by John Darrington <john@darrington.wattle.id.au> via
85281         Ben Pfaff <blp@cs.stanford.edu>.
85283 2008-04-18  Simon Josefsson  <simon@josefsson.org>
85285         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
85286         Suggested by Bruno Haible <bruno@clisp.org>.
85288 2008-04-17  Bruno Haible  <bruno@clisp.org>
85290         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
85291         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
85292         implementation.
85293         Patch by Bruce Merry <bmerry@gmail.com>.
85295 2008-04-17  Simon Josefsson  <simon@josefsson.org>
85297         * doc/posix-functions/strftime.texi (strftime): Mention that %e
85298         doesn't work under Windows.
85300 2008-04-16  Bruno Haible  <bruno@clisp.org>
85302         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
85303         New macros.
85304         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
85305         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
85306         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
85307         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
85308         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
85309         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
85310         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
85311         macros.
85312         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
85313         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
85314         Northern Sotho, Uighur.
85316 2008-04-16  Bruno Haible  <bruno@clisp.org>
85318         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
85319         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
85320         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
85321         Reported by Daniel Bergström <daniel@octocode.com>.
85323 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
85324             Bruno Haible  <bruno@clisp.org>
85326         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
85327         function.
85328         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
85329         New functions, mostly extracted from gl_locale_name_default.
85330         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
85332 2008-04-16  Eric Blake  <ebb9@byu.net>
85334         Adjust strtod detection to catch glibc 2.7 bug.
85335         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
85336         Reported by John Gatewood Ham.
85338 2008-04-16  Bruno Haible  <bruno@clisp.org>
85340         Add tentative support for Linux libc5.
85341         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
85342         * lib/fpurge.c (fpurge): Likewise.
85343         * lib/freadable.c (freadable): Likewise.
85344         * lib/freadahead.c (freadahead): Likewise.
85345         * lib/freading.c (freading): Likewise.
85346         * lib/freadptr.c (freadptr): Likewise.
85347         * lib/freadseek.c (freadptrinc): Likewise.
85348         * lib/fseeko.c (rpl_fseeko): Likewise.
85349         * lib/fseterr.c (fseterr): Likewise.
85350         * lib/fwritable.c (fwritable): Likewise.
85351         * lib/fwriting.c (fwriting): Likewise.
85352         Reported by Alain Guibert <alguibert+bts@free.fr>.
85354 2008-04-15  Bruno Haible  <bruno@clisp.org>
85356         * modules/mathl (configure.ac): Define module indicator.
85358 2008-04-15  Bruno Haible  <bruno@clisp.org>
85360         * lib/logl.c (logl): Remove unused variables.
85362 2008-04-15  Bruno Haible  <bruno@clisp.org>
85364         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
85365         fails.
85367 2008-04-15  Bruno Haible  <bruno@clisp.org>
85369         * lib/trim.c (trim2): Fix argument of isspace() macro.
85371 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
85373         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
85374         to 0.
85375         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
85377 2008-04-14  Bruno Haible  <bruno@clisp.org>
85379         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
85380         AC_LANG_PROGRAM argument.
85381         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
85382         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
85383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
85384         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
85385         * m4/math_h.m4 (gl_MATH_H): Likewise.
85386         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
85387         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
85388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
85389         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
85390         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
85391         * m4/regex.m4 (gl_REGEX): Likewise.
85392         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
85393         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
85394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
85395         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
85396         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
85397         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
85398         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
85399         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
85401 2008-04-14  Jim Meyering  <meyering@redhat.com>
85403         test-strtod: fix typos: s/abs/fabs/
85404         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
85406 2008-04-13  Bruno Haible  <bruno@clisp.org>
85408         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
85409         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
85410         module is also used and while not building the reloc-wrapper.
85412 2008-04-13  Bruno Haible  <bruno@clisp.org>
85414         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
85416 2008-04-13  Bruno Haible  <bruno@clisp.org>
85418         Fix AIX compilation failure introduced on 2008-04-02.
85419         * tests/test-frexp.c (exp): Undefine before redefining.
85420         * tests/test-frexpl.c (exp): Likewise.
85422 2008-04-13  Bruno Haible  <bruno@clisp.org>
85424         Work around a HP-UX stdio bug.
85425         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
85426         * tests/test-ftello.c (main): Likewise.
85427         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
85428         * doc/posix-functions/ftello.texi: Likewise.
85430 2008-04-13  Bruno Haible  <bruno@clisp.org>
85432         Make test-signbit pass on HP-UX/hppa.
85433         * tests/test-signbit.c (minus_zerol): New variable.
85434         (test_signbitl): Use it.
85436 2008-04-13  Bruno Haible  <bruno@clisp.org>
85438         Make truncl work on OSF/1 4.0.
85439         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
85440         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
85441         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
85442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
85443         HAVE_DECL_TRUNCL.
85444         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
85445         HAVE_DECL_TRUNCL.
85446         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
85448 2008-04-13  Bruno Haible  <bruno@clisp.org>
85450         * lib/unictype.h: Remove trailing comma from enumeration definitions.
85452 2008-04-13  Bruno Haible  <bruno@clisp.org>
85454         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
85455         expression, so as to avoid HP-UX 11 cc compiler bug.
85457 2008-04-13  Bruno Haible  <bruno@clisp.org>
85459         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
85461 2008-04-13  Bruno Haible  <bruno@clisp.org>
85463         * lib/git-merge-changelog.c: Remove empty declaration outside of
85464         functions.
85466 2008-04-13  Bruno Haible  <bruno@clisp.org>
85468         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
85470 2008-04-13  Bruno Haible  <bruno@clisp.org>
85472         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
85473         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
85474         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
85475         also if it exists but lacks definitions of the SHUT_* macros.
85476         * modules/sys_socket (Description): Update.
85477         Reported by Elbert Pol <e.pol@chello.nl>.
85479 2008-04-13  Bruno Haible  <bruno@clisp.org>
85481         * lib/localcharset.c (OS2): Don't redefine if already defined.
85482         Reported by Elbert Pol <e.pol@chello.nl>.
85484 2008-04-13  Bruno Haible  <bruno@clisp.org>
85486         * lib/binary-io.h [__EMX__]: Include <io.h>.
85487         Reported by Elbert Pol <e.pol@chello.nl>.
85489 2008-04-12  Bruno Haible  <bruno@clisp.org>
85491         * lib/fpucw.h: Enable the definitions also for x86_64.
85492         Needed for NetBSD/x86_64.
85493         Reported by Thomas Klausner <tk@giga.or.at>.
85495 2008-04-12  Bruno Haible  <bruno@clisp.org>
85497         * tests/test-strtod.c: Include isnand.h.
85498         (main): Use isnand instead of isnan.
85499         Reported by Jim Meyering.
85501 2008-04-12  Bruno Haible  <bruno@clisp.org>
85503         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
85504         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
85506 2008-04-12  Jim Meyering  <meyering@redhat.com>
85508         * m4/math_h.m4 (gl_MATH_H): Fix typos.
85510 2008-04-12  Bruno Haible  <bruno@clisp.org>
85512         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
85513         Reported by Elbert Pol <e.pol@chello.nl>.
85515 2008-04-12  Eric Blake  <ebb9@byu.net>
85517         Work around Solaris 10 math.h bug.
85518         * m4/math_h.m4 (gl_MATH_H): Check for bug.
85519         (gl_MATH_H_DEFAULTS): Set up default.
85520         * modules/math (Makefile.am): Replace new indicators.
85521         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
85522         * tests/test-math.c (main): Test this.
85523         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
85524         * doc/posix-headers/math.texi (math.h): Mention bug.
85525         Reported by Nelson H. F. Beebe and Jim Meyering.
85527 2008-04-11  Bruno Haible  <bruno@clisp.org>
85529         Adapt to future versions of Apple GCC.
85530         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
85531         Reported by Peter O'Gorman <peter@pogma.com>.
85533 2008-04-11  Bruno Haible  <bruno@clisp.org>
85535         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
85537 2008-04-11  Bruno Haible  <bruno@clisp.org>
85539         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
85541         * modules/getaddrinfo-tests (Makefile.am): Define
85542         test_getaddrinfo_LDADD.
85544 2008-04-11  Bruno Haible  <bruno@clisp.org>
85546         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
85547         (init): Fix syntax error.
85548         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
85549         is declared.
85551 2008-04-11  Bruno Haible  <bruno@clisp.org>
85553         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
85554         * modules/glob (Depends-on): Add stdbool.
85556 2008-04-11  Bruno Haible  <bruno@clisp.org>
85558         * lib/trim.c: Include <string.h>.
85560 2008-04-11  Eric Blake  <ebb9@byu.net>
85562         Avoid compile failure on OS/2.
85563         * lib/regex_internal.h (internal_function): Disable optimization
85564         on OS/2 (__EMX__), where it caused compiler error.
85565         Reported by Elbert Pol.
85567 2008-04-11  Bruno Haible  <bruno@clisp.org>
85569         Flush the standard error stream before aborting. Needed on mingw.
85570         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
85571         * tests/test-array_list.c (ASSERT): Likewise.
85572         * tests/test-array_oset.c (ASSERT): Likewise.
85573         * tests/test-avltree_list.c (ASSERT): Likewise.
85574         * tests/test-avltree_oset.c (ASSERT): Likewise.
85575         * tests/test-avltreehash_list.c (ASSERT): Likewise.
85576         * tests/test-binary-io.c (ASSERT): Likewise.
85577         * tests/test-byteswap.c (ASSERT): Likewise.
85578         * tests/test-c-ctype.c (ASSERT): Likewise.
85579         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
85580         * tests/test-c-strcasestr.c (ASSERT): Likewise.
85581         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
85582         * tests/test-c-strstr.c (ASSERT): Likewise.
85583         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
85584         * tests/test-canonicalize.c (ASSERT): Likewise.
85585         * tests/test-carray_list.c (ASSERT): Likewise.
85586         * tests/test-ceilf1.c (ASSERT): Likewise.
85587         * tests/test-ceilf2.c (ASSERT): Likewise.
85588         * tests/test-ceill.c (ASSERT): Likewise.
85589         * tests/test-count-one-bits.c (ASSERT): Likewise.
85590         * tests/test-fbufmode.c (ASSERT): Likewise.
85591         * tests/test-fflush2.c (ASSERT): Likewise.
85592         * tests/test-floorf1.c (ASSERT): Likewise.
85593         * tests/test-floorf2.c (ASSERT): Likewise.
85594         * tests/test-floorl.c (ASSERT): Likewise.
85595         * tests/test-fopen.c (ASSERT): Likewise.
85596         * tests/test-fpending.c (ASSERT): Likewise.
85597         * tests/test-fprintf-posix.c (ASSERT): Likewise.
85598         * tests/test-fpurge.c (ASSERT): Likewise.
85599         * tests/test-freadable.c (ASSERT): Likewise.
85600         * tests/test-freadahead.c (ASSERT): Likewise.
85601         * tests/test-freading.c (ASSERT): Likewise.
85602         * tests/test-freadptr.c (ASSERT): Likewise.
85603         * tests/test-freadptr2.c (ASSERT): Likewise.
85604         * tests/test-freadseek.c (ASSERT): Likewise.
85605         * tests/test-freopen.c (ASSERT): Likewise.
85606         * tests/test-frexp.c (ASSERT): Likewise.
85607         * tests/test-frexpl.c (ASSERT): Likewise.
85608         * tests/test-fseek.c (ASSERT): Likewise.
85609         * tests/test-fseeko.c (ASSERT): Likewise.
85610         * tests/test-fstrcmp.c (ASSERT): Likewise.
85611         * tests/test-ftell.c (ASSERT): Likewise.
85612         * tests/test-ftello.c (ASSERT): Likewise.
85613         * tests/test-func.c (ASSERT): Likewise.
85614         * tests/test-fwritable.c (ASSERT): Likewise.
85615         * tests/test-fwriting.c (ASSERT): Likewise.
85616         * tests/test-getdelim.c (ASSERT): Likewise.
85617         * tests/test-getline.c (ASSERT): Likewise.
85618         * tests/test-i-ring.c (ASSERT): Likewise.
85619         * tests/test-iconv-utf.c (ASSERT): Likewise.
85620         * tests/test-iconv.c (ASSERT): Likewise.
85621         * tests/test-isfinite.c (ASSERT): Likewise.
85622         * tests/test-isnand.c (ASSERT): Likewise.
85623         * tests/test-isnanf.c (ASSERT): Likewise.
85624         * tests/test-isnanl.h (ASSERT): Likewise.
85625         * tests/test-ldexpl.c (ASSERT): Likewise.
85626         * tests/test-linked_list.c (ASSERT): Likewise.
85627         * tests/test-linkedhash_list.c (ASSERT): Likewise.
85628         * tests/test-localename.c (ASSERT): Likewise.
85629         * tests/test-lseek.c (ASSERT): Likewise.
85630         * tests/test-mbscasecmp.c (ASSERT): Likewise.
85631         * tests/test-mbscasestr1.c (ASSERT): Likewise.
85632         * tests/test-mbscasestr2.c (ASSERT): Likewise.
85633         * tests/test-mbscasestr3.c (ASSERT): Likewise.
85634         * tests/test-mbscasestr4.c (ASSERT): Likewise.
85635         * tests/test-mbschr.c (ASSERT): Likewise.
85636         * tests/test-mbscspn.c (ASSERT): Likewise.
85637         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
85638         * tests/test-mbspbrk.c (ASSERT): Likewise.
85639         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
85640         * tests/test-mbsrchr.c (ASSERT): Likewise.
85641         * tests/test-mbsspn.c (ASSERT): Likewise.
85642         * tests/test-mbsstr1.c (ASSERT): Likewise.
85643         * tests/test-mbsstr2.c (ASSERT): Likewise.
85644         * tests/test-mbsstr3.c (ASSERT): Likewise.
85645         * tests/test-memchr2.c (ASSERT): Likewise.
85646         * tests/test-memmem.c (ASSERT): Likewise.
85647         * tests/test-open.c (ASSERT): Likewise.
85648         * tests/test-printf-frexp.c (ASSERT): Likewise.
85649         * tests/test-printf-frexpl.c (ASSERT): Likewise.
85650         * tests/test-printf-posix.c (ASSERT): Likewise.
85651         * tests/test-quotearg.c (ASSERT): Likewise.
85652         * tests/test-rbtree_list.c (ASSERT): Likewise.
85653         * tests/test-rbtree_oset.c (ASSERT): Likewise.
85654         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
85655         * tests/test-round1.c (ASSERT): Likewise.
85656         * tests/test-roundf1.c (ASSERT): Likewise.
85657         * tests/test-roundl.c (ASSERT): Likewise.
85658         * tests/test-signbit.c (ASSERT): Likewise.
85659         * tests/test-sleep.c (ASSERT): Likewise.
85660         * tests/test-snprintf-posix.c (ASSERT): Likewise.
85661         * tests/test-snprintf.c (ASSERT): Likewise.
85662         * tests/test-sprintf-posix.c (ASSERT): Likewise.
85663         * tests/test-stat-time.c (ASSERT): Likewise.
85664         * tests/test-strcasestr.c (ASSERT): Likewise.
85665         * tests/test-strerror.c (ASSERT): Likewise.
85666         * tests/test-striconv.c (ASSERT): Likewise.
85667         * tests/test-striconveh.c (ASSERT): Likewise.
85668         * tests/test-striconveha.c (ASSERT): Likewise.
85669         * tests/test-strsignal.c (ASSERT): Likewise.
85670         * tests/test-strstr.c (ASSERT): Likewise.
85671         * tests/test-strtod.c (ASSERT): Likewise.
85672         * tests/test-trunc1.c (ASSERT): Likewise.
85673         * tests/test-trunc2.c (ASSERT): Likewise.
85674         * tests/test-truncf1.c (ASSERT): Likewise.
85675         * tests/test-truncf2.c (ASSERT): Likewise.
85676         * tests/test-truncl.c (ASSERT): Likewise.
85677         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
85678         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
85679         * tests/test-vasnprintf.c (ASSERT): Likewise.
85680         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
85681         * tests/test-vasprintf.c (ASSERT): Likewise.
85682         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
85683         * tests/test-vprintf-posix.c (ASSERT): Likewise.
85684         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
85685         * tests/test-vsnprintf.c (ASSERT): Likewise.
85686         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
85687         * tests/test-wcwidth.c (ASSERT): Likewise.
85688         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
85689         * tests/test-xprintf-posix.c (ASSERT): Likewise.
85690         * tests/test-xvasprintf.c (ASSERT): Likewise.
85691         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
85692         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
85693         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
85694         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
85695         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
85696         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
85697         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
85698         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
85699         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
85700         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
85701         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
85702         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
85703         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
85704         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
85705         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
85706         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
85707         * tests/unictype/test-block_list.c (ASSERT): Likewise.
85708         * tests/unictype/test-block_of.c (ASSERT): Likewise.
85709         * tests/unictype/test-block_test.c (ASSERT): Likewise.
85710         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
85711         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
85712         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
85713         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
85714         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
85715         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
85716         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
85717         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
85718         * tests/unictype/test-combining.c (ASSERT): Likewise.
85719         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
85720         * tests/unictype/test-digit.c (ASSERT): Likewise.
85721         * tests/unictype/test-mirror.c (ASSERT): Likewise.
85722         * tests/unictype/test-numeric.c (ASSERT): Likewise.
85723         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
85724         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
85725         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
85726         * tests/unictype/test-scripts.c (ASSERT): Likewise.
85727         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
85728         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
85729         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
85730         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
85731         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
85732         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
85733         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
85734         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
85735         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
85736         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
85737         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
85738         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
85739         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
85740         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
85741         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
85742         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
85743         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
85744         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
85745         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
85746         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
85747         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
85748         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
85749         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
85750         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
85751         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
85752         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
85753         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
85754         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
85755         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
85756         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
85757         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
85758         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
85759         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
85760         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
85761         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
85762         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
85763         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
85764         Reported by Eric Blake.
85766 2008-04-11  Bruno Haible  <bruno@clisp.org>
85768         * lib/wchar.in.h: Tweak comment.
85770 2008-04-11  Bruno Haible  <bruno@clisp.org>
85772         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
85773         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
85774         gl_COMMON.
85775         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
85777 2008-04-11  Bruno Haible  <bruno@clisp.org>
85779         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
85781 2008-04-11  Simon Josefsson  <simon@josefsson.org>
85783         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
85784         of attempting to use non-existing /dev/*random.  Based on patch
85785         from Adam Strzelecki <ono@java.pl> in
85786         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
85788 2008-04-08  Bruno Haible  <bruno@clisp.org>
85790         Add tentative support for emx+gcc.
85791         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
85792         * lib/fpurge.c (fpurge): Likewise.
85793         * lib/freadable.c (freadable): Likewise.
85794         * lib/freadahead.c (freadahead): Likewise.
85795         * lib/freading.c (freading): Likewise.
85796         * lib/freadptr.c (freadptr): Likewise.
85797         * lib/freadseek.c (freadptrinc): Likewise.
85798         * lib/fseeko.c (rpl_fseeko): Likewise.
85799         * lib/fseterr.c (fseterr): Likewise.
85800         * lib/fwritable.c (fwritable): Likewise.
85801         * lib/fwriting.c (fwriting): Likewise.
85802         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
85804 2008-04-09  Eric Blake  <ebb9@byu.net>
85806         Avoid some autoconf warnings.
85807         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
85808         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
85809         * m4/afs.m4 (gl_AFS): Likewise.
85810         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
85811         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
85812         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
85813         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
85814         (gl_INTEGER_TYPE_SUFFIX): Likewise.
85815         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
85816         (AC_CHECK_DECLS_ONCE): Likewise.
85817         Rename file...
85818         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
85819         gnulib-tool requires autoconf 2.59 or better.
85820         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
85822 2008-04-08  Eric Blake  <ebb9@byu.net>
85824         Use 'git describe --match' if present (added in git 1.5.5).
85825         * build-aux/git-version-gen: Limit result to tags that match 'v*'
85826         if possible.
85828 2008-04-08  Bruno Haible  <bruno@clisp.org>
85830         Add tentative support for OpenServer.
85831         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
85832         _ptr, _cnt.
85833         * lib/fpurge.c (fpurge): Likewise.
85834         * lib/freadable.c (freadable): Likewise.
85835         * lib/freadahead.c (freadahead): Likewise.
85836         * lib/freading.c (freading): Likewise.
85837         * lib/freadptr.c (freadptr): Likewise.
85838         * lib/freadseek.c (freadptrinc): Likewise.
85839         * lib/fseeko.c (rpl_fseeko): Likewise.
85840         * lib/fseterr.c (fseterr): Likewise.
85841         * lib/fwritable.c (fwritable): Likewise.
85842         * lib/fwriting.c (fwriting): Likewise.
85843         Reported by Roger Cornelius <rac@tenzing.org> and
85844         Brian K. White <brian@aljex.com>.
85846 2008-04-06  Jim Meyering  <meyering@redhat.com>
85848         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
85850 2008-04-06  Bruno Haible  <bruno@clisp.org>
85852         Avoid possible error with non-ASCII bytes in UTF-8 locales.
85853         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
85854         * tests/test-printf-posix.sh: Likewise.
85855         * tests/test-vfprintf-posix.sh: Likewise.
85856         * tests/test-vprintf-posix.sh: Likewise.
85857         * tests/test-xprintf-posix.sh: Likewise.
85859 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85861         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
85862         hide error from 'ls', needed on OS/2.
85863         Report by Elbert Pol <elbert.pol@gmail.com>.
85865 2008-04-04  Eric Blake  <ebb9@byu.net>
85867         Make test-fseeko.c failures meaningful.
85868         * tests/test-fseeko.c: Print line number on failure.
85869         * tests/test-fseek.c: Likewise.
85870         Reported by Nelson H. F. Beebe.
85872         Improve strtod bug detection check.
85873         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
85874         required for Solaris 10.
85875         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
85877 2008-04-04  Bruno Haible  <bruno@clisp.org>
85879         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
85880         by m4/setenv.m4.
85882 2008-04-03  Eric Blake  <ebb9@byu.net>
85884         Ensure sane .version contents.
85885         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
85886         version string.
85887         * build-aux/git-version-gen: Improve documentation.
85889         Make GNU make output nicer.
85890         * top/GNUmakefile [!_have-Makefile]: Add dependency on
85891         MAKECMDGOALS to enforce message for all command line targets.  Set
85892         srcdir for use in maint.mk.
85894         Another maintainer tweak.
85895         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
85896         a target that regenerates version.
85898 2008-04-03  Jim Meyering  <meyering@redhat.com>
85900         vc-list-files: don't cause coreutils "make po-check" failure
85901         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
85903 2008-04-03  Eric Blake  <ebb9@byu.net>
85905         Allow VPATH usage of vc-list-files.
85906         * build-aux/vc-list-files (scriptversion): Add timestamp.
85907         (options): Add --help, --version, -C.
85908         (CVS): Support installed cvsu.
85910 2008-04-02  Bruno Haible  <bruno@clisp.org>
85912         Avoid some "statement with no effect" warnings from gcc.
85913         * tests/test-wctype.c (main): Explicitly ignore unused values.
85914         Reported by Jim Meyering.
85916 2008-04-02  Jim Meyering  <meyering@redhat.com>
85918         Avoid some warnings from "gcc -Wshadow".
85919         * tests/test-frexp.c (exp): Define to a different identifier.
85920         * tests/test-frexpl.c (exp): Likewise.
85922 2008-04-03  Jim Meyering  <meyering@redhat.com>
85924         bootstrap: remove dangling *.[ch] symlinks from lib
85925         * build-aux/bootstrap [dangling symlink removal]: Move find's
85926         -depth option to precede all others, to avoid a warning.
85927         Remove *.[ch] files too, and from "$source_base" (usually lib/).
85929 2008-04-02  Bruno Haible  <bruno@clisp.org>
85931         Avoid some warnings from "gcc -Wshadow".
85932         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
85933         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
85934         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
85935         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
85936         Reported by Jim Meyering.
85938 2008-04-01  Bruno Haible  <bruno@clisp.org>
85940         Fix test to work on IRIX 6.5 with cc.
85941         * tests/test-math.c (numeric_equal): New function.
85942         (main): Use it.
85944 2008-04-01  Bruno Haible  <bruno@clisp.org>
85946         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
85948 2008-04-01  Bruno Haible  <bruno@clisp.org>
85950         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
85951         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85952         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
85953         (Depends-on): Remove math.
85955         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
85956         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85957         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
85958         (Depends-on): Remove math.
85960         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
85961         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85962         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
85963         (Depends-on): Remove math.
85964         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
85965         (Depends-on): Remove math.
85967         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
85968         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
85969         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
85970         (Depends-on): Remove math.
85971         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
85972         (Depends-on): Remove math.
85974         * tests/test-round1.c: Include nan.h.
85975         (main): Use NaNd instead of NAN.
85976         * modules/round-tests (Files): Add tests/nan.h.
85978         * tests/test-trunc1.c: Include nan.h.
85979         (main): Use NaNd instead of NAN.
85980         * modules/trunc-tests (Files): Add tests/nan.h.
85982         * tests/test-roundf1.c: Include nan.h.
85983         (main): Use NaNf instead of NAN.
85984         * modules/roundf-tests (Files): Add tests/nan.h.
85986         * tests/test-truncf1.c: Include nan.h.
85987         (main): Use NaNf instead of NAN.
85988         * modules/truncf-tests (Files): Add tests/nan.h.
85990         * tests/test-ceilf1.c: Include nan.h.
85991         (main): Use NaNf instead of NAN.
85992         * modules/ceilf-tests (Files): Add tests/nan.h.
85994         * tests/test-floorf1.c: Include nan.h.
85995         (main): Use NaNf instead of NAN.
85996         * modules/floorf-tests (Files): Add tests/nan.h.
85998         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
85999         (main): Use NaNf instead of NAN.
86000         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
86002         * tests/test-isnand.c: Include nan.h instead of <math.h>.
86003         (main): Use NaNd instead of NAN.
86004         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
86006         * tests/test-frexp.c: Include nan.h.
86007         (main): Use NaNd instead of NAN.
86008         * modules/frexp-tests (Files): Add tests/nan.h.
86010         * lib/isnan.c: Don't include <math.h>.
86011         (FUNC): Don't use NAN macro.
86012         * modules/isnand-nolibm (Depends-on): Remove math.
86013         * modules/isnanf-nolibm (Depends-on): Remove math.
86014         * modules/isnanl (Depends-on): Remove math.
86015         * modules/isnanl-nolibm (Depends-on): Remove math.
86017         * tests/nan.h: New file.
86019 2008-04-01  Eric Blake  <ebb9@byu.net>
86021         Fix typos.
86022         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
86023         values to be the right type.
86025         For now, cater to gnulib strtod inaccuracies.
86026         * tests/test-strtod.c (main): Allow 1-ulp error on expected
86027         fractional results.  While not as nice from a QoI perspective, it
86028         is a quicker patch than correctly implementing decimal to binary
86029         rounding.
86031 2008-03-31  Eric Blake  <ebb9@byu.net>
86033         Guarantee a definition of NAN.
86034         * lib/math.in.h (NAN): Define if missing.
86035         * tests/test-math.c (main): Test it.
86036         * doc/posix-headers/math.texi (math.h): Document this.
86037         * lib/isnan.c (rpl_isnand): Use it.
86038         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
86039         * tests/test-floorf1.c (NaN): Likewise.
86040         * tests/test-frexp.c (NaN): Likewise.
86041         * tests/test-isnand.c (NaN): Likewise.
86042         * tests/test-isnanf.c (NaN): Likewise.
86043         * tests/test-round1.c (NaN): Likewise.
86044         * tests/test-roundf1.c (NaN): Likewise.
86045         * tests/test-snprintf-posix.h (NaN): Likewise.
86046         * tests/test-sprintf-posix.h (NaN): Likewise.
86047         * tests/test-trunc1.c (NaN): Likewise.
86048         * tests/test-truncf1.c (NaN): Likewise.
86049         * tests/test-vasnprintf-posix.c (NaN): Likewise.
86050         * tests/test-vasprintf-posix.c (NaN): Likewise.
86051         * modules/isnand-nolibm (Depends-on): Add math.
86052         * modules/isnanf-nolibm (Depends-on): Likewise.
86053         * modules/isnanl (Depends-on): Likewise.
86054         * modules/isnanl-nolibm (Depends-on): Likewise.
86055         * modules/snprintf-posix-tests (Depends-on): Likewise.
86056         * modules/sprintf-posix-tests (Depends-on): Likewise.
86057         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
86058         * modules/vsprintf-posix-tests (Depends-on): Likewise.
86059         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
86060         * modules/vasprintf-posix-tests (Depends-on): Likewise.
86062 2008-03-31  Bruno Haible  <bruno@clisp.org>
86064         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
86065         * doc/posix-functions/strtod.texi: Likewise.
86067 2008-03-31  Bruno Haible  <bruno@clisp.org>
86069         * tests/test-strtod.c (main): Don't use C99 syntax.
86071 2008-03-31  Bruno Haible  <bruno@clisp.org>
86073         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
86074         Reported by Eric Blake.
86076 2008-03-31  Jim Meyering  <meyering@redhat.com>
86078         Don't compare actual signbit return values.
86079         * tests/test-strtod.c (main): Rather, compare only their
86080         zero/non-zero nature.
86082 2008-03-31  Eric Blake  <ebb9@byu.net>
86084         More strtod documentation.
86085         * doc/posix-functions/strtod.texi (strtod): Interpret more test
86086         failures as distinct bugs.
86088 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
86090         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
86091         Problem reported by Erik Benada in
86092         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
86094 2008-03-30  Bruno Haible  <bruno@clisp.org>
86096         * tests/test-strtod.c: Add comments about which assertion fails on which
86097         platform.
86098         * doc/posix-functions/strtod.texi: Add info about many more platforms.
86100 2008-03-30  Eric Blake  <ebb9@byu.net>
86102         Test signbit behavior on zeros.
86103         * tests/test-signbit.c (test_signbitf): Add tests for zero.
86104         (test_signbitd, test_signbitl): Likewise.
86106         More strtod touchups.
86107         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
86108         sign of negative underflow, for now.  Use .5, not .1.
86109         * doc/posix-functions/strtod.texi (strtod): Mention these
86110         limitations.
86111         Reported by Jim Meyering.
86113 2008-03-30  Bruno Haible  <bruno@clisp.org>
86115         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
86116         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
86118 2008-03-30  Bruno Haible  <bruno@clisp.org>
86120         Avoid failure when attempting to return empty iconv results on some
86121         platforms.
86122         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
86123         allocation, don't report ENOMEM when the resulting string is empty.
86125 2008-03-30  Bruno Haible  <bruno@clisp.org>
86127         Fix buffer overrun.
86128         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
86129         Don't consider the width for tmp_length. Check count against tmp_length
86130         before doing the padding. Ensure enough allocation during padding.
86132 2008-03-30  Eric Blake  <ebb9@byu.net>
86134         strtod touchups.
86135         * lib/strtod.c (strtod): Avoid compiler warnings.
86136         Reported by Jim Meyering.
86138 2008-03-30  Bruno Haible  <bruno@clisp.org>
86140         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
86141         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
86142         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
86143         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
86144         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
86145         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
86146         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
86147         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
86149         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
86150         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
86151         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
86152         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
86153         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
86154         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
86155         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
86156         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
86158         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
86159         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
86160         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
86161         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
86162         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
86163         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
86164         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
86165         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
86167         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
86168         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
86170         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
86171         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
86173         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
86174         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
86176         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
86177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
86178         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
86180         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
86181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
86182         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
86184         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
86185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
86186         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
86188         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
86189         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
86190         * modules/vasprintf (Depends-on): Add EOVERFLOW.
86192         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
86193         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
86194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
86195         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
86196         (Depends-on): Add EOVERFLOW.
86197         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
86198         (Depends-on): Add EOVERFLOW.
86199         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
86200         (Depends-on): Add EOVERFLOW.
86201         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
86202         (Depends-on): Add EOVERFLOW.
86203         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
86204         (Depends-on): Add EOVERFLOW.
86205         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
86206         (Depends-on): Add EOVERFLOW.
86207         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
86208         (Depends-on): Add EOVERFLOW.
86209         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
86210         (Depends-on): Add EOVERFLOW.
86212         * lib/sprintf.c (EOVERFLOW): Remove fallback.
86213         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
86214         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
86216         * lib/snprintf.c (EOVERFLOW): Remove fallback.
86217         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
86218         * modules/snprintf (Depends-on): Add EOVERFLOW.
86220         * lib/poll.c (EOVERFLOW): Remove fallback.
86221         * modules/poll (Depends-on): Add EOVERFLOW.
86223         * lib/getugroups.c (EOVERFLOW): Remove fallback.
86224         * modules/getugroups (Depends-on): Add EOVERFLOW.
86226         * lib/getdelim.c (EOVERFLOW): Remove fallback.
86227         * modules/getdelim (Depends-on): Add EOVERFLOW.
86229         * lib/ftell.c (EOVERFLOW): Remove fallback.
86230         * modules/ftell (Depends-on): Add EOVERFLOW.
86232         * lib/fprintf.c (EOVERFLOW): Remove fallback.
86233         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
86234         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
86236         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
86238         * modules/EOVERFLOW-tests: New file.
86239         * tests/test-EOVERFLOW.c: New file.
86241         * modules/EOVERFLOW: New file.
86242         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
86244 2008-03-30  Bruno Haible  <bruno@clisp.org>
86246         Fix bug introduced on 2007-06-10.
86247         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
86248         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
86250 2008-03-30  Bruno Haible  <bruno@clisp.org>
86252         Improve freadseek's efficiency after ungetc.
86253         * lib/freadseek.c: Include freadahead.h.
86254         (freadptrinc): New function, extracted from freadseek.
86255         (freadseek): Use it in a loop. Use freadahead to determine the number
86256         of loop iterations.
86257         * modules/freadseek (Depends-on): Add freadahead.
86258         (configure.ac): Require AC_C_INLINE.
86260 2008-03-30  Bruno Haible  <bruno@clisp.org>
86262         * lib/freadseek.c (freadseek): Don't ignore the return value of
86263         freadptr.
86265 2008-03-29  Eric Blake  <ebb9@byu.net>
86267         Add hex float support.
86268         * modules/strtod (Depends-on): Add c-ctype.
86269         (Link): Mention POW_LIB.
86270         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
86271         whitespace between 'e' and exponent.
86272         * tests/test-strtod.c (main): Enable hex float tests.
86273         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
86274         now provides.
86276         Document various strtod bugs, with some fixes.
86277         * doc/posix-functions/strtod.texi (strtod): Document bugs with
86278         "-0x", "inf", "nan", and hex constants.
86279         * doc/posix-functions/atof.texi (atof): Likewise.
86280         * modules/stdlib (Makefile.am): Support strtod.
86281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
86282         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
86283         detect additional strtod bugs.
86284         * lib/stdlib.in.h (rpl_strtod): Add declarations.
86285         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
86286         bool where appropriate.  Parse 'inf' and 'nan'.
86287         * tests/test-strtod.c: New file.
86288         * modules/strtod (Depends-on): Add stdbool, stdlib.
86289         (configure.ac): Turn on module indicator.
86290         * modules/strtod-tests: New module.
86292 2008-03-29  Eric Blake  <ebb9@byu.net>
86294         Fix ftell on mingw.
86295         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
86296         * modules/ftell-tests (Depends-on): Add binary-io.
86297         * modules/ftello-tests (Depends-on): Likewise.
86298         * tests/test-ftell.c (main): Enhance test to cover behavior after
86299         ungetc.  Enforce binary mode.
86300         * tests/test-ftello.c (main): Likewise.
86302         Pass test-freadseek on cygwin.
86303         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
86304         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
86305         ungetc buffer.
86307         * tests/test-fflush2.c (main): Fix typo.
86309 2008-03-29  Bruno Haible  <bruno@clisp.org>
86311         * tests/test-fflush2.c (main): Temporarily disable the contents of
86312         this test.
86313         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
86314         Reported by Eric Blake.
86316 2008-03-28  Simon Josefsson  <simon@josefsson.org>
86318         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
86319         (GC_SHA224_DIGEST_SIZE): Add.
86321         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
86322         (gc_hash_digest_length): Likewise.
86323         (gc_hash_buffer): Likewise.
86325 2008-03-25  Bruno Haible  <bruno@clisp.org>
86327         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
86328         detail which gettext release to use.
86329         Reported by Simon Josefsson.
86331 2008-03-26  Jim Meyering  <meyering@redhat.com>
86333         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
86334         * modules/gnumakefile (clean-GNUmakefile): Also, use
86335         test ... && ... || : syntax rather than if-then ... fi.
86337         gnumakefile: Don't double-quote-expand $(VPATH) value.
86338         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
86340 2008-03-24  Eric Blake  <ebb9@byu.net>
86342         Alter GNUmakefile to install into top directory.
86343         * modules/maintainer-makefile: Split, and add dependency...
86344         * modules/gnumakefile: to this new module.
86345         * build-aux/GNUmakefile: Move...
86346         * top/GNUmakefile: ...here.
86347         * build-aux/maint.mk: Move...
86348         * top/maint.mk: ...here.
86349         * MODULES.html.sh (Support for maintaining...): Document new
86350         module.
86352 2008-03-23  Bruno Haible  <bruno@clisp.org>
86354         * gnulib-tool: New options --vc-files, --no-vc-files.
86355         (func_usage): Document them.
86356         (vc_files): New variable.
86357         (func_import): Consider vc_files.
86358         (func_create_testdir): Set vc_files to empty.
86359         Suggested by Jim Meyering and Karl Berry.
86361 2008-03-23  Bruno Haible  <bruno@clisp.org>
86363         Fix regex compilation error on HP-UX 11.
86364         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
86365         * modules/regex (Files): Add m4/mbstate_t.m4.
86366         Reported by Ton Voon <ton.voon@altinity.com>.
86368 2008-03-23  Bruno Haible  <bruno@clisp.org>
86370         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
86372 2008-03-23  Eric Blake  <ebb9@byu.net>
86373             Bruno Haible  <bruno@clisp.org>
86375         Install files from top/ in the destination directory.
86376         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
86377         augmentation also for the files from top/.
86378         (func_import, func_create_testdir): Rewrite file names:
86379         top/filename -> filename.
86381 2008-03-23  Bruno Haible  <bruno@clisp.org>
86383         Tweak "gnulib --version" output.
86384         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
86386 2008-03-23  Bruno Haible  <bruno@clisp.org>
86388         Tweak "gnulib --version" output.
86389         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
86390         rather than contents of ChangeLog, when possible.
86392 2008-03-21  Eric Blake  <ebb9@byu.net>
86394         More --version tweaks.
86395         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
86396         date of last ChangeLog entry.
86398 2008-03-21  Jim Meyering  <meyering@redhat.com>
86400         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
86402 2008-03-20  Eric Blake  <ebb9@byu.net>
86404         VPATH fix.
86405         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
86407 2008-03-20  Simon Josefsson  <simon@josefsson.org>
86409         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
86410         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
86412 2008-03-20  Eric Blake  <ebb9@byu.net>
86414         Sync GNUmakefile with coreutils.
86415         * build-aux/GNUmakefile (have-Makefile): Rename...
86416         (_have-Makefile): ...to this, for namespace consideration.
86417         (GNUmakefile.cfg): Include, if present.
86418         (_autoreconf): Define a default.
86419         (_is-dist-target): New rule for rebuilds to pick up intra-release
86420         version.
86421         (maint-cfg.mk): Rename...
86422         (cfg.mk): ...to this.
86424 2008-03-18  Jim Meyering  <meyering@redhat.com>
86426         New script and module: mktempd
86427         * MODULES.html.sh (maint+release support): Add mktempd.
86428         * build-aux/mktempd: New file.
86429         * modules/mktempd: New file.
86431 2008-03-15  Jim Meyering  <meyering@redhat.com>
86433         Undo last change.
86434         * lib/sha1.c, lib/md5.c: 63 != ~63.
86435         Reported by Andreas Schwab.
86437         sha1.c, md5.c: Hoist a redundant expression.
86438         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
86439         "ctx->buflen" only once, before calling *_process_block.
86440         * lib/md5.c (md5_process_bytes): Likewise.
86442 2008-03-14  Eric Blake  <ebb9@byu.net>
86444         Bump copyright year in files generated by gnulib-tool.
86445         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
86446         gnulib-tool, rather than hard-coding it.
86448         Fix 'gnulib-tool --version' output to work with git.
86449         * gnulib-tool (func_gnulib_dir): New function, extracted from...
86450         (startup): ...here.
86451         (func_version): Use it to invoke git-version-gen, rather than
86452         relying on CVS keyword expansion.  Modernize wording.
86453         (cvsdatestamp, last_checkin_date, version): Kill unused
86454         variables.
86456 2008-03-12  Jim Meyering  <meyering@redhat.com>
86458         Recognize optional cast of the argument to free.
86459         * build-aux/useless-if-before-free: Update regexps.
86461         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
86463 2008-03-11  Bruno Haible  <bruno@clisp.org>
86465         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
86466         by a single package.
86467         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
86468         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
86469         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
86470         Reported by Sam Steingold <sds@gnu.org>.
86472 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
86474         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
86475         repositories.
86477 2008-03-11  Bruno Haible  <bruno@clisp.org>
86479         Avoid conflicts between local macro definitions.
86480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
86481         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
86483 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
86484             Bruno Haible  <bruno@clisp.org>
86486         Make va_copy work with some version of xlc on AIX 5.1.
86487         * lib/stdarg.in.h: New file.
86488         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
86489         On AIX, use a <stdarg.h> file substitute.
86490         * modules/stdarg (Files): Add lib/stdarg.in.h.
86491         (Depends-on): Add include_next.
86492         (Makefile.am): Build a stdarg.h substitute if requested.
86493         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
86495 2008-03-10  Bruno Haible  <bruno@clisp.org>
86497         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
86498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
86499         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
86501 2008-03-10  Bruno Haible  <bruno@clisp.org>
86503         * modules/stdlib (Depends-on): Add include_next, remove
86504         absolute-header.
86506 2008-03-09  Bruno Haible  <bruno@clisp.org>
86508         * lib/freadahead.h (freadahead): Document more precisely.
86509         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
86510         the sum of both buffer sizes.
86511         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
86512         * NEWS: Document the change.
86514 2008-03-09  Bruno Haible  <bruno@clisp.org>
86516         Extend freadptr to return also the buffer size.
86517         * lib/freadptr.h (freadptr): Add sizep argument.
86518         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
86519         (freadptr): Add sizep argument. Determine buffer size like freadahead
86520         does.
86521         * tests/test-freadptr.c: Don't include freadahead.h.
86522         (main): Adapt for new calling convention of freadptr.
86523         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
86524         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
86525         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
86526         tests/test-freadptr2.sh.
86527         (Depends): Remove freadahead.
86528         (TESTS): Add test-freadptr2.sh.
86529         (check_PROGRAMS): Add test-freadptr2.
86531 2008-03-09  Bruno Haible  <bruno@clisp.org>
86533         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
86534         Report and solution by Simon Josefsson.
86536 2008-03-06  Bruno Haible  <bruno@clisp.org>
86538         Make fflush after ungetc work on BSD platforms.
86539         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
86540         * tests/test-fflush2.c: New file.
86541         * tests/test-fflush2.sh: New file.
86542         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
86543         tests/test-fflush2.c.
86544         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
86545         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
86547 2008-03-06  Eric Blake  <ebb9@byu.net>
86549         Likewise for ftello.
86550         * modules/ftello (Dependencies): Add extensions.
86551         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
86553 2008-03-06  Bruno Haible  <bruno@clisp.org>
86555         * modules/fseeko (Dependencies): Add extensions.
86556         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
86557         Needed on glibc systems.
86559 2008-03-06  Bruno Haible  <bruno@clisp.org>
86561         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
86562         email address.
86563         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
86565 2008-03-06  Bruno Haible  <bruno@clisp.org>
86567         * users.txt: Add libgnupdf.
86569 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
86571         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
86572         (Header File Substitutes, Function Substitutes,
86573         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
86574         (Build robot for gnulib): Fix typo.
86576 2008-03-06  Bruno Haible  <bruno@clisp.org>
86578         * doc/gnulib-tool.texi (VCS Issues): Small updates.
86579         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
86581 2008-03-06  Bruno Haible  <bruno@clisp.org>
86583         * doc/func.texi: New file, extracted from doc/gnulib.texi.
86584         * doc/gnulib.texi: Include it.
86586 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86588         * modules/func (License): Change license to unlimited; there was
86589         no LGPL parts in the module anyway.
86591 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86593         * modules/__func__: Renamed to modules/func.
86594         * modules/__func__-tests: Renamed to modules/func-tests.
86595         * tests/test-__func__.c: Renamed to tests/test-func.c.
86596         * m4/__func__.m4: Renamed to m4/func.m4.
86597         * doc/gnulib.texi (__func__): Section renamed to func.
86598         Suggested by Eric Blake <ebb9@byu.net>.
86600 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86602         * doc/gnulib.texi (__func__): Use C99 terminology when talking
86603         about __func__.  Make example self-contained.  Suggested by Eric
86604         Blake <ebb9@byu.net>.
86606         * tests/test-__func__.c (main): Avoid extraneous () around __func.
86607         Suggested by Eric Blake <ebb9@byu.net>.
86609 2008-03-06  Simon Josefsson  <simon@josefsson.org>
86611         * modules/__func__: New file.
86612         * modules/__func__-tests: New file.
86613         * tests/test-__func__.c: New file.
86614         * m4/__func__.m4: New file.
86615         * doc/gnulib.texi (__func__): Document __func__ module.
86617 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86619         * modules/byteswap (License): Re-license as LGPLv2+.
86621 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86623         * doc/Makefile: Add pdf target.
86625 2008-03-05  Simon Josefsson  <simon@josefsson.org>
86627         * modules/inline (License): Use 'unlimited', since there are only
86628         *.m4 files in this module.
86630 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
86631             Bruno Haible  <bruno@clisp.org>
86633         Add support for HP C 7.1 on OpenVMS 8.3.
86634         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
86636 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
86638         Update VMS specifics.
86639         * lib/getopt.c [VMS]: Remove include of unixlib.h.
86641 2008-03-02  Jim Meyering  <meyering@redhat.com>
86643         Remove the last dependency on the "free" module.
86644         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
86645         Reported by Bob Proulx.
86647         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
86649         Remove useless "if" tests before free.  Deprecate "free" module.
86650         * doc/posix-functions/free.texi: Mention that this
86651         module is no longer useful.
86652         * modules/free (Notice): Say this module is obsolete.
86653         * modules/readutmp (Depends-on): Remove free.
86654         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
86655         * lib/putenv.c (putenv): Likewise.
86656         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
86657         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
86658         * tests/test-c-strcasestr.c (main): Likewise.
86659         * tests/test-c-strstr.c (main): Likewise.
86660         * tests/test-mbscasestr1.c (main): Likewise.
86661         * tests/test-mbscasestr2.c (main): Likewise.
86662         * tests/test-mbsstr1.c (main): Likewise.
86663         * tests/test-mbsstr2.c (main): Likewise.
86664         * tests/test-memmem.c (main): Likewise.
86665         * tests/test-strcasestr.c (main): Likewise.
86666         * tests/test-striconv.c (main): Likewise.
86667         * tests/test-striconveh.c (main): Likewise.
86668         * tests/test-striconveha.c (main): Likewise.
86669         * tests/test-strstr.c (main): Likewise.
86671         * build-aux/git-version-gen: Adjust a comment and the Usage string.
86673         bootstrap: sync from coreutils again
86674         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
86676 2008-03-01  Jim Meyering  <meyering@redhat.com>
86678         bootstrap: sync from coreutils
86679         * build-aux/bootstrap (update_po_files): Copy a .po file into place
86680         also when the target doesn't exist.
86682 2008-03-01  Eric Blake  <ebb9@byu.net>
86684         Fix bugs in last patch.
86685         * lib/memchr2.c (memchr2): Fix typo.
86686         * tests/test-memchr2.c: Test previous bug, and don't use GNU
86687         extension.
86688         Reported by Bruce Korb.
86690         New module 'memchr2'.
86691         * modules/memchr2: New file.
86692         * modules/memchr2-tests: Likewise.
86693         * lib/memchr2.h: Likewise.
86694         * lib/memchr2.c: Likewise, based on memchr.c.
86695         * tests/test-memchr2.c: New test.
86696         * MODULES.html.sh (String handling): Add memchr2.
86698 2008-02-29  Bruno Haible  <bruno@clisp.org>
86700         * modules/freadseek-tests: New file.
86701         * tests/test-freadseek.sh: New file.
86702         * tests/test-freadseek.c: New file.
86704         New module 'freadseek'.
86705         * modules/freadseek: New file.
86706         * lib/freadseek.h: New file.
86707         * lib/freadseek.c: New file.
86708         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
86710 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
86712         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
86713         wydawca.
86715         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
86716         program_invocation_name and program_invocation_short_name are
86717         present.
86719 2008-02-28  Bruno Haible  <bruno@clisp.org>
86721         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
86722         * tests/test-freadptr.sh: Also test non-seekable stdin.
86724 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
86726         * build-aux/bootstrap (source_base, m4_base)
86727         (doc_base, tests_base): New variables.
86728         (gnulib_tool_options): Do not hardcode base directories, use
86729         the above variables instead.
86731 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
86733         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
86735 2008-02-28  Bruno Haible  <bruno@clisp.org>
86737         * modules/freadptr-tests: New file.
86738         * tests/test-freadptr.sh: New file.
86739         * tests/test-freadptr.c: New file.
86741         New module 'freadptr'.
86742         * modules/freadptr: New file.
86743         * lib/freadptr.h: New file.
86744         * lib/freadptr.c: New file.
86745         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
86747 2008-02-26  Karl Berry  <karl@freefriends.org>
86749         Sync from Libtool:
86750         * libltdl/argz.c (argz_add, argz_count): New functions.
86751         * libltdl/argz.in.h: Declare them.
86752         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
86754 2008-02-22  Bruno Haible  <bruno@clisp.org>
86756         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
86757         is a pointer type.  Needed for HP-UX 10.
86758         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
86759         * doc/posix-functions/gmtime_r.texi: Likewise.
86760         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
86762 2008-02-24  Bruno Haible  <bruno@clisp.org>
86764         * modules/environ-tests: New file.
86765         * tests/test-environ.c: New file.
86767         New module 'environ'.
86768         * modules/environ: New file.
86769         * lib/unistd.in.h (environ): New declaration.
86770         * m4/environ.m4: New file.
86771         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
86772         after use.
86773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
86774         HAVE_DECL_ENVIRON.
86775         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
86776         HAVE_DECL_ENVIRON.
86777         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
86778         wrong claim that 'environ' is missing on some systems.
86779         * modules/execute (Depends-on): Add environ.
86780         * lib/execute.c (environ): Remove fallback declaration.
86781         * modules/pipe (Depends-on): Add environ.
86782         * lib/pipe.c (environ): Remove fallback declaration.
86783         * modules/setenv (Depends-on): Add environ.
86784         * lib/setenv.c (environ): Remove fallback declaration.
86785         * modules/unsetenv (Depends-on): Add environ.
86786         * lib/unsetenv.c (environ): Remove fallback declaration.
86787         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
86788         m4/environ.m4.
86789         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
86790         (gl_PREREQ_UNSETENV): Likewise.
86792 2008-02-24  Bruno Haible  <bruno@clisp.org>
86794         * doc/posix-functions/environ.texi: Document the MacOS X problem.
86796 2008-02-20  Bob Proulx  <bob@proulx.com>
86798         Enable use of older two part flavor 'git describe'.
86799         * build-aux/git-version-gen: If using the older two part flavor of
86800         git version then recreate the third part now present in the
86801         newer three part flavor of git describe.
86803 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
86805         * lib/fts.c (fts_build): Typo correction to comment.
86807 2008-02-17  Bruno Haible  <bruno@clisp.org>
86809         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
86810         generating no-op conflicts.
86812 2008-02-17  Bruno Haible  <bruno@clisp.org>
86814         Speed up by 10%.
86815         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
86816         result_entries, rather than an index-based loop.
86818 2008-02-17  Bruno Haible  <bruno@clisp.org>
86820         Speed up by 25%.
86821         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
86822         'hashcode_cached'.
86823         (entry_create): New function.
86824         (entry_hashcode): Use the cached hashcode if possible.
86825         (read_changelog_file, try_split_merged_entry): Use entry_create.
86827 2008-02-17  Bruno Haible  <bruno@clisp.org>
86829         Speed up from O(n^2) to O(n) for long ChangeLog files.
86830         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
86831         (read_changelog_file): Change implementation of entries_reversed list
86832         to rbtreehash.
86833         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
86835 2008-02-17  Bruno Haible  <bruno@clisp.org>
86837         New option --split-merged-entry.
86838         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
86839         (find_paragraph_end, try_split_merged_entry): New functions.
86840         (long_options): Add option --split-merged-entry.
86841         (usage): Document option --split-merged-entry.
86842         (main): Implement option --split-merged-entry.
86843         Reported by Eric Blake.
86845 2008-02-17  Bruno Haible  <bruno@clisp.org>
86847         * lib/git-merge-changelog.c: Include c-strstr.h.
86848         (main): Support the "git pull --rebase" situation.
86849         * modules/git-merge-changelog (Depends-on): Add c-strstr.
86850         Reported by Eric Blake.
86852 2008-02-16  Eric Blake  <ebb9@byu.net>
86854         Avoid doubling \ in common case of "c-maybe" quoting style.
86855         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
86856         eliding outer quotes.
86857         * lib/quotearg.h: Document this.
86858         * tests/test-quotearg.c (result_strings, inputs, results_g)
86859         (flag_results, locale_results): Test it by adding a new string to
86860         each test group.
86861         (compare_strings): Test new string.
86863 2008-02-13  Eric Blake  <ebb9@byu.net>
86865         Avoid trigraph quoting in default output.
86866         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
86867         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
86868         unless explicitly requested.
86869         * tests/test-quotearg.c (flag_results, main): Add additional tests.
86871 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
86873         Don't rely on signed integer overflowing to negative value.
86874         * lib/getugroups.c (getugroups): Include <limits.h>.
86875         Instead, compare against INT_MAX, and increment only if the test passes.
86877 2008-02-13  Jim Meyering  <meyering@redhat.com>
86878         and Eric Blake  <ebb9@byu.net>
86880         Avoid shadowing warning and compile errors on Linux.
86881         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
86882         forwarding macros on Linux.
86883         (dcgettext): Define a stub, for Linux.
86884         (results_g, main): Avoid warnings.
86886 2008-02-12  Eric Blake  <ebb9@byu.net>
86888         Silence warning in last patch.
86889         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
86891         Quotearg part 4: add tests, fix c-maybe colon quoting.
86892         * lib/quotearg.h: Improve documentation.
86893         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
86894         escapes when adding outer quotes.  When quoting trigraphs, use
86895         valid C notation.  When quoting NUL, omit extra characters if next
86896         character is not digit.  Alter prototype.
86897         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
86898         callers.
86899         * modules/quotearg-tests: New module.
86900         * tests/test-quotearg.c: New test.
86902 2008-02-07  Eric Blake  <ebb9@byu.net>
86904         Quotearg part 3: add flag to control outer quote elision.
86905         * lib/quotearg.h (c_maybe_quoting_style): New style.
86906         (enum quoting_flags): Better documentation of flags.
86907         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
86908         c-maybe style.
86909         (quotearg_buffer_restyled): Handle new flag to elide outer
86910         quotes.
86912         Quotearg part 2: add flag that can control NUL elision.
86913         * lib/quotearg.h (set_quoting_flags): New prototype.
86914         * lib/quotearg.c (struct quoting_options): Add flag field.
86915         (set_quoting_flags): New function.
86916         (quotearg_buffer_restyled): Add flags parameter.
86917         (quotearg_alloc_mem): Set the flag if length cannot be returned.
86918         (quotearg_n_options): Set the flag, since length cannot be
86919         returned.
86920         (quoting_options_from_style): Default flags correctly.
86922         Quotearg part 1: more wrappers, restore quotearg_char state.
86923         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
86924         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
86925         (quotearg_colon_mem): New wrappers.
86926         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
86927         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
86928         functions.
86929         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
86930         (quotearg_colon_mem): New functions.
86932 2008-02-11  Bruno Haible  <bruno@clisp.org>
86934         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
86935         library in the current directory: it does not work with parallel make.
86936         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
86938 2008-02-11  Bruno Haible  <bruno@clisp.org>
86940         * .gitattributes: New file.
86942 2008-02-11  Jim Meyering  <meyering@redhat.com>
86944         useless-if-before-free: Fix reversed exit values.
86945         * build-aux/useless-if-before-free: Use correct values
86946         for EXIT_MATCH and EXIT_NO_MATCH.
86948         * build-aux/useless-if-before-free: Close stdout carefully.
86950 2008-02-10  Bruno Haible  <bruno@clisp.org>
86952         New module 'git-merge-changelog'.
86953         * modules/git-merge-changelog: New file.
86954         * lib/git-merge-changelog.c: New file.
86956 2008-02-10  Jim Meyering  <meyering@redhat.com>
86958         useless-if-before-free: New option: --list (-l).
86960         useless-if-before-free: Don't exit immediately upon open failure.
86961         * build-aux/useless-if-before-free: Exit 2 for errors.
86962         Upon failure to open a file, don't exit immediately.
86963         Rather, just warn and continue with any remaining files.
86965 2008-02-10  Bruno Haible  <bruno@clisp.org>
86967         New abstract list operation 'node_set_value'.
86968         * lib/gl_list.h (gl_list_node_set_value): New function.
86969         (struct gl_list_implementation): New field node_set_value.
86970         * lib/gl_list.c (gl_list_node_set_value): New function.
86971         * lib/gl_array_list.c (gl_array_node_set_value): New function.
86972         (gl_array_list_implementation): Update.
86973         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
86974         (gl_carray_list_implementation): Update.
86975         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
86976         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
86977         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
86978         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
86979         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
86980         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
86981         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
86982         Update.
86983         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
86984         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
86985         (gl_sublist_list_implementation): Update.
86987 2008-02-10  Bruno Haible  <bruno@clisp.org>
86989         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
86990         Needed when ELEMENT is #defined to 'some_type *'.
86992 2008-02-10  Jim Meyering  <meyering@redhat.com>
86994         New script and module: useless-if-before-free
86995         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
86996         * build-aux/useless-if-before-free: New file.
86997         * modules/useless-if-before-free: New file.
86999         * build-aux/gitlog-to-changelog: Use committer date, not author date.
87001         xstrtol_error: Fix typo.
87002         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
87003         s/exit_failure/exit_status/.
87005 2008-02-09  Jim Meyering  <meyering@redhat.com>
87007         New script and module: gitlog-to-changelog
87008         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
87009         * modules/gitlog-to-changelog: New file.
87010         * build-aux/gitlog-to-changelog: New file.
87012 2008-02-08  Jim Meyering  <meyering@redhat.com>
87014         Avoid two "parameter unused" warnings.
87015         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
87016         Mark "st" as used.
87018         Use "git COMMAND", not "git-COMMAND".
87019         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
87020         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
87021         * build-aux/git-version-gen: Use "git status", not "git-status".
87023 2008-02-07  Bruno Haible  <bruno@clisp.org>
87025         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
87026         Avoids a crash on Windows Vista.
87027         Reported by Adam Strzelecki <ono@java.pl> via
87028         Simon Josefsson <simon@josefsson.org>.
87030 2008-02-06  Bruno Haible  <bruno@clisp.org>
87032         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
87033         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
87034         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
87035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
87036         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
87037         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
87038         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
87039         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
87040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
87041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
87042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
87043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
87044         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
87045         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
87046         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
87047         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
87048         left-adjust flag.
87049         * tests/test-snprintf-posix.h (test_function): Likewise.
87050         * tests/test-sprintf-posix.h (test_function): Likewise.
87051         * tests/test-vasprintf-posix.c (test_function): Likewise.
87052         * doc/posix-functions/fprintf.texi: Update.
87053         * doc/posix-functions/printf.texi: Update.
87054         * doc/posix-functions/snprintf.texi: Update.
87055         * doc/posix-functions/sprintf.texi: Update.
87056         * doc/posix-functions/vfprintf.texi: Update.
87057         * doc/posix-functions/vprintf.texi: Update.
87058         * doc/posix-functions/vsnprintf.texi: Update.
87059         * doc/posix-functions/vsprintf.texi: Update.
87060         Reported by Peter Fales <psfales@alcatel-lucent.com>.
87062 2008-02-06  Bruno Haible  <bruno@clisp.org>
87064         Fix bug introduced on 2008-01-26.
87065         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
87067 2008-02-06  Bruno Haible  <bruno@clisp.org>
87069         Fix bug introduced on 2007-06-10.
87070         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
87071         !NEED_PRINTF_FLAG_ZERO.
87073 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
87075         getloadavg: use libperfstat on AIX5
87076         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
87078 2008-02-03  Bruno Haible  <bruno@clisp.org>
87080         * lib/diffseq.h: Add comments about required #includes.
87081         Reported by Michael Biggs <gnulib@doubleplum.net>.
87083 2008-02-01  Bruno Haible  <bruno@clisp.org>
87085         * users.txt: Add gnuit.
87087 2008-01-31  Bruno Haible  <bruno@clisp.org>
87089         * lib/md4.c (set_uint32): Mark as inline.
87090         * lib/md5.c (set_uint32): Likewise.
87091         * lib/sha1.c (set_uint32): Likewise.
87092         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
87093         * m4/md5.m4 (gl_MD5): Likewise.
87094         * m4/sha1.m4 (gl_SHA1): Likewise.
87096 2008-01-31  Jim Meyering  <meyering@redhat.com>
87098         Use "sizeof VAR", rather than a literal "4".
87099         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
87100         * lib/md4.c (md4_read_ctx): Likewise.
87101         * lib/sha1.c (sha1_read_ctx): Likewise.
87103 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87105         * tests/test-sha1.c: New file, based on test-md5.c.
87107         * modules/crypto/sha1-tests: New file.
87109 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87111         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
87113 2008-01-31  Jim Meyering  <meyering@redhat.com>
87115         Prefer "sizeof v" over the equivalent "4".
87116         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
87117         * lib/md5.c (set_uint32): Likewise.
87118         * lib/sha1.c (set_uint32): Likewise.
87120 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87122         * lib/sha1.c (set_uint32): Mark function as static.
87124 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87126         md2: clarify comments to say that alignment is not required.
87127         * lib/md2.h: Remove warning about alignment in comment.
87128         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
87129         never been required.
87131 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87133         md4: adapt alignment constraint fix from sha1.
87134         * lib/md4.c (set_uint32): New function, from sha1.c
87135         (md4_read_ctx): Use it.
87136         (md4_finish_ctx): Doc fix.
87137         * lib/md4.h: Doc fix.
87139 2008-01-31  Simon Josefsson  <simon@josefsson.org>
87141         md5: adapt alignment constraint fix from sha1.
87142         * lib/md5.c (set_uint32): New function, from sha1.c
87143         (md5_read_ctx): Use it.
87144         (md5_finish_ctx): Doc fix.
87145         * lib/md5.h: Doc fix.
87147 2008-01-30  Peter Palfrader  <weasel@debian.org>
87149         sha1: remove the result buffer alignment constraint
87150         * lib/sha1.c (set_uint32): New function.
87151         (sha1_read_ctx): Rewrite to remove the result buffer alignment
87152         constraint.
87153         (sha1_finish_ctx): Remove comment warning about alignment constraint.
87154         * lib/sha1.h: Likewise.
87156 2008-01-30  Andreas Schwab  <schwab@suse.de>
87157             Bruno Haible  <bruno@clisp.org>
87159         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
87160         correct definition of LDBL_MIN_EXP.
87162 2008-01-30  Karl Berry  <karl@gnu.org>
87164         * config/srclist-update: try to preserve x bit on updates.
87165         * config/srclistvars.sh: update for karl.
87167 2008-01-29  Jim Meyering  <meyering@redhat.com>
87169         vasnprintf.c: Avoid warning about unused label
87170         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
87171         "overflow" label definition and associated code with the
87172         same cpp condition that guards the sole use of that label.
87174 2008-01-26  Bruno Haible  <bruno@clisp.org>
87176         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
87177         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
87178         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
87179         * lib/isnanl-nolibm.h (isnanl): Likewise.
87180         Reported by Paul Eggert <eggert@cs.ucla.edu>.
87182 2008-01-26  Bruno Haible  <bruno@clisp.org>
87184         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
87185         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
87187 2008-01-26  Bruno Haible  <bruno@clisp.org>
87189         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
87190         GCC >= 4.0 built-in.
87191         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
87193 2008-01-26  Bruno Haible  <bruno@clisp.org>
87195         Rename isnan, applicable to 'double' only, to isnand.
87196         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
87197         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
87198         (configure.ac): Update.
87199         (Include): Replace "isnan.h" with "isnand.h".
87200         * m4/isnand.m4: Renamed from m4/isnan.m4.
87201         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
87202         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
87203         instead of isnan.c.
87204         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
87205         instead of HAVE_ISNAN_IN_LIBC.
87206         (isnand): Renamed from isnan.
87207         * lib/isnand.c: New file.
87208         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
87209         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
87210         (Makefile.am): Update.
87211         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
87212         Include isnand.h instead of isnan.h.
87213         (main): Test isnand instead of isnan.
87214         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
87215         isnan-nolibm.
87216         * modules/frexp (Depends-on): Likewise.
87217         * modules/frexp-tests (Depends-on): Likewise.
87218         * modules/frexp-nolibm (Depends-on): Likewise.
87219         * modules/frexp-nolibm-tests (Depends-on): Likewise.
87220         * modules/isfinite (Depends-on): Likewise.
87221         * modules/round-tests (Depends-on): Likewise.
87222         * modules/signbit (Depends-on): Likewise.
87223         * modules/signbit-tests (Depends-on): Likewise.
87224         * modules/snprintf-posix (Depends-on): Likewise.
87225         * modules/sprintf-posix (Depends-on): Likewise.
87226         * modules/trunc-tests (Depends-on): Likewise.
87227         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
87228         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
87229         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
87230         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
87231         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
87232         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
87233         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
87234         * modules/vasnprintf-posix (Depends-on): Likewise.
87235         * modules/vasprintf-posix (Depends-on): Likewise.
87236         * modules/vfprintf-posix (Depends-on): Likewise.
87237         * modules/vsnprintf-posix (Depends-on): Likewise.
87238         * modules/vsprintf-posix (Depends-on): Likewise.
87239         * lib/frexp.c: Include isnand.h instead of isnan.h.
87240         (ISNAN): Set to isnand instead of isnan.
87241         * lib/isfinite.c: Include isnand.h instead of isnan.h.
87242         (gl_isfinited): Use isnand instead of isnan.
87243         * lib/signbitd.c: Include isnand.h instead of isnan.h.
87244         (gl_signbitd): Use isnand instead of isnan.
87245         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
87246         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
87247         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
87248         (main): Use isnand instead of isnan.
87249         * tests/test-round1.c: Include isnand.h.
87250         (main): Use isnand instead of isnan.
87251         * tests/test-round2.c: Include isnand.h instead of isnan.h.
87252         (ISNAN): Set to isnand instead of isnan.
87253         * tests/test-trunc1.c: Include isnand.h.
87254         (main): Use isnand instead of isnan.
87255         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
87256         (equal): Use isnand instead of isnan.
87257         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
87258         isnand-nolibm.
87259         * NEWS: Mention the change.
87261 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
87262             Bruno Haible  <bruno@clisp.org>
87264         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
87265         the GCC builtins for signbits are present and set
87266         REPLACE_SIGNBIT_USING_GCC if so.
87267         * lib/math.in.h (signbit): Define using GCC builtins if
87268         REPLACE_SIGNBIT_USING_GCC is set.
87269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
87270         REPLACE_SIGNBIT_USING_GCC.
87271         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
87273 2008-01-25  Jim Meyering  <meyering@redhat.com>
87275         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
87276         * lib/poll.c: Include <config.h>, not "config.h".
87277         * tests/test-getaddrinfo.c: Likewise.
87279 2008-01-25  Simon Josefsson  <simon@josefsson.org>
87281         * modules/sockets-tests: New file.
87283 2008-01-24  Simon Josefsson  <simon@josefsson.org>
87285         * modules/sockets: New module, can be used to call WSA_Startup and
87286         WSA_Cleanup when needed.
87288         * lib/sockets.h, lib/sockets.c: New files.
87290         * m4/sockets.m4: New file.
87292         * tests/test-sockets.c: New file.
87294 2008-01-19  Bruno Haible  <bruno@clisp.org>
87296         * doc/posix-headers: Renamed from doc/headers.
87297         * doc/posix-functions: Renamed from doc/functions.
87298         * doc/gnulib.texi: Update.
87300 2008-01-19  Bruno Haible  <bruno@clisp.org>
87302         * doc/glibc-functions/strcasestr.texi: Include contents of
87303         doc/functions/strcasestr.texi, fixing the list of platforms.
87304         * doc/functions/strcasestr.texi: Remove file.
87306 2008-01-19  Bruno Haible  <bruno@clisp.org>
87308         * doc/glibc-functions/memmem.texi: Include contents of
87309         doc/functions/memmem.texi.
87310         * doc/functions/memmem.texi: Remove file.
87312 2008-01-18  Bruno Haible  <bruno@clisp.org>
87314         * doc/glibc-functions/*.texi: New files.
87315         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
87316         to use the new files.
87318 2008-01-17  Bruno Haible  <bruno@clisp.org>
87320         * tests/test-gethostname.c (main): Fix printf statement.
87322 2008-01-17  Simon Josefsson  <simon@josefsson.org>
87324         * modules/gethostname-tests: New file.
87326         * tests/test-gethostname.c: New file.
87328 2008-01-17  Simon Josefsson  <simon@josefsson.org>
87330         * lib/gethostname.c: Include string.h unconditionally, strncpy is
87331         used by the UNAME case.  Reported by Bruno Haible
87332         <bruno@clisp.org>.
87334 2008-01-17  Eric Blake  <ebb9@byu.net>
87336         Convert c-strcasestr to be more efficient.
87337         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
87338         (Depends-on): Add c-strcase, remove malloca, strnlen.
87339         * tests/test-c-strcasestr.c (main): Enhance test.
87340         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
87342 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
87344         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
87345         Use it in creating po/Makevars.
87347 2008-01-15  Simon Josefsson  <simon@josefsson.org>
87349         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
87350         Applications that requires it should initialize libgcrypt
87351         manually.
87353 2008-01-16  Simon Josefsson  <simon@josefsson.org>
87355         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
87357 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
87359         Fix problem with getdate on mingw32 reported by Simon Josefsson
87360         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
87361         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
87362         tzname", when deciding whether to declare tzname.
87363         * lib/strftime.c (tzname): Likewise.
87365 2008-01-15  Bruno Haible  <bruno@clisp.org>
87367         Work around a MacOS X 10.5 bug in frexpl().
87368         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
87369         * doc/functions/frexpl.texi: Document the bug.
87370         Reported by Elias Pipping <pipping@gentoo.org>.
87372 2008-01-14  Eric Blake  <ebb9@byu.net>
87374         Touch up previous patch.
87375         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
87376         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
87378         Convert strcasestr module to use Two-Way algorithm.
87379         * modules/strcasestr-simple: New module, based on the old
87380         strcasestr, but with Two-Way rather than KMP.
87381         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
87382         * lib/string.in.h (rpl_strcasestr): Declare.
87383         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
87384         performance.
87385         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
87386         * modules/string (Makefile.am): Support strcasestr.
87387         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
87388         * modules/strcasestr-tests (Depends-on): Check for alarm.
87389         * tests/test-strcasestr.c: Augment test.
87390         * lib/str-two-way.h: Clean up stray macro.
87391         * NEWS: Document new module.
87392         * MODULES.html.sh (string handling): Likewise.
87393         * doc/functions/strcasestr.texi: New file.
87394         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
87395         here, since it is not a POSIX function.
87397 2008-01-14  Colin Watson  <cjwatson@debian.org>
87398             Bruno Haible  <bruno@clisp.org>
87400         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
87401         works fine; if not, set REPLACE_STRSIGNAL.
87402         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
87403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87404         REPLACE_STRSIGNAL.
87405         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
87406         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
87407         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
87409 2008-01-14  Bruno Haible  <bruno@clisp.org>
87411         * modules/strsignal (Include): Change to <string.h>.
87413 2008-01-14  Colin Watson  <cjwatson@debian.org>
87415         * modules/argp (Notice): Add a notice recommending to change
87416         XGETTEXT_OPTIONS.
87417         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
87419 2008-01-13  Colin Watson  <cjwatson@debian.org>
87421         * modules/strsignal-tests: New file.
87422         * tests/test-strsignal.c: New file.
87424         * lib/strsignal.c: New file, from glibc with modifications.
87425         * lib/siglist.h: New file, from glibc with modifications.
87426         * lib/string.in.h (strsignal): New declaration.
87427         * m4/strsignal.m4: New file.
87428         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
87429         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
87430         * modules/strsignal: New file.
87431         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
87432         HAVE_DECL_STRSIGNAL.
87434 2008-01-13  Bruno Haible  <bruno@clisp.org>
87436         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
87437         locale encoding is not ASCII. Needed for OpenBSD 4.0.
87438         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
87439         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
87441 2008-01-13  Bruno Haible  <bruno@clisp.org>
87443         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
87444         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
87445         * lib/argp.h (__attribute__): Likewise.
87446         * lib/c-stack.c (__attribute__): Likewise.
87447         * lib/error.h (__attribute__): Likewise.
87448         * lib/fts.c (__attribute__): Likewise.
87449         * lib/openat.h (__attribute__): Likewise.
87450         * lib/stdio.in.h (__attribute__): Likewise.
87451         * lib/string.in.h (__attribute__): Likewise.
87452         * lib/utimens.c (__attribute__): Likewise.
87453         * lib/vasnprintf.h (__attribute__): Likewise.
87454         * lib/xalloc.h (__attribute__): Likewise.
87455         * lib/xprintf.h (__attribute__): Likewise.
87456         * lib/xstrtol.h (__attribute__): Likewise.
87457         * lib/xvasprintf.h (__attribute__): Likewise.
87459 2008-01-12  Bruno Haible  <bruno@clisp.org>
87461         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
87462         * doc/glibc-headers/a.out.texi: New file.
87463         * doc/glibc-headers/aliases.texi: New file.
87464         * doc/glibc-headers/alloca.texi: New file.
87465         * doc/glibc-headers/ar.texi: New file.
87466         * doc/glibc-headers/argp.texi: New file.
87467         * doc/glibc-headers/argz.texi: New file.
87468         * doc/glibc-headers/byteswap.texi: New file.
87469         * doc/glibc-headers/crypt.texi: New file.
87470         * doc/glibc-headers/endian.texi: New file.
87471         * doc/glibc-headers/envz.texi: New file.
87472         * doc/glibc-headers/err.texi: New file.
87473         * doc/glibc-headers/error.texi: New file.
87474         * doc/glibc-headers/execinfo.texi: New file.
87475         * doc/glibc-headers/fpu_control.texi: New file.
87476         * doc/glibc-headers/fstab.texi: New file.
87477         * doc/glibc-headers/fts.texi: New file.
87478         * doc/glibc-headers/getopt.texi: New file.
87479         * doc/glibc-headers/ieee754.texi: New file.
87480         * doc/glibc-headers/ifaddrs.texi: New file.
87481         * doc/glibc-headers/libintl.texi: New file.
87482         * doc/glibc-headers/mcheck.texi: New file.
87483         * doc/glibc-headers/mntent.texi: New file.
87484         * doc/glibc-headers/obstack.texi: New file.
87485         * doc/glibc-headers/paths.texi: New file.
87486         * doc/glibc-headers/printf.texi: New file.
87487         * doc/glibc-headers/pty.texi: New file.
87488         * doc/glibc-headers/resolv.texi: New file.
87489         * doc/glibc-headers/shadow.texi: New file.
87490         * doc/glibc-headers/sysexits.texi: New file.
87491         * doc/glibc-headers/ttyent.texi: New file.
87493 2008-01-12  Jim Meyering  <meyering@redhat.com>
87495         announce-gen: emit Gnulib's git-based version string.
87496         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
87497         New option --gnulib-version=V, where V is expected to be
87498         the output of running git describe in the gnulib directory.
87499         (get_tool_versions): Request feedback on xdelta.  I suspect it's
87500         not useful, and plan to stop publishing an xdelta file with each
87501         coreutils release.
87503         * build-aux/announce-gen: Also check for lzma-compressed files.
87505 2008-01-11  Bruno Haible  <bruno@clisp.org>
87507         * tests/test-memmem.c (main): Increase maximum allowed time.
87508         * tests/test-strstr.c (main): Likewise.
87510 2008-01-11  Bruno Haible  <bruno@clisp.org>
87512         * doc/functions/memmem.texi: Add more precisions about platforms.
87513         * doc/functions/strstr.texi: Likewise.
87515 2008-01-10  Eric Blake  <ebb9@byu.net>
87517         * m4/strstr.m4: Delete cruft from copy-n-paste.
87518         Reported by Bruno Haible.
87520 2008-01-10  Bruno Haible  <bruno@clisp.org>
87522         Make c-strstr rely on strstr.
87523         * lib/c-strstr.c: Don't include str-kmp.h.
87524         (c_strstr): Define in terms of strstr.
87525         * modules/c-strstr (Files): Remove lib/str-kmp.h.
87526         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
87528 2008-01-10  Bruno Haible  <bruno@clisp.org>
87530         * doc/gnulib.texi (String Functions in C Locale): New section.
87531         * doc/c-ctype.texi: New file.
87532         * doc/c-strcase.texi: New file.
87533         * doc/c-strcaseeq.texi: New file.
87534         * doc/c-strcasestr.texi: New file.
87535         * doc/c-strstr.texi: New file.
87536         * doc/c-strtod.texi: New file.
87537         * doc/c-strtold.texi: New file.
87539 2008-01-10  Eric Blake  <ebb9@byu.net>
87541         * lib/relocatable.h: Fix a comment.
87543 2008-01-10  Eric Blake  <ebb9@byu.net>
87545         Share two-way algorithm.
87546         * lib/str-two-way.h: New file, merged from...
87547         * lib/memmem.c: ...here...
87548         * lib/strstr.c: ...and here.
87549         * modules/memmem (Files): Use it.
87550         * modules/strstr (Files): Likewise.
87552         Avoid quadratic strstr implementations.
87553         * lib/strstr.c: New file.
87554         * m4/strstr.m4: Likewise.
87555         * modules/strstr: Likewise.
87556         * modules/strstr-tests: Likewise.
87557         * tests/test-strstr.c: Likewise.
87558         * lib/string.in.h (rpl_strstr): Declare.
87559         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
87560         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
87561         * modules/string (Makefile.am): Likewise.
87562         * MODULES.html.sh (string handling): Mention new module.
87563         * doc/functions/strstr.texi (strstr): Document the bug.
87565 2008-01-10  Bruno Haible  <bruno@clisp.org>
87567         * lib/relocatable.h (relocate): State whether result is freshly
87568         allocated or not.
87569         * lib/relocatable.c (relocate): Return a freshly allocated string
87570         instead of a pointer to a privately held string.
87571         Reported by Sylvain Beucler <beuc@gnu.org>.
87573 2008-01-10  Colin Watson  <cjwatson@debian.org>
87575         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
87576         s/S_ISNLK/S_ISLNK/.
87578 2008-01-09  Bruno Haible  <bruno@clisp.org>
87580         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
87581         and other files.
87582         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
87583         if it's only a guess.
87584         * modules/memmem: Simplify by depending on memmem-simple.
87586 2008-01-09  Bruno Haible  <bruno@clisp.org>
87588         Work around OpenBSD 4.0 tdelete() bug.
87589         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
87590         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
87591         macros and don't redefine the enum values.
87592         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
87593         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
87594         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
87596 2008-01-09  Bruno Haible  <bruno@clisp.org>
87598         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
87599         (main): Don't perform the tests if setlocale did not install a UTF-8
87600         locale. Needed on OpenBSD 4.0.
87601         * modules/wcwidth-tests (Depends-on): Add localcharset.
87603 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
87605         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
87606         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
87607         * NEWS: announce this.
87608         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
87610 2008-01-09  Simon Josefsson  <simon@josefsson.org>
87611         and Eric Blake  <ebb9@byu.net>
87613         Add memmem-simple module.
87614         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
87615         (gl_FUNC_MEMMEM): Separate performance from presence checks.
87616         * modules/memmem-simple: New file.
87617         * modules/memmem (Description): Tweak.
87618         * MODULES.html.sh (string handling): Mention new module.
87619         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
87620         addressed by memmem-simple.
87621         * NEWS: Document the difference.
87623 2008-01-09  Eric Blake  <ebb9@byu.net>
87625         Give gcc some memmem optimization hints.
87626         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
87627         (strcasestr): Declare as pure.
87628         * modules/memmem (Maintainer): Claim my implementation.
87630 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87632         Support AIX 6.1 and higher.
87633         * build-aux/config.libpath: Likewise.
87634         * build-aux/config.rpath: Likewise.
87636 2008-01-08  Jim Meyering  <meyering@redhat.com>
87637             Bruno Haible  <bruno@clisp.org>
87639         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
87640         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
87641         Reported by Peter Fales in
87642         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
87644 2008-01-08  Bruno Haible  <bruno@clisp.org>
87646         * modules/unictype/category-of (Depends-on): Add
87647         unictype/category-none.
87648         * modules/unictype/category-and-tests (Depends-on): Add
87649         unictype/category-{L,N,Lu,Nd}.
87650         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
87651         * modules/unictype/category-or-tests (Depends-on): Add
87652         unictype/category-{L,N}.
87653         * modules/unictype/category-name-tests (Depends-on): Add
87654         unictype/category-{Z,Nl}.
87655         Reported by Simon Josefsson.
87657 2008-01-08  Bruno Haible  <bruno@clisp.org>
87659         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
87660         convention better.
87661         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
87662         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
87663         Reported by Peter Miller <millerp@canb.auug.org.au>.
87665 2008-01-08  Eric Blake  <ebb9@byu.net>
87667         Rewrite memmem to guarantee linear complexity without malloc.
87668         * lib/memmem.c (memmem): Use Two-Way rather than
87669         Knuth-Morris-Pratt, to allow O(1) space usage.
87670         (critical_factorization, two_way_short_needle)
87671         (two_way_long_needle): New functions.
87672         (knuth_morris_pratt): Delete.
87673         * modules/memmem (Depends-on): No longer need malloca or stdbool.
87674         Add stdint.
87675         * tests/test-memmem.c (main): Add tests for periodic needle and
87676         sublinear performance.
87677         * doc/functions/memmem.texi (memmem): Document other deficiencies
87678         in cygwin and older glibc.
87680 2008-01-08  Bruno Haible  <bruno@clisp.org>
87682         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
87683         augmentation.
87685 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
87687         Add a configure time option: --disable-acl.
87688         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
87689         AC_ARG_ENABLE(acl).
87691 2008-01-06  Simon Josefsson  <simon@josefsson.org>
87693         * tests/test-localename.c: Don't include obsolete "setenv.h".
87695         * modules/localename-tests (Depends-on): Need unsetenv.
87697 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87699         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
87701 2008-01-06  Colin Watson  <cjwatson@debian.org>
87703         * users.txt: Add man-db.
87705 2008-01-07  Bruno Haible  <bruno@clisp.org>
87707         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
87708         previous section name.
87710 2008-01-07  Bruno Haible  <bruno@clisp.org>
87712         * lib/progname.c (set_program_name): Don't strip off a leading
87713         "lt-" prefix outside a .libs directory.
87714         Suggested by Paul Eggert.
87716 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
87717             Bruno Haible  <bruno@clisp.org>
87719         Improve memory cleanup in 'relocatable' module.
87720         * lib/relocatable.h (compute_curr_prefix): Change return type to
87721         'char *'.
87722         * lib/relocatable.c (compute_curr_prefix): Change return type to
87723         'char *'. Free curr_installdir after use.
87724         (relocate): Free curr_prefix_better after use.
87725         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
87727 2008-01-01  Bruno Haible  <bruno@clisp.org>
87729         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
87730         failure on older glibc systems.
87731         Reported by Peter Fales <psfales@alcatel-lucent.com>.
87733 2008-01-05  Eric Blake  <ebb9@byu.net>
87735         Avoid quadratic system memmem.
87736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
87737         Reported by Ralf Wildenhues.
87739         Fix memmem test for mingw.
87740         * modules/memmem-tests (configure.ac): Check for alarm.
87741         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
87742         it.
87743         * doc/functions/memmem.texi: New file.
87744         * doc/gnulib.texi (Function Substitutes): Add memmem.
87745         Reported by Bruno Haible.
87747 2008-01-04  Bruno Haible  <bruno@clisp.org>
87749         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
87750         Require gl_HEADER_STRINGS_H_DEFAULTS, not
87751         gl_HEADER_STRING_H_DEFAULTS.
87753 2008-01-04  Eric Blake  <ebb9@byu.net>
87755         Shorten duration of memmem test.
87756         * tests/test-memmem.c (main): Use alarm to declare failure if test
87757         is taking too long.
87758         Reported by Ralf Wildenhues.
87760 2007-12-21  Simon Josefsson  <simon@josefsson.org>
87762         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
87763         string, needed by strerror.
87765 2008-01-03  Colin Watson  <cjwatson@debian.org>
87766             Bruno Haible  <bruno@clisp.org>
87768         * doc/gnulib-tool.texi (Localization): New section.
87770 2008-01-02  Bruno Haible  <bruno@clisp.org>
87772         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
87773         variables to 'unsigned char *' type.
87774         Reported by Paul Eggert.
87776 2008-01-02  Jim Meyering  <jim@meyering.net>
87778         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
87780 2007-12-31  Jim Meyering  <jim@meyering.net>
87782         Avoid use of private FTS type name.
87783         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
87785 2007-12-30  Karl Berry  <karl@gnu.org>
87787         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
87788         work around defect in Texinfo and/or the standalone Info browser.
87790 2007-12-30  Bruno Haible  <bruno@clisp.org>
87792         Unify 5 copies of the KMP code.
87793         * lib/str-kmp.h: New file.
87794         * lib/c-strcasestr.c: Include str-kmp.h.
87795         (knuth_morris_pratt): Remove function.
87796         (c_strcasestr): Update.
87797         * lib/c-strstr.c: Include str-kmp.h.
87798         (knuth_morris_pratt): Remove function.
87799         (c_strcasestr): Update.
87800         * lib/mbscasestr.c: Include str-kmp.h.
87801         (knuth_morris_pratt_unibyte): Remove function.
87802         * lib/mbsstr.c: Include str-kmp.h.
87803         (knuth_morris_pratt_unibyte): Remove function.
87804         * lib/strcasestr.c: Include str-kmp.h.
87805         (knuth_morris_pratt): Remove function.
87806         (strcasestr): Update.
87807         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
87808         * modules/c-strstr (Files): Likewise.
87809         * modules/mbscasestr (Files): Likewise.
87810         * modules/mbsstr (Files): Likewise.
87811         * modules/strcasestr (Files): Likewise.
87812         Suggested by Paul Eggert.
87814 2007-12-30  Bruno Haible  <bruno@clisp.org>
87816         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
87817         defined.
87819 2007-12-30  Bruno Haible  <bruno@clisp.org>
87821         * lib/xmalloca.h: Include xalloc.h.
87822         (xnmalloca): New macro.
87824 2007-12-30  Bruno Haible  <bruno@clisp.org>
87826         * lib/malloca.h (nmalloca): New macro.
87827         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
87828         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
87829         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
87830         knuth_morris_pratt_multibyte): Likewise.
87831         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
87832         knuth_morris_pratt_multibyte): Likewise.
87833         * lib/memmem.c (knuth_morris_pratt): Likewise.
87834         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
87836 2007-12-25  Bruno Haible  <bruno@clisp.org>
87838         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
87839         * lib/glob.c: Don't include openat.h.
87840         (link_exists2_p): Add back the code that deals with the
87841         !GLOB_ALTDIRFUNC case.
87842         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
87843         let it do the filename concatenation.
87844         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
87845         * modules/glob (Depends-on): Remove openat.
87847 2007-12-31  Bruno Haible  <bruno@clisp.org>
87849         * modules/dirfd (License): Change to LGPLv2+.
87850         Approved by Jim Meyering.
87852 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
87854         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
87855         when multiplying M by sizeof (size_t).
87857 2007-12-10  Martin Lambers  <marlam@marlam.de>
87859         Override getpagesize on mingw.
87860         * lib/getpagesize.c: New file.
87861         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
87862         * modules/getpagesize (Files): Add lib/getpagesize.c.
87863         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
87864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
87865         REPLACE_GETPAGESIZE.
87866         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
87868 2007-12-25  Bruno Haible  <bruno@clisp.org>
87870         * modules/localcharset (Notice): New field.
87871         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
87872         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
87874 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
87875             Bruno Haible  <bruno@clisp.org>
87877         Avoid using the syntax symbol() in formatted documentation.
87878         * MODULES.html.sh (func_module): When replacing symbol() with a
87879         hyperlink, remove the parentheses. Show an error if some remain.
87880         Recognize and render the '...' syntax.
87881         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
87882         Rework. Add paragraph about GCC's inlining.
87883         * doc/alloca.texi: Likewise.
87884         * doc/error.texi: Remove parentheses from symbol reference.
87885         * doc/gnulib-intro.texi: Likewise.
87886         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
87887         * modules/fnmatch (Description): Reword to say "the ... function".
87888         * modules/full-read (Description): Likewise.
87889         * modules/full-write (Description): Likewise.
87890         * modules/safe-read (Description): Likewise.
87891         * modules/safe-write (Description): Likewise.
87892         * modules/strchrnul (Description): Likewise.
87893         * modules/trim (Description): Likewise.
87894         * modules/error (Description): Remove parentheses from symbol
87895         references.
87896         * modules/verror (Description): Likewise.
87897         Reported by Karl Berry.
87899 2007-12-25  Bruno Haible  <bruno@clisp.org>
87901         Fixup after 2007-10-16 commit.
87902         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
87904 2007-12-24  Bruno Haible  <bruno@clisp.org>
87906         Make --enable-relocatable work with DESTDIR.
87907         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
87908         to compute installdir from destprog.
87909         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
87910         also set the RELOC_DESTDIR variable.
87911         Reported by Левашев Иван <octagram@bluebottle.com>.
87913 2007-12-24  Bruno Haible  <bruno@clisp.org>
87915         Fix link error due to xalloc_die().
87916         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
87917         of xreadlink.
87918         * lib/relocwrapper.c: Update comments.
87919         * build-aux/install-reloc: Remove xreadlink.c from file list.
87920         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
87921         xreadlink.c.
87922         Reported by Левашев Иван <octagram@bluebottle.com>.
87924 2007-12-24  Bruno Haible  <bruno@clisp.org>
87926         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
87927         * lib/setenv.h: Remove file.
87928         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
87929         lib/setenv.h.
87930         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
87931         (Depends-on): Add stdlib.
87932         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
87933         gl_FUNC_UNSETENV.
87934         (Include): Replace setenv.h with <stdlib.h>.
87935         * modules/unsetenv: New file.
87936         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
87937         * lib/unsetenv.c: Include <stdlib.h> first.
87938         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
87939         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
87940         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
87941         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
87942         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
87943         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
87944         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
87945         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
87946         * doc/functions/unsetenv.texi: Update.
87947         * modules/xsetenv (Depends-on): Add unsetenv.
87948         * modules/getdate (Depends-on): Likewise.
87949         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
87950         * lib/xsetenv.c: Don't include setenv.h.
87951         * lib/getdate.y: Likewise.
87952         * lib/relocwrapper.c: Likewise.
87953         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
87954         (Depends-on): Add stdlib.
87955         * NEWS: Mention the changes.
87956         Reported by Левашев Иван <octagram@bluebottle.com>.
87958 2007-12-23  Bruno Haible  <bruno@clisp.org>
87960         * lib/memmem.c (memmem): Use lowercase variable names. Tab
87961         indentation.
87963 2007-12-23  Bruno Haible  <bruno@clisp.org>
87965         * lib/c-strcasestr.c: Add more comments.
87966         * lib/c-strstr.c: Likewise.
87967         * lib/mbscasestr.c: Likewise.
87968         * lib/mbsstr.c: Likewise.
87969         * lib/strcasestr.c: Likewise.
87970         * lib/memmem.c: Likewise.
87972 2007-12-23  Bruno Haible  <bruno@clisp.org>
87974         * tests/test-memmem.c: Include <string.h> first.
87976 2007-12-22  Bruno Haible  <bruno@clisp.org>
87978         * gnulib-tool (func_create_testdir): Change $auxdir while generating
87979         the contents of $testsbase.
87980         Reported by Ralf Wildenhues.
87982 2007-12-22  Bruno Haible  <bruno@clisp.org>
87984         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
87985         two variables local_ldadd_before, local_ldadd_last.
87987 2007-12-20  Eric Blake  <ebb9@byu.net>
87989         Work around circular library issue when cross-compiling.
87990         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
87991         that progname.o does not need to pull in rpl_memcmp.
87993 2007-12-19  Eric Blake  <ebb9@byu.net>
87995         Fix memmem to avoid O(n^2) worst-case complexity.
87996         * lib/memmem.c (knuth_morris_pratt): New function.
87997         (memmem): Use it if first few naive iterations fail.
87998         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
87999         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
88000         * modules/memchr (License): Likewise.
88001         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
88002         malloca.
88003         * tests/test-memmem.c: Rewrite, borrowing ideas from
88004         test-mbsstr1.c; the old version wouldn't even compile!
88005         * modules/memmem-tests: New file.
88006         * lib/string.in.h (rpl_memmem): Add declaration.
88007         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
88008         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
88009         REPLACE_MEMMEM.
88011 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
88013         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
88014         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
88015         before any system include files, and undef after them all.  This
88016         should fix a problem on VMS reported by John E. Malmberg in
88017         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
88019 2007-12-17  Eric Blake  <ebb9@byu.net>
88021         Revert addition of verify, for BSD/OS.
88022         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
88023         can't handle large files, for the sake of obsolete platforms.
88024         * modules/fseeko (Depends-on): Remove verify.
88025         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
88026         * doc/functions/ftello.texi (ftello): Likewise.
88027         * doc/functions/fgetpos.texi (fgetpos): Likewise.
88028         Reported by Larry Jones.
88030 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
88032         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
88033         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
88035 2007-12-17  Jim Meyering  <meyering@redhat.com>
88037         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
88038         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
88039         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
88040         * modules/getcwd (Depends-on): Add openat.
88041         Reported by Petr Salinger.
88043 2007-12-17  Bruno Haible  <bruno@clisp.org>
88045         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
88046         avoid a segmentation fault of the configure test on x86_64 systems.
88048 2007-12-15  Jim Meyering  <meyering@redhat.com>
88050         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
88052 2007-12-13  Eric Blake  <ebb9@byu.net>
88054         Another fseek test.
88055         * tests/test-fseek.c (main): Also test ungetc handling.
88056         * tests/test-fseeko.c (main): Likewise.
88057         * modules/fseeko (Depends-on): Add verify.
88058         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
88059         large.
88060         Reported by Larry Jones.
88062         Fix fseeko on mingw.
88063         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
88064         seek.
88066         Beef up fseek tests.
88067         * tests/test-fseek.c (main): Also test eof handling.
88068         * tests/test-fseeko.c (main): Likewise.
88069         Reported by Larry Jones.
88071 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
88073         Fix fseeko on BSD-based platforms.
88074         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
88075         successful seek.
88077 2007-12-12  Eric Blake  <ebb9@byu.net>
88079         Allow circular dependency of separate libtests.a
88080         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
88081         when use_libtests.
88083 2007-12-11  Eric Blake  <ebb9@byu.net>
88085         Fix bug with -0.0L in previous patch.
88086         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
88087         * tests/test-isnan.c (main): Also test on zeroes.
88088         * tests/test-isnanf.c (main): Likewise.
88089         * tests/test-isnanl.h (main): Likewise.
88091         Detect pseudo-denormals on x86 even when cross-compiling.
88092         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
88093         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
88094         invalid bit patterns that happen to satisfy ==.
88096         Avoid link failures with separate libtests.a.
88097         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
88098         last, to satisfy circular dependencies.
88100 2007-12-11  Eric Blake  <ebb9@byu.net>
88101         and Bruno Haible  <bruno@clisp.org>
88103         Fix OpenBSD 4.0 <float.h> handling of long double.
88104         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
88105         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
88106         * doc/headers/float.texi (float.h): Document OpenBSD bug.
88108 2007-12-11  Jim Meyering  <meyering@redhat.com>
88110         * users.txt: Add libvirt.
88112         Support versions of autoconf prior to 2.59c.
88113         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
88114         if it is not already defined.
88116 2007-12-09  Bruno Haible  <bruno@clisp.org>
88118         Let 'gnulib-tool --import' collect sources needed for the tests in
88119         tests/ rather than in lib/.
88120         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
88121         argument. If true, add rules to generate libtests.a, and put libtests.a
88122         into $(LDADD). Consider source files in subdirectories and set
88123         uses_subdirs.
88124         (func_emit_initmacro_start, func_emit_initmacro_end,
88125         func_emit_initmacro_done): Pass all arguments explicitly.
88126         (func_import): Determine two module lists main_modules,
88127         testsrelated_modules. Determine use_libtests. Determine two variables
88128         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
88129         instead of just sed_transform_lib_file. Determine two variables
88130         main_files and testsrelated_files. Compute 'files' as the union of
88131         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
88132         func_add_or_update. In the generated gnulib-comp.m4, collect the
88133         object files for tests/ in different variables than those for lib/.
88134         Substitute LIBTESTS_LIBDEPS.
88135         (func_create_testdir): Combine the uses_subdirs results from
88136         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
88138 2007-12-09  Bruno Haible  <bruno@clisp.org>
88140         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
88141         the build-aux directory.
88143 2007-12-09  Bruno Haible  <bruno@clisp.org>
88145         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
88146         introduced on 2006-09-09.
88148 2007-12-07  Jim Meyering  <meyering@redhat.com>
88150         Let these macros work also with autoconf-2.59.
88151         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
88152         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
88153         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
88155 2007-12-06  Jim Meyering  <meyering@redhat.com>
88157         Avoid a configure-time syntax error in gl_FUNC_ACL.
88158         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
88159         function in each branch, before testing the cache variable.
88161 2007-12-04  Eric Blake  <ebb9@byu.net>
88163         Make scripts executable.
88164         * build-aux/config.guess: Add execute permissions.
88165         * build-aux/config.sub: Likewise.
88166         * build-aux/gendocs.sh: Likewise.
88168         Fix frexp on mingw.
88169         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
88170         cross-compiling.
88171         * doc/functions/frexp.texi (frexp): Document the bug.
88173         Make cygwin fseeko check more reliable.
88174         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
88175         version numbers, rather than unrelated feature check.
88176         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
88177         * doc/functions/ftello.texi (ftello): Likewise.
88178         Reported by Bruno Haible.
88180         * m4/strerror.m4: Bump version number.
88182 2007-12-03  Bruno Haible  <bruno@clisp.org>
88184         * doc/functions/mprotect.texi: Mention the mingw problem.
88186 2007-12-03  Eric Blake  <ebb9@byu.net>
88188         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
88189         REPLACE_STRERROR is initialized before this macro.
88191 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
88193         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
88194         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
88195         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
88196         put -lsec in even for programs other than 'ls'.  This fixes a problem
88197         for gettext reported by Bruno Haible in
88198         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
88199         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
88200         Add support for Solaris 10.  This isn't efficient, but should get the
88201         job done for now.
88203 2007-12-03  James Youngman  <jay@gnu.org>
88205         * doc/regexprops-generic.texi: change "an close-group" to "a
88206         close-group" and "illegal" to "not allowed".
88208 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88210         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
88211         pr_byname.h. Needed for the rare case when the maintainer has done
88212         "make maintainer-clean" in the source directory and then attempts a
88213         build outside the source directory.
88214         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
88215         scripts_byname.h.
88217 2007-12-02  Martin Lambers  <marlam@marlam.de>
88218             Bruno Haible  <bruno@clisp.org>
88220         * lib/getpagesize.h: Remove file.
88221         * lib/unistd.in.h: Include declaration of getpagesize here.
88222         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
88223         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
88224         HAVE_SYS_PARAM_H.
88225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
88226         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
88227         * modules/getpagesize (Files): Remove lib/getpagesize.h.
88228         (Depends-on): Add unistd.
88229         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
88230         (Include): Use <unistd.h> instead of getpagesize.h.
88231         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
88232         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
88233         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
88234         gl_GETPAGESIZE invocation, already handled by module dependency.
88235         * lib/pagealign_alloc.c: Don't include getpagesize.h.
88237 2007-12-02  Bruno Haible  <bruno@clisp.org>
88239         * modules/strings-tests: New file.
88240         * tests/test-strings.c: New file.
88242         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
88243         * lib/strings.in.h: New file.
88244         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
88245         * m4/strings_h.m4: New file.
88246         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
88247         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
88248         * modules/strings: New file.
88249         * modules/string (Makefile.am): Update.
88250         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
88251         Reported by Karl Berry.
88253 2007-12-01  Eric Blake  <ebb9@byu.net>
88255         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
88256         accommodate fix in cygwin 1.5.25.
88258 2007-12-01  Jim Meyering  <meyering@redhat.com>
88260         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
88261         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
88262         that would inhibit utf8-optimization of a regexp containing line-
88263         or buffer-anchors, e.g., `^', `$'.
88265 2007-11-30  Bruno Haible  <bruno@clisp.org>
88267         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
88268         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
88269         glthread_recursive_lock_init.
88270         * lib/lock.c (glthread_recursive_lock_init)
88271         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
88272         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
88274 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
88276         New function qset_acl, like set_acl but with syscall semantics.
88277         * lib/acl.h (qset_acl): New decl.
88278         * lib/acl.c (qset_acl): New function.
88279         (set_acl): Use new function.  Use more-consistent diagnostics.
88281 2007-11-28  Jim Meyering  <meyering@redhat.com>
88283         * modules/physmem (License): Change from GPL to LGPLv2+.
88285 2007-11-26  Bruno Haible  <bruno@clisp.org>
88287         * lib/vasnprintf.c (decode_long_double): Don't abort if the
88288         'long double' type has excess precision.
88289         Reported by Jim Meyering in
88290         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
88292 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88294         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
88295         Sync from <http://gnu.org/licenses>.
88296         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
88297         with license text from same location.
88298         * doc/maintain.texi, doc/standards.texi:  Sync from
88299         <http://savannah.gnu.org/projects/gnustandards>.
88301 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
88302         and Jim Meyering  <meyering@redhat.com>
88304         Adjust getdate' grammar to accept a slightly more regular language.
88305         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
88306         Before, the former was rejected.
88307         * lib/getdate.y (digits_to_date_time): New function, factored
88308         out of ...
88309         (number): ...here.  Just call digits_to_date_time.
88310         (hybrid): New non-terminal to handle an <unsigned number,
88311         signed relative offset> sequence consistently.
88313 2007-11-18  Jim Meyering  <meyering@redhat.com>
88315         Pull my changes from coreutils:
88316         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
88317         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
88318         use of $gnulib_tool_option_extras, so that it's separated from the
88319         preceding argument.
88321         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
88322         * build-aux/bootstrap (cp_mark_as_generated): Create any required
88323         parent destination directories before copying a file into place.
88325 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
88327         bootstrap: work also with 4-argument variant of AC_INIT
88328         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
88330 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88332         Port test-getaddrinfo to Solaris.
88333         Problem reported by Bruno Haible in
88334         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
88335         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
88336         explanation of setting 'hints'.
88337         Don't reject an implementation merely because it returns EAI_SERVICE.
88338         (EAI_SERVICE): Define to 0 if not defined.
88340 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
88342         The license of gnu-make and posix-shell is now "GPLed build tool".
88343         * modules/gnu-make (License): Likewise.
88344         * modules/posix-shell (License): Likewise.
88346         New module posix-shell, for determining a POSIX shell
88347         or perhaps something that is close enough to a POSIX shell.
88348         * m4/posix-shell.m4: New file.
88349         * modules/posix-shell: New file.
88351         * MODULES.html.sh: Mention new module.
88353         New module gnu-make, for determining whether we're using GNU Make.
88354         * m4/gnu-make.m4: New file.
88355         * modules/gnu-make: New file.
88356         * MODULES.html.sh: Mention new module.
88358 2007-11-14  Jim Meyering  <meyering@redhat.com>
88360         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
88361         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
88362         use this macro to create a function _definition_.
88363         Remove useless "#undef ARGMATCH_DIE".
88365 2007-11-14  Bruno Haible  <bruno@clisp.org>
88367         * lib/config.charset: Update for OpenBSD 4.1.
88368         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
88370 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
88372         Document 64-bit #if problems in stdint.texi.
88373         * doc/headers/stdint.texi (stdint.h): Mention problems with
88374         64-bit-#if, and how to work around them.
88376         Don't insist on 'long long int' support in the preprocessor.  It
88377         breaks too many things.  For example, PRIdMAX still uses a 'long
88378         long int' format with the latest Sun compiler, even though
88379         HAVE_LONG_LONG_INT isn't defined due to that compiler's
88380         preprocessor problem.  This causes the latest coreutils to dump
88381         core on Solaris 10 sparc with the Sun C compiler.
88382         Instead, fix the 2007-10-16 problem in a different way, by evaluating
88383         the troublesome expressions at configure-time, not at #if-time.
88384         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
88385         preprocessor.
88386         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
88387         compile-time C checks, done at 'configure'-time.
88388         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
88389         * modules/inttypes (Makefile): Substitute the new symbols that
88390         gl_INTTYPES_H now generates.
88391         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
88393 2007-11-12  Bruno Haible  <bruno@clisp.org>
88395         Tests for Unicode character classification functions.
88397         * modules/unictype/bidicategory-byname-tests: New file.
88398         * modules/unictype/bidicategory-name-tests: New file.
88399         * modules/unictype/bidicategory-of-tests: New file.
88400         * modules/unictype/bidicategory-test-tests: New file.
88401         * modules/unictype/block-list-tests: New file.
88402         * modules/unictype/block-of-tests: New file.
88403         * modules/unictype/block-test-tests: New file.
88404         * modules/unictype/category-C-tests: New file.
88405         * modules/unictype/category-Cc-tests: New file.
88406         * modules/unictype/category-Cf-tests: New file.
88407         * modules/unictype/category-Cn-tests: New file.
88408         * modules/unictype/category-Co-tests: New file.
88409         * modules/unictype/category-Cs-tests: New file.
88410         * modules/unictype/category-L-tests: New file.
88411         * modules/unictype/category-Ll-tests: New file.
88412         * modules/unictype/category-Lm-tests: New file.
88413         * modules/unictype/category-Lo-tests: New file.
88414         * modules/unictype/category-Lt-tests: New file.
88415         * modules/unictype/category-Lu-tests: New file.
88416         * modules/unictype/category-M-tests: New file.
88417         * modules/unictype/category-Mc-tests: New file.
88418         * modules/unictype/category-Me-tests: New file.
88419         * modules/unictype/category-Mn-tests: New file.
88420         * modules/unictype/category-N-tests: New file.
88421         * modules/unictype/category-Nd-tests: New file.
88422         * modules/unictype/category-Nl-tests: New file.
88423         * modules/unictype/category-No-tests: New file.
88424         * modules/unictype/category-P-tests: New file.
88425         * modules/unictype/category-Pc-tests: New file.
88426         * modules/unictype/category-Pd-tests: New file.
88427         * modules/unictype/category-Pe-tests: New file.
88428         * modules/unictype/category-Pf-tests: New file.
88429         * modules/unictype/category-Pi-tests: New file.
88430         * modules/unictype/category-Po-tests: New file.
88431         * modules/unictype/category-Ps-tests: New file.
88432         * modules/unictype/category-S-tests: New file.
88433         * modules/unictype/category-Sc-tests: New file.
88434         * modules/unictype/category-Sk-tests: New file.
88435         * modules/unictype/category-Sm-tests: New file.
88436         * modules/unictype/category-So-tests: New file.
88437         * modules/unictype/category-Z-tests: New file.
88438         * modules/unictype/category-Zl-tests: New file.
88439         * modules/unictype/category-Zp-tests: New file.
88440         * modules/unictype/category-Zs-tests: New file.
88441         * modules/unictype/category-and-not-tests: New file.
88442         * modules/unictype/category-and-tests: New file.
88443         * modules/unictype/category-byname-tests: New file.
88444         * modules/unictype/category-name-tests: New file.
88445         * modules/unictype/category-none-tests: New file.
88446         * modules/unictype/category-of-tests: New file.
88447         * modules/unictype/category-or-tests: New file.
88448         * modules/unictype/category-test-withtable-tests: New file.
88449         * modules/unictype/combining-class-tests: New file.
88450         * modules/unictype/ctype-alnum-tests: New file.
88451         * modules/unictype/ctype-alpha-tests: New file.
88452         * modules/unictype/ctype-blank-tests: New file.
88453         * modules/unictype/ctype-cntrl-tests: New file.
88454         * modules/unictype/ctype-digit-tests: New file.
88455         * modules/unictype/ctype-graph-tests: New file.
88456         * modules/unictype/ctype-lower-tests: New file.
88457         * modules/unictype/ctype-print-tests: New file.
88458         * modules/unictype/ctype-punct-tests: New file.
88459         * modules/unictype/ctype-space-tests: New file.
88460         * modules/unictype/ctype-upper-tests: New file.
88461         * modules/unictype/ctype-xdigit-tests: New file.
88462         * modules/unictype/decimal-digit-tests: New file.
88463         * modules/unictype/digit-tests: New file.
88464         * modules/unictype/mirror-tests: New file.
88465         * modules/unictype/numeric-tests: New file.
88466         * modules/unictype/property-alphabetic-tests: New file.
88467         * modules/unictype/property-ascii-hex-digit-tests: New file.
88468         * modules/unictype/property-bidi-arabic-digit-tests: New file.
88469         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
88470         * modules/unictype/property-bidi-block-separator-tests: New file.
88471         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
88472         * modules/unictype/property-bidi-common-separator-tests: New file.
88473         * modules/unictype/property-bidi-control-tests: New file.
88474         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
88475         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
88476         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
88477         * modules/unictype/property-bidi-european-digit-tests: New file.
88478         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
88479         * modules/unictype/property-bidi-left-to-right-tests: New file.
88480         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
88481         * modules/unictype/property-bidi-other-neutral-tests: New file.
88482         * modules/unictype/property-bidi-pdf-tests: New file.
88483         * modules/unictype/property-bidi-segment-separator-tests: New file.
88484         * modules/unictype/property-bidi-whitespace-tests: New file.
88485         * modules/unictype/property-byname-tests: New file.
88486         * modules/unictype/property-combining-tests: New file.
88487         * modules/unictype/property-composite-tests: New file.
88488         * modules/unictype/property-currency-symbol-tests: New file.
88489         * modules/unictype/property-dash-tests: New file.
88490         * modules/unictype/property-decimal-digit-tests: New file.
88491         * modules/unictype/property-default-ignorable-code-point-tests: New file.
88492         * modules/unictype/property-deprecated-tests: New file.
88493         * modules/unictype/property-diacritic-tests: New file.
88494         * modules/unictype/property-extender-tests: New file.
88495         * modules/unictype/property-format-control-tests: New file.
88496         * modules/unictype/property-grapheme-base-tests: New file.
88497         * modules/unictype/property-grapheme-extend-tests: New file.
88498         * modules/unictype/property-grapheme-link-tests: New file.
88499         * modules/unictype/property-hex-digit-tests: New file.
88500         * modules/unictype/property-hyphen-tests: New file.
88501         * modules/unictype/property-id-continue-tests: New file.
88502         * modules/unictype/property-id-start-tests: New file.
88503         * modules/unictype/property-ideographic-tests: New file.
88504         * modules/unictype/property-ids-binary-operator-tests: New file.
88505         * modules/unictype/property-ids-trinary-operator-tests: New file.
88506         * modules/unictype/property-ignorable-control-tests: New file.
88507         * modules/unictype/property-iso-control-tests: New file.
88508         * modules/unictype/property-join-control-tests: New file.
88509         * modules/unictype/property-left-of-pair-tests: New file.
88510         * modules/unictype/property-line-separator-tests: New file.
88511         * modules/unictype/property-logical-order-exception-tests: New file.
88512         * modules/unictype/property-lowercase-tests: New file.
88513         * modules/unictype/property-math-tests: New file.
88514         * modules/unictype/property-non-break-tests: New file.
88515         * modules/unictype/property-not-a-character-tests: New file.
88516         * modules/unictype/property-numeric-tests: New file.
88517         * modules/unictype/property-other-alphabetic-tests: New file.
88518         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
88519         * modules/unictype/property-other-grapheme-extend-tests: New file.
88520         * modules/unictype/property-other-id-continue-tests: New file.
88521         * modules/unictype/property-other-id-start-tests: New file.
88522         * modules/unictype/property-other-lowercase-tests: New file.
88523         * modules/unictype/property-other-math-tests: New file.
88524         * modules/unictype/property-other-uppercase-tests: New file.
88525         * modules/unictype/property-paired-punctuation-tests: New file.
88526         * modules/unictype/property-paragraph-separator-tests: New file.
88527         * modules/unictype/property-pattern-syntax-tests: New file.
88528         * modules/unictype/property-pattern-white-space-tests: New file.
88529         * modules/unictype/property-private-use-tests: New file.
88530         * modules/unictype/property-punctuation-tests: New file.
88531         * modules/unictype/property-quotation-mark-tests: New file.
88532         * modules/unictype/property-radical-tests: New file.
88533         * modules/unictype/property-sentence-terminal-tests: New file.
88534         * modules/unictype/property-soft-dotted-tests: New file.
88535         * modules/unictype/property-space-tests: New file.
88536         * modules/unictype/property-terminal-punctuation-tests: New file.
88537         * modules/unictype/property-test-tests: New file.
88538         * modules/unictype/property-titlecase-tests: New file.
88539         * modules/unictype/property-unassigned-code-value-tests: New file.
88540         * modules/unictype/property-unified-ideograph-tests: New file.
88541         * modules/unictype/property-uppercase-tests: New file.
88542         * modules/unictype/property-variation-selector-tests: New file.
88543         * modules/unictype/property-white-space-tests: New file.
88544         * modules/unictype/property-xid-continue-tests: New file.
88545         * modules/unictype/property-xid-start-tests: New file.
88546         * modules/unictype/property-zero-width-tests: New file.
88547         * modules/unictype/scripts-tests: New file.
88548         * modules/unictype/syntax-c-ident-tests: New file.
88549         * modules/unictype/syntax-c-whitespace-tests: New file.
88550         * modules/unictype/syntax-java-ident-tests: New file.
88551         * modules/unictype/syntax-java-whitespace-tests: New file.
88552         * tests/unictype/test-bidi_byname.c: New file.
88553         * tests/unictype/test-bidi_name.c: New file.
88554         * tests/unictype/test-bidi_of.c: New file.
88555         * tests/unictype/test-bidi_test.c: New file.
88556         * tests/unictype/test-block_list.c: New file.
88557         * tests/unictype/test-block_of.c: New file.
88558         * tests/unictype/test-block_test.c: New file.
88559         * tests/unictype/test-categ_and.c: New file.
88560         * tests/unictype/test-categ_and_not.c: New file.
88561         * tests/unictype/test-categ_byname.c: New file.
88562         * tests/unictype/test-categ_name.c: New file.
88563         * tests/unictype/test-categ_none.c: New file.
88564         * tests/unictype/test-categ_of.c: New file.
88565         * tests/unictype/test-categ_or.c: New file.
88566         * tests/unictype/test-categ_test_withtable.c: New file.
88567         * tests/unictype/test-combining.c: New file.
88568         * tests/unictype/test-decdigit.c: New file.
88569         * tests/unictype/test-digit.c: New file.
88570         * tests/unictype/test-mirror.c: New file.
88571         * tests/unictype/test-numeric.c: New file.
88572         * tests/unictype/test-pr_byname.c: New file.
88573         * tests/unictype/test-pr_test.c: New file.
88574         * tests/unictype/test-predicate-part1.h: New file.
88575         * tests/unictype/test-predicate-part2.h: New file.
88576         * tests/unictype/test-scripts.c: New file.
88577         * tests/unictype/test-sy_c_ident.c: New file.
88578         * tests/unictype/test-sy_java_ident.c: New file.
88580         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
88581         for Unicode 5.0.0.
88582         * tests/unictype/test-categ_Cc.c: Likewise.
88583         * tests/unictype/test-categ_Cf.c: Likewise.
88584         * tests/unictype/test-categ_Cn.c: Likewise.
88585         * tests/unictype/test-categ_Co.c: Likewise.
88586         * tests/unictype/test-categ_Cs.c: Likewise.
88587         * tests/unictype/test-categ_L.c: Likewise.
88588         * tests/unictype/test-categ_Ll.c: Likewise.
88589         * tests/unictype/test-categ_Lm.c: Likewise.
88590         * tests/unictype/test-categ_Lo.c: Likewise.
88591         * tests/unictype/test-categ_Lt.c: Likewise.
88592         * tests/unictype/test-categ_Lu.c: Likewise.
88593         * tests/unictype/test-categ_M.c: Likewise.
88594         * tests/unictype/test-categ_Mc.c: Likewise.
88595         * tests/unictype/test-categ_Me.c: Likewise.
88596         * tests/unictype/test-categ_Mn.c: Likewise.
88597         * tests/unictype/test-categ_N.c: Likewise.
88598         * tests/unictype/test-categ_Nd.c: Likewise.
88599         * tests/unictype/test-categ_Nl.c: Likewise.
88600         * tests/unictype/test-categ_No.c: Likewise.
88601         * tests/unictype/test-categ_P.c: Likewise.
88602         * tests/unictype/test-categ_Pc.c: Likewise.
88603         * tests/unictype/test-categ_Pd.c: Likewise.
88604         * tests/unictype/test-categ_Pe.c: Likewise.
88605         * tests/unictype/test-categ_Pf.c: Likewise.
88606         * tests/unictype/test-categ_Pi.c: Likewise.
88607         * tests/unictype/test-categ_Po.c: Likewise.
88608         * tests/unictype/test-categ_Ps.c: Likewise.
88609         * tests/unictype/test-categ_S.c: Likewise.
88610         * tests/unictype/test-categ_Sc.c: Likewise.
88611         * tests/unictype/test-categ_Sk.c: Likewise.
88612         * tests/unictype/test-categ_Sm.c: Likewise.
88613         * tests/unictype/test-categ_So.c: Likewise.
88614         * tests/unictype/test-categ_Z.c: Likewise.
88615         * tests/unictype/test-categ_Zl.c: Likewise.
88616         * tests/unictype/test-categ_Zp.c: Likewise.
88617         * tests/unictype/test-categ_Zs.c: Likewise.
88618         * tests/unictype/test-ctype_alnum.c: Likewise.
88619         * tests/unictype/test-ctype_alpha.c: Likewise.
88620         * tests/unictype/test-ctype_blank.c: Likewise.
88621         * tests/unictype/test-ctype_cntrl.c: Likewise.
88622         * tests/unictype/test-ctype_digit.c: Likewise.
88623         * tests/unictype/test-ctype_graph.c: Likewise.
88624         * tests/unictype/test-ctype_lower.c: Likewise.
88625         * tests/unictype/test-ctype_print.c: Likewise.
88626         * tests/unictype/test-ctype_punct.c: Likewise.
88627         * tests/unictype/test-ctype_space.c: Likewise.
88628         * tests/unictype/test-ctype_upper.c: Likewise.
88629         * tests/unictype/test-ctype_xdigit.c: Likewise.
88630         * tests/unictype/test-decdigit.h: Likewise.
88631         * tests/unictype/test-digit.h: Likewise.
88632         * tests/unictype/test-numeric.h: Likewise.
88633         * tests/unictype/test-pr_alphabetic.c: Likewise.
88634         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
88635         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
88636         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
88637         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
88638         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
88639         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
88640         * tests/unictype/test-pr_bidi_control.c: Likewise.
88641         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
88642         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
88643         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
88644         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
88645         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
88646         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
88647         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
88648         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
88649         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
88650         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
88651         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
88652         * tests/unictype/test-pr_combining.c: Likewise.
88653         * tests/unictype/test-pr_composite.c: Likewise.
88654         * tests/unictype/test-pr_currency_symbol.c: Likewise.
88655         * tests/unictype/test-pr_dash.c: Likewise.
88656         * tests/unictype/test-pr_decimal_digit.c: Likewise.
88657         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
88658         * tests/unictype/test-pr_deprecated.c: Likewise.
88659         * tests/unictype/test-pr_diacritic.c: Likewise.
88660         * tests/unictype/test-pr_extender.c: Likewise.
88661         * tests/unictype/test-pr_format_control.c: Likewise.
88662         * tests/unictype/test-pr_grapheme_base.c: Likewise.
88663         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
88664         * tests/unictype/test-pr_grapheme_link.c: Likewise.
88665         * tests/unictype/test-pr_hex_digit.c: Likewise.
88666         * tests/unictype/test-pr_hyphen.c: Likewise.
88667         * tests/unictype/test-pr_id_continue.c: Likewise.
88668         * tests/unictype/test-pr_id_start.c: Likewise.
88669         * tests/unictype/test-pr_ideographic.c: Likewise.
88670         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
88671         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
88672         * tests/unictype/test-pr_ignorable_control.c: Likewise.
88673         * tests/unictype/test-pr_iso_control.c: Likewise.
88674         * tests/unictype/test-pr_join_control.c: Likewise.
88675         * tests/unictype/test-pr_left_of_pair.c: Likewise.
88676         * tests/unictype/test-pr_line_separator.c: Likewise.
88677         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
88678         * tests/unictype/test-pr_lowercase.c: Likewise.
88679         * tests/unictype/test-pr_math.c: Likewise.
88680         * tests/unictype/test-pr_non_break.c: Likewise.
88681         * tests/unictype/test-pr_not_a_character.c: Likewise.
88682         * tests/unictype/test-pr_numeric.c: Likewise.
88683         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
88684         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
88685         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
88686         * tests/unictype/test-pr_other_id_continue.c: Likewise.
88687         * tests/unictype/test-pr_other_id_start.c: Likewise.
88688         * tests/unictype/test-pr_other_lowercase.c: Likewise.
88689         * tests/unictype/test-pr_other_math.c: Likewise.
88690         * tests/unictype/test-pr_other_uppercase.c: Likewise.
88691         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
88692         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
88693         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
88694         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
88695         * tests/unictype/test-pr_private_use.c: Likewise.
88696         * tests/unictype/test-pr_punctuation.c: Likewise.
88697         * tests/unictype/test-pr_quotation_mark.c: Likewise.
88698         * tests/unictype/test-pr_radical.c: Likewise.
88699         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
88700         * tests/unictype/test-pr_soft_dotted.c: Likewise.
88701         * tests/unictype/test-pr_space.c: Likewise.
88702         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
88703         * tests/unictype/test-pr_titlecase.c: Likewise.
88704         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
88705         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
88706         * tests/unictype/test-pr_uppercase.c: Likewise.
88707         * tests/unictype/test-pr_variation_selector.c: Likewise.
88708         * tests/unictype/test-pr_white_space.c: Likewise.
88709         * tests/unictype/test-pr_xid_continue.c: Likewise.
88710         * tests/unictype/test-pr_xid_start.c: Likewise.
88711         * tests/unictype/test-pr_zero_width.c: Likewise.
88712         * tests/unictype/test-sy_c_whitespace.c: Likewise.
88713         * tests/unictype/test-sy_java_whitespace.c: Likewise.
88715 2007-11-12  Bruno Haible  <bruno@clisp.org>
88717         Unicode character classification functions.
88718         * lib/unictype.h: New file.
88719         * modules/unictype/base: New file.
88720         * modules/unictype/category-L: New file.
88721         * modules/unictype/category-Lu: New file.
88722         * modules/unictype/category-Ll: New file.
88723         * modules/unictype/category-Lt: New file.
88724         * modules/unictype/category-Lm: New file.
88725         * modules/unictype/category-Lo: New file.
88726         * modules/unictype/category-M: New file.
88727         * modules/unictype/category-Mn: New file.
88728         * modules/unictype/category-Mc: New file.
88729         * modules/unictype/category-Me: New file.
88730         * modules/unictype/category-N: New file.
88731         * modules/unictype/category-Nd: New file.
88732         * modules/unictype/category-Nl: New file.
88733         * modules/unictype/category-No: New file.
88734         * modules/unictype/category-P: New file.
88735         * modules/unictype/category-Pc: New file.
88736         * modules/unictype/category-Pd: New file.
88737         * modules/unictype/category-Ps: New file.
88738         * modules/unictype/category-Pe: New file.
88739         * modules/unictype/category-Pi: New file.
88740         * modules/unictype/category-Pf: New file.
88741         * modules/unictype/category-Po: New file.
88742         * modules/unictype/category-S: New file.
88743         * modules/unictype/category-Sm: New file.
88744         * modules/unictype/category-Sc: New file.
88745         * modules/unictype/category-Sk: New file.
88746         * modules/unictype/category-So: New file.
88747         * modules/unictype/category-Z: New file.
88748         * modules/unictype/category-Zs: New file.
88749         * modules/unictype/category-Zl: New file.
88750         * modules/unictype/category-Zp: New file.
88751         * modules/unictype/category-C: New file.
88752         * modules/unictype/category-Cc: New file.
88753         * modules/unictype/category-Cf: New file.
88754         * modules/unictype/category-Cs: New file.
88755         * modules/unictype/category-Co: New file.
88756         * modules/unictype/category-Cn: New file.
88757         * modules/unictype/category-or: New file.
88758         * modules/unictype/category-of: New file.
88759         * modules/unictype/category-test: New file.
88760         * modules/unictype/category-test-withtable: New file.
88761         * modules/unictype/category-byname: New file.
88762         * modules/unictype/category-none: New file.
88763         * modules/unictype/category-and: New file.
88764         * modules/unictype/category-and-not: New file.
88765         * modules/unictype/category-name: New file.
88766         * modules/unictype/combining-class: New file.
88767         * modules/unictype/category-all: New file.
88768         * modules/unictype/bidicategory-all: New file.
88769         * modules/unictype/bidicategory-byname: New file.
88770         * modules/unictype/bidicategory-name: New file.
88771         * modules/unictype/bidicategory-of: New file.
88772         * modules/unictype/bidicategory-test: New file.
88773         * modules/unictype/decimal-digit: New file.
88774         * modules/unictype/digit: New file.
88775         * modules/unictype/numeric: New file.
88776         * modules/unictype/mirror: New file.
88777         * modules/unictype/property-white-space: New file.
88778         * modules/unictype/property-alphabetic: New file.
88779         * modules/unictype/property-other-alphabetic: New file.
88780         * modules/unictype/property-not-a-character: New file.
88781         * modules/unictype/property-default-ignorable-code-point: New file.
88782         * modules/unictype/property-other-default-ignorable-code-point: New
88783         file.
88784         * modules/unictype/property-deprecated: New file.
88785         * modules/unictype/property-logical-order-exception: New file.
88786         * modules/unictype/property-variation-selector: New file.
88787         * modules/unictype/property-private-use: New file.
88788         * modules/unictype/property-unassigned-code-value: New file.
88789         * modules/unictype/property-uppercase: New file.
88790         * modules/unictype/property-other-uppercase: New file.
88791         * modules/unictype/property-lowercase: New file.
88792         * modules/unictype/property-other-lowercase: New file.
88793         * modules/unictype/property-titlecase: New file.
88794         * modules/unictype/property-soft-dotted: New file.
88795         * modules/unictype/property-id-start: New file.
88796         * modules/unictype/property-other-id-start: New file.
88797         * modules/unictype/property-id-continue: New file.
88798         * modules/unictype/property-other-id-continue: New file.
88799         * modules/unictype/property-xid-start: New file.
88800         * modules/unictype/property-xid-continue: New file.
88801         * modules/unictype/property-pattern-white-space: New file.
88802         * modules/unictype/property-pattern-syntax: New file.
88803         * modules/unictype/property-join-control: New file.
88804         * modules/unictype/property-grapheme-base: New file.
88805         * modules/unictype/property-grapheme-extend: New file.
88806         * modules/unictype/property-other-grapheme-extend: New file.
88807         * modules/unictype/property-grapheme-link: New file.
88808         * modules/unictype/property-bidi-control: New file.
88809         * modules/unictype/property-bidi-left-to-right: New file.
88810         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
88811         * modules/unictype/property-bidi-arabic-right-to-left: New file.
88812         * modules/unictype/property-bidi-european-digit: New file.
88813         * modules/unictype/property-bidi-eur-num-separator: New file.
88814         * modules/unictype/property-bidi-eur-num-terminator: New file.
88815         * modules/unictype/property-bidi-arabic-digit: New file.
88816         * modules/unictype/property-bidi-common-separator: New file.
88817         * modules/unictype/property-bidi-block-separator: New file.
88818         * modules/unictype/property-bidi-segment-separator: New file.
88819         * modules/unictype/property-bidi-whitespace: New file.
88820         * modules/unictype/property-bidi-non-spacing-mark: New file.
88821         * modules/unictype/property-bidi-boundary-neutral: New file.
88822         * modules/unictype/property-bidi-pdf: New file.
88823         * modules/unictype/property-bidi-embedding-or-override: New file.
88824         * modules/unictype/property-bidi-other-neutral: New file.
88825         * modules/unictype/property-hex-digit: New file.
88826         * modules/unictype/property-ascii-hex-digit: New file.
88827         * modules/unictype/property-ideographic: New file.
88828         * modules/unictype/property-unified-ideograph: New file.
88829         * modules/unictype/property-radical: New file.
88830         * modules/unictype/property-ids-binary-operator: New file.
88831         * modules/unictype/property-ids-trinary-operator: New file.
88832         * modules/unictype/property-zero-width: New file.
88833         * modules/unictype/property-space: New file.
88834         * modules/unictype/property-non-break: New file.
88835         * modules/unictype/property-iso-control: New file.
88836         * modules/unictype/property-format-control: New file.
88837         * modules/unictype/property-dash: New file.
88838         * modules/unictype/property-hyphen: New file.
88839         * modules/unictype/property-punctuation: New file.
88840         * modules/unictype/property-line-separator: New file.
88841         * modules/unictype/property-paragraph-separator: New file.
88842         * modules/unictype/property-quotation-mark: New file.
88843         * modules/unictype/property-sentence-terminal: New file.
88844         * modules/unictype/property-terminal-punctuation: New file.
88845         * modules/unictype/property-currency-symbol: New file.
88846         * modules/unictype/property-math: New file.
88847         * modules/unictype/property-other-math: New file.
88848         * modules/unictype/property-paired-punctuation: New file.
88849         * modules/unictype/property-left-of-pair: New file.
88850         * modules/unictype/property-combining: New file.
88851         * modules/unictype/property-composite: New file.
88852         * modules/unictype/property-decimal-digit: New file.
88853         * modules/unictype/property-numeric: New file.
88854         * modules/unictype/property-diacritic: New file.
88855         * modules/unictype/property-extender: New file.
88856         * modules/unictype/property-ignorable-control: New file.
88857         * modules/unictype/property-test: New file.
88858         * modules/unictype/property-byname: New file.
88859         * modules/unictype/property-all: New file.
88860         * modules/unictype/scripts: New file.
88861         * modules/unictype/scripts-all: New file.
88862         * modules/unictype/block-of: New file.
88863         * modules/unictype/block-test: New file.
88864         * modules/unictype/block-list: New file.
88865         * modules/unictype/block-all: New file.
88866         * modules/unictype/syntax-c-whitespace: New file.
88867         * modules/unictype/syntax-java-whitespace: New file.
88868         * modules/unictype/syntax-c-ident: New file.
88869         * modules/unictype/syntax-java-ident: New file.
88870         * modules/unictype/ctype-alnum: New file.
88871         * modules/unictype/ctype-alpha: New file.
88872         * modules/unictype/ctype-cntrl: New file.
88873         * modules/unictype/ctype-digit: New file.
88874         * modules/unictype/ctype-graph: New file.
88875         * modules/unictype/ctype-lower: New file.
88876         * modules/unictype/ctype-print: New file.
88877         * modules/unictype/ctype-punct: New file.
88878         * modules/unictype/ctype-space: New file.
88879         * modules/unictype/ctype-upper: New file.
88880         * modules/unictype/ctype-xdigit: New file.
88881         * modules/unictype/ctype-blank: New file.
88882         * lib/unictype/bidi_byname.c: New file.
88883         * lib/unictype/bidi_name.c: New file.
88884         * lib/unictype/bidi_of.c: New file.
88885         * lib/unictype/bidi_test.c: New file.
88886         * lib/unictype/bitmap.h: New file.
88887         * lib/unictype/block_test.c: New file.
88888         * lib/unictype/blocks.c: New file.
88889         * lib/unictype/categ_C.c: New file.
88890         * lib/unictype/categ_Cc.c: New file.
88891         * lib/unictype/categ_Cf.c: New file.
88892         * lib/unictype/categ_Cn.c: New file.
88893         * lib/unictype/categ_Co.c: New file.
88894         * lib/unictype/categ_Cs.c: New file.
88895         * lib/unictype/categ_L.c: New file.
88896         * lib/unictype/categ_Ll.c: New file.
88897         * lib/unictype/categ_Lm.c: New file.
88898         * lib/unictype/categ_Lo.c: New file.
88899         * lib/unictype/categ_Lt.c: New file.
88900         * lib/unictype/categ_Lu.c: New file.
88901         * lib/unictype/categ_M.c: New file.
88902         * lib/unictype/categ_Mc.c: New file.
88903         * lib/unictype/categ_Me.c: New file.
88904         * lib/unictype/categ_Mn.c: New file.
88905         * lib/unictype/categ_N.c: New file.
88906         * lib/unictype/categ_Nd.c: New file.
88907         * lib/unictype/categ_Nl.c: New file.
88908         * lib/unictype/categ_No.c: New file.
88909         * lib/unictype/categ_P.c: New file.
88910         * lib/unictype/categ_Pc.c: New file.
88911         * lib/unictype/categ_Pd.c: New file.
88912         * lib/unictype/categ_Pe.c: New file.
88913         * lib/unictype/categ_Pf.c: New file.
88914         * lib/unictype/categ_Pi.c: New file.
88915         * lib/unictype/categ_Po.c: New file.
88916         * lib/unictype/categ_Ps.c: New file.
88917         * lib/unictype/categ_S.c: New file.
88918         * lib/unictype/categ_Sc.c: New file.
88919         * lib/unictype/categ_Sk.c: New file.
88920         * lib/unictype/categ_Sm.c: New file.
88921         * lib/unictype/categ_So.c: New file.
88922         * lib/unictype/categ_Z.c: New file.
88923         * lib/unictype/categ_Zl.c: New file.
88924         * lib/unictype/categ_Zp.c: New file.
88925         * lib/unictype/categ_Zs.c: New file.
88926         * lib/unictype/categ_and.c: New file.
88927         * lib/unictype/categ_and_not.c: New file.
88928         * lib/unictype/categ_byname.c: New file.
88929         * lib/unictype/categ_name.c: New file.
88930         * lib/unictype/categ_none.c: New file.
88931         * lib/unictype/categ_of.c: New file.
88932         * lib/unictype/categ_or.c: New file.
88933         * lib/unictype/categ_test.c: New file.
88934         * lib/unictype/combining.c: New file.
88935         * lib/unictype/ctype_alnum.c: New file.
88936         * lib/unictype/ctype_alpha.c: New file.
88937         * lib/unictype/ctype_blank.c: New file.
88938         * lib/unictype/ctype_cntrl.c: New file.
88939         * lib/unictype/ctype_digit.c: New file.
88940         * lib/unictype/ctype_graph.c: New file.
88941         * lib/unictype/ctype_lower.c: New file.
88942         * lib/unictype/ctype_print.c: New file.
88943         * lib/unictype/ctype_punct.c: New file.
88944         * lib/unictype/ctype_space.c: New file.
88945         * lib/unictype/ctype_upper.c: New file.
88946         * lib/unictype/ctype_xdigit.c: New file.
88947         * lib/unictype/decdigit.c: New file.
88948         * lib/unictype/digit.c: New file.
88949         * lib/unictype/identsyntaxmap.h: New file.
88950         * lib/unictype/mirror.c: New file.
88951         * lib/unictype/numeric.c: New file.
88952         * lib/unictype/pr_alphabetic.c: New file.
88953         * lib/unictype/pr_ascii_hex_digit.c: New file.
88954         * lib/unictype/pr_bidi_arabic_digit.c: New file.
88955         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
88956         * lib/unictype/pr_bidi_block_separator.c: New file.
88957         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
88958         * lib/unictype/pr_bidi_common_separator.c: New file.
88959         * lib/unictype/pr_bidi_control.c: New file.
88960         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
88961         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
88962         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
88963         * lib/unictype/pr_bidi_european_digit.c: New file.
88964         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
88965         * lib/unictype/pr_bidi_left_to_right.c: New file.
88966         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
88967         * lib/unictype/pr_bidi_other_neutral.c: New file.
88968         * lib/unictype/pr_bidi_pdf.c: New file.
88969         * lib/unictype/pr_bidi_segment_separator.c: New file.
88970         * lib/unictype/pr_bidi_whitespace.c: New file.
88971         * lib/unictype/pr_byname.c: New file.
88972         * lib/unictype/pr_byname.gperf: New file.
88973         * lib/unictype/pr_combining.c: New file.
88974         * lib/unictype/pr_composite.c: New file.
88975         * lib/unictype/pr_currency_symbol.c: New file.
88976         * lib/unictype/pr_dash.c: New file.
88977         * lib/unictype/pr_decimal_digit.c: New file.
88978         * lib/unictype/pr_default_ignorable_code_point.c: New file.
88979         * lib/unictype/pr_deprecated.c: New file.
88980         * lib/unictype/pr_diacritic.c: New file.
88981         * lib/unictype/pr_extender.c: New file.
88982         * lib/unictype/pr_format_control.c: New file.
88983         * lib/unictype/pr_grapheme_base.c: New file.
88984         * lib/unictype/pr_grapheme_extend.c: New file.
88985         * lib/unictype/pr_grapheme_link.c: New file.
88986         * lib/unictype/pr_hex_digit.c: New file.
88987         * lib/unictype/pr_hyphen.c: New file.
88988         * lib/unictype/pr_id_continue.c: New file.
88989         * lib/unictype/pr_id_start.c: New file.
88990         * lib/unictype/pr_ideographic.c: New file.
88991         * lib/unictype/pr_ids_binary_operator.c: New file.
88992         * lib/unictype/pr_ids_trinary_operator.c: New file.
88993         * lib/unictype/pr_ignorable_control.c: New file.
88994         * lib/unictype/pr_iso_control.c: New file.
88995         * lib/unictype/pr_join_control.c: New file.
88996         * lib/unictype/pr_left_of_pair.c: New file.
88997         * lib/unictype/pr_line_separator.c: New file.
88998         * lib/unictype/pr_logical_order_exception.c: New file.
88999         * lib/unictype/pr_lowercase.c: New file.
89000         * lib/unictype/pr_math.c: New file.
89001         * lib/unictype/pr_non_break.c: New file.
89002         * lib/unictype/pr_not_a_character.c: New file.
89003         * lib/unictype/pr_numeric.c: New file.
89004         * lib/unictype/pr_other_alphabetic.c: New file.
89005         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
89006         * lib/unictype/pr_other_grapheme_extend.c: New file.
89007         * lib/unictype/pr_other_id_continue.c: New file.
89008         * lib/unictype/pr_other_id_start.c: New file.
89009         * lib/unictype/pr_other_lowercase.c: New file.
89010         * lib/unictype/pr_other_math.c: New file.
89011         * lib/unictype/pr_other_uppercase.c: New file.
89012         * lib/unictype/pr_paired_punctuation.c: New file.
89013         * lib/unictype/pr_paragraph_separator.c: New file.
89014         * lib/unictype/pr_pattern_syntax.c: New file.
89015         * lib/unictype/pr_pattern_white_space.c: New file.
89016         * lib/unictype/pr_private_use.c: New file.
89017         * lib/unictype/pr_punctuation.c: New file.
89018         * lib/unictype/pr_quotation_mark.c: New file.
89019         * lib/unictype/pr_radical.c: New file.
89020         * lib/unictype/pr_sentence_terminal.c: New file.
89021         * lib/unictype/pr_soft_dotted.c: New file.
89022         * lib/unictype/pr_space.c: New file.
89023         * lib/unictype/pr_terminal_punctuation.c: New file.
89024         * lib/unictype/pr_test.c: New file.
89025         * lib/unictype/pr_titlecase.c: New file.
89026         * lib/unictype/pr_unassigned_code_value.c: New file.
89027         * lib/unictype/pr_unified_ideograph.c: New file.
89028         * lib/unictype/pr_uppercase.c: New file.
89029         * lib/unictype/pr_variation_selector.c: New file.
89030         * lib/unictype/pr_white_space.c: New file.
89031         * lib/unictype/pr_xid_continue.c: New file.
89032         * lib/unictype/pr_xid_start.c: New file.
89033         * lib/unictype/pr_zero_width.c: New file.
89034         * lib/unictype/scripts.c: New file.
89035         * lib/unictype/sy_c_ident.c: New file.
89036         * lib/unictype/sy_c_whitespace.c: New file.
89037         * lib/unictype/sy_java_ident.c: New file.
89038         * lib/unictype/sy_java_whitespace.c: New file.
89040         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
89041         Unicode 5.0.0.
89042         * lib/unictype/blocks.h: Likewise.
89043         * lib/unictype/categ_C.h: Likewise.
89044         * lib/unictype/categ_Cc.h: Likewise.
89045         * lib/unictype/categ_Cf.h: Likewise.
89046         * lib/unictype/categ_Cn.h: Likewise.
89047         * lib/unictype/categ_Co.h: Likewise.
89048         * lib/unictype/categ_Cs.h: Likewise.
89049         * lib/unictype/categ_L.h: Likewise.
89050         * lib/unictype/categ_Ll.h: Likewise.
89051         * lib/unictype/categ_Lm.h: Likewise.
89052         * lib/unictype/categ_Lo.h: Likewise.
89053         * lib/unictype/categ_Lt.h: Likewise.
89054         * lib/unictype/categ_Lu.h: Likewise.
89055         * lib/unictype/categ_M.h: Likewise.
89056         * lib/unictype/categ_Mc.h: Likewise.
89057         * lib/unictype/categ_Me.h: Likewise.
89058         * lib/unictype/categ_Mn.h: Likewise.
89059         * lib/unictype/categ_N.h: Likewise.
89060         * lib/unictype/categ_Nd.h: Likewise.
89061         * lib/unictype/categ_Nl.h: Likewise.
89062         * lib/unictype/categ_No.h: Likewise.
89063         * lib/unictype/categ_P.h: Likewise.
89064         * lib/unictype/categ_Pc.h: Likewise.
89065         * lib/unictype/categ_Pd.h: Likewise.
89066         * lib/unictype/categ_Pe.h: Likewise.
89067         * lib/unictype/categ_Pf.h: Likewise.
89068         * lib/unictype/categ_Pi.h: Likewise.
89069         * lib/unictype/categ_Po.h: Likewise.
89070         * lib/unictype/categ_Ps.h: Likewise.
89071         * lib/unictype/categ_S.h: Likewise.
89072         * lib/unictype/categ_Sc.h: Likewise.
89073         * lib/unictype/categ_Sk.h: Likewise.
89074         * lib/unictype/categ_Sm.h: Likewise.
89075         * lib/unictype/categ_So.h: Likewise.
89076         * lib/unictype/categ_Z.h: Likewise.
89077         * lib/unictype/categ_Zl.h: Likewise.
89078         * lib/unictype/categ_Zp.h: Likewise.
89079         * lib/unictype/categ_Zs.h: Likewise.
89080         * lib/unictype/categ_of.h: Likewise.
89081         * lib/unictype/combining.h: Likewise.
89082         * lib/unictype/ctype_alnum.h: Likewise.
89083         * lib/unictype/ctype_alpha.h: Likewise.
89084         * lib/unictype/ctype_blank.h: Likewise.
89085         * lib/unictype/ctype_cntrl.h: Likewise.
89086         * lib/unictype/ctype_digit.h: Likewise.
89087         * lib/unictype/ctype_graph.h: Likewise.
89088         * lib/unictype/ctype_lower.h: Likewise.
89089         * lib/unictype/ctype_print.h: Likewise.
89090         * lib/unictype/ctype_punct.h: Likewise.
89091         * lib/unictype/ctype_space.h: Likewise.
89092         * lib/unictype/ctype_upper.h: Likewise.
89093         * lib/unictype/ctype_xdigit.h: Likewise.
89094         * lib/unictype/decdigit.h: Likewise.
89095         * lib/unictype/digit.h: Likewise.
89096         * lib/unictype/mirror.h: Likewise.
89097         * lib/unictype/numeric.h: Likewise.
89098         * lib/unictype/pr_alphabetic.h: Likewise.
89099         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
89100         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
89101         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
89102         * lib/unictype/pr_bidi_block_separator.h: Likewise.
89103         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
89104         * lib/unictype/pr_bidi_common_separator.h: Likewise.
89105         * lib/unictype/pr_bidi_control.h: Likewise.
89106         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
89107         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
89108         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
89109         * lib/unictype/pr_bidi_european_digit.h: Likewise.
89110         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
89111         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
89112         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
89113         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
89114         * lib/unictype/pr_bidi_pdf.h: Likewise.
89115         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
89116         * lib/unictype/pr_bidi_whitespace.h: Likewise.
89117         * lib/unictype/pr_combining.h: Likewise.
89118         * lib/unictype/pr_composite.h: Likewise.
89119         * lib/unictype/pr_currency_symbol.h: Likewise.
89120         * lib/unictype/pr_dash.h: Likewise.
89121         * lib/unictype/pr_decimal_digit.h: Likewise.
89122         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
89123         * lib/unictype/pr_deprecated.h: Likewise.
89124         * lib/unictype/pr_diacritic.h: Likewise.
89125         * lib/unictype/pr_extender.h: Likewise.
89126         * lib/unictype/pr_format_control.h: Likewise.
89127         * lib/unictype/pr_grapheme_base.h: Likewise.
89128         * lib/unictype/pr_grapheme_extend.h: Likewise.
89129         * lib/unictype/pr_grapheme_link.h: Likewise.
89130         * lib/unictype/pr_hex_digit.h: Likewise.
89131         * lib/unictype/pr_hyphen.h: Likewise.
89132         * lib/unictype/pr_id_continue.h: Likewise.
89133         * lib/unictype/pr_id_start.h: Likewise.
89134         * lib/unictype/pr_ideographic.h: Likewise.
89135         * lib/unictype/pr_ids_binary_operator.h: Likewise.
89136         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
89137         * lib/unictype/pr_ignorable_control.h: Likewise.
89138         * lib/unictype/pr_iso_control.h: Likewise.
89139         * lib/unictype/pr_join_control.h: Likewise.
89140         * lib/unictype/pr_left_of_pair.h: Likewise.
89141         * lib/unictype/pr_line_separator.h: Likewise.
89142         * lib/unictype/pr_logical_order_exception.h: Likewise.
89143         * lib/unictype/pr_lowercase.h: Likewise.
89144         * lib/unictype/pr_math.h: Likewise.
89145         * lib/unictype/pr_non_break.h: Likewise.
89146         * lib/unictype/pr_not_a_character.h: Likewise.
89147         * lib/unictype/pr_numeric.h: Likewise.
89148         * lib/unictype/pr_other_alphabetic.h: Likewise.
89149         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
89150         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
89151         * lib/unictype/pr_other_id_continue.h: Likewise.
89152         * lib/unictype/pr_other_id_start.h: Likewise.
89153         * lib/unictype/pr_other_lowercase.h: Likewise.
89154         * lib/unictype/pr_other_math.h: Likewise.
89155         * lib/unictype/pr_other_uppercase.h: Likewise.
89156         * lib/unictype/pr_paired_punctuation.h: Likewise.
89157         * lib/unictype/pr_paragraph_separator.h: Likewise.
89158         * lib/unictype/pr_pattern_syntax.h: Likewise.
89159         * lib/unictype/pr_pattern_white_space.h: Likewise.
89160         * lib/unictype/pr_private_use.h: Likewise.
89161         * lib/unictype/pr_punctuation.h: Likewise.
89162         * lib/unictype/pr_quotation_mark.h: Likewise.
89163         * lib/unictype/pr_radical.h: Likewise.
89164         * lib/unictype/pr_sentence_terminal.h: Likewise.
89165         * lib/unictype/pr_soft_dotted.h: Likewise.
89166         * lib/unictype/pr_space.h: Likewise.
89167         * lib/unictype/pr_terminal_punctuation.h: Likewise.
89168         * lib/unictype/pr_titlecase.h: Likewise.
89169         * lib/unictype/pr_unassigned_code_value.h: Likewise.
89170         * lib/unictype/pr_unified_ideograph.h: Likewise.
89171         * lib/unictype/pr_uppercase.h: Likewise.
89172         * lib/unictype/pr_variation_selector.h: Likewise.
89173         * lib/unictype/pr_white_space.h: Likewise.
89174         * lib/unictype/pr_xid_continue.h: Likewise.
89175         * lib/unictype/pr_xid_start.h: Likewise.
89176         * lib/unictype/pr_zero_width.h: Likewise.
89177         * lib/unictype/scripts.h: Likewise.
89178         * lib/unictype/scripts_byname.gperf: Likewise.
89179         * lib/unictype/sy_c_ident.h: Likewise.
89180         * lib/unictype/sy_c_whitespace.h: Likewise.
89181         * lib/unictype/sy_java_ident.h: Likewise.
89182         * lib/unictype/sy_java_whitespace.h: Likewise.
89184         * lib/unictype/Makefile: New file.
89185         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
89186         glibc.
89187         * lib/unictype/3level.h: New file, copied from glibc.
89188         * lib/unictype/3levelbit.h: New file.
89190 2007-11-11  Bruno Haible  <bruno@clisp.org>
89192         * modules/gperf: New file.
89193         * modules/iconv_open (Depends-on): Add it.
89194         (Makefile.am): Remove the GPERF definition.
89196 2007-11-11  Bruno Haible  <bruno@clisp.org>
89198         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
89199         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
89201 2007-11-11  Bruno Haible  <bruno@clisp.org>
89203         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
89204         (usage): Remove function.
89206 2007-11-11  Bruno Haible  <bruno@clisp.org>
89208         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
89209         gl_FUNC_CEILF_LIBS.
89210         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
89211         gl_FUNC_CEIL_LIBS.
89212         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
89213         gl_FUNC_CEILL_LIBS.
89214         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
89215         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
89216         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
89218 2007-11-11  Bruno Haible  <bruno@clisp.org>
89220         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
89221         roundf were declared but do not exist on functions.
89222         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
89223         roundl were declared but do not exist on functions.
89224         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
89225         HAVE_FLOORL_AND_CEILL, respectively.
89226         Needed for Sun C on Solaris 10.
89228 2007-11-11  Bruno Haible  <bruno@clisp.org>
89230         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
89231         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
89232         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
89233         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
89234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
89235         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
89236         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
89237         HAVE_DECL_ROUNDF.
89238         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
89239         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
89240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
89241         of HAVE_DECL_ROUND*.
89242         * modules/math (Makefile.am): Update.
89244 2007-11-10  Bruno Haible  <bruno@clisp.org>
89246         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
89247         ptrdiff_t as m4/intl.m4.
89249 2007-11-10  Jim Meyering  <meyering@redhat.com>
89251         Avoid link failure for the argmatch test.
89252         * tests/test-argmatch.c (usage): Define function to avoid a link
89253         failure: argmatch_die requires a usage function.
89255 2007-11-09  Bruno Haible  <bruno@clisp.org>
89257         * doc/functions/snprintf.texi: Mention BeOS deficiency.
89258         * doc/functions/vsnprintf.texi: Likewise.
89259         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
89260         with a size argument < 2.
89262 2007-11-09  Bruno Haible  <bruno@clisp.org>
89264         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
89265         buffer. Fixes an inefficiency introduced on 2007-11-03.
89267 2007-11-09  Bruno Haible  <bruno@clisp.org>
89269         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
89270         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
89272 2007-11-08  Jim Meyering  <meyering@redhat.com>
89274         Change cache variable name prefix "jm_" to "gl_" everywhere.
89275         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
89276         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
89277         * m4/uptime.m4: s/gl_/jm_/
89279 2007-11-07  Bruno Haible  <bruno@clisp.org>
89281         Update to GNU gettext 0.17.
89282         * m4/intl.m4: Update to GNU gettext 0.17.
89283         * m4/po.m4: Likewise.
89284         * modules/gettext (Files): Remove m4/ulonglong.m4.
89285         (configure.ac): Require gettext infrastructure from version 0.17.
89287 2007-11-06  Bruno Haible  <bruno@clisp.org>
89289         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
89290         symbolic values are not defined in a public header.
89291         * lib/freadable.c (freadable) [QNX]: Likewise.
89292         * lib/freadahead.c (freadahead) [QNX]: Likewise.
89293         * lib/freading.c (freading) [QNX]: Likewise.
89294         * lib/fseterr.c (fseterr) [QNX]: Likewise.
89295         * lib/fwritable.c (fwritable) [QNX]: Likewise.
89296         * lib/fwriting.c (fwriting) [QNX]: Likewise.
89297         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
89298         Reported by Alain Magloire.
89300         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
89302 2007-11-05  Bruno Haible  <bruno@clisp.org>
89304         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
89305         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
89306         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
89307         Reported by Eric Blake.
89309 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89310             Bruno Haible  <bruno@clisp.org>
89312         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
89313         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
89314         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
89315         (malloc): Undefine also before including <stdlib.h>.
89316         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
89317         Needed on OSF/1 4.0.
89319 2007-11-05  Jim Meyering  <meyering@redhat.com>
89321         git-version-gen: sync from coreutils.
89322         * build-aux/git-version-gen: Add comments.
89323         Change the first '-' to '.' in the snapshot version string,
89324         e.g., 6.9-377-08144 -> 6.9.377-08144
89325         Remove first parameter.
89326         Don't declare a version "-dirty" merely because a time
89327         stamp has changed.
89329 2007-11-04  Bruno Haible  <bruno@clisp.org>
89331         * lib/lock.h: Protect all macro definitions containing an 'if'
89332         statement through a "do { ... } while (0)".
89333         * lib/tls.h: Likewise.
89335 2007-11-04  Bruno Haible  <bruno@clisp.org>
89337         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
89339 2007-11-04  Bruno Haible  <bruno@clisp.org>
89341         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
89342         * modules/fprintf-posix (Depends-on): Add nocrash.
89343         * modules/snprintf-posix (Depends-on): Likewise.
89344         * modules/sprintf-posix (Depends-on): Likewise.
89345         * modules/vasnprintf-posix (Depends-on): Likewise.
89346         * modules/vasprintf-posix (Depends-on): Likewise.
89347         * modules/vfprintf-posix (Depends-on): Likewise.
89348         * modules/vsnprintf-posix (Depends-on): Likewise.
89349         * modules/vsprintf-posix (Depends-on): Likewise.
89350         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
89351         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
89352         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
89353         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
89354         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
89355         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
89356         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
89358 2007-11-04  Bruno Haible  <bruno@clisp.org>
89360         * modules/nocrash: New file.
89361         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
89362         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
89364 2007-11-04  Bruno Haible  <bruno@clisp.org>
89366         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
89367         precision handling.
89368         * tests/test-vasprintf-posix.c (test_function): Likewise.
89369         * tests/test-snprintf-posix.h (test_function): Likewise.
89370         * tests/test-sprintf-posix.h (test_function): Likewise.
89372         Fix *printf behaviour for large precisions on mingw and BeOS.
89373         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
89374         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
89375         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
89376         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
89377         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89378         gl_PRINTF_PRECISION and test its result. Invoke
89379         gl_PREREQ_VASNPRINTF_PRECISION.
89380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89381         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89382         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89383         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89384         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89385         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89386         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89387         * doc/functions/fprintf.texi: Update.
89388         * doc/functions/printf.texi: Update.
89389         * doc/functions/snprintf.texi: Update.
89390         * doc/functions/sprintf.texi: Update.
89391         * doc/functions/vfprintf.texi: Update.
89392         * doc/functions/vprintf.texi: Update.
89393         * doc/functions/vsnprintf.texi: Update.
89394         * doc/functions/vsprintf.texi: Update.
89396 2007-11-04  Bruno Haible  <bruno@clisp.org>
89398         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
89400 2007-11-04  Bruno Haible  <bruno@clisp.org>
89402         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
89403         Reported by Sylvain Beucler <beuc@gnu.org>.
89405 2007-11-03  Bruno Haible  <bruno@clisp.org>
89407         * tests/test-fprintf-posix2.sh: New file.
89408         * tests/test-fprintf-posix2.c: New file.
89409         * modules/fprintf-posix-tests (Files): Add them.
89410         (TESTS): Add test-fprintf-posix2.sh.
89411         (configure.ac): Check for getrlimit and setrlimit.
89412         (check_PROGRAMS): Add test-fprintf-posix2.
89414         * tests/test-printf-posix2.sh: New file.
89415         * tests/test-printf-posix2.c: New file.
89416         * modules/printf-posix-tests (Files): Add them.
89417         (TESTS): Add test-printf-posix2.sh.
89418         (configure.ac): Check for getrlimit and setrlimit.
89419         (check_PROGRAMS): Add test-printf-posix2.
89421         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
89422         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
89423         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
89424         (decode_double): New function, copied from decode_long_double.
89425         (scale10_round_decimal_decoded): New function, extracted from
89426         scale10_round_decimal_long_double.
89427         (scale10_round_decimal_long_double): Use it.
89428         (scale10_round_decimal_double): New function.
89429         (floorlog10): New function.
89430         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
89431         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
89432         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
89433         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89434         gl_PRINTF_ENOMEM and test its result. Invoke
89435         gl_PREREQ_VASNPRINTF_ENOMEM.
89436         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
89437         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89438         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89439         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89440         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89442         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89443         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
89444         * modules/snprintf-posix (Depends-on): Likewise.
89445         * modules/sprintf-posix (Depends-on): Likewise.
89446         * modules/vasnprintf-posix (Depends-on): Likewise.
89447         * modules/vasprintf-posix (Depends-on): Likewise.
89448         * modules/vfprintf-posix (Depends-on): Likewise.
89449         * modules/vsnprintf-posix (Depends-on): Likewise.
89450         * modules/vsprintf-posix (Depends-on): Likewise.
89451         * doc/functions/fprintf.texi: Update.
89452         * doc/functions/printf.texi: Update.
89453         * doc/functions/snprintf.texi: Update.
89454         * doc/functions/sprintf.texi: Update.
89455         * doc/functions/vfprintf.texi: Update.
89456         * doc/functions/vprintf.texi: Update.
89457         * doc/functions/vsnprintf.texi: Update.
89458         * doc/functions/vsprintf.texi: Update.
89460 2007-11-03  Bruno Haible  <bruno@clisp.org>
89462         * modules/frexp-nolibm-tests: New file.
89464         * modules/frexp-nolibm: New file.
89465         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
89467 2007-11-03  Bruno Haible  <bruno@clisp.org>
89469         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
89470         value is C99 compliant.
89471         Needed for OSF/1 5.1.
89473 2007-11-03  Bruno Haible  <bruno@clisp.org>
89475         Fix out-of-memory handling of vasnprintf.
89476         * lib/printf-parse.c: Include <errno.h>.
89477         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
89478         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
89479         is already set.
89481 2007-11-02  Eric Blake  <ebb9@byu.net>
89483         Fix tests on cygwin.
89484         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
89486 2007-11-01  Bruno Haible  <bruno@clisp.org>
89488         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
89489         warning.
89490         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
89491         needed for POSIX compatibility.
89493 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
89495         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
89496         for compatibility with GNU.
89498 2007-11-01  Bruno Haible  <bruno@clisp.org>
89500         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
89501         (putenv): Renamed from rpl_putenv. Change argument type from
89502         'const char *' to 'char *'.
89503         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
89504         of defining putenv in config.h, just set REPLACE_PUTENV.
89505         * modules/putenv (Depends-on): Add stdlib.
89506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
89507         (Include): Use <stdlib.h>.
89508         * lib/stdlib.in.h (putenv): New declaration.
89509         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
89510         REPLACE_PUTENV.
89511         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
89512         REPLACE_PUTENV.
89513         Needed for MacOS X 10.5.0.
89514         Reported by Peter O'Gorman <peter@pogma.com>.
89516 2007-11-01  Jim Meyering  <meyering@redhat.com>
89518         Treat an empty date string exactly like "0".
89519         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
89520         if the remaining date string (to be parsed) is empty, use "0".
89521         Reported by Mischa Molhoek and discussed in this thread:
89522         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
89524 2007-10-31  Bruno Haible  <bruno@clisp.org>
89526         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
89527         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
89528         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
89529         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
89530         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
89531         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
89533 2007-10-31  Bruno Haible  <bruno@clisp.org>
89535         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
89536         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
89537         (AC_TYPE_LONG_LONG_INT): Use it.
89538         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
89539         it as well.
89540         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
89541         to m4/longlong.m4.
89542         * modules/stdint (Files): Remove m4/ulonglong.m4.
89543         * modules/strtoull (Files): Use m4/longlong.m4 instead of
89544         m4/ulonglong.m4.
89545         * modules/strtoumax (Files): Likewise.
89547 2007-10-30  Bruno Haible  <bruno@clisp.org>
89549         * modules/xvasprintf-posix: New file.
89550         Suggested by Eric Blake.
89552 2007-10-30  Bruno Haible  <bruno@clisp.org>
89554         * modules/xprintf-posix-tests: New file.
89555         * tests/test-xprintf-posix.sh: New file.
89556         * tests/test-xprintf-posix.c: New file.
89557         * tests/test-xfprintf-posix.c: New file.
89559         * modules/xprintf-posix: New file.
89561 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89563         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
89564         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
89565         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
89567 2007-10-29  Bruno Haible  <bruno@clisp.org>
89569         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
89570         contain the special marker '_cv_'.
89571         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
89572         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
89573         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
89574         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
89575         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
89576         Reported by Ralf Wildenhues.
89578 2007-10-29  Bruno Haible  <bruno@clisp.org>
89580         * gnulib-tool (func_import): When --lgpl is not specified, set
89581         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
89582         GPLv3.
89583         Reported by Simon Josefsson.
89585 2007-10-28  Bruno Haible  <bruno@clisp.org>
89587         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
89588         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
89589         HAVE_DECL_ISFINITE.
89590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
89591         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
89592         HAVE_DECL_ISFINITE.
89594 2007-10-28  Bruno Haible  <bruno@clisp.org>
89596         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
89597         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
89599 2007-10-28  Bruno Haible  <bruno@clisp.org>
89601         Fix link errors with Sun C 5.0 on Solaris 10.
89602         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
89603         function is declared but not present in the compiler's libm.
89604         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
89605         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
89606         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
89607         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
89608         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
89609         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
89610         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
89611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
89612         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
89613         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
89614         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
89615         HAVE_DECL_FLOORL.
89617 2007-10-28  Bruno Haible  <bruno@clisp.org>
89619         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
89620         gl_FUNC_FLOORL. Cache the result.
89621         (gl_FUNC_FLOORL): Use it.
89622         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
89623         gl_FUNC_CEILL. Cache the result.
89624         (gl_FUNC_CEILL): Use it.
89626         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
89627         gl_FUNC_FLOOR. Cache the result.
89628         (gl_FUNC_FLOOR): Use it.
89629         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
89630         gl_FUNC_CEIL. Cache the result.
89631         (gl_FUNC_CEIL): Use it.
89633         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
89634         gl_FUNC_FLOORF. Cache the result.
89635         (gl_FUNC_FLOORF): Use it.
89636         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
89637         gl_FUNC_CEILF. Cache the result.
89638         (gl_FUNC_CEILF): Use it.
89640 2007-10-28  Bruno Haible  <bruno@clisp.org>
89642         * gnulib-tool: Allow specifying the LGPL version number through
89643         --lgpl=2 or --lgpl=3.
89644         (func_usage): Document --lgpl with argument.
89645         Handle --lgpl=... arguments.
89646         (func_import): Recognize also gl_LGPL calls with an argument. When
89647         --lgpl=2 is used and the module's license is just LGPL, report an
89648         error. Set sed_transform_lib_file according to the lgpl variable. In
89649         the generated files, use --lgpl or gl_LGPL invocations with argument,
89650         if necessary.
89651         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
89652         an LGPv2+ license.
89653         * doc/gnulib-tool.texi (Modified imports): Update explanation of
89654         gl_LGPL macro.
89656 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89657             Bruno Haible  <bruno@clisp.org>
89659         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
89660         (u16_uctomb_aux): Likewise.
89661         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
89662         !HAVE_INLINE.
89663         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
89665 2007-10-28  Bruno Haible  <bruno@clisp.org>
89667         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
89668         Invoke AM_GETTEXT_OPTION if it exists.
89669         * modules/vasprintf: Likewise.
89670         * modules/verror: Likewise.
89671         * modules/xprintf: Likewise.
89672         * modules/xvasprintf: Likewise.
89674 2007-10-27  Ben Pfaff  <blp@gnu.org>
89676         * lib/math.in.h: Define isfinite macro and prototypes for
89677         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
89678         implementations.
89679         * m4/math_h.m4: New substitutions for isfinite module.
89680         * lib/isfinite.c: New file.
89681         * m4/isfinite.m4: New file.
89682         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
89683         * modules/isfinite: New file.
89684         * modules/isfinite-tests: New file.
89685         * tests/tests-isfinite.c: New file.
89686         * doc/functions/isfinite.texi: Mention isfinite module.
89687         * MODULES.html.sh: Mention new module.
89689 2007-10-27  Ben Pfaff  <blp@gnu.org>
89691         Ralf Wildenhues reported that Tru64 4.0D declares the round
89692         functions but does not have definitions.
89693         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
89694         cannot be found in any library, set the output variable to
89695         "missing" instead of "".
89696         * m4/round.m4: Also use our substitute if we cannot find round in
89697         any library, even if it is declared.
89698         * m4/roundf.m4: Likewise for roundf.
89699         * m4/roundl.m4: Likewise for roundl.
89700         * lib/math.in.h: Undefine roundf, round, roundl before defining
89701         their replacements, to allow for hypothetical systems where these
89702         may be defined as macros but not available in libraries.
89704 2007-10-27  Bruno Haible  <bruno@clisp.org>
89706         * doc/gnulib.texi: Invoke @firstparagraphindent.
89707         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
89708         changes in gnulib.
89709         (Source changes): New section.
89711 2007-10-26  Bruno Haible  <bruno@clisp.org>
89713         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
89714         borrowed from autoconf.
89716 2007-10-26  Bruno Haible  <bruno@clisp.org>
89718         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
89719         strerror returned the empty string. Needed on HP-UX 11.00.
89721 2007-10-24  Micah Cowan  <micah@cowan.name>
89723         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
89724         * build-aux/bootstrap: Remove support for now-unnecessary option,
89725         --cvs-user, and envvars CVS_USER, CVS_RSH.
89727 2007-10-24  Jim Meyering  <meyering@redhat.com>
89729         Avoid diagnostics from sha1sum when there is no cached checksum.
89730         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
89731         if the po.s1 file hasn't been created yet.
89733         * build-aux/bootstrap: Sync from coreutils:
89734         2007-10-24  Jim Meyering  <meyering@redhat.com>
89735         Get gnulib from the git repository, not from an obsolete cvs one.
89736         * build-aux/bootstrap: Suggestion from Micah Cowan.
89737         2007-10-04  Jim Meyering  <jim@meyering.net>
89738         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
89739         (update_po_files): Work also when there are no .po files in po/.
89741 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
89743         * README: Append ".git" to git and cg examples.
89744         Problem reported by Benoit Sigoure.
89746 2007-10-23  Micah Cowan  <micah@cowan.name>
89748         * users.txt: Add wget.
89750 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89752         Fix linking of some unistdio tests on FreeBSD.
89753         * modules/unistdio/u16-vsnprintf-tests
89754         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
89755         * modules/unistdio/u16-vsprintf-tests
89756         (test_u16_vsnprintf1_LDADD): Likewise.
89757         * modules/unistdio/u32-vsnprintf-tests
89758         (test_u32_vsnprintf1_LDADD): Likewise.
89759         * modules/unistdio/u32-vsprintf-tests
89760         (test_u32_vsprintf1_LDADD): Likewise.
89761         * modules/unistdio/u8-vsnprintf-tests
89762         (test_u8_vsnprintf1_LDADD): Likewise.
89763         * modules/unistdio/u8-vsprintf-tests
89764         (test_u8_vsprintf1_LDADD): Likewise.
89765         * modules/unistdio/ulc-vsnprintf-tests
89766         (test_ulc_vsnprintf1_LDADD): Likewise.
89767         * modules/unistdio/ulc-vsprintf-tests
89768         (test_ulc_vsprintf1_LDADD): Likewise.
89770         Fix linking of some uniconv tests on FreeBSD.
89771         * modules/uniconv/u16-conv-from-enc-tests
89772         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
89773         * modules/uniconv/u16-conv-to-enc-tests
89774         (test_u16_conv_to_enc_LDADD): Likewise.
89775         * modules/uniconv/u16-strconv-from-enc-tests
89776         (test_u16_strconv_from_enc_LDADD): Likewise.
89777         * modules/uniconv/u16-strconv-to-enc-tests
89778         (test_u16_strconv_to_enc_LDADD): Likewise.
89779         * modules/uniconv/u32-conv-from-enc-tests
89780         (test_u32_conv_from_enc_LDADD): Likewise.
89781         * modules/uniconv/u32-conv-to-enc-tests
89782         (test_u32_conv_to_enc_LDADD): Likewise.
89783         * modules/uniconv/u32-strconv-from-enc-tests
89784         (test_u32_strconv_from_enc_LDADD): Likewise.
89785         * modules/uniconv/u32-strconv-to-enc-tests
89786         (test_u32_strconv_to_enc_LDADD): Likewise.
89787         * modules/uniconv/u8-conv-from-enc-tests
89788         (test_u8_conv_from_enc_LDADD): Likewise.
89789         * modules/uniconv/u8-conv-to-enc-tests
89790         (test_u8_conv_to_enc_LDADD): Likewise.
89791         * modules/uniconv/u8-strconv-from-enc-tests
89792         (test_u8_strconv_from_enc_LDADD): Likewise.
89793         * modules/uniconv/u8-strconv-to-enc-tests
89794         (test_u8_strconv_to_enc_LDADD): Likewise.
89796 2007-10-22  Bruno Haible  <bruno@clisp.org>
89798         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
89799         size.
89801 2007-10-22  Eric Blake  <ebb9@byu.net>
89803         Tweak x*printf documentation.
89804         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
89805         variable name and comments.
89806         Suggested by Bruno Haible.
89808 2007-10-22  Bruno Haible  <bruno@clisp.org>
89810         * lib/acl.c (copy_acl): Fix file name in comment.
89812 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89814         Fix Tru64 problem with stdbool.h.
89815         * lib/stdbool.in.h (false, true):
89816         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
89817         Don't declare as an enum in this situation; it runs afoul of Tru64.
89818         Problem reported by Steven M. Schweda in
89819         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
89821 2007-10-22  Eric Blake  <ebb9@byu.net>
89823         Also wrap vf?printf.
89824         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
89825         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
89826         (xvprintf, xvfprintf): New functions.
89828 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89830         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
89831         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
89833         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
89834         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
89836 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
89838         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
89839         by Bruno Haible.
89841 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89843         * lib/getloadavg.c
89844         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
89845         Undef `sys' after including sys/table.h, for Tru64 4.0D.
89847         * tests/test-i-ring.c: Work for C89.
89849 2007-10-22  Bruno Haible  <bruno@clisp.org>
89851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
89852         -1u, in preprocessor expression, so that we don't test for the bug
89853         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
89854         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
89856 2007-10-22  Eric Blake  <ebb9@byu.net>
89858         * tests/test-yesno.sh: Silence stderr during test.
89860 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89862         * modules/crypto/gc-camellia: New file.
89864         * m4/gc-camellia.m4: New file.
89866         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
89868         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
89870 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89872         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
89873         --help to stdout.  Reported by sms@antinode.org (Steven
89874         M. Schweda).
89876 2007-10-22  Simon Josefsson  <simon@josefsson.org>
89878         * users.txt: Fix link to libksba.
89880 2007-10-21  Ben Pfaff  <blp@gnu.org>
89882         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
89883         round.c roundf implementation that depends on floorf and ceilf to
89884         be tested unconditionally.
89886 2007-10-21  Ben Pfaff  <blp@gnu.org>
89888         * m4/check-libm-func.m4: Removed.
89889         * m4/check-math-lib.m4: New file.
89890         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
89891         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
89892         definition and lack of AC_LIBOBJ([roundf]).
89893         * m4/roundl.m4: Ditto, and similarly for roundl.
89894         * modules/round: Reference new m4 file.
89895         * modules/roundf: Ditto.
89896         * modules/roundl: Ditto.
89897         * tests/test-round2.c (main): Use ROUND instead of round.
89898         Bug report from Bruno Haible.
89900 2007-10-21  Bruno Haible  <bruno@clisp.org>
89902         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
89903         context.
89905 2007-10-21  Bruno Haible  <bruno@clisp.org>
89907         * tests/test-wcwidth.c (main): Allow negative result for some control
89908         characters.
89910         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
89911         Needed on OSF/1 5.1.
89913 2007-10-21  Bruno Haible  <bruno@clisp.org>
89915         * tests/test-floorf1.c: Include isnanf.h.
89916         (main): Use isnanf() instead of isnan().
89917         * tests/test-ceilf1.c: Include isnanf.h.
89918         (main): Use isnanf() instead of isnan().
89919         * tests/test-truncf1.c: Include isnanf.h.
89920         (main): Use isnanf() instead of isnan().
89921         * tests/test-roundf1.c: Include isnanf.h.
89922         (main): Use isnanf() instead of isnan().
89924 2007-10-21  Eric Blake  <ebb9@byu.net>
89926         * users.txt: Update URL for m4.
89928 2007-10-21  Bruno Haible  <bruno@clisp.org>
89930         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
89932 2007-10-21  Bruno Haible  <bruno@clisp.org>
89934         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
89935         Git's management files if the CVS files are not present.
89937 2007-10-20  Bruno Haible  <bruno@clisp.org>
89939         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
89940         gcc-3.4.x.
89942 2007-10-20  Ben Pfaff  <blp@gnu.org>
89944         * lib/math.in.h: Declare round, roundf, roundl if we are providing
89945         implementations.
89946         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
89947         * lib/round.c: New file.
89948         * lib/roundf.c: New file.
89949         * lib/roundl.c: New file.
89950         * m4/round.m4: New file.
89951         * m4/roundf.m4: New file.
89952         * m4/roundl.m4: New file.
89953         * m4/check-libm-func-m4: New file.
89954         * modules/math: Replace round, roundf, roundl related @VARS@ in
89955         math.in.h.
89956         * modules/round: New file.
89957         * modules/round-tests: New file.
89958         * modules/roundf: New file.
89959         * modules/roundf-tests: New file.
89960         * modules/roundl: New file.
89961         * modules/roundl-tests: New file.
89962         * tests/test-round1.c: New file.
89963         * tests/test-round2.c: New file.
89964         * tests/test-roundf1.c: New file.
89965         * tests/test-roundf2.c: New file.
89966         * tests/test-roundl.c: New file.
89967         * doc/functions/round.texi: Mention round module.
89968         * doc/functions/roundf.texi: Mention roundf module.
89969         * doc/functions/roundl.texi: Mention roundl module.
89970         * MODULES.html.sh: Mention new modules.
89971         Thanks to Bruno Haible for suggestions.
89973 2007-10-20  Jim Meyering  <meyering@redhat.com>
89975         * lib/xprintf.c: Include <config.h> unconditionally.
89977         Change xprintf's license to GPL.
89978         * modules/xprintf (License): s/LGPL/GPL/, since this module
89979         depends on modules (exit and exitfail) which are GPL.
89980         Suggestion from Bruno Haible.
89982         xprintf fixes.
89983         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
89984         Use a clearer diagnostic.
89985         Patch from Bruno Haible.
89987 2007-10-20  Bruno Haible  <bruno@clisp.org>
89989         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
89990         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
89991         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89993 2007-10-20  Bruno Haible  <bruno@clisp.org>
89995         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
89996         precision in the comparison result > x - 1 or similar.
89997         * tests/test-ceilf2.c (correct_result_p): Likewise.
89998         * tests/test-truncf2.c (correct_result_p): Likewise.
89999         * tests/test-trunc2.c (correct_result_p): Likewise.
90000         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
90002 2007-10-20  Bruno Haible  <bruno@clisp.org>
90004         * modules/ceil: New file.
90005         * m4/ceil.m4: New file.
90006         * doc/functions/ceil.texi: Mention the 'ceil' module.
90008 2007-10-20  Bruno Haible  <bruno@clisp.org>
90010         * modules/floor: New file.
90011         * m4/floor.m4: New file.
90012         * doc/functions/floor.texi: Mention the 'floor' module.
90014 2007-10-20  Bruno Haible  <bruno@clisp.org>
90016         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
90017         of %a.
90018         * modules/floorf-tests (Depends-on): Likewise.
90019         * modules/truncf-tests (Depends-on): Likewise.
90020         * modules/trunc-tests (Depends-on): Likewise.
90021         Reported by Ben Pfaff.
90023 2007-10-19  Jim Meyering  <meyering@redhat.com>
90025         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
90026         Don't bother testing specific errno values.  Just test ferror.
90028         New module: xprintf
90029         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
90031 2007-10-19  Bruno Haible  <bruno@clisp.org>
90033         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
90034         syntax.
90035         * modules/javaexec (Makefile.am): Likewise.
90036         * modules/relocatable-prog (Makefile.am): Likewise.
90037         Suggested by Jim Meyering.
90039 2007-10-18  Bruno Haible  <bruno@clisp.org>
90041         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
90042         Reported by Jim Meyering.
90044 2007-10-18  Eric Blake  <ebb9@byu.net>
90046         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
90048 2007-10-18  Bruno Haible  <bruno@clisp.org>
90050         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
90051         the format string into writable memory. Needed in Fortify conditions.
90053 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
90054             Bruno Haible  <bruno@clisp.org>
90056         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
90057         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
90058         * modules/trim (Depends-on): Add mbchar.
90059         (configure.ac): Add gl_FUNC_MBRTOWC.
90060         (Makefile.am): Augment lib_SOURCES.
90062 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
90064         Modify glob.c to use fstatat and dirfd, to simplify it.
90065         Suggested by Eric Blake.
90066         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
90067         Don't include <stdbool.h>; not used.
90068         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
90069         (link_exists_p): Simplify implementation, since we can now assume
90070         dirfd and fstatat.
90071         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
90073 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90075         * gnulib-tool (func_get_dependencies): Fix sed script to
90076         match only tests.
90078 2007-10-17  Bruno Haible  <bruno@clisp.org>
90080         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
90081         allow locale names without encoding suffix.
90082         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
90083         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
90085 2007-10-16  Bruno Haible  <bruno@clisp.org>
90087         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
90088         * lib/getgroups.c (getgroups): Likewise.
90089         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
90091 2007-10-16  Bruno Haible  <bruno@clisp.org>
90093         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
90094         * modules/malloc-posix (License): Likewise.
90095         * modules/realloc-posix (License): Likewise.
90096         * modules/calloc-posix (License): Likewise.
90097         * modules/intprops (License): Change from GPL to LGPL, with
90098         Paul Eggert's approval.
90100 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90102         Merge glibc changes into lib/glob.c.
90104         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
90105         2007-10-15 04:59:03 UTC.  Here are the changes:
90107         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
90109         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
90111         * lib/glob.c: Add some branch prediction throughout.
90113         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
90115         [BZ #5103]
90116         * lib/glob.c (glob): Recognize patterns starting \/.
90118         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
90120         [BZ #3996]
90121         * lib/glob.c (attribute_hidden): Define if not defined.
90122         (glob): Unescape dirname, filename or username when needed and not
90123         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
90124         is NULL.  Handle unescaped [ in pattern without closing ].
90125         Don't pass GLOB_CHECK down to recursive glob for directories.
90126         (__glob_pattern_type): New function.
90127         (__glob_pattern_p): Implement using __glob_pattern_type.
90128         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
90129         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
90130         Remove unreachable code.
90132         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
90134         * lib/glob.c (glob_in_dir): Add some comments and asserts to
90135         explain why there are no leaks.
90137         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
90139         [BZ #3253]
90140         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
90141         time, rather allocate increasingly bigger arrays of pointers, if
90142         possible with alloca, if too large with malloc.
90144 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90146         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
90147         Problem reported by H.Merijn Brand in
90148         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
90149         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
90150         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
90152 2007-10-15  Bruno Haible  <bruno@clisp.org>
90154         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
90155         with explicit rpl_ prefix.
90156         * lib/fopen.c (fopen): Likewise.
90157         * lib/freopen.c (freopen): Likewise.
90158         * lib/iconv.c (iconv): Likewise.
90159         * lib/iconv_close.c (iconv_close): Likewise.
90161 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
90163         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
90165 2007-10-15  Bruno Haible  <bruno@clisp.org>
90167         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
90168         <stddef.h> instead of <stdlib.h> since we only need NULL.
90169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
90171 2007-10-15  Bruno Haible  <bruno@clisp.org>
90173         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
90174         Replace paragraph talking about LIBOBJS.
90175         Reported by Colin Watson <cjwatson@debian.org>.
90177 2007-10-15  Bruno Haible  <bruno@clisp.org>
90179         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
90180         <stdlib.h> before using NULL.
90182 2007-10-15  Simon Josefsson  <simon@josefsson.org>
90184         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
90185         Reported by Albert Chin <china@thewrittenword.com>.
90187 2007-10-14  Bruno Haible  <bruno@clisp.org>
90189         * modules/iconv_open-utf-tests: New file.
90190         * tests/test-iconv-utf.c: New file.
90192         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
90193         * modules/iconv_open-utf: New file.
90194         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
90195         (iconv, iconv_close): New declarations.
90196         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
90197         be defined.
90198         (iconv_open): Add special handling of conversion between UTF-8 and
90199         UTF-{16,32}{BE,LE}.
90200         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
90201         * lib/iconv_close.c: New file.
90202         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
90203         gl_FUNC_ICONV_OPEN.
90204         (gl_FUNC_ICONV_OPEN): Use it.
90205         (gl_FUNC_ICONV_OPEN_UTF): New macro.
90206         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
90207         and REPLACE_ICONV_UTF.
90208         * modules/iconv_open (Depends-on): Add c-strcase.
90209         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
90210         ICONV_CONST.
90211         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
90213 2007-10-13  Albert Chin  <china@thewrittenword.com>
90214             Bruno Haible  <bruno@clisp.org>
90216         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
90217         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
90219 2007-10-13  Bruno Haible  <bruno@clisp.org>
90221         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
90222         defined, use the ISO C99 inline semantics.
90223         * lib/argp.h (ARGP_EI): Likewise.
90225 2007-10-13  Bruno Haible  <bruno@clisp.org>
90227         Handle 'inline' change in gcc 4.3.0.
90228         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
90229         argp_fmtstream_write, argp_fmtstream_set_lmargin,
90230         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
90231         argp_fmtstream_point): Disable 'extern' declaration if the function
90232         definition is going to be provided inline.
90233         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
90234         semantics, not the ISO C99 inline semantics.
90235         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
90236         'extern' declaration if the function definition is going to be provided
90237         inline.
90238         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
90239         the GNU C inline semantics, not the ISO C99 inline semantics. With
90240         GCC 4.2, avoid a warning.
90242 2007-10-13  Bruno Haible  <bruno@clisp.org>
90244         * lib/freading.h (freading): Enable the use of __freading for
90245         glibc >= 2.7.
90246         * lib/freading.c (freading): Likewise.
90248 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
90250         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
90251         "warning: C99 inline functions are not supported; using GNU89".
90253 2007-10-12  Bruno Haible  <bruno@clisp.org>
90255         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
90256         of 2.
90257         * tests/test-ceilf2.c: New file.
90258         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
90260         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
90261         * modules/ceilf-tests: Update.
90263 2007-10-12  Bruno Haible  <bruno@clisp.org>
90265         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
90266         of 2.
90267         * tests/test-floorf2.c: New file.
90268         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
90270         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
90271         * modules/floorf-tests: Update.
90273 2007-10-12  Bruno Haible  <bruno@clisp.org>
90275         * tests/test-trunc2.c: New file.
90276         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
90278         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
90279         * modules/trunc-tests: Update.
90281 2007-10-12  Bruno Haible  <bruno@clisp.org>
90283         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
90284         of 2.
90285         * tests/test-truncf2.c: New file.
90286         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
90288         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
90289         * modules/truncf-tests: Update.
90291 2007-10-11  Eric Blake  <ebb9@byu.net>
90293         Don't claim strerror is broken on Interix.
90294         * doc/functions/strerror.texi (strerror): Known broken systems are
90295         now Solaris 8, and not Interix.
90296         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
90297         Interix on cross-compile.
90298         Reported by Martin Koeppe in
90299         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
90301 2007-10-11  Bruno Haible  <bruno@clisp.org>
90303         * modules/i-ring-tests: New file.
90304         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
90305         instead of assert.
90307 2007-10-11  Bruno Haible  <bruno@clisp.org>
90309         * modules/filenamecat-tests: New file.
90310         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
90311         * lib/filenamecat.c: Remove test code.
90313 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
90315         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
90317         * lib/strerror.c: Include <string.h> always, to test interface,
90318         and to remove the need for the dummy.
90319         Include intprops.h to compute width instead of doing it ourselves
90320         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
90321         (strerror): Define it to return NULL if there's no system strerror.
90322         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
90323         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
90324         ancient pre-strerror Unix systems well any more.  Saying "unknown
90325         system error" is enough.
90326         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
90327         simpler strerror.c implementation.
90328         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
90329         Simplify the tests to reflect the simpler strerror implementation.
90330         * modules/strerror (Depends-on): Add intprops.
90332 2007-10-09  Eric Blake  <ebb9@byu.net>
90334         Silence test-fpending.
90335         * modules/fpending-tests (Files): Add wrapper script.
90336         * tests/test-fpending.sh: New file.
90338 2007-10-09  Bruno Haible  <bruno@clisp.org>
90340         * MODULES.html.sh (func_module): Don't create a hyperlink for
90341         function names like 'printf_frexp'.
90342         (Misc): Add crc, memxor.
90343         (Characteristics of floating types): New section.
90344         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
90345         isnanf-nolibm, signbit, trunc, truncf, truncl.
90346         (Enhancements for ISO C 99 functions): New subsection Input/output.
90347         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
90348         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
90349         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
90350         (Compatibility checks for POSIX:2001 functions): Add clock-time.
90351         (Enhancements for POSIX:2001 functions): Add chdir-long.
90352         (File system functions): Add areadlink, chdir-safer, read-file.
90353         Remove cycle-check.
90354         (File system as inode set): New section.
90355         (Date and time): Add gethrxtime.
90356         (Multithreading): Add openmp.
90357         (Internationalization functions): Add localename.
90358         (Unicode string functions): Add unistr/u*-mbsnlen.
90359         (Support for maintaining and releasing projects): Add git-version-gen.
90360         (Lone files): Remove directories.
90362 2007-10-08  Ben Pfaff  <blp@gnu.org>
90364         * lib/xmalloca.h: Fix typo in comment.
90366 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
90368         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
90369         when avoiding problems with integer overflow.  Use a portable test
90370         instead.
90372 2007-10-08  Simon Josefsson  <simon@josefsson.org>
90374         * modules/dummy (License): Change to LGPLv2+.
90375         * modules/float (License): Likewise
90376         * modules/realloc (License): Likewise
90377         * modules/stdlib (License): Likewise
90379 2007-10-07  Bruno Haible  <bruno@clisp.org>
90381         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
90382         * floor.c (TWO_MANT_DIG): Likewise.
90383         * ceil.c (TWO_MANT_DIG): Likewise.
90384         Reported by Ben Pfaff.
90386 2007-10-07  Bruno Haible  <bruno@clisp.org>
90388         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
90389         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
90390         * lib/frexp.c (FUNC): Likewise.
90391         * lib/printf-frexp.h (printf_frexp): Likewise.
90392         * lib/printf-frexpl.h (printf_frexpl): Likewise.
90393         * lib/printf-frexp.c (FUNC): Likewise.
90394         Suggested by Jim Meyering.
90396 2007-10-07  Jim Meyering  <meyering@redhat.com>
90398         Make xnanosleep's integer overflow test more robust.
90399         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
90400         so that gcc-4.3.0 doesn't optimize away this test for overflow.
90402 2007-10-07  Bruno Haible  <bruno@clisp.org>
90404         * NEWS: Mention the license change.
90406         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
90407         abbreviations in the modules files.
90409         Change copyright notice from GPLv2+ to GPLv3+.
90410         * README: Change copyright notice.
90411         * MODULES.html.sh: Likewise.
90412         * build-aux/bootstrap.conf: Likewise.
90413         * build-aux/config.libpath: Likewise.
90414         * build-aux/csharpcomp.sh.in: Likewise.
90415         * build-aux/csharpexec.sh.in: Likewise.
90416         * build-aux/install-reloc: Likewise.
90417         * build-aux/javacomp.sh.in: Likewise.
90418         * build-aux/javaexec.sh.in: Likewise.
90419         * build-aux/ldd.sh.in: Likewise.
90420         * build-aux/reloc-ldflags: Likewise.
90421         * build-aux/relocatable.sh.in: Likewise.
90422         * build-aux/x-to-1.in: Likewise.
90423         * check-module: Likewise.
90424         * config/srclistvars.sh: Likewise.
90425         * gnulib-tool: Likewise.
90426         * lib/acl-internal.h: Likewise.
90427         * lib/acl.c: Likewise.
90428         * lib/acl.h: Likewise.
90429         * lib/acl_entries.c: Likewise.
90430         * lib/areadlink-with-size.c: Likewise.
90431         * lib/areadlink.c: Likewise.
90432         * lib/areadlink.h: Likewise.
90433         * lib/argmatch.c: Likewise.
90434         * lib/argmatch.h: Likewise.
90435         * lib/argp-ba.c: Likewise.
90436         * lib/argp-eexst.c: Likewise.
90437         * lib/argp-fmtstream.c: Likewise.
90438         * lib/argp-fmtstream.h: Likewise.
90439         * lib/argp-fs-xinl.c: Likewise.
90440         * lib/argp-help.c: Likewise.
90441         * lib/argp-namefrob.h: Likewise.
90442         * lib/argp-parse.c: Likewise.
90443         * lib/argp-pin.c: Likewise.
90444         * lib/argp-pv.c: Likewise.
90445         * lib/argp-pvh.c: Likewise.
90446         * lib/argp-xinl.c: Likewise.
90447         * lib/argp.h: Likewise.
90448         * lib/at-func.c: Likewise.
90449         * lib/atanl.c: Likewise.
90450         * lib/backupfile.c: Likewise.
90451         * lib/backupfile.h: Likewise.
90452         * lib/basename.c: Likewise.
90453         * lib/binary-io.h: Likewise.
90454         * lib/byteswap.in.h: Likewise.
90455         * lib/c-stack.c: Likewise.
90456         * lib/c-stack.h: Likewise.
90457         * lib/c-strcasestr.c: Likewise.
90458         * lib/c-strcasestr.h: Likewise.
90459         * lib/c-strstr.c: Likewise.
90460         * lib/c-strstr.h: Likewise.
90461         * lib/c-strtod.c: Likewise.
90462         * lib/calloc.c: Likewise.
90463         * lib/canon-host.c: Likewise.
90464         * lib/canon-host.h: Likewise.
90465         * lib/canonicalize-lgpl.c: Likewise.
90466         * lib/canonicalize.c: Likewise.
90467         * lib/canonicalize.h: Likewise.
90468         * lib/ceil.c: Likewise.
90469         * lib/ceilf.c: Likewise.
90470         * lib/ceill.c: Likewise.
90471         * lib/chdir-long.c: Likewise.
90472         * lib/chdir-long.h: Likewise.
90473         * lib/chdir-safer.c: Likewise.
90474         * lib/chdir-safer.h: Likewise.
90475         * lib/chown.c: Likewise.
90476         * lib/classpath.c: Likewise.
90477         * lib/classpath.h: Likewise.
90478         * lib/clean-temp.c: Likewise.
90479         * lib/clean-temp.h: Likewise.
90480         * lib/cloexec.c: Likewise.
90481         * lib/close-stream.c: Likewise.
90482         * lib/closein.c: Likewise.
90483         * lib/closein.h: Likewise.
90484         * lib/closeout.c: Likewise.
90485         * lib/closeout.h: Likewise.
90486         * lib/concat-filename.c: Likewise.
90487         * lib/copy-file.c: Likewise.
90488         * lib/copy-file.h: Likewise.
90489         * lib/count-one-bits.h: Likewise.
90490         * lib/crc.c: Likewise.
90491         * lib/crc.h: Likewise.
90492         * lib/creat-safer.c: Likewise.
90493         * lib/csharpcomp.c: Likewise.
90494         * lib/csharpcomp.h: Likewise.
90495         * lib/csharpexec.c: Likewise.
90496         * lib/csharpexec.h: Likewise.
90497         * lib/cycle-check.c: Likewise.
90498         * lib/cycle-check.h: Likewise.
90499         * lib/diacrit.c: Likewise.
90500         * lib/diacrit.h: Likewise.
90501         * lib/diffseq.h: Likewise.
90502         * lib/dirchownmod.c: Likewise.
90503         * lib/dirent.in.h: Likewise.
90504         * lib/dirfd.c: Likewise.
90505         * lib/dirfd.h: Likewise.
90506         * lib/dirname.c: Likewise.
90507         * lib/dirname.h: Likewise.
90508         * lib/dummy.c: Likewise.
90509         * lib/dup-safer.c: Likewise.
90510         * lib/dup2.c: Likewise.
90511         * lib/eealloc.h: Likewise.
90512         * lib/error.c: Likewise.
90513         * lib/error.h: Likewise.
90514         * lib/euidaccess.c: Likewise.
90515         * lib/exclude.c: Likewise.
90516         * lib/exclude.h: Likewise.
90517         * lib/execute.c: Likewise.
90518         * lib/execute.h: Likewise.
90519         * lib/exitfail.c: Likewise.
90520         * lib/exitfail.h: Likewise.
90521         * lib/expl.c: Likewise.
90522         * lib/fatal-signal.c: Likewise.
90523         * lib/fatal-signal.h: Likewise.
90524         * lib/fbufmode.c: Likewise.
90525         * lib/fbufmode.h: Likewise.
90526         * lib/fchdir.c: Likewise.
90527         * lib/fchmodat.c: Likewise.
90528         * lib/fchownat.c: Likewise.
90529         * lib/fcntl--.h: Likewise.
90530         * lib/fcntl-safer.h: Likewise.
90531         * lib/fcntl.in.h: Likewise.
90532         * lib/fd-safer.c: Likewise.
90533         * lib/fflush.c: Likewise.
90534         * lib/file-has-acl.c: Likewise.
90535         * lib/file-set.c: Likewise.
90536         * lib/file-type.c: Likewise.
90537         * lib/file-type.h: Likewise.
90538         * lib/fileblocks.c: Likewise.
90539         * lib/filemode.c: Likewise.
90540         * lib/filemode.h: Likewise.
90541         * lib/filename.h: Likewise.
90542         * lib/filenamecat.c: Likewise.
90543         * lib/filenamecat.h: Likewise.
90544         * lib/findprog.c: Likewise.
90545         * lib/findprog.h: Likewise.
90546         * lib/float.in.h: Likewise.
90547         * lib/floor.c: Likewise.
90548         * lib/floorf.c: Likewise.
90549         * lib/floorl.c: Likewise.
90550         * lib/fopen-safer.c: Likewise.
90551         * lib/fopen.c: Likewise.
90552         * lib/fpending.c: Likewise.
90553         * lib/fpending.h: Likewise.
90554         * lib/fprintf.c: Likewise.
90555         * lib/fprintftime.h: Likewise.
90556         * lib/fpucw.h: Likewise.
90557         * lib/fpurge.c: Likewise.
90558         * lib/fpurge.h: Likewise.
90559         * lib/freadable.c: Likewise.
90560         * lib/freadable.h: Likewise.
90561         * lib/freadahead.c: Likewise.
90562         * lib/freadahead.h: Likewise.
90563         * lib/freading.c: Likewise.
90564         * lib/freading.h: Likewise.
90565         * lib/free.c: Likewise.
90566         * lib/freopen.c: Likewise.
90567         * lib/frexp.c: Likewise.
90568         * lib/frexpl.c: Likewise.
90569         * lib/fseek.c: Likewise.
90570         * lib/fseterr.c: Likewise.
90571         * lib/fseterr.h: Likewise.
90572         * lib/fstatat.c: Likewise.
90573         * lib/fstrcmp.c: Likewise.
90574         * lib/fstrcmp.h: Likewise.
90575         * lib/fsusage.c: Likewise.
90576         * lib/fsusage.h: Likewise.
90577         * lib/ftell.c: Likewise.
90578         * lib/ftello.c: Likewise.
90579         * lib/fts-cycle.c: Likewise.
90580         * lib/fts.c: Likewise.
90581         * lib/fts_.h: Likewise.
90582         * lib/full-read.c: Likewise.
90583         * lib/full-read.h: Likewise.
90584         * lib/full-write.c: Likewise.
90585         * lib/full-write.h: Likewise.
90586         * lib/fwritable.c: Likewise.
90587         * lib/fwritable.h: Likewise.
90588         * lib/fwriteerror.c: Likewise.
90589         * lib/fwriteerror.h: Likewise.
90590         * lib/fwriting.c: Likewise.
90591         * lib/fwriting.h: Likewise.
90592         * lib/gcd.c: Likewise.
90593         * lib/gcd.h: Likewise.
90594         * lib/getcwd.c: Likewise.
90595         * lib/getdate.h: Likewise.
90596         * lib/getdate.y: Likewise.
90597         * lib/getdomainname.c: Likewise.
90598         * lib/getdomainname.h: Likewise.
90599         * lib/getgroups.c: Likewise.
90600         * lib/gethostname.c: Likewise.
90601         * lib/gethrxtime.c: Likewise.
90602         * lib/gethrxtime.h: Likewise.
90603         * lib/getloadavg.c: Likewise.
90604         * lib/getndelim2.c: Likewise.
90605         * lib/getndelim2.h: Likewise.
90606         * lib/getnline.c: Likewise.
90607         * lib/getnline.h: Likewise.
90608         * lib/getopt.c: Likewise.
90609         * lib/getopt.in.h: Likewise.
90610         * lib/getopt1.c: Likewise.
90611         * lib/getopt_int.h: Likewise.
90612         * lib/getpagesize.h: Likewise.
90613         * lib/getsubopt.c: Likewise.
90614         * lib/gettime.c: Likewise.
90615         * lib/getugroups.c: Likewise.
90616         * lib/getugroups.h: Likewise.
90617         * lib/getusershell.c: Likewise.
90618         * lib/gl_anyavltree_list1.h: Likewise.
90619         * lib/gl_anyavltree_list2.h: Likewise.
90620         * lib/gl_anyhash_list1.h: Likewise.
90621         * lib/gl_anyhash_list2.h: Likewise.
90622         * lib/gl_anylinked_list1.h: Likewise.
90623         * lib/gl_anylinked_list2.h: Likewise.
90624         * lib/gl_anyrbtree_list1.h: Likewise.
90625         * lib/gl_anyrbtree_list2.h: Likewise.
90626         * lib/gl_anytree_list1.h: Likewise.
90627         * lib/gl_anytree_list2.h: Likewise.
90628         * lib/gl_anytree_oset.h: Likewise.
90629         * lib/gl_anytreehash_list1.h: Likewise.
90630         * lib/gl_anytreehash_list2.h: Likewise.
90631         * lib/gl_array_list.c: Likewise.
90632         * lib/gl_array_list.h: Likewise.
90633         * lib/gl_array_oset.c: Likewise.
90634         * lib/gl_array_oset.h: Likewise.
90635         * lib/gl_avltree_list.c: Likewise.
90636         * lib/gl_avltree_list.h: Likewise.
90637         * lib/gl_avltree_oset.c: Likewise.
90638         * lib/gl_avltree_oset.h: Likewise.
90639         * lib/gl_avltreehash_list.c: Likewise.
90640         * lib/gl_avltreehash_list.h: Likewise.
90641         * lib/gl_carray_list.c: Likewise.
90642         * lib/gl_carray_list.h: Likewise.
90643         * lib/gl_linked_list.c: Likewise.
90644         * lib/gl_linked_list.h: Likewise.
90645         * lib/gl_linkedhash_list.c: Likewise.
90646         * lib/gl_linkedhash_list.h: Likewise.
90647         * lib/gl_list.c: Likewise.
90648         * lib/gl_list.h: Likewise.
90649         * lib/gl_oset.c: Likewise.
90650         * lib/gl_oset.h: Likewise.
90651         * lib/gl_rbtree_list.c: Likewise.
90652         * lib/gl_rbtree_list.h: Likewise.
90653         * lib/gl_rbtree_oset.c: Likewise.
90654         * lib/gl_rbtree_oset.h: Likewise.
90655         * lib/gl_rbtreehash_list.c: Likewise.
90656         * lib/gl_rbtreehash_list.h: Likewise.
90657         * lib/gl_sublist.c: Likewise.
90658         * lib/gl_sublist.h: Likewise.
90659         * lib/group-member.c: Likewise.
90660         * lib/group-member.h: Likewise.
90661         * lib/hard-locale.c: Likewise.
90662         * lib/hard-locale.h: Likewise.
90663         * lib/hash-pjw.c: Likewise.
90664         * lib/hash-pjw.h: Likewise.
90665         * lib/hash-triple.c: Likewise.
90666         * lib/hash.c: Likewise.
90667         * lib/hash.h: Likewise.
90668         * lib/human.c: Likewise.
90669         * lib/human.h: Likewise.
90670         * lib/i-ring.c: Likewise.
90671         * lib/i-ring.h: Likewise.
90672         * lib/idcache.c: Likewise.
90673         * lib/imaxabs.c: Likewise.
90674         * lib/imaxdiv.c: Likewise.
90675         * lib/inet_pton.c: Likewise.
90676         * lib/inet_pton.h: Likewise.
90677         * lib/intprops.h: Likewise.
90678         * lib/inttostr.c: Likewise.
90679         * lib/inttostr.h: Likewise.
90680         * lib/inttypes.in.h: Likewise.
90681         * lib/isapipe.c: Likewise.
90682         * lib/isdir.c: Likewise.
90683         * lib/isnan.c: Likewise.
90684         * lib/isnan.h: Likewise.
90685         * lib/isnanf.c: Likewise.
90686         * lib/isnanf.h: Likewise.
90687         * lib/isnanl-nolibm.h: Likewise.
90688         * lib/isnanl.c: Likewise.
90689         * lib/isnanl.h: Likewise.
90690         * lib/javacomp.c: Likewise.
90691         * lib/javacomp.h: Likewise.
90692         * lib/javaexec.c: Likewise.
90693         * lib/javaexec.h: Likewise.
90694         * lib/javaversion.c: Likewise.
90695         * lib/javaversion.h: Likewise.
90696         * lib/javaversion.java: Likewise.
90697         * lib/lbrkprop.h: Likewise.
90698         * lib/lchmod.h: Likewise.
90699         * lib/lchown.c: Likewise.
90700         * lib/ldexpl.c: Likewise.
90701         * lib/linebreak.c: Likewise.
90702         * lib/linebreak.h: Likewise.
90703         * lib/linebuffer.c: Likewise.
90704         * lib/linebuffer.h: Likewise.
90705         * lib/locale.in.h: Likewise.
90706         * lib/logl.c: Likewise.
90707         * lib/long-options.c: Likewise.
90708         * lib/long-options.h: Likewise.
90709         * lib/lstat.c: Likewise.
90710         * lib/lstat.h: Likewise.
90711         * lib/math.in.h: Likewise.
90712         * lib/mbchar.c: Likewise.
90713         * lib/mbchar.h: Likewise.
90714         * lib/mbfile.h: Likewise.
90715         * lib/mbiter.h: Likewise.
90716         * lib/mbscasecmp.c: Likewise.
90717         * lib/mbscasestr.c: Likewise.
90718         * lib/mbschr.c: Likewise.
90719         * lib/mbscspn.c: Likewise.
90720         * lib/mbslen.c: Likewise.
90721         * lib/mbsncasecmp.c: Likewise.
90722         * lib/mbsnlen.c: Likewise.
90723         * lib/mbspbrk.c: Likewise.
90724         * lib/mbspcasecmp.c: Likewise.
90725         * lib/mbsrchr.c: Likewise.
90726         * lib/mbssep.c: Likewise.
90727         * lib/mbsspn.c: Likewise.
90728         * lib/mbsstr.c: Likewise.
90729         * lib/mbstok_r.c: Likewise.
90730         * lib/mbswidth.c: Likewise.
90731         * lib/mbswidth.h: Likewise.
90732         * lib/mbuiter.h: Likewise.
90733         * lib/memcasecmp.c: Likewise.
90734         * lib/memcasecmp.h: Likewise.
90735         * lib/memchr.c: Likewise.
90736         * lib/memcmp.c: Likewise.
90737         * lib/memcoll.c: Likewise.
90738         * lib/memcoll.h: Likewise.
90739         * lib/memcpy.c: Likewise.
90740         * lib/memrchr.c: Likewise.
90741         * lib/mkancesdirs.c: Likewise.
90742         * lib/mkdir-p.c: Likewise.
90743         * lib/mkdir-p.h: Likewise.
90744         * lib/mkdir.c: Likewise.
90745         * lib/mkdirat.c: Likewise.
90746         * lib/mkdtemp.c: Likewise.
90747         * lib/mkstemp-safer.c: Likewise.
90748         * lib/mkstemp.c: Likewise.
90749         * lib/modechange.c: Likewise.
90750         * lib/modechange.h: Likewise.
90751         * lib/mountlist.c: Likewise.
90752         * lib/mountlist.h: Likewise.
90753         * lib/mpsort.c: Likewise.
90754         * lib/nanosleep.c: Likewise.
90755         * lib/obstack.c: Likewise.
90756         * lib/obstack.h: Likewise.
90757         * lib/open-safer.c: Likewise.
90758         * lib/open.c: Likewise.
90759         * lib/openat-die.c: Likewise.
90760         * lib/openat-priv.h: Likewise.
90761         * lib/openat-proc.c: Likewise.
90762         * lib/openat.c: Likewise.
90763         * lib/openat.h: Likewise.
90764         * lib/pagealign_alloc.c: Likewise.
90765         * lib/pagealign_alloc.h: Likewise.
90766         * lib/physmem.c: Likewise.
90767         * lib/physmem.h: Likewise.
90768         * lib/pipe-safer.c: Likewise.
90769         * lib/pipe.c: Likewise.
90770         * lib/pipe.h: Likewise.
90771         * lib/posixtm.c: Likewise.
90772         * lib/posixtm.h: Likewise.
90773         * lib/posixver.c: Likewise.
90774         * lib/printf-frexp.c: Likewise.
90775         * lib/printf-frexp.h: Likewise.
90776         * lib/printf-frexpl.c: Likewise.
90777         * lib/printf-frexpl.h: Likewise.
90778         * lib/printf.c: Likewise.
90779         * lib/progname.c: Likewise.
90780         * lib/progname.h: Likewise.
90781         * lib/progreloc.c: Likewise.
90782         * lib/putenv.c: Likewise.
90783         * lib/quote.c: Likewise.
90784         * lib/quote.h: Likewise.
90785         * lib/quotearg.c: Likewise.
90786         * lib/quotearg.h: Likewise.
90787         * lib/raise.c: Likewise.
90788         * lib/readline.c: Likewise.
90789         * lib/readline.h: Likewise.
90790         * lib/readlink.c: Likewise.
90791         * lib/readtokens.c: Likewise.
90792         * lib/readtokens.h: Likewise.
90793         * lib/readtokens0.c: Likewise.
90794         * lib/readtokens0.h: Likewise.
90795         * lib/readutmp.c: Likewise.
90796         * lib/readutmp.h: Likewise.
90797         * lib/realloc.c: Likewise.
90798         * lib/relocwrapper.c: Likewise.
90799         * lib/rename-dest-slash.c: Likewise.
90800         * lib/rename.c: Likewise.
90801         * lib/rmdir.c: Likewise.
90802         * lib/rpmatch.c: Likewise.
90803         * lib/safe-read.c: Likewise.
90804         * lib/safe-read.h: Likewise.
90805         * lib/safe-write.c: Likewise.
90806         * lib/safe-write.h: Likewise.
90807         * lib/same-inode.h: Likewise.
90808         * lib/same.c: Likewise.
90809         * lib/same.h: Likewise.
90810         * lib/save-cwd.c: Likewise.
90811         * lib/save-cwd.h: Likewise.
90812         * lib/savedir.c: Likewise.
90813         * lib/savedir.h: Likewise.
90814         * lib/savewd.c: Likewise.
90815         * lib/savewd.h: Likewise.
90816         * lib/search.in.h: Likewise.
90817         * lib/setenv.c: Likewise.
90818         * lib/setenv.h: Likewise.
90819         * lib/settime.c: Likewise.
90820         * lib/sh-quote.c: Likewise.
90821         * lib/sh-quote.h: Likewise.
90822         * lib/sig2str.c: Likewise.
90823         * lib/sig2str.h: Likewise.
90824         * lib/signal.in.h: Likewise.
90825         * lib/signbitd.c: Likewise.
90826         * lib/signbitf.c: Likewise.
90827         * lib/signbitl.c: Likewise.
90828         * lib/sigprocmask.c: Likewise.
90829         * lib/sincosl.c: Likewise.
90830         * lib/sleep.c: Likewise.
90831         * lib/sprintf.c: Likewise.
90832         * lib/sqrtl.c: Likewise.
90833         * lib/stat-time.h: Likewise.
90834         * lib/stdio--.h: Likewise.
90835         * lib/stdio-safer.h: Likewise.
90836         * lib/stdlib--.h: Likewise.
90837         * lib/stdlib-safer.h: Likewise.
90838         * lib/stdlib.in.h: Likewise.
90839         * lib/stpcpy.c: Likewise.
90840         * lib/stpncpy.c: Likewise.
90841         * lib/strchrnul.c: Likewise.
90842         * lib/strcspn.c: Likewise.
90843         * lib/strerror.c: Likewise.
90844         * lib/strftime.c: Likewise.
90845         * lib/strftime.h: Likewise.
90846         * lib/striconveh.c: Likewise.
90847         * lib/striconveh.h: Likewise.
90848         * lib/striconveha.c: Likewise.
90849         * lib/striconveha.h: Likewise.
90850         * lib/stripslash.c: Likewise.
90851         * lib/strnlen1.c: Likewise.
90852         * lib/strnlen1.h: Likewise.
90853         * lib/strtod.c: Likewise.
90854         * lib/strtoimax.c: Likewise.
90855         * lib/strtok_r.c: Likewise.
90856         * lib/strtol.c: Likewise.
90857         * lib/strtoll.c: Likewise.
90858         * lib/strtoul.c: Likewise.
90859         * lib/strtoull.c: Likewise.
90860         * lib/sysexits.in.h: Likewise.
90861         * lib/tempname.c: Likewise.
90862         * lib/tempname.h: Likewise.
90863         * lib/timespec.h: Likewise.
90864         * lib/tls.c: Likewise.
90865         * lib/tls.h: Likewise.
90866         * lib/tmpdir.c: Likewise.
90867         * lib/tmpdir.h: Likewise.
90868         * lib/tmpfile-safer.c: Likewise.
90869         * lib/tmpfile.c: Likewise.
90870         * lib/trigl.c: Likewise.
90871         * lib/trigl.h: Likewise.
90872         * lib/trim.c: Likewise.
90873         * lib/trim.h: Likewise.
90874         * lib/trunc.c: Likewise.
90875         * lib/truncf.c: Likewise.
90876         * lib/truncl.c: Likewise.
90877         * lib/tsearch.c: Likewise.
90878         * lib/unicodeio.c: Likewise.
90879         * lib/unicodeio.h: Likewise.
90880         * lib/unistd--.h: Likewise.
90881         * lib/unistd-safer.h: Likewise.
90882         * lib/unistdio/ulc-fprintf.c: Likewise.
90883         * lib/unistdio/ulc-vfprintf.c: Likewise.
90884         * lib/unlinkdir.c: Likewise.
90885         * lib/unlinkdir.h: Likewise.
90886         * lib/unlocked-io.h: Likewise.
90887         * lib/unsetenv.c: Likewise.
90888         * lib/userspec.c: Likewise.
90889         * lib/utime.c: Likewise.
90890         * lib/utimecmp.c: Likewise.
90891         * lib/utimecmp.h: Likewise.
90892         * lib/utimens.c: Likewise.
90893         * lib/verify.h: Likewise.
90894         * lib/verror.c: Likewise.
90895         * lib/verror.h: Likewise.
90896         * lib/version-etc-fsf.c: Likewise.
90897         * lib/version-etc.c: Likewise.
90898         * lib/version-etc.h: Likewise.
90899         * lib/vfprintf.c: Likewise.
90900         * lib/vprintf.c: Likewise.
90901         * lib/vsprintf.c: Likewise.
90902         * lib/w32spawn.h: Likewise.
90903         * lib/wait-process.c: Likewise.
90904         * lib/wait-process.h: Likewise.
90905         * lib/wcwidth.c: Likewise.
90906         * lib/write-any-file.c: Likewise.
90907         * lib/xalloc-die.c: Likewise.
90908         * lib/xalloc.h: Likewise.
90909         * lib/xasprintf.c: Likewise.
90910         * lib/xgetcwd.c: Likewise.
90911         * lib/xgetcwd.h: Likewise.
90912         * lib/xgetdomainname.c: Likewise.
90913         * lib/xgetdomainname.h: Likewise.
90914         * lib/xgethostname.c: Likewise.
90915         * lib/xmalloc.c: Likewise.
90916         * lib/xmalloca.c: Likewise.
90917         * lib/xmalloca.h: Likewise.
90918         * lib/xmemcoll.c: Likewise.
90919         * lib/xnanosleep.c: Likewise.
90920         * lib/xreadlink.c: Likewise.
90921         * lib/xreadlink.h: Likewise.
90922         * lib/xsetenv.c: Likewise.
90923         * lib/xsetenv.h: Likewise.
90924         * lib/xstriconv.c: Likewise.
90925         * lib/xstriconv.h: Likewise.
90926         * lib/xstrndup.c: Likewise.
90927         * lib/xstrndup.h: Likewise.
90928         * lib/xstrtod.c: Likewise.
90929         * lib/xstrtod.h: Likewise.
90930         * lib/xstrtol-error.c: Likewise.
90931         * lib/xstrtol.c: Likewise.
90932         * lib/xstrtol.h: Likewise.
90933         * lib/xtime.h: Likewise.
90934         * lib/xvasprintf.c: Likewise.
90935         * lib/xvasprintf.h: Likewise.
90936         * lib/yesno.c: Likewise.
90937         * lib/yesno.h: Likewise.
90938         * posix-modules: Likewise.
90939         * tests/test-alloca-opt.c: Likewise.
90940         * tests/test-arcfour.c: Likewise.
90941         * tests/test-arctwo.c: Likewise.
90942         * tests/test-argmatch.c: Likewise.
90943         * tests/test-argp-2.sh: Likewise.
90944         * tests/test-argp.c: Likewise.
90945         * tests/test-arpa_inet.c: Likewise.
90946         * tests/test-array_list.c: Likewise.
90947         * tests/test-array_oset.c: Likewise.
90948         * tests/test-atexit.c: Likewise.
90949         * tests/test-avltree_list.c: Likewise.
90950         * tests/test-avltree_oset.c: Likewise.
90951         * tests/test-avltreehash_list.c: Likewise.
90952         * tests/test-base64.c: Likewise.
90953         * tests/test-binary-io.c: Likewise.
90954         * tests/test-byteswap.c: Likewise.
90955         * tests/test-c-ctype.c: Likewise.
90956         * tests/test-c-strcasecmp.c: Likewise.
90957         * tests/test-c-strcasestr.c: Likewise.
90958         * tests/test-c-strncasecmp.c: Likewise.
90959         * tests/test-c-strstr.c: Likewise.
90960         * tests/test-canonicalize-lgpl.c: Likewise.
90961         * tests/test-canonicalize.c: Likewise.
90962         * tests/test-carray_list.c: Likewise.
90963         * tests/test-ceilf.c: Likewise.
90964         * tests/test-ceill.c: Likewise.
90965         * tests/test-count-one-bits.c: Likewise.
90966         * tests/test-crc.c: Likewise.
90967         * tests/test-dirname.c: Likewise.
90968         * tests/test-fbufmode.c: Likewise.
90969         * tests/test-fcntl.c: Likewise.
90970         * tests/test-fflush.c: Likewise.
90971         * tests/test-floorf.c: Likewise.
90972         * tests/test-floorl.c: Likewise.
90973         * tests/test-fopen.c: Likewise.
90974         * tests/test-fprintf-posix.c: Likewise.
90975         * tests/test-fprintf-posix.h: Likewise.
90976         * tests/test-fpurge.c: Likewise.
90977         * tests/test-freadable.c: Likewise.
90978         * tests/test-freadahead.c: Likewise.
90979         * tests/test-freading.c: Likewise.
90980         * tests/test-freopen.c: Likewise.
90981         * tests/test-frexp.c: Likewise.
90982         * tests/test-frexpl.c: Likewise.
90983         * tests/test-fseek.c: Likewise.
90984         * tests/test-fseeko.c: Likewise.
90985         * tests/test-fseterr.c: Likewise.
90986         * tests/test-fstrcmp.c: Likewise.
90987         * tests/test-ftell.c: Likewise.
90988         * tests/test-ftello.c: Likewise.
90989         * tests/test-fwritable.c: Likewise.
90990         * tests/test-fwriting.c: Likewise.
90991         * tests/test-getaddrinfo.c: Likewise.
90992         * tests/test-getpass.c: Likewise.
90993         * tests/test-gettimeofday.c: Likewise.
90994         * tests/test-hmac-md5.c: Likewise.
90995         * tests/test-hmac-sha1.c: Likewise.
90996         * tests/test-iconv.c: Likewise.
90997         * tests/test-iconvme.c: Likewise.
90998         * tests/test-inttypes.c: Likewise.
90999         * tests/test-isnan.c: Likewise.
91000         * tests/test-isnanf.c: Likewise.
91001         * tests/test-isnanl-nolibm.c: Likewise.
91002         * tests/test-isnanl.c: Likewise.
91003         * tests/test-isnanl.h: Likewise.
91004         * tests/test-ldexpl.c: Likewise.
91005         * tests/test-linked_list.c: Likewise.
91006         * tests/test-linkedhash_list.c: Likewise.
91007         * tests/test-locale.c: Likewise.
91008         * tests/test-localename.c: Likewise.
91009         * tests/test-lock.c: Likewise.
91010         * tests/test-lseek.c: Likewise.
91011         * tests/test-malloca.c: Likewise.
91012         * tests/test-math.c: Likewise.
91013         * tests/test-mbscasecmp.c: Likewise.
91014         * tests/test-mbscasestr1.c: Likewise.
91015         * tests/test-mbscasestr2.c: Likewise.
91016         * tests/test-mbscasestr3.c: Likewise.
91017         * tests/test-mbscasestr4.c: Likewise.
91018         * tests/test-mbschr.c: Likewise.
91019         * tests/test-mbscspn.c: Likewise.
91020         * tests/test-mbsncasecmp.c: Likewise.
91021         * tests/test-mbspbrk.c: Likewise.
91022         * tests/test-mbspcasecmp.c: Likewise.
91023         * tests/test-mbsrchr.c: Likewise.
91024         * tests/test-mbsspn.c: Likewise.
91025         * tests/test-mbsstr1.c: Likewise.
91026         * tests/test-mbsstr2.c: Likewise.
91027         * tests/test-mbsstr3.c: Likewise.
91028         * tests/test-md5.c: Likewise.
91029         * tests/test-memmem.c: Likewise.
91030         * tests/test-netinet_in.c: Likewise.
91031         * tests/test-open.c: Likewise.
91032         * tests/test-printf-frexp.c: Likewise.
91033         * tests/test-printf-frexpl.c: Likewise.
91034         * tests/test-printf-posix.c: Likewise.
91035         * tests/test-printf-posix.h: Likewise.
91036         * tests/test-rbtree_list.c: Likewise.
91037         * tests/test-rbtree_oset.c: Likewise.
91038         * tests/test-rbtreehash_list.c: Likewise.
91039         * tests/test-read-file.c: Likewise.
91040         * tests/test-rijndael.c: Likewise.
91041         * tests/test-search.c: Likewise.
91042         * tests/test-signbit.c: Likewise.
91043         * tests/test-sleep.c: Likewise.
91044         * tests/test-snprintf-posix.c: Likewise.
91045         * tests/test-snprintf-posix.h: Likewise.
91046         * tests/test-snprintf.c: Likewise.
91047         * tests/test-sprintf-posix.c: Likewise.
91048         * tests/test-sprintf-posix.h: Likewise.
91049         * tests/test-stat-time.c: Likewise.
91050         * tests/test-stdbool.c: Likewise.
91051         * tests/test-stdint.c: Likewise.
91052         * tests/test-stdio.c: Likewise.
91053         * tests/test-stdlib.c: Likewise.
91054         * tests/test-stpncpy.c: Likewise.
91055         * tests/test-strcasestr.c: Likewise.
91056         * tests/test-striconv.c: Likewise.
91057         * tests/test-striconveh.c: Likewise.
91058         * tests/test-striconveha.c: Likewise.
91059         * tests/test-string.c: Likewise.
91060         * tests/test-sys_select.c: Likewise.
91061         * tests/test-sys_socket.c: Likewise.
91062         * tests/test-sys_stat.c: Likewise.
91063         * tests/test-sys_time.c: Likewise.
91064         * tests/test-sysexits.c: Likewise.
91065         * tests/test-time.c: Likewise.
91066         * tests/test-tls.c: Likewise.
91067         * tests/test-trunc.c: Likewise.
91068         * tests/test-truncf.c: Likewise.
91069         * tests/test-truncl.c: Likewise.
91070         * tests/test-unistd.c: Likewise.
91071         * tests/test-vasnprintf-posix.c: Likewise.
91072         * tests/test-vasnprintf-posix2.c: Likewise.
91073         * tests/test-vasnprintf.c: Likewise.
91074         * tests/test-vasprintf-posix.c: Likewise.
91075         * tests/test-vasprintf.c: Likewise.
91076         * tests/test-verify.c: Likewise.
91077         * tests/test-vfprintf-posix.c: Likewise.
91078         * tests/test-vprintf-posix.c: Likewise.
91079         * tests/test-vsnprintf-posix.c: Likewise.
91080         * tests/test-vsnprintf.c: Likewise.
91081         * tests/test-vsprintf-posix.c: Likewise.
91082         * tests/test-wchar.c: Likewise.
91083         * tests/test-wctype.c: Likewise.
91084         * tests/test-wcwidth.c: Likewise.
91085         * tests/test-xstrtol.c: Likewise.
91086         * tests/test-xvasprintf.c: Likewise.
91087         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
91088         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
91089         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
91090         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
91091         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
91092         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
91093         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
91094         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
91095         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
91096         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
91097         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
91098         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
91099         * tests/uniname/test-uninames.c: Likewise.
91100         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
91101         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
91102         * tests/unistdio/test-u16-printf1.h: Likewise.
91103         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
91104         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
91105         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
91106         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
91107         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
91108         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
91109         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
91110         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
91111         * tests/unistdio/test-u32-printf1.h: Likewise.
91112         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
91113         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
91114         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
91115         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
91116         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
91117         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
91118         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
91119         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
91120         * tests/unistdio/test-u8-printf1.h: Likewise.
91121         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
91122         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
91123         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
91124         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
91125         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
91126         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
91127         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
91128         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
91129         * tests/unistdio/test-ulc-printf1.h: Likewise.
91130         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
91131         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
91132         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
91133         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
91134         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
91135         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
91136         * tests/uniwidth/test-u16-strwidth.c: Likewise.
91137         * tests/uniwidth/test-u16-width.c: Likewise.
91138         * tests/uniwidth/test-u32-strwidth.c: Likewise.
91139         * tests/uniwidth/test-u32-width.c: Likewise.
91140         * tests/uniwidth/test-u8-strwidth.c: Likewise.
91141         * tests/uniwidth/test-u8-width.c: Likewise.
91142         * tests/uniwidth/test-uc_width.c: Likewise.
91143         * config/srclist-update: Likewise.
91144         (fixlicense): Update to GPLv3+.
91146         Change copyright notice from LGPLv2.1+ to LGPLv3+.
91147         * tests/test-tsearch.c: Change copyright notice.
91149         Change copyright notice from LGPLv2.0+ to LGPLv3+.
91150         * lib/c-strcaseeq.h: Change copyright notice.
91151         * lib/streq.h: Likewise.
91152         * lib/uniconv.h: Likewise.
91153         * lib/uniconv/u-conv-from-enc.h: Likewise.
91154         * lib/uniconv/u-conv-to-enc.h: Likewise.
91155         * lib/uniconv/u-strconv-from-enc.h: Likewise.
91156         * lib/uniconv/u-strconv-to-enc.h: Likewise.
91157         * lib/uniconv/u16-conv-from-enc.c: Likewise.
91158         * lib/uniconv/u16-conv-to-enc.c: Likewise.
91159         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
91160         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
91161         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
91162         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
91163         * lib/uniconv/u32-conv-from-enc.c: Likewise.
91164         * lib/uniconv/u32-conv-to-enc.c: Likewise.
91165         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
91166         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
91167         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
91168         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
91169         * lib/uniconv/u8-conv-from-enc.c: Likewise.
91170         * lib/uniconv/u8-conv-to-enc.c: Likewise.
91171         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
91172         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
91173         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
91174         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
91175         * lib/uniname.h: Likewise.
91176         * lib/uniname/uniname.c: Likewise.
91177         * lib/unistdio.h: Likewise.
91178         * lib/unistdio/u-asnprintf.h: Likewise.
91179         * lib/unistdio/u-asprintf.h: Likewise.
91180         * lib/unistdio/u-printf-args.c: Likewise.
91181         * lib/unistdio/u-printf-args.h: Likewise.
91182         * lib/unistdio/u-printf-parse.h: Likewise.
91183         * lib/unistdio/u-snprintf.h: Likewise.
91184         * lib/unistdio/u-sprintf.h: Likewise.
91185         * lib/unistdio/u-vasprintf.h: Likewise.
91186         * lib/unistdio/u-vsnprintf.h: Likewise.
91187         * lib/unistdio/u-vsprintf.h: Likewise.
91188         * lib/unistdio/u16-asnprintf.c: Likewise.
91189         * lib/unistdio/u16-asprintf.c: Likewise.
91190         * lib/unistdio/u16-printf-parse.c: Likewise.
91191         * lib/unistdio/u16-snprintf.c: Likewise.
91192         * lib/unistdio/u16-sprintf.c: Likewise.
91193         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
91194         * lib/unistdio/u16-u16-asprintf.c: Likewise.
91195         * lib/unistdio/u16-u16-snprintf.c: Likewise.
91196         * lib/unistdio/u16-u16-sprintf.c: Likewise.
91197         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
91198         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
91199         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
91200         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
91201         * lib/unistdio/u16-vasnprintf.c: Likewise.
91202         * lib/unistdio/u16-vasprintf.c: Likewise.
91203         * lib/unistdio/u16-vsnprintf.c: Likewise.
91204         * lib/unistdio/u16-vsprintf.c: Likewise.
91205         * lib/unistdio/u32-asnprintf.c: Likewise.
91206         * lib/unistdio/u32-asprintf.c: Likewise.
91207         * lib/unistdio/u32-printf-parse.c: Likewise.
91208         * lib/unistdio/u32-snprintf.c: Likewise.
91209         * lib/unistdio/u32-sprintf.c: Likewise.
91210         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
91211         * lib/unistdio/u32-u32-asprintf.c: Likewise.
91212         * lib/unistdio/u32-u32-snprintf.c: Likewise.
91213         * lib/unistdio/u32-u32-sprintf.c: Likewise.
91214         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
91215         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
91216         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
91217         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
91218         * lib/unistdio/u32-vasnprintf.c: Likewise.
91219         * lib/unistdio/u32-vasprintf.c: Likewise.
91220         * lib/unistdio/u32-vsnprintf.c: Likewise.
91221         * lib/unistdio/u32-vsprintf.c: Likewise.
91222         * lib/unistdio/u8-asnprintf.c: Likewise.
91223         * lib/unistdio/u8-asprintf.c: Likewise.
91224         * lib/unistdio/u8-printf-parse.c: Likewise.
91225         * lib/unistdio/u8-snprintf.c: Likewise.
91226         * lib/unistdio/u8-sprintf.c: Likewise.
91227         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
91228         * lib/unistdio/u8-u8-asprintf.c: Likewise.
91229         * lib/unistdio/u8-u8-snprintf.c: Likewise.
91230         * lib/unistdio/u8-u8-sprintf.c: Likewise.
91231         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
91232         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
91233         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
91234         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
91235         * lib/unistdio/u8-vasnprintf.c: Likewise.
91236         * lib/unistdio/u8-vasprintf.c: Likewise.
91237         * lib/unistdio/u8-vsnprintf.c: Likewise.
91238         * lib/unistdio/u8-vsprintf.c: Likewise.
91239         * lib/unistdio/ulc-asnprintf.c: Likewise.
91240         * lib/unistdio/ulc-asprintf.c: Likewise.
91241         * lib/unistdio/ulc-printf-parse.c: Likewise.
91242         * lib/unistdio/ulc-snprintf.c: Likewise.
91243         * lib/unistdio/ulc-sprintf.c: Likewise.
91244         * lib/unistdio/ulc-vasnprintf.c: Likewise.
91245         * lib/unistdio/ulc-vasprintf.c: Likewise.
91246         * lib/unistdio/ulc-vsnprintf.c: Likewise.
91247         * lib/unistdio/ulc-vsprintf.c: Likewise.
91248         * lib/unistr.h: Likewise.
91249         * lib/unistr/u-cpy-alloc.h: Likewise.
91250         * lib/unistr/u-cpy.h: Likewise.
91251         * lib/unistr/u-endswith.h: Likewise.
91252         * lib/unistr/u-move.h: Likewise.
91253         * lib/unistr/u-set.h: Likewise.
91254         * lib/unistr/u-startswith.h: Likewise.
91255         * lib/unistr/u-stpcpy.h: Likewise.
91256         * lib/unistr/u-stpncpy.h: Likewise.
91257         * lib/unistr/u-strcat.h: Likewise.
91258         * lib/unistr/u-strcpy.h: Likewise.
91259         * lib/unistr/u-strcspn.h: Likewise.
91260         * lib/unistr/u-strdup.h: Likewise.
91261         * lib/unistr/u-strlen.h: Likewise.
91262         * lib/unistr/u-strncat.h: Likewise.
91263         * lib/unistr/u-strncpy.h: Likewise.
91264         * lib/unistr/u-strnlen.h: Likewise.
91265         * lib/unistr/u-strpbrk.h: Likewise.
91266         * lib/unistr/u-strspn.h: Likewise.
91267         * lib/unistr/u-strstr.h: Likewise.
91268         * lib/unistr/u-strtok.h: Likewise.
91269         * lib/unistr/u16-check.c: Likewise.
91270         * lib/unistr/u16-chr.c: Likewise.
91271         * lib/unistr/u16-cmp.c: Likewise.
91272         * lib/unistr/u16-cpy-alloc.c: Likewise.
91273         * lib/unistr/u16-cpy.c: Likewise.
91274         * lib/unistr/u16-endswith.c: Likewise.
91275         * lib/unistr/u16-mblen.c: Likewise.
91276         * lib/unistr/u16-mbsnlen.c: Likewise.
91277         * lib/unistr/u16-mbtouc-aux.c: Likewise.
91278         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
91279         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
91280         * lib/unistr/u16-mbtouc.c: Likewise.
91281         * lib/unistr/u16-mbtoucr.c: Likewise.
91282         * lib/unistr/u16-move.c: Likewise.
91283         * lib/unistr/u16-next.c: Likewise.
91284         * lib/unistr/u16-prev.c: Likewise.
91285         * lib/unistr/u16-set.c: Likewise.
91286         * lib/unistr/u16-startswith.c: Likewise.
91287         * lib/unistr/u16-stpcpy.c: Likewise.
91288         * lib/unistr/u16-stpncpy.c: Likewise.
91289         * lib/unistr/u16-strcat.c: Likewise.
91290         * lib/unistr/u16-strchr.c: Likewise.
91291         * lib/unistr/u16-strcmp.c: Likewise.
91292         * lib/unistr/u16-strcpy.c: Likewise.
91293         * lib/unistr/u16-strcspn.c: Likewise.
91294         * lib/unistr/u16-strdup.c: Likewise.
91295         * lib/unistr/u16-strlen.c: Likewise.
91296         * lib/unistr/u16-strmblen.c: Likewise.
91297         * lib/unistr/u16-strmbtouc.c: Likewise.
91298         * lib/unistr/u16-strncat.c: Likewise.
91299         * lib/unistr/u16-strncmp.c: Likewise.
91300         * lib/unistr/u16-strncpy.c: Likewise.
91301         * lib/unistr/u16-strnlen.c: Likewise.
91302         * lib/unistr/u16-strpbrk.c: Likewise.
91303         * lib/unistr/u16-strrchr.c: Likewise.
91304         * lib/unistr/u16-strspn.c: Likewise.
91305         * lib/unistr/u16-strstr.c: Likewise.
91306         * lib/unistr/u16-strtok.c: Likewise.
91307         * lib/unistr/u16-to-u32.c: Likewise.
91308         * lib/unistr/u16-to-u8.c: Likewise.
91309         * lib/unistr/u16-uctomb-aux.c: Likewise.
91310         * lib/unistr/u16-uctomb.c: Likewise.
91311         * lib/unistr/u32-check.c: Likewise.
91312         * lib/unistr/u32-chr.c: Likewise.
91313         * lib/unistr/u32-cmp.c: Likewise.
91314         * lib/unistr/u32-cpy-alloc.c: Likewise.
91315         * lib/unistr/u32-cpy.c: Likewise.
91316         * lib/unistr/u32-endswith.c: Likewise.
91317         * lib/unistr/u32-mblen.c: Likewise.
91318         * lib/unistr/u32-mbsnlen.c: Likewise.
91319         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
91320         * lib/unistr/u32-mbtouc.c: Likewise.
91321         * lib/unistr/u32-mbtoucr.c: Likewise.
91322         * lib/unistr/u32-move.c: Likewise.
91323         * lib/unistr/u32-next.c: Likewise.
91324         * lib/unistr/u32-prev.c: Likewise.
91325         * lib/unistr/u32-set.c: Likewise.
91326         * lib/unistr/u32-startswith.c: Likewise.
91327         * lib/unistr/u32-stpcpy.c: Likewise.
91328         * lib/unistr/u32-stpncpy.c: Likewise.
91329         * lib/unistr/u32-strcat.c: Likewise.
91330         * lib/unistr/u32-strchr.c: Likewise.
91331         * lib/unistr/u32-strcmp.c: Likewise.
91332         * lib/unistr/u32-strcpy.c: Likewise.
91333         * lib/unistr/u32-strcspn.c: Likewise.
91334         * lib/unistr/u32-strdup.c: Likewise.
91335         * lib/unistr/u32-strlen.c: Likewise.
91336         * lib/unistr/u32-strmblen.c: Likewise.
91337         * lib/unistr/u32-strmbtouc.c: Likewise.
91338         * lib/unistr/u32-strncat.c: Likewise.
91339         * lib/unistr/u32-strncmp.c: Likewise.
91340         * lib/unistr/u32-strncpy.c: Likewise.
91341         * lib/unistr/u32-strnlen.c: Likewise.
91342         * lib/unistr/u32-strpbrk.c: Likewise.
91343         * lib/unistr/u32-strrchr.c: Likewise.
91344         * lib/unistr/u32-strspn.c: Likewise.
91345         * lib/unistr/u32-strstr.c: Likewise.
91346         * lib/unistr/u32-strtok.c: Likewise.
91347         * lib/unistr/u32-to-u16.c: Likewise.
91348         * lib/unistr/u32-to-u8.c: Likewise.
91349         * lib/unistr/u32-uctomb.c: Likewise.
91350         * lib/unistr/u8-check.c: Likewise.
91351         * lib/unistr/u8-chr.c: Likewise.
91352         * lib/unistr/u8-cmp.c: Likewise.
91353         * lib/unistr/u8-cpy-alloc.c: Likewise.
91354         * lib/unistr/u8-cpy.c: Likewise.
91355         * lib/unistr/u8-endswith.c: Likewise.
91356         * lib/unistr/u8-mblen.c: Likewise.
91357         * lib/unistr/u8-mbsnlen.c: Likewise.
91358         * lib/unistr/u8-mbtouc-aux.c: Likewise.
91359         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
91360         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
91361         * lib/unistr/u8-mbtouc.c: Likewise.
91362         * lib/unistr/u8-mbtoucr.c: Likewise.
91363         * lib/unistr/u8-move.c: Likewise.
91364         * lib/unistr/u8-next.c: Likewise.
91365         * lib/unistr/u8-prev.c: Likewise.
91366         * lib/unistr/u8-set.c: Likewise.
91367         * lib/unistr/u8-startswith.c: Likewise.
91368         * lib/unistr/u8-stpcpy.c: Likewise.
91369         * lib/unistr/u8-stpncpy.c: Likewise.
91370         * lib/unistr/u8-strcat.c: Likewise.
91371         * lib/unistr/u8-strchr.c: Likewise.
91372         * lib/unistr/u8-strcmp.c: Likewise.
91373         * lib/unistr/u8-strcpy.c: Likewise.
91374         * lib/unistr/u8-strcspn.c: Likewise.
91375         * lib/unistr/u8-strdup.c: Likewise.
91376         * lib/unistr/u8-strlen.c: Likewise.
91377         * lib/unistr/u8-strmblen.c: Likewise.
91378         * lib/unistr/u8-strmbtouc.c: Likewise.
91379         * lib/unistr/u8-strncat.c: Likewise.
91380         * lib/unistr/u8-strncmp.c: Likewise.
91381         * lib/unistr/u8-strncpy.c: Likewise.
91382         * lib/unistr/u8-strnlen.c: Likewise.
91383         * lib/unistr/u8-strpbrk.c: Likewise.
91384         * lib/unistr/u8-strrchr.c: Likewise.
91385         * lib/unistr/u8-strspn.c: Likewise.
91386         * lib/unistr/u8-strstr.c: Likewise.
91387         * lib/unistr/u8-strtok.c: Likewise.
91388         * lib/unistr/u8-to-u16.c: Likewise.
91389         * lib/unistr/u8-to-u32.c: Likewise.
91390         * lib/unistr/u8-uctomb-aux.c: Likewise.
91391         * lib/unistr/u8-uctomb.c: Likewise.
91392         * lib/unitypes.h: Likewise.
91393         * lib/uniwidth.h: Likewise.
91394         * lib/uniwidth/cjk.h: Likewise.
91395         * lib/uniwidth/u16-strwidth.c: Likewise.
91396         * lib/uniwidth/u16-width.c: Likewise.
91397         * lib/uniwidth/u32-strwidth.c: Likewise.
91398         * lib/uniwidth/u32-width.c: Likewise.
91399         * lib/uniwidth/u8-strwidth.c: Likewise.
91400         * lib/uniwidth/u8-width.c: Likewise.
91401         * lib/uniwidth/width.c: Likewise.
91403 2007-10-07  Bruno Haible  <bruno@clisp.org>
91405         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
91406         The file is still under LGPL (see modules/inttypes).
91408 2007-10-06  Bruno Haible  <bruno@clisp.org>
91410         * modules/trunc (Dependencies): Add 'extensions'.
91411         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
91412         Reported by Ben Pfaff <blp@gnu.org>.
91414 2007-10-06  Bruno Haible  <bruno@clisp.org>
91416         * modules/freopen-tests: New file.
91417         * tests/test-freopen.c: New file.
91419         * modules/fopen-tests: New file.
91420         * tests/test-fopen.c: New file.
91422         * modules/fopen: New file.
91423         * lib/fopen.c: New file.
91424         * m4/fopen.m4: New file.
91425         * modules/freopen: New file.
91426         * lib/freopen.c: New file.
91427         * m4/freopen.m4: New file.
91428         * lib/stdio.in.h (fopen, freopen): New declarations.
91429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
91430         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
91431         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
91432         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
91433         * doc/functions/fopen.texi: Mention the 'fopen' module.
91434         * doc/functions/freopen.texi: Mention the 'freopen' module.
91436 2007-10-06  Bruno Haible  <bruno@clisp.org>
91438         * modules/open-tests: New file.
91439         * tests/test-open.c: New file.
91441         * modules/open: New file.
91442         * lib/open.c: New file.
91443         * m4/open.m4: New file.
91444         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
91445         lib/open.c does.
91446         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
91447         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
91448         macros.
91449         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
91450         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
91451         REPLACE_OPEN.
91452         * doc/functions/open.texi: Mention the 'open' module.
91454 2007-10-04  Bruno Haible  <bruno@clisp.org>
91456         * modules/ceill-tests: New file.
91457         * tests/test-ceill.c: New file.
91459         * modules/ceill: New file.
91460         * lib/ceill.c: Replace entire file.
91461         * m4/ceill.m4: New file.
91462         * lib/math.in.h (ceill): Replace declaration.
91463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
91464         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
91465         * doc/functions/ceill.texi: Mention the 'ceill' module.
91466         * modules/mathl (Files): Remove lib/ceill.c.
91467         (Depends-on): Add ceill.
91469 2007-10-04  Bruno Haible  <bruno@clisp.org>
91471         * modules/ceilf-tests: New file.
91472         * tests/test-ceilf.c: New file.
91474         * modules/ceilf: New file.
91475         * lib/ceil.c: New file.
91476         * lib/ceilf.c: New file.
91477         * m4/ceilf.m4: New file.
91478         * lib/math.in.h (ceilf): New declaration.
91479         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
91480         HAVE_DECL_CEILF.
91481         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
91482         HAVE_DECL_CEILF.
91483         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
91485 2007-10-04  Bruno Haible  <bruno@clisp.org>
91487         * modules/floorl-tests: New file.
91488         * tests/test-floorl.c: New file.
91490         * modules/floorl: New file.
91491         * lib/floorl.c: Replace entire file.
91492         * m4/floorl.m4: New file.
91493         * lib/math.in.h (floorl): Replace declaration.
91494         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
91495         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
91496         * doc/functions/floorl.texi: Mention the 'floorl' module.
91497         * modules/mathl (Files): Remove lib/floorl.c.
91498         (Depends-on): Add floorl.
91500 2007-10-04  Bruno Haible  <bruno@clisp.org>
91502         * modules/floorf-tests: New file.
91503         * tests/test-floorf.c: New file.
91505         * modules/floorf: New file.
91506         * lib/floor.c: New file.
91507         * lib/floorf.c: New file.
91508         * m4/floorf.m4: New file.
91509         * lib/math.in.h (floorf): New declaration.
91510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
91511         HAVE_DECL_FLOORF.
91512         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
91513         HAVE_DECL_FLOORF.
91514         * doc/functions/floorf.texi: Mention the 'floorf' module.
91516 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
91517             Bruno Haible  <bruno@clisp.org>
91519         Advertise for the Git server instead of the CVS server.
91520         * doc/gnulib-intro.texi (Steady Development): Mention the Git
91521         repository instead of the CVS one.
91522         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
91523         about all VCS systems generically.
91524         * doc/gnulib.texi (Introduction): Capitalize `Git'.
91526 2007-10-04  Bruno Haible  <bruno@clisp.org>
91528         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
91529         means.
91530         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
91532 2007-10-04  Bruno Haible  <bruno@clisp.org>
91534         * modules/truncl-tests: New file.
91535         * tests/test-truncl.c: New file.
91537         * modules/truncl: New file.
91538         * lib/truncl.c: New file.
91539         * m4/truncl.m4: New file.
91540         * lib/math.in.h (truncl): New declaration.
91541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
91542         HAVE_DECL_TRUNCL.
91543         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
91544         HAVE_DECL_TRUNCL.
91545         * doc/functions/truncl.texi: Mention the 'truncl' module.
91547 2007-10-04  Bruno Haible  <bruno@clisp.org>
91549         * modules/truncf-tests: New file.
91550         * tests/test-truncf.c: New file.
91552         * modules/truncf: New file.
91553         * lib/trunc.c: Make paramerizable through USE_* macros.
91554         * lib/truncf.c: New file.
91555         * m4/truncf.m4: New file.
91556         * lib/math.in.h (truncf): New declaration.
91557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
91558         HAVE_DECL_TRUNCF.
91559         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
91560         HAVE_DECL_TRUNCF.
91561         * doc/functions/truncf.texi: Mention the 'truncf' module.
91563 2007-10-03  Bruno Haible  <bruno@clisp.org>
91565         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
91566         augmentation also for tests modules.
91567         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
91568         * modules/atexit-tests (Makefile.am): Likewise.
91569         * modules/binary-io-tests (Makefile.am): Likewise.
91570         * modules/c-strcase-tests (Makefile.am): Likewise.
91571         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
91572         * modules/canonicalize-tests (Makefile.am): Likewise.
91573         * modules/closein-tests (Makefile.am): Likewise.
91574         * modules/fprintf-posix-tests (Makefile.am): Likewise.
91575         * modules/freadahead-tests (Makefile.am): Likewise.
91576         * modules/fseek-tests (Makefile.am): Likewise.
91577         * modules/fseeko-tests (Makefile.am): Likewise.
91578         * modules/ftell-tests (Makefile.am): Likewise.
91579         * modules/ftello-tests (Makefile.am): Likewise.
91580         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
91581         * modules/isnanl-tests (Makefile.am): Likewise.
91582         * modules/lseek-tests (Makefile.am): Likewise.
91583         * modules/mbscasecmp-tests (Makefile.am): Likewise.
91584         * modules/mbscasestr-tests (Makefile.am): Likewise.
91585         * modules/mbschr-tests (Makefile.am): Likewise.
91586         * modules/mbscspn-tests (Makefile.am): Likewise.
91587         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
91588         * modules/mbspbrk-tests (Makefile.am): Likewise.
91589         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
91590         * modules/mbsrchr-tests (Makefile.am): Likewise.
91591         * modules/mbsspn-tests (Makefile.am): Likewise.
91592         * modules/mbsstr-tests (Makefile.am): Likewise.
91593         * modules/printf-posix-tests (Makefile.am): Likewise.
91594         * modules/snprintf-posix-tests (Makefile.am): Likewise.
91595         * modules/sprintf-posix-tests (Makefile.am): Likewise.
91596         * modules/tsearch-tests (Makefile.am): Likewise.
91597         * modules/uniname/uniname-tests (Makefile.am): Likewise.
91598         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
91599         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
91600         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
91601         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
91602         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
91603         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
91604         * modules/vprintf-posix-tests (Makefile.am): Likewise.
91605         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
91606         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
91607         * modules/xstrtoimax-tests (Makefile.am): Likewise.
91608         * modules/xstrtol-tests (Makefile.am): Likewise.
91609         * modules/xstrtoumax-tests (Makefile.am): Likewise.
91610         * modules/yesno-tests (Makefile.am): Likewise.
91612 2007-10-03  Bruno Haible  <bruno@clisp.org>
91614         * modules/trunc-tests: New file.
91615         * tests/test-trunc.c: New file.
91617         * modules/trunc: New file.
91618         * lib/trunc.c: New file.
91619         * m4/trunc.m4: New file.
91620         * lib/math.in.h (trunc): New declaration.
91621         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
91622         HAVE_DECL_TRUNC.
91623         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
91624         HAVE_DECL_TRUNC.
91625         * doc/functions/trunc.texi: Mention the 'trunc' module.
91627 2007-10-03  Bruno Haible  <bruno@clisp.org>
91629         * tests/test-fpending.c: New file, mostly copied
91630         from coreutils/lib/t-fpending.c.
91631         * modules/fpending-tests: New file.
91633 2007-10-03  Bruno Haible  <bruno@clisp.org>
91635         Port the stdio extensions to QNX (untested).
91636         * lib/fseterr.c (fseterr): Add support for QNX.
91637         * lib/fbufmode.c (fbufmode): Likewise.
91638         * lib/freadable.c (freadable): Likewise.
91639         * lib/fwritable.c (fwritable): Likewise.
91640         * lib/freading.c (freading): Likewise.
91641         * lib/fwriting.c (fwriting): Likewise.
91642         * lib/freadahead.c (freadahed): Likewise.
91643         * lib/fpurge.c (fpurge): Likewise.
91644         * lib/fseeko.c (rpl_fseeko): Likewise.
91646 2007-10-03  Bruno Haible  <bruno@clisp.org>
91647             Jim Meyering  <jim@meyering.net>
91648             Eric Blake  <ebb9@byu.net>
91650         * doc/relocatable.texi: Use @command instead of @program.
91652 2007-10-02  Jim Meyering  <jim@meyering.net>
91654         Perform one more "_.h" -> ".in.h" substitution.
91655         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
91656         instead of unistd_.h here, too.
91658 2007-10-01  Bruno Haible  <bruno@clisp.org>
91660         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
91661         Needed for the alloca-opt module.
91663 2007-09-30  Bruno Haible  <bruno@clisp.org>
91665         * lib/alloca.in.h: Renamed from lib/alloca_.h.
91666         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
91667         alloca_.h.
91668         * lib/argz.in.h: Renamed from lib/argz_.h.
91669         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
91670         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
91671         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
91672         byteswap_.h.
91673         * lib/dirent.in.h: Renamed from lib/dirent_.h.
91674         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
91675         dirent_.h.
91676         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
91677         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
91678         fcntl_.h.
91679         * lib/float.in.h: Renamed from lib/float_.h.
91680         * modules/float (Files, Makefile.am): Use float.in.h instead of
91681         float_.h.
91682         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
91683         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
91684         fnmatch_.h.
91685         * lib/getopt.in.h: Renamed from lib/getopt_.h.
91686         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
91687         getopt_.h.
91688         * lib/glob.in.h: Renamed from lib/glob_.h.
91689         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
91690         * lib/iconv.in.h: Renamed from lib/iconv_.h.
91691         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
91692         iconv_.h.
91693         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
91694         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
91695         inttypes_.h.
91696         * lib/locale.in.h: Renamed from lib/locale_.h.
91697         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
91698         locale_.h.
91699         * lib/math.in.h: Renamed from lib/math_.h.
91700         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
91701         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
91702         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
91703         of netinet_in_.h. Add dependency.
91704         * lib/poll.in.h: Renamed from lib/poll_.h.
91705         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
91706         * lib/search.in.h: Renamed from lib/search_.h.
91707         * modules/search (Files, Makefile.am): Use search.in.h instead of
91708         search_.h.
91709         * lib/signal.in.h: Renamed from lib/signal_.h.
91710         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
91711         _signal.h.
91712         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
91713         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
91714         stdbool_.h.
91715         * lib/stdint.in.h: Renamed from lib/stdint_.h.
91716         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
91717         stdint_.h.
91718         * lib/stdio.in.h: Renamed from lib/stdio_.h.
91719         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
91720         stdio_.h.
91721         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
91722         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
91723         stdlib_.h.
91724         * lib/string.in.h: Renamed from lib/string_.h.
91725         * modules/string (Files, Makefile.am): Use string.in.h instead of
91726         string_.h.
91727         * doc/gnulib-tool.texi (Initial import): Update.
91728         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
91729         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
91730         of sys_select_.h. Add dependency.
91731         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
91732         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
91733         of sys_socket_.h.
91734         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
91735         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
91736         sys_stat_.h.
91737         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
91738         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
91739         sys_time_.h.
91740         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
91741         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
91742         sysexits_.h.
91743         * lib/time.in.h: Renamed from lib/time_.h.
91744         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
91745         * lib/unistd.in.h: Renamed from lib/unistd_.h.
91746         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
91747         unistd_.h.
91748         * lib/wchar.in.h: Renamed from lib/wchar_.h.
91749         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
91750         wchar_.h.
91751         * lib/wctype.in.h: Renamed from lib/wctype_.h.
91752         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
91753         wctype_.h.
91754         * build-aux/bootstrap (slurp): Update.
91755         * lib/.cppi-disable: Update.
91757 2007-09-30  Bruno Haible  <bruno@clisp.org>
91759         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
91760         Needed on BeOS.
91762 2007-09-30  Bruno Haible  <bruno@clisp.org>
91764         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
91766 2007-09-29  Bruno Haible  <bruno@clisp.org>
91768         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
91770 2007-09-29  Bruno Haible  <bruno@clisp.org>
91772         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
91773         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
91774         * build-aux/install-reloc: Compile also areadlink.c.
91775         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
91777 2007-09-29  Bruno Haible  <bruno@clisp.org>
91779         * gnulib-tool (func_emit_initmacro_done): Indentation.
91781 2007-09-29  Bruno Haible  <bruno@clisp.org>
91783         * README: Add CVS checkout update instructions.
91784         Info from Bob Proulx <bob@proulx.com>.
91786 2007-09-28  Eric Blake  <ebb9@byu.net>
91788         Provide move-if-change.
91789         * build-aux/move-if-change: New file, based on best practice
91790         rather than any canonical upstream location.
91792 2007-09-28  Jim Meyering  <jim@meyering.net>
91794         Fix canonicalize loop-detection corner case.
91795         Do not attempt to stat the symlink values stored via seen_triple.
91796         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
91797         on linux-2.6.18, (but not 2.6.22).
91798         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
91799         triple_compare.  The former compares dev,ino,filename, while the latter
91800         would actually stat dirname(filename) when dev and ino were equal.
91801         * lib/hash-triple.c: Install <string.h>.
91802         (STREQ): Define.
91803         (triple_compare_ino_str): New function.
91804         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
91806 2007-09-28  Eric Blake  <ebb9@byu.net>
91808         Enforce that AC_REPLACE_FUNCS files exist.
91809         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
91810         override check for typos.
91812         Fix test-closein on Solaris 10.
91813         * tests/test-closein.c (main): Don't assume stdin can be inherited
91814         closed on all systems.
91815         * tests/test-closein.sh: Likewise.
91816         Reported by Piotr Tarnowski.
91818 2007-09-28  Jim Meyering  <jim@meyering.net>
91820         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
91822 2007-09-27  Jim Meyering  <jim@meyering.net>
91824         canonicalize: Avoid a false-positive cycle failure.
91825         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
91826         Sort.  Remove cycle-check.
91827         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
91828         not cycle-check.h.
91829         (seen_triple): New function.
91830         (canonicalize_filename_mode): Use it instead of cycle-check.
91831         * tests/test-canonicalize.c: Add a test for this bug.
91832         * tests/test-canonicalize.sh: Set up and run the test.
91834         New module, file-set, from coreutils.
91835         * modules/file-set: Define it.
91836         * lib/file-set.c, lib/file-set.h: Implement.
91838         New module, hash-triple, from coreutils.
91839         * modules/hash-triple: Define it.
91840         * lib/hash-triple.c, lib/hash-triple.h: Implement.
91842 2007-09-25  Eric Blake  <ebb9@byu.net>
91844         Fix strerror on Interix.
91845         * lib/string_.h (strerror): Declare replacement.
91846         * doc/functions/strerror.texi (strerror): Document the Interix
91847         shortcoming.
91848         * modules/string (Makefile.am): Support new hooks.
91849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
91850         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
91851         gl_FUNC_STRERROR_SEPARATE.
91852         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
91853         * lib/strerror.c (rpl_strerror): Provide replacement.
91854         * modules/strerror (Depends-on): Add string.
91855         (configure.ac): Detect use of module.
91856         * tests/test-strerror.c: New file.
91857         * modules/strerror-tests: New test module.
91858         * modules/argp (Depends-on): Add strerror.
91859         * modules/error (Depends-on): Likewise.
91860         Reported by Martin Koeppe.
91862 2007-09-24  Bruno Haible  <bruno@clisp.org>
91864         * README: Update git instructions.
91866 2007-09-24  Eric Blake  <ebb9@byu.net>
91868         Revert fpending breakage from 2007-09-08.
91869         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
91870         __fpending.c.
91872 2007-09-24  Jim Meyering  <jim@meyering.net>
91874         filenamecat.c: Add a test.
91875         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
91876         showing how the function works when DIR is the empty string.
91878 2007-09-21  Simon Josefsson  <simon@josefsson.org>
91880         * tests/test-canonicalize.sh: Turn on executable bit.
91882 2007-09-19  Eric Blake  <ebb9@byu.net>
91884         * README: Update CVS instructions.
91886 2007-09-18  Bruno Haible  <bruno@clisp.org>
91888         * modules/areadlink: New file.
91889         * lib/areadlink.h (areadlink): New declaration.
91890         * lib/areadlink.c: New file, based on lib/xreadlink.c.
91892 2007-09-17  Jim Meyering  <jim@meyering.net>
91894         * lib/savewd.c (ESTALE) [!defined]: Define.
91895         Reported to be required on Interix by Martin Koeppe.
91897 2007-09-17  Bruno Haible  <bruno@clisp.org>
91899         * gnulib-tool (func_version): Use $version.
91901 2007-09-16  Bruno Haible  <bruno@clisp.org>
91903         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
91904         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
91905         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
91906         Reported by Greg Schafer <gschafer@zip.com.au>.
91908 2007-09-15  Bruno Haible  <bruno@clisp.org>
91910         * gnulib-tool (sed): Try a little harder to make bash understand the
91911         alias.
91912         Reported by Bruce Korb <bruce.korb@gmail.com>.
91914 2007-09-13  Eric Blake  <ebb9@byu.net>
91916         * ChangeLog: Remove conflict markers.
91918 2007-09-13  Simon Josefsson  <simon@josefsson.org>
91920         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
91921         Reported by Bruno Haible <bruno@clisp.org>.
91923 2007-09-12  Bruno Haible  <bruno@clisp.org>
91925         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
91926         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
91927         is not defined.
91929 2007-09-12  Eric Blake  <ebb9@byu.net>
91931         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
91932         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
91933         Autoconf definition.
91934         * modules/euidaccess (Depends-on): Add extensions, for
91935         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
91936         * modules/fnmatch (Depends-on): Likewise.
91937         * modules/getaddrinfo (Depends-on): Likewise.
91938         * modules/getdelim (Depends-on): Likewise.
91939         * modules/getline (Depends-on): Likewise.
91940         * modules/getsubopt (Depends-on): Likewise.
91941         * modules/gettext (Depends-on): Likewise.
91942         * modules/group-member (Depends-on): Likewise.
91943         * modules/mbchar (Depends-on): Likewise.
91944         * modules/memmem (Depends-on): Likewise.
91945         * modules/mempcpy (Depends-on): Likewise.
91946         * modules/memrchr (Depends-on): Likewise.
91947         * modules/pagealign_alloc (Depends-on): Likewise.
91948         * modules/readutmp (Depends-on): Likewise.
91949         * modules/stpcpy (Depends-on): Likewise.
91950         * modules/stpncpy (Depends-on): Likewise.
91951         * modules/strchrnul (Depends-on): Likewise.
91952         * modules/strndup (Depends-on): Likewise.
91953         * modules/strsep (Depends-on): Likewise.
91954         * modules/strverscmp (Depends-on): Likewise.
91955         * modules/vasprintf (Depends-on): Likewise.
91956         * modules/wcwidth (Depends-on): Likewise.
91957         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
91958         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
91959         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
91960         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
91961         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
91962         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
91963         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
91964         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
91965         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
91966         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
91967         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
91968         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
91969         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
91970         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
91971         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
91972         * m4/readutmp.m4 (gl_READUTMP): Likewise.
91973         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
91974         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
91975         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
91976         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
91977         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
91978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
91979         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
91980         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
91981         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
91982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
91983         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
91984         so that lock.m4 can be used in gettext without extensions module.
91986 2007-09-11  Bruno Haible  <bruno@clisp.org>
91988         * m4/isc-posix.m4: Remove file.
91989         Suggested by Eric Blake.
91991 2007-09-11  Eric Blake  <ebb9@byu.net>
91993         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
91995 2007-09-10  Bruno Haible  <bruno@clisp.org>
91997         * posix-modules: Fix typo in error message.
91998         Reported by Matt <mkraai@beckman.com>.
92000 2007-09-09  Bruno Haible  <bruno@clisp.org>
92002         * doc/functions/getdelim.texi: Update list of platforms lacking the
92003         function.
92004         * doc/functions/getline.texi: Likewise.
92006 2007-09-09  Jim Meyering  <jim@meyering.net>
92008         * lib/hash.c (hash_initialize): Detect calloc failure.
92009         Reported by Bruno Haible.
92011 2007-09-09  Bruno Haible  <bruno@clisp.org>
92013         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
92014         malloc or realloc fails.
92016 2007-09-09  Bruno Haible  <bruno@clisp.org>
92018         * modules/getcwd (Depends-on): Add malloc-posix.
92019         * modules/glob (Depends-on): Likewise.
92020         * modules/putenv (Depends-on): Likewise.
92021         * modules/strdup (Depends-on): Likewise.
92022         * modules/getdelim (Depends-on): Add realloc-posix.
92023         * modules/read-file (Depends-on): Likewise.
92025 2007-09-09  Bruno Haible  <bruno@clisp.org>
92027         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
92028         (gl_FUNC_MALLOC_POSIX): Require it.
92029         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
92030         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
92031         * modules/realloc (Files): Add m4/malloc.m4.
92032         * modules/calloc (Files): Likewise.
92034 2007-09-09  Bruno Haible  <bruno@clisp.org>
92036         * modules/malloc-posix: New file.
92037         * modules/malloc (Depends-on): Add malloc-posix.
92038         * lib/malloc.c: Include errno.h.
92039         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
92040         and a POSIX-compatible malloc into a single function. Set ENOMEM
92041         when returning NULL.
92042         * m4/malloc.m4: New file.
92043         * doc/functions/malloc.texi: Mention the malloc-posix module.
92044         * lib/stdlib_.h (malloc): New declaration.
92045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
92046         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
92047         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
92048         and HAVE_MALLOC_POSIX.
92050 2007-09-09  Bruno Haible  <bruno@clisp.org>
92052         * modules/realloc-posix: New file.
92053         * modules/realloc (Depends-on): Add realloc-posix.
92054         * lib/realloc.c: Include errno.h.
92055         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
92056         and a POSIX-compatible realloc into a single function. Set ENOMEM
92057         when returning NULL.
92058         * m4/realloc.m4: New file.
92059         * doc/functions/realloc.texi: Mention the realloc-posix module.
92060         * lib/stdlib_.h (realloc): New declaration.
92061         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
92062         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
92063         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
92064         and HAVE_REALLOC_POSIX.
92066 2007-09-09  Bruno Haible  <bruno@clisp.org>
92068         * modules/calloc-posix: New file.
92069         * modules/calloc (Depends-on): Add calloc-posix.
92070         * lib/calloc.c: Include errno.h.
92071         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
92072         and a POSIX-compatible calloc into a single function. Set ENOMEM
92073         when returning NULL.
92074         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
92075         * doc/functions/calloc.texi: Mention the calloc-posix module.
92076         * lib/stdlib_.h (calloc): New declaration.
92077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
92078         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
92079         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
92080         and HAVE_CALLOC_POSIX.
92082 2007-09-09  Bruno Haible  <bruno@clisp.org>
92084         Allow for modules to show an arbitrary notice.
92085         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
92086         * gnulib-tool: New option --extract-notice.
92087         (func_usage): Document it.
92088         (sed_extract_prog): Update.
92089         (func_get_notice): New function.
92090         (func_modules_notice): New function.
92091         (func_import, func_create_testdir): Invoke it.
92092         Suggested by Jim Meyering.
92094 2007-09-09  Bruno Haible  <bruno@clisp.org>
92096         * gnulib-tool: New options --verbose, --quiet.
92097         (func_usage): Document them.
92098         (verbose): New variable.
92099         (func_execute_command): New function.
92100         (func_import): Don't show the module list and the file list if
92101         $verbose < 0.
92102         (func_create_testdir): Likewise. Use func_execute_command.
92103         (func_create_megatestdir): Use func_execute_command.
92105 2007-09-08  Bruno Haible  <bruno@clisp.org>
92107         * gnulib-tool (func_import): Prefer rsync over wget when available,
92108         for fetching the PO files.
92110 2007-09-08  Bruno Haible  <bruno@clisp.org>
92112         * posix-modules: New file. Portions copied from gnulib-tool.
92113         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
92115 2007-09-08  Jim Meyering  <jim@meyering.net>
92117         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
92118         * lib/fpending.h: Rename from __fpending.h.
92119         * lib/fpending.c: Rename from __fpending.c.
92120         Include "fpending.h", not "__fpending.h".
92121         * lib/__fpending.h, lib/__fpending.c: Remove files.
92122         * modules/fpending (Files): Reflect new file names.
92123         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
92125 2007-09-08  Bruno Haible  <bruno@clisp.org>
92127         * m4/inttypes-h.m4: Remove stub file.
92129 2007-09-07  Simon Josefsson  <simon@josefsson.org>
92131         * doc/headers/stdint.texi: Discuss #include_next issue.
92133 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
92135         * build-aux/bootstrap: Remove obsolete comment about wget --help.
92137 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92139         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
92140         in variable name.
92142 2007-09-03  Jim Meyering  <jim@meyering.net>
92144         New module: git-version-gen.
92145         * modules/git-version-gen: New file.
92147         Import changes from coreutils for bootstrap script.
92149         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
92151         bootstrap: uses rsync to download the .po files
92152         * build-aux/bootstrap (po_download_command_format): New global.
92153         (download_po_files): Use rsync.
92154         (update_po_files): Don't remove .po files after download,
92155         so future rsync runs can take advantage of the copies.
92157         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
92159         Solve the unnecessary-.po-file-regeneration problem once and for all.
92160         * build-aux/bootstrap (download_po_files): New function, renamed from
92161         get_translations.  Now, downloads, but doesn't update LINGUAS.
92162         (update_po_files): New function.
92164         bootstrap: Ignore more.
92165         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
92166         uniwidth to e.g., lib/.gitignore.
92167         (slurp): Handle the sys_stat_.h -> sys mapping, too.
92169         * build-aux/bootstrap: New setting: vc_ignore.
92170         (insert_sorted_if_absent): Create $file if absent.
92171         Adapt to new, possibly empty, list: $vc_ignore.
92173         bootstrap: generate more ignorable names
92174         * build-aux/bootstrap (slurp): When generating ignorable names,
92175         also map .sin to .sed, .gperf to .c, and .y to .c.
92177 2007-09-03  Jim Meyering  <jim@meyering.net>
92179         * build-aux/git-version-gen: New file, from coreutils.  For details, see
92180         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
92182 2007-09-02  Bruno Haible  <bruno@clisp.org>
92184         Fix mis-recognition of 'mcs' on QNX 6.
92185         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
92186         output contains the string "Mono".
92187         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
92188         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
92190 2007-09-01  Bruno Haible  <bruno@clisp.org>
92192         Fix collision between uniwidth/* and linebreak modules.
92193         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
92194         u32_width): Remove declarations.
92195         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
92196         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
92197         streq3, streq2, streq1, streq0): Remove functions.
92198         (STREQ): Remove macro.
92199         (is_cjk_encoding): Remove function.
92200         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
92201         (uc_width, u8_width, u16_width, u32_width): Remove functions.
92202         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
92203         * NEWS: Document the change.
92205 2007-09-01  Bruno Haible  <bruno@clisp.org>
92207         * lib/streq.h: Add double-inclusion guard.
92209 2007-09-01  Karl Berry  <karl@gnu.org>
92211         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
92213 2007-08-28  Jim Meyering  <jim@meyering.net>
92215         Rename mreadlink_with_size to areadlink_with_size.
92216         * NEWS: Document the change.
92217         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
92218         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
92219         * lib/mreadlink.h: Rename this to...
92220         * lib/areadlink.h: ...this.
92221         * modules/mreadlink-with-size: Rename this to...
92222         * modules/areadlink-with-size: ...this.
92223         * lib/canonicalize.c: Reflect the renaming.
92224         * modules/canonicalize: Likewise.
92226 2007-08-26  Bruno Haible  <bruno@clisp.org>
92228         * gnulib-tool (func_import): When deciding which files to remove,
92229         consider also dangling symbolic links.
92230         Reported by Eric Blake.
92232 2007-08-26  Bruno Haible  <bruno@clisp.org>
92234         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
92236 2007-08-23  Simon Josefsson  <simon@josefsson.org>
92238         * lib/readline.c: Don't include getline.h, the prototype is now
92239         found in stdio.h.
92241 2007-08-23  Jim Meyering  <jim@meyering.net>
92243         Getdelim touchup.
92244         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
92245         around the funlockfile call, since funlockfile never sets errno.
92246         Don't set errno upon failed realloc.
92248 2007-08-22  Eric Blake  <ebb9@byu.net>
92250         Getline touchups.
92251         * lib/getdelim.c (getdelim): Revert regression that required *n to
92252         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
92253         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
92254         getdelim, rather than whether implementation is missing.
92255         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
92256         * lib/stdio_.h (getline): Also declare if replacement is
92257         required.
92258         * doc/functions/getdelim.texi: New file.
92259         * doc/functions/getline.texi: Likewise.
92260         * doc/gnulib.texi (Function Substitutes): Add new files.
92261         Reported by Bruno Haible.
92263 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
92265         * users.txt: Add Guile.
92267 2007-08-22  Eric Blake  <ebb9@byu.net>
92269         * tests/test-getdelim.c (main): Use remove, not unlink.
92270         * tests/test-getline.c (main): Likewise.
92272         Move getline and getdelim into stdio.h, per POSIX 200x.
92273         * modules/getline (Files): Remove getline.h.
92274         (Depends-on): Add stdio.
92275         (configure.ac): Add module indicator.
92276         * modules/getdelim (Files): Remove getdelim.h.
92277         (Depends-on): Add stdio.
92278         (configure.ac): Add module indicator.
92279         * modules/stdio (Makefile.am): Work with new indicators.
92280         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
92281         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
92282         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
92283         * lib/getdelim.h: Delete.
92284         * lib/getline.h: Delete.
92285         * lib/stdio_.h (getdelim, getline): Declare.
92286         * modules/getdelim-tests: New module.
92287         * modules/getline-tests: Likewise.
92288         * tests/test-getdelim.c: New file.
92289         * tests/test-getline.c: Likewise.
92290         * NEWS: Document the change.
92291         * lib/getline.c: Update choice of header.
92292         * lib/csharpcomp.c: Likewise.
92293         * lib/getpass.c: Likewise.
92294         * lib/javacomp.c: Likewise.
92295         * lib/javaversion.c: Likewise.
92296         * lib/yesno.c: Likewise.
92297         * lib/getdelim.c: Likewise.
92298         (getdelim): Set errno on failure, and avoid memory leak.
92300 2007-08-19  Bruno Haible  <bruno@clisp.org>
92302         * modules/closein (Depends-on): Add freadahead.
92303         * lib/closein.c: Include freadahead.h.
92304         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
92305         is zero.
92307 2007-08-19  Bruno Haible  <bruno@clisp.org>
92309         * modules/freadahead-tests: New file.
92310         * tests/test-freadahead.sh: New file.
92311         * tests/test-freadahead.c: New file.
92313         * modules/freadahead: New file.
92314         * lib/freadahead.h: New file.
92315         * lib/freadahead.c: New file.
92316         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
92317         fbufmode, fpurge, freadable, fwritable.
92319 2007-08-19  Eric Blake  <ebb9@byu.net>
92321         Test yesno in combination with closein.
92322         * lib/yesno.c (yesno): Document use of stdin.
92323         * modules/yesno-tests (Files): New module.
92324         * tests/test-yesno.c (main): New file.
92325         * tests/test-yesno.sh: Likewise.
92327 2007-08-19  Bruno Haible  <bruno@clisp.org>
92329         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
92330         * lib/fseeko.c (rpl_fseeko): Likewise.
92331         * lib/fseterr.c (fseterr): Likewise.
92333 2007-08-19  Bruno Haible  <bruno@clisp.org>
92335         * tests/test-lseek.c (main): Disable a test for BeOS.
92336         * doc/functions/lseek.texi: Document the BeOS bug.
92338 2007-08-19  Bruno Haible  <bruno@clisp.org>
92339             Eric Blake  <ebb9@byu.net>
92341         * lib/lseek.c: Include <sys/stat.h>.
92342         (rpl_lseek): Add workaround code also for Unix platforms.
92343         Needed for BeOS.
92344         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
92345         * doc/functions/lseek.texi: Document BeOS definiency.
92347 2007-08-18  Bruno Haible  <bruno@clisp.org>
92349         * modules/fstrcmp-tests: New file.
92350         * tests/test-fstrcmp.c: New file.
92352 2007-08-18  Bruno Haible  <bruno@clisp.org>
92354         * modules/fstrcmp: New file, from GNU gettext with modifications.
92355         * lib/fstrcmp.h: New file, from GNU gettext.
92356         * lib/fstrcmp.c: New file, from GNU gettext.
92357         * MODULES.html.sh (String handling): Add fstrcmp.
92359 2007-08-18  Bruno Haible  <bruno@clisp.org>
92361         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
92362         'bool'.
92363         (diag, compareseq): Remove const from the ctxt argument.
92364         (USE_HEURISTIC): Undefine at the end.
92366 2007-08-18  Jim Meyering  <jim@meyering.net>
92368         New file: lib/idcache.h
92369         * NEWS: Mention the addition.
92370         * modules/idcache (Files): Add lib/idcache.h
92371         * lib/idcache.c: Include "idcache.h".
92372         Don't include <sys/types.h>.
92373         Add a FIXME comment.
92374         Move file-scoped "static" declarations to the top.
92375         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
92377 2007-08-17  Bruno Haible  <bruno@clisp.org>
92378         and Paul Eggert  <eggert@cs.ucla.edu>
92380         * MODULES.html.sh: Add diffseq.
92381         * modules/diffseq: New file.
92382         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
92383         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
92385 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
92387         Import changes from coreutils for bootstrap script.
92389         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
92391         * build-aux/bootstrap (slurp): Work even in environments where
92392         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
92393         current code does not slurp files whose names start with ".", and
92394         this looks like it might be a troublesome area.
92396         2007-07-11  Jim Meyering  <jim@meyering.net>
92398         If there's a GPL vN copyright comment, require that N == 3.
92400         2007-07-08  Jim Meyering  <jim@meyering.net>
92402         Run the coreutils-specific code only if tests/Makefile.am.in exists.
92403         * build-aux/bootstrap (mam_template): Move definition out of loop.
92405         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
92407         * build-aux/bootstrap (symlink_to_dir): Rename function from
92408         symlink_to_gnulib.  Add a directory parameter.  Update all
92409         callers.
92410         (cp_mark_as_generated): Also check for -- and link to -- files in
92411         gl/.
92413         2007-07-08  Jim Meyering  <jim@meyering.net>
92415         Adapt to deeper hierarchy in gnulib.
92416         * build-aux/bootstrap (symlink_to_dir): If the destination
92417         directory doesn't exist, create it. This is required at least for
92418         "lib/uniwidth/cjk.h".
92420         2007-05-15  Jim Meyering  <jim@meyering.net>
92422         * build-aux/bootstrap: Now that generated Makefile.am files
92423         are no longer under version control, they must be created at
92424         bootstrap time.
92426 2007-08-14  Ben Pfaff  <blp@gnu.org>
92428         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
92430 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
92432         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
92433         given the changes below.
92434         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
92435         even on hosts that have padding bits beyond the supported 64.
92437 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
92439         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
92440         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
92441         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
92442         depends on it.
92443         (xstrtol_error): Remove.
92444         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
92445         but with a different signature.
92446         (ATTRIBUTE_NORETURN, __attribute__): New macros.
92447         * lib/xstrtol-error.c: Include exitfail.h.
92448         (xstrtol_fatal): New function, with a different signature from the
92449         old xstrtol_error, so that the caller need not worry about passing
92450         in an exit status, or about storage management of the option argument.
92451         (xstrtol_error): Now a static function.  Redo signature to
92452         implement xstrtol_fatal.  Output the correct number of hyphens in
92453         front of the option so that the caller need not worry about
92454         storage management.
92455         (N_): New macro.
92456         (_): Remove; not used now.
92457         * modules/xstrtol: Depend on getopt.
92458         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
92459         of old STRTOL_FATAL_ERROR macro.
92460         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
92461         of test program.
92462         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
92463         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
92465 2007-08-08  Eric Blake  <ebb9@byu.net>
92467         * lib/xstrtol-error.c: Add missing include.
92469         Move xstrtol messages into gnulib domain, when --pobase is used.
92470         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
92471         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
92472         * modules/xstrtol (Files): Distribute new file.
92473         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
92474         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
92475         * tests/test-xstrtol.c: ...into new file.
92476         * tests/test-xstrtoul.c: Also test xstrtoul.
92477         * tests/test-xstrtoimax.c: Also test xstrtoimax.
92478         * tests/test-xstrtoumax.c: Also test xstrtoumax.
92479         * tests/test-xstrtol.sh: Drive the tests.
92480         * tests/test-xstrtoimax.sh: Likewise.
92481         * tests/test-xstrtoumax.sh: Likewise.
92482         * modules/xstrtol-tests: New module.
92483         * modules/xstrtoimax-tests: Likewise.
92484         * modules/xstrtoumax-tests: Likewise.
92486 2007-08-08  Jim Meyering  <jim@meyering.net>
92488         New function: mfile_name_concat.
92489         * lib/filenamecat.c (mfile_name_concat): New function, just like
92490         file_name_concat, but return NULL upon failure rather than exiting
92491         with a diagnostic.
92492         * lib/filenamecat.h: Declare it.
92494 2007-08-07  Bruno Haible  <bruno@clisp.org>
92496         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
92497         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
92498         warning from gcc.
92499         Reported by Eric Blake.
92501 2007-08-07  Simon Josefsson  <simon@josefsson.org>
92503         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
92504         * modules/crypto/arcfour (License): Likewise.
92505         * modules/crypto/des-tests (License): Likewise.
92506         * modules/crypto/gc-arctwo-tests (License): Likewise.
92507         * modules/crypto/gc-des-tests (License): Likewise.
92508         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
92509         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
92510         * modules/crypto/gc-md2-tests (License): Likewise.
92511         * modules/crypto/gc-md4-tests (License): Likewise.
92512         * modules/crypto/gc-md5-tests (License): Likewise.
92513         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
92514         * modules/crypto/gc-rijndael-tests (License): Likewise.
92515         * modules/crypto/gc-sha1-tests (License): Likewise.
92516         * modules/crypto/gc-tests (License): Likewise.
92517         * modules/crypto/hmac-md5 (License): Likewise.
92518         * modules/crypto/hmac-sha1 (License): Likewise.
92519         * modules/crypto/md2-tests (License): Likewise.
92520         * modules/crypto/md4-tests (License): Likewise.
92521         * modules/crypto/md5 (License): Likewise.
92522         * modules/crypto/rijndael (License): Likewise.
92523         * modules/crypto/sha1 (License): Likewise.
92524         * modules/memxor (License): Likewise.
92526 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
92527         and Bruno Haible  <bruno@clisp.org>
92529         * NEWS: Describe interface changes to human, xstrtol.
92530         * lib/human.h: Include <xstrtol.h>.
92531         (human_options): Return enum strtol_error, not int.  Remove
92532         bool arg; take int * instead.
92533         * lib/human.c: Don't include "gettext.h".
92534         (_): Remove; no longer used.
92535         Don't include <xstrtol.h>, since human.h does it.
92536         (human_options): Adjust to abovementioned interface changes.
92537         Do not report error to stderr; that's now the caller's
92538         responsibility.
92539         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
92540         interface change.
92541         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
92542         Str, Argument_type_string.  All uses changed.  Put " argument"
92543         in diagnostics to make them clearer.  Change wording of suffix
92544         message for clarity.
92545         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
92546         Argument_type_string.
92547         (STRTOL_FATAL_WARN): Remove; no longer used.
92548         * modules/human (Depends-on): Remove gettext-h.
92550 2007-08-06  Simon Josefsson  <simon@josefsson.org>
92552         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
92554 2007-07-31  Bruno Haible  <bruno@clisp.org>
92556         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
92557         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
92558         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
92560 2007-07-31  Bruno Haible  <bruno@clisp.org>
92562         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
92563         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
92565 2007-07-30  Bruno Haible  <bruno@clisp.org>
92567         * modules/base64 (License): Use the synonymous term "LGPLv2+".
92568         * modules/c-ctype (License): Likewise.
92569         * modules/c-strcase (License): Likewise.
92570         * modules/check-version (License): Likewise.
92571         * modules/iconv (License): Likewise.
92572         * modules/iconv_open (License): Likewise.
92573         * modules/read-file (License): Likewise.
92574         * modules/striconv (License): Likewise.
92575         * modules/strverscmp (License): Likewise.
92576         * modules/vasprintf (License): Likewise.
92577         * modules/crypto/des (License): Likewise.
92578         * modules/crypto/gc (License): Likewise.
92579         * modules/crypto/gc-arcfour (License): Likewise.
92580         * modules/crypto/gc-arctwo (License): Likewise.
92581         * modules/crypto/gc-des (License): Likewise.
92582         * modules/crypto/gc-hmac-md5 (License): Likewise.
92583         * modules/crypto/gc-hmac-sha1 (License): Likewise.
92584         * modules/crypto/gc-md2 (License): Likewise.
92585         * modules/crypto/gc-md4 (License): Likewise.
92586         * modules/crypto/gc-md5 (License): Likewise.
92587         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
92588         * modules/crypto/gc-random (License): Likewise.
92589         * modules/crypto/gc-rijndael (License): Likewise.
92590         * modules/crypto/gc-sha1 (License): Likewise.
92591         * modules/crypto/md2 (License): Likewise.
92592         * modules/crypto/md4 (License): Likewise.
92594 2007-07-30  Jim Meyering  <jim@meyering.net>
92596         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
92597         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
92598         it has valid stat data.  This bug would cause du not to count the
92599         sizes of inaccessible directories.
92600         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
92601         in <http://bugzilla.redhat.com/250077>.
92603 2007-07-25  Peter O'Gorman  <peter@pogma.com>
92604             Bruno Haible  <bruno@clisp.org>
92606         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
92607         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
92608         #include_next, gives a diagnostic about it, but reports no error in
92609         the exit code.
92610         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
92612 2007-07-24  Ben Pfaff  <blp@gnu.org>
92614         Improve name: "count-one-bits" is better than "popcount".
92615         * MODULES.html.sh: Update name.
92616         * lib/popcount.h: Renamed lib/count-one-bits.h.
92617         (popcount): Renamed count_one_bits.
92618         (popcountl): Renamed count_one_bits_l.
92619         (popcountll): Renamed count_one_bits_ll.
92620         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
92621         * modules/popcount: Renamed module/count-one-bits.
92622         * modules/popcount-tests: Renamed module/count-one-bits-tests.
92623         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
92625 2007-07-23  Ben Pfaff  <blp@gnu.org>
92627         * lib/popcount.h (popcount32): Reduce size of constants, to allow
92628         better code generation, and add U to large constants to avoid
92629         warnings, in non-GCC case.
92630         Suggested by Bruno Haible.
92632 2007-07-23  Ben Pfaff  <blp@gnu.org>
92634         * lib/popcount.h: Use verify_true instead of if...abort.
92635         * modules/popcount: Depend on verify module.
92636         Suggested by Jim Meyering.
92638 2007-07-23  Bruno Haible  <bruno@clisp.org>
92640         * gnulib-tool (func_import): Create a .cvsignore file also when the
92641         directory is not yet in CVS but the toplevel directory is. When
92642         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
92643         Reported by Karl Berry.
92645 2007-07-22  Ben Pfaff  <blp@gnu.org>
92647         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
92648         case.
92649         Suggested by Eric Blake.
92651 2007-07-22  Ben Pfaff  <blp@gnu.org>
92653         New module: popcount.
92654         * MODULES.html.sh: Add popcount.
92655         * modules/popcount: New file.
92656         * modules/popcount-tests: New file.
92657         * tests/test-popcount.c: New file.
92658         * lib/popcount.h: New file.
92659         * m4/popcount.m4: New file.
92661 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
92663         * build-aux/announce-gen: Update to GPLv3.
92665         * build-aux/config.guess: Update from config.
92667 2007-07-21  Bruno Haible  <bruno@clisp.org>
92669         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
92670         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
92672 2007-07-20  Jim Meyering  <jim@meyering.net>
92674         * check-module: Diagnose a self-dependency.
92676 2007-07-19  Bruno Haible  <bruno@clisp.org>
92678         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
92679         empty.
92680         Reported by Eric Blake.
92682 2007-07-18  Bruno Haible  <bruno@clisp.org>
92684         * gnulib-tool: New options --po-base, --po-domain.
92685         (func_usage): Document them.
92686         (pobase, po_domain): New variables.
92687         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
92688         DEFAULT_TEXT_DOMAIN.
92689         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
92690         (func_import): Consider pobase and po_domain. Create a po/ directory.
92691         (func_create_testdir): Set pobase and po_domain to empty.
92692         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
92693         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
92695 2007-07-18  Bruno Haible  <bruno@clisp.org>
92697         * gnulib-tool (func_get_automake_snippet): Synthesize also an
92698         EXTRA_DIST augmentation for files in build-aux/.
92700 2007-07-16  Bruno Haible  <bruno@clisp.org>
92702         * modules/lseek (License): Use the synonymous term "LGPLv2+".
92703         * modules/getdelim (License): Likewise.
92705 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92707         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
92708         * modules/d-type (License): Likewise.
92709         * modules/extensions (License): Likewise.
92710         * modules/fnmatch (License): Likewise.
92711         * modules/fseeko (License): Likewise.
92712         * modules/getaddrinfo (License): Likewise.
92713         * modules/getline (License): Likewise.
92714         * modules/getlogin_r (License): Likewise.
92715         * modules/getpass (License): Likewise.
92716         * modules/gettimeofday (License): Likewise.
92717         * modules/glob (License): Likewise.
92718         * modules/inet_ntop (License): Likewise.
92719         * modules/malloc (License): Likewise.
92720         * modules/malloca (License): Likewise.
92721         * modules/memmem (License): Likewise.
92722         * modules/mempcpy (License): Likewise.
92723         * modules/memset (License): Likewise.
92724         * modules/minmax (License): Likewise.
92725         * modules/mktime (License): Likewise.
92726         * modules/netinet_in (License): Likewise.
92727         * modules/pathmax (License): Likewise.
92728         * modules/poll (License): Likewise.
92729         * modules/regex (License): Likewise.
92730         * modules/snprintf (License): Likewise.
92731         * modules/stdbool (License): Likewise.
92732         * modules/stdint (License): Likewise.
92733         * modules/stdio (License): Likewise.
92734         * modules/strcase (License): Likewise.
92735         * modules/strcasestr (License): Likewise.
92736         * modules/strdup (License): Likewise.
92737         * modules/string (License): Likewise.
92738         * modules/strndup (License): Likewise.
92739         * modules/strnlen (License): Likewise.
92740         * modules/strpbrk (License): Likewise.
92741         * modules/strptime (License): Likewise.
92742         * modules/strsep (License): Likewise.
92743         * modules/sys_select (License): Likewise.
92744         * modules/sys_socket (License): Likewise.
92745         * modules/sys_stat (License): Likewise.
92746         * modules/sys_time (License): Likewise.
92747         * modules/time (License): Likewise.
92748         * modules/time_r (License): Likewise.
92749         * modules/timegm (License): Likewise.
92750         * modules/unistd (License): Likewise.
92751         * modules/vsnprintf (License): Likewise.
92752         * modules/wctype (License): Likewise.
92754 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92756         * modules/argz (License): LGPLv2+.
92758 2007-07-15  Karl Berry  <karl@gnu.org>
92760         * doc/gnulib.texi: revise node structure per new fdl.texi.
92762 2007-07-14  Bruno Haible  <bruno@clisp.org>
92764         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
92765         the output file.
92766         * lib/uniname/uninames.h: Regenerated.
92768 2007-07-14  Karl Berry  <karl@gnu.org>
92770         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
92771         omitting sectioning and index commands.
92773 2007-07-13  Bruno Haible  <bruno@clisp.org>
92775         New gnulib-tool option --more-symlinks.
92776         * gnulib-tool (func_usage): Document --more-symlinks.
92777         (do_copyrights): New variable.
92778         Recognize option --more-symlinks.
92779         (func_import): Don't add a copyright notice transform to
92780         sed_transform_lib_file if do_copyrights is empty.
92782 2007-07-13  Bruno Haible  <bruno@clisp.org>
92784         * lib/vasnprintf.c (decimal_point_char): Define also if
92785         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
92786         && !NEED_PRINTF_DIRECTIVE_A.
92787         Reported by Clemens Koller <clemens.koller@anagramm.de> via
92788         Gary V. Vaughan <gary@gnu.org>.
92790 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
92792         * lib/inttypes_.h: Undo previous change, since it was fixed
92793         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
92795 2007-07-13  Bruno Haible  <bruno@clisp.org>
92797         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
92798         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
92800 2007-07-13  Jim Meyering  <jim@meyering.net>
92802         df: Don't fail for Tru64's "file-on-file mount".
92803         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
92804         so we fall through and use statfs instead.  Details here:
92805         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
92806         Reported by Albert Chin.
92808 2007-07-13  Bruno Haible  <bruno@clisp.org>
92810         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
92811         * modules/configmake (License): Likewise.
92812         * modules/gettext (License): Likewise.
92813         * modules/gettext-h (License): Likewise.
92814         * modules/include_next (License): Likewise.
92815         * modules/link-warning (License): Likewise.
92816         * modules/localcharset (License): Likewise.
92817         * modules/localename (License): Likewise.
92818         * modules/lock (License): Likewise.
92819         * modules/relocatable-lib-lgpl (License): Likewise.
92820         * modules/size_max (License): Likewise.
92821         * modules/vasnprintf (License): Likewise.
92822         * modules/wchar (License): Likewise.
92823         * modules/xsize (License): Likewise.
92825 2007-07-13  Bruno Haible  <bruno@clisp.org>
92827         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
92828         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
92830 2007-07-12  Bruno Haible  <bruno@clisp.org>
92832         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
92833         in the modules files.
92835 2007-07-11  Karl Berry  <karl@gnu.org>
92837         * MODULES.html.sh (func_module): use
92838          sed -e '\|^'"${includefile}"'$|d'
92839          instead of /.../d, to avoid errors on $includefile's containing /.
92841 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
92843         * gnulib-tool (func_import): Avoid duplication of --avoid
92844         statements
92845         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
92846         names to `_' in variable names.
92848 2007-07-10  Eric Blake  <ebb9@byu.net>
92850         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
92851         * NEWS: Document this change.
92853 2007-07-08  Bruno Haible  <bruno@clisp.org>
92855         Update to Unicode 5.0.
92856         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
92857         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
92858         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
92859         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
92860         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
92861         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
92862         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
92863         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
92864         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
92865         U+10A3F, U+1D242..U+1D244.
92866         (nonspacing_table_ind): Update.
92867         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
92868         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
92870 2007-07-08  Bruno Haible  <bruno@clisp.org>
92872         Update to Unicode 5.0.
92873         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
92874         code transform. Extend the name index field of unicode_name_to_code and
92875         unicode_code_to_name from 16 to 24 bits.
92876         * lib/uniname/uniname.c (unicode_character_name,
92877         unicode_name_character): Add the range 0x12xxx to the code transform.
92878         * lib/uniname/uninames.h: Regenerated.
92879         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
92881 2007-07-07  Bruno Haible  <bruno@clisp.org>
92883         * modules/wcwidth-tests: New file.
92884         * tests/test-wcwidth.c: New file.
92886         Work around MacOS X wcwidth() bug.
92887         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
92888         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
92889         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
92890         original wcwidth in non-UTF-8 locales.
92891         * modules/wcwidth (Depends-on): Add localcharset, streq,
92892         uniwidth/width.
92893         * doc/functions/wcwidth.texi: Update.
92895 2007-07-07  Bruno Haible  <bruno@clisp.org>
92897         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
92898         (wcwidth): New declaration.
92899         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
92900         macros.
92901         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
92902         here. Prepare for creating <wchar.h> unconditionally.
92903         * modules/wchar (Depends-on): Add link-warning.
92904         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
92905         REPLACE_WCWIDTH, and GL_LINK_WARNING.
92906         * lib/wcwidth.h: Remove file.
92907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
92908         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
92909         * modules/wcwidth (Files): Remove lib/wcwidth.h.
92910         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
92911         (Include): Replace wcwidth.h with <wchar.h>.
92912         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
92913         * lib/mbchar.h: Don't include wcwidth.h.
92914         * lib/mbswidth.c: Likewise.
92915         * NEWS: Mention the change.
92917 2007-07-07  Bruno Haible  <bruno@clisp.org>
92919         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
92920         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
92921         definition with an external declaration.
92922         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
92923         defined as a function. Remove AC_C_INLINE requirement.
92924         * modules/wcwidth (Files): Add lib/wcwidth.c.
92925         (Makefile.am): Remove redundant statement.
92927 2007-07-07  Bruno Haible  <bruno@clisp.org>
92929         * MODULES.html.sh (Unicode string functions): Add the new modules.
92931         * tests/uniwidth/test-u32-strwidth.c: New file.
92932         * modules/uniwidth/u32-strwidth-tests: New file.
92934         * lib/uniwidth/u32-strwidth.c: New file.
92935         * modules/uniwidth/u32-strwidth: New file.
92937         * tests/uniwidth/test-u16-strwidth.c: New file.
92938         * modules/uniwidth/u16-strwidth-tests: New file.
92940         * lib/uniwidth/u16-strwidth.c: New file.
92941         * modules/uniwidth/u16-strwidth: New file.
92943         * tests/uniwidth/test-u8-strwidth.c: New file.
92944         * modules/uniwidth/u8-strwidth-tests: New file.
92946         * lib/uniwidth/u8-strwidth.c: New file.
92947         * modules/uniwidth/u8-strwidth: New file.
92949         * tests/uniwidth/test-u32-width.c: New file.
92950         * modules/uniwidth/u32-width-tests: New file.
92952         * lib/uniwidth/u32-width.c: New file.
92953         * modules/uniwidth/u32-width: New file.
92955         * tests/uniwidth/test-u16-width.c: New file.
92956         * modules/uniwidth/u16-width-tests: New file.
92958         * lib/uniwidth/u16-width.c: New file.
92959         * modules/uniwidth/u16-width: New file.
92961         * tests/uniwidth/test-u8-width.c: New file.
92962         * modules/uniwidth/u8-width-tests: New file.
92964         * lib/uniwidth/u8-width.c: New file.
92965         * modules/uniwidth/u8-width: New file.
92967         * tests/uniwidth/test-uc_width.c: New file.
92968         * modules/uniwidth/width-tests: New file.
92970         * lib/uniwidth/width.c: New file, from GNU libiconv.
92971         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
92972         * modules/uniwidth/width: New file.
92974         * lib/uniwidth.h: New file, from GNU libiconv.
92975         * modules/uniwidth/base: New file.
92977 2007-07-07  Bruno Haible  <bruno@clisp.org>
92979         * lib/uniname.h: New file, from GNU gettext.
92980         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
92981         * lib/uniname/uninames.h: New file, from GNU gettext.
92982         * lib/uniname/uniname.c: New file, from GNU gettext.
92983         * tests/uniname/test-uninames.sh: New file.
92984         * tests/uniname/test-uninames.c: New file, from GNU gettext.
92985         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
92986         * modules/uniname/base: New file.
92987         * modules/uniname/uniname: New file.
92988         * modules/uniname/uniname-tests: New file.
92989         * MODULES.html.sh (Unicode string functions): Add the new modules.
92991 2007-07-06  Bruno Haible  <bruno@clisp.org>
92993         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
92995 2007-07-06  Bruno Haible  <bruno@clisp.org>
92997         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
92998         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
92999         includes <cygwin/sys_time.h> which includes <sys/select.h> which
93000         include <sys/time.h>.
93001         Reported by Eric Blake.
93003 2007-07-06  Eric Blake  <ebb9@byu.net>
93005         Fix testing canonicalize on cygwin.
93006         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
93007         Revert patch from 2007-06-19.
93008         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
93009         canonicalize module is also in use.
93010         * tests/test-canonicalize.c: New file.
93011         * tests/test-canonicalize.sh: Likewise.
93012         * modules/canonicalize-tests: Likewise.
93014 2007-07-06  Jim Meyering  <jim@meyering.net>
93016         * lib/getugroups.c (getugroups): Detect getgrent failure.
93017         Adjust comment to reflect reality: this function may return -1.
93019 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
93021         * build-aux/bootstrap (TP_URL,get_translations): Update to use
93022         the new TP address.
93023         (usage): Fix typo
93024         (gnulib_mk): New variable.
93026 2007-07-05  Jim Meyering  <jim@meyering.net>
93028         Don't let endgrent clobber errno, no matter how improbable.
93029         * lib/getugroups.c (getugroups): Save and restore errno around
93030         endgrent call.
93032         Close the group DB even when failing with 2^31 or more members.
93033         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
93035 2007-07-04  Jim Meyering  <jim@meyering.net>
93037         * lib/getugroups.h: New file.
93038         * lib/getugroups.c: Include "getugroups.h".
93039         Remove uses of "register" keyword.
93040         Move local variable, "cp", down into scope where used.
93041         Give "username" parameter the "const" attribute.
93042         * modules/getugroups (Files): Add lib/getugroups.h
93044 2007-07-04  Karl Berry  <karl@gnu.org>
93046         * MODULES.html.sh (func_all_modules): Complete rename of
93047         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
93049 2007-07-02  Bruno Haible  <bruno@clisp.org>
93051         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
93052         mode, when inttypes.h comes from gnulib.
93053         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93055 2007-07-02  Simon Josefsson  <simon@josefsson.org>
93057         * NEWS: Mention lgpl module name change.
93059         * modules/lgpl-2.1: Renamed from lgpl.
93061         * NEWS: Mention gpl module name change.
93063         * modules/gpl-3.0: New file, based on gpl-2.0.
93065         * modules/gpl-2.0: Renamed from gpl.
93067         * modules/gpl: Fix filename, doc/gpl.texi is now found at
93068         doc/gpl-2.0.texi.
93070 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
93072         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
93073         #define __STDC_LIMIT_MACROS temporarily while including
93074         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
93075         Problem reported by Joel E. Denny in
93076         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
93078 2007-07-01  Bruno Haible  <bruno@clisp.org>
93080         * lib/unistdio.h: New file.
93081         * lib/unistdio/u-asnprintf.h: New file.
93082         * lib/unistdio/u-asprintf.h: New file.
93083         * lib/unistdio/u-printf-args.c: New file.
93084         * lib/unistdio/u-printf-args.h: New file.
93085         * lib/unistdio/u-printf-parse.h: New file.
93086         * lib/unistdio/u-snprintf.h: New file.
93087         * lib/unistdio/u-sprintf.h: New file.
93088         * lib/unistdio/u-vasprintf.h: New file.
93089         * lib/unistdio/u-vsnprintf.h: New file.
93090         * lib/unistdio/u-vsprintf.h: New file.
93091         * lib/unistdio/ulc-asnprintf.c: New file.
93092         * lib/unistdio/ulc-asprintf.c: New file.
93093         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
93094         * lib/unistdio/ulc-printf-parse.c: New file.
93095         * lib/unistdio/ulc-snprintf.c: New file.
93096         * lib/unistdio/ulc-sprintf.c: New file.
93097         * lib/unistdio/ulc-vasnprintf.c: New file.
93098         * lib/unistdio/ulc-vasprintf.c: New file.
93099         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
93100         * lib/unistdio/ulc-vsnprintf.c: New file.
93101         * lib/unistdio/ulc-vsprintf.c: New file.
93102         * lib/unistdio/u8-asnprintf.c: New file.
93103         * lib/unistdio/u8-asprintf.c: New file.
93104         * lib/unistdio/u8-printf-parse.c: New file.
93105         * lib/unistdio/u8-snprintf.c: New file.
93106         * lib/unistdio/u8-sprintf.c: New file.
93107         * lib/unistdio/u8-vasnprintf.c: New file.
93108         * lib/unistdio/u8-vasprintf.c: New file.
93109         * lib/unistdio/u8-vsnprintf.c: New file.
93110         * lib/unistdio/u8-vsprintf.c: New file.
93111         * lib/unistdio/u8-u8-asnprintf.c: New file.
93112         * lib/unistdio/u8-u8-asprintf.c: New file.
93113         * lib/unistdio/u8-u8-snprintf.c: New file.
93114         * lib/unistdio/u8-u8-sprintf.c: New file.
93115         * lib/unistdio/u8-u8-vasnprintf.c: New file.
93116         * lib/unistdio/u8-u8-vasprintf.c: New file.
93117         * lib/unistdio/u8-u8-vsnprintf.c: New file.
93118         * lib/unistdio/u8-u8-vsprintf.c: New file.
93119         * lib/unistdio/u16-asnprintf.c: New file.
93120         * lib/unistdio/u16-asprintf.c: New file.
93121         * lib/unistdio/u16-printf-parse.c: New file.
93122         * lib/unistdio/u16-snprintf.c: New file.
93123         * lib/unistdio/u16-sprintf.c: New file.
93124         * lib/unistdio/u16-vasnprintf.c: New file.
93125         * lib/unistdio/u16-vasprintf.c: New file.
93126         * lib/unistdio/u16-vsnprintf.c: New file.
93127         * lib/unistdio/u16-vsprintf.c: New file.
93128         * lib/unistdio/u16-u16-asnprintf.c: New file.
93129         * lib/unistdio/u16-u16-asprintf.c: New file.
93130         * lib/unistdio/u16-u16-snprintf.c: New file.
93131         * lib/unistdio/u16-u16-sprintf.c: New file.
93132         * lib/unistdio/u16-u16-vasnprintf.c: New file.
93133         * lib/unistdio/u16-u16-vasprintf.c: New file.
93134         * lib/unistdio/u16-u16-vsnprintf.c: New file.
93135         * lib/unistdio/u16-u16-vsprintf.c: New file.
93136         * lib/unistdio/u32-asnprintf.c: New file.
93137         * lib/unistdio/u32-asprintf.c: New file.
93138         * lib/unistdio/u32-printf-parse.c: New file.
93139         * lib/unistdio/u32-snprintf.c: New file.
93140         * lib/unistdio/u32-sprintf.c: New file.
93141         * lib/unistdio/u32-vasnprintf.c: New file.
93142         * lib/unistdio/u32-vasprintf.c: New file.
93143         * lib/unistdio/u32-vsnprintf.c: New file.
93144         * lib/unistdio/u32-vsprintf.c: New file.
93145         * lib/unistdio/u32-u32-asnprintf.c: New file.
93146         * lib/unistdio/u32-u32-asprintf.c: New file.
93147         * lib/unistdio/u32-u32-snprintf.c: New file.
93148         * lib/unistdio/u32-u32-sprintf.c: New file.
93149         * lib/unistdio/u32-u32-vasnprintf.c: New file.
93150         * lib/unistdio/u32-u32-vasprintf.c: New file.
93151         * lib/unistdio/u32-u32-vsnprintf.c: New file.
93152         * lib/unistdio/u32-u32-vsprintf.c: New file.
93153         * tests/unistdio/test-ulc-asnprintf1.c: New file.
93154         * tests/unistdio/test-ulc-asnprintf1.h: New file.
93155         * tests/unistdio/test-ulc-printf1.h: New file.
93156         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
93157         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
93158         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
93159         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
93160         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
93161         * tests/unistdio/test-ulc-vasprintf1.c: New file.
93162         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
93163         * tests/unistdio/test-ulc-vsprintf1.c: New file.
93164         * tests/unistdio/test-u8-asnprintf1.c: New file.
93165         * tests/unistdio/test-u8-asnprintf1.h: New file.
93166         * tests/unistdio/test-u8-printf1.h: New file.
93167         * tests/unistdio/test-u8-vasnprintf1.c: New file.
93168         * tests/unistdio/test-u8-vasnprintf2.c: New file.
93169         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
93170         * tests/unistdio/test-u8-vasnprintf3.c: New file.
93171         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
93172         * tests/unistdio/test-u8-vasprintf1.c: New file.
93173         * tests/unistdio/test-u8-vsnprintf1.c: New file.
93174         * tests/unistdio/test-u8-vsprintf1.c: New file.
93175         * tests/unistdio/test-u16-asnprintf1.c: New file.
93176         * tests/unistdio/test-u16-asnprintf1.h: New file.
93177         * tests/unistdio/test-u16-printf1.h: New file.
93178         * tests/unistdio/test-u16-vasnprintf1.c: New file.
93179         * tests/unistdio/test-u16-vasnprintf2.c: New file.
93180         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
93181         * tests/unistdio/test-u16-vasnprintf3.c: New file.
93182         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
93183         * tests/unistdio/test-u16-vasprintf1.c: New file.
93184         * tests/unistdio/test-u16-vsnprintf1.c: New file.
93185         * tests/unistdio/test-u16-vsprintf1.c: New file.
93186         * tests/unistdio/test-u32-asnprintf1.c: New file.
93187         * tests/unistdio/test-u32-asnprintf1.h: New file.
93188         * tests/unistdio/test-u32-printf1.h: New file.
93189         * tests/unistdio/test-u32-vasnprintf1.c: New file.
93190         * tests/unistdio/test-u32-vasnprintf2.c: New file.
93191         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
93192         * tests/unistdio/test-u32-vasnprintf3.c: New file.
93193         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
93194         * tests/unistdio/test-u32-vasprintf1.c: New file.
93195         * tests/unistdio/test-u32-vsnprintf1.c: New file.
93196         * tests/unistdio/test-u32-vsprintf1.c: New file.
93197         * modules/unistdio/base: New file.
93198         * modules/unistdio/u-printf-args: New file.
93199         * modules/unistdio/ulc-asnprintf: New file.
93200         * modules/unistdio/ulc-asprintf: New file.
93201         * modules/unistdio/ulc-fprintf: New file.
93202         * modules/unistdio/ulc-printf-parse: New file.
93203         * modules/unistdio/ulc-snprintf: New file.
93204         * modules/unistdio/ulc-sprintf: New file.
93205         * modules/unistdio/ulc-vasnprintf: New file.
93206         * modules/unistdio/ulc-vasprintf: New file.
93207         * modules/unistdio/ulc-vfprintf: New file.
93208         * modules/unistdio/ulc-vsnprintf: New file.
93209         * modules/unistdio/ulc-vsprintf: New file.
93210         * modules/unistdio/u8-asnprintf: New file.
93211         * modules/unistdio/u8-asprintf: New file.
93212         * modules/unistdio/u8-printf-parse: New file.
93213         * modules/unistdio/u8-snprintf: New file.
93214         * modules/unistdio/u8-sprintf: New file.
93215         * modules/unistdio/u8-vasnprintf: New file.
93216         * modules/unistdio/u8-vasprintf: New file.
93217         * modules/unistdio/u8-vsnprintf: New file.
93218         * modules/unistdio/u8-vsprintf: New file.
93219         * modules/unistdio/u8-u8-asnprintf: New file.
93220         * modules/unistdio/u8-u8-asprintf: New file.
93221         * modules/unistdio/u8-u8-snprintf: New file.
93222         * modules/unistdio/u8-u8-sprintf: New file.
93223         * modules/unistdio/u8-u8-vasnprintf: New file.
93224         * modules/unistdio/u8-u8-vasprintf: New file.
93225         * modules/unistdio/u8-u8-vsnprintf: New file.
93226         * modules/unistdio/u8-u8-vsprintf: New file.
93227         * modules/unistdio/u16-asnprintf: New file.
93228         * modules/unistdio/u16-asprintf: New file.
93229         * modules/unistdio/u16-printf-parse: New file.
93230         * modules/unistdio/u16-snprintf: New file.
93231         * modules/unistdio/u16-sprintf: New file.
93232         * modules/unistdio/u16-vasnprintf: New file.
93233         * modules/unistdio/u16-vasprintf: New file.
93234         * modules/unistdio/u16-vsnprintf: New file.
93235         * modules/unistdio/u16-vsprintf: New file.
93236         * modules/unistdio/u16-u16-asnprintf: New file.
93237         * modules/unistdio/u16-u16-asprintf: New file.
93238         * modules/unistdio/u16-u16-snprintf: New file.
93239         * modules/unistdio/u16-u16-sprintf: New file.
93240         * modules/unistdio/u16-u16-vasnprintf: New file.
93241         * modules/unistdio/u16-u16-vasprintf: New file.
93242         * modules/unistdio/u16-u16-vsnprintf: New file.
93243         * modules/unistdio/u16-u16-vsprintf: New file.
93244         * modules/unistdio/u32-asnprintf: New file.
93245         * modules/unistdio/u32-asprintf: New file.
93246         * modules/unistdio/u32-printf-parse: New file.
93247         * modules/unistdio/u32-snprintf: New file.
93248         * modules/unistdio/u32-sprintf: New file.
93249         * modules/unistdio/u32-vasnprintf: New file.
93250         * modules/unistdio/u32-vasprintf: New file.
93251         * modules/unistdio/u32-vsnprintf: New file.
93252         * modules/unistdio/u32-vsprintf: New file.
93253         * modules/unistdio/u32-u32-asnprintf: New file.
93254         * modules/unistdio/u32-u32-asprintf: New file.
93255         * modules/unistdio/u32-u32-snprintf: New file.
93256         * modules/unistdio/u32-u32-sprintf: New file.
93257         * modules/unistdio/u32-u32-vasnprintf: New file.
93258         * modules/unistdio/u32-u32-vasprintf: New file.
93259         * modules/unistdio/u32-u32-vsnprintf: New file.
93260         * modules/unistdio/u32-u32-vsprintf: New file.
93261         * modules/unistdio/ulc-asnprintf-tests: New file.
93262         * modules/unistdio/ulc-vasnprintf-tests: New file.
93263         * modules/unistdio/ulc-vasprintf-tests: New file.
93264         * modules/unistdio/ulc-vsnprintf-tests: New file.
93265         * modules/unistdio/ulc-vsprintf-tests: New file.
93266         * modules/unistdio/u8-asnprintf-tests: New file.
93267         * modules/unistdio/u8-vasnprintf-tests: New file.
93268         * modules/unistdio/u8-vasprintf-tests: New file.
93269         * modules/unistdio/u8-vsnprintf-tests: New file.
93270         * modules/unistdio/u8-vsprintf-tests: New file.
93271         * modules/unistdio/u16-asnprintf-tests: New file.
93272         * modules/unistdio/u16-vasnprintf-tests: New file.
93273         * modules/unistdio/u16-vasprintf-tests: New file.
93274         * modules/unistdio/u16-vsnprintf-tests: New file.
93275         * modules/unistdio/u16-vsprintf-tests: New file.
93276         * modules/unistdio/u32-asnprintf-tests: New file.
93277         * modules/unistdio/u32-vasnprintf-tests: New file.
93278         * modules/unistdio/u32-vasprintf-tests: New file.
93279         * modules/unistdio/u32-vsnprintf-tests: New file.
93280         * modules/unistdio/u32-vsprintf-tests: New file.
93281         * MODULES.html.sh (Unicode string functions): Add the new modules.
93283 2007-07-01  Bruno Haible  <bruno@clisp.org>
93285         * lib/sprintf.c (sprintf): Limit the available length estimation,
93286         to avoid address wraparound.
93287         * lib/vsprintf.c (vsprintf): Likewise.
93288         * modules/sprintf-posix (Dependencies): Add stdint.
93289         * modules/vsprintf-posix (Dependencies): Likewise.
93291 2007-07-01  Bruno Haible  <bruno@clisp.org>
93293         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
93294         Windows PATH as well. Conservative double-quoting. Comments.
93296 2007-07-01  Bruno Haible  <bruno@clisp.org>
93297             Eric Blake  <ebb9@byu.net>
93298             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93300         * gnulib-tool (self_abspathname): Fix algorithm to cope with
93301         empty components in $PATH, denoting '.'.
93303 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93305         * gnulib-tool: Fix indentation.
93306         (func_create_megatestdir): Likewise.
93307         Report by Bruno Haible.
93309 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93311         Sync from Automake.
93312         * build-aux/gnupload: Fix shell portability issues with for loops.
93313         Report by Karl Berry.
93315 2007-06-29  Simon Josefsson  <simon@josefsson.org>
93317         * build-aux/maint.mk (POURL): Use translationproject.org.
93319 2007-06-27  Simon Josefsson  <simon@josefsson.org>
93320             Bruno Haible  <bruno@clisp.org>
93322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
93323         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
93324         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
93325         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
93326         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
93328 2007-06-27  Bruno Haible  <bruno@clisp.org>
93330         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
93331         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
93333 2007-06-26  Karl Berry  <karl@gnu.org>
93335         * MODULES.html.sh: remove xreadlink-with-size.
93337 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
93339         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
93340         method that I hope also handles the double-include problem noted
93341         by Bruno Haible in
93342         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
93344 2007-06-23  Bruno Haible  <bruno@clisp.org>
93346         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
93347         Don't let the 'mostlyclean' target fail if the last subdirectory could
93348         not be removed.
93349         Reported by Karl Berry.
93351 2007-06-23  Bruno Haible  <bruno@clisp.org>
93353         * gnulib-tool (echo): Add a speedier workaround for ksh.
93354         * tests/test-echo.sh: Likewise.
93356 2007-06-23  Bruno Haible  <bruno@clisp.org>
93358         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
93359         * tests/test-echo.sh: Likewise.
93361 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93363         * gnulib-tool (IFS): Initialize early, so we don't set it to
93364         empty later.
93365         (self_abspathname): Rewrite algorithm to set it, reindent.
93366         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
93367         (func_create_megatestdir): Merge some sed scripts.
93369 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
93371         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
93372         exposed by Sun Studio 11 cc on Solaris 8.
93374 2007-06-22  Bruno Haible  <bruno@clisp.org>
93376         * gnulib-tool (echo): Ensure the echo primitive does not interpret
93377         backslashes.
93378         * tests/test-echo.sh: New file.
93380 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93382         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
93383         simplify `sed_replace_build_aux' scripts, they are portable but
93384         echoing them with `echo' is not.
93385         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
93387 2007-06-21  Karl Berry  <karl@gnu.org>
93389         * config/srclist.txt: guess we can't handle the licenses via
93390         srclist at the moment.
93392 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
93394         * MODULES.html.sh: Add include_next.
93395         * modules/include_next: New file.
93397 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
93399         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
93400         INCLUDE_NEXT.
93401         (gl_CHECK_NEXT_HEADERS): New macro.
93402         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
93403         the obsolescent gl_ABSOLUTE_HEADER.
93404         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
93405         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
93406         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
93407         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
93408         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
93409         * m4/math_h.m4 (gl_MATH_H): Likewise.
93410         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
93411         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
93412         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
93413         * m4/stdint.m4 (gl_STDINT_H): Likewise.
93414         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
93415         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
93416         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
93417         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
93418         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
93419         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
93420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
93421         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
93422         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
93423         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
93424         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
93425         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
93426         * m4/inttypes.m4 (gl_INTTYPES_H): Define
93427         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
93428         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
93429         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
93430         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
93431         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
93432         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
93433         * lib/float_.h: Likewise.
93434         * lib/inttypes_.h: Likewise.
93435         * lib/math_.h: Likewise.
93436         * lib/search_.h: Likewise.
93437         * lib/signal_.h: Likewise.
93438         * lib/stdint_.h: Likewise.
93439         * lib/stdio_.h: Likewise.
93440         * lib/stdlib_.h: Likewise.
93441         * lib/string_.h: Likewise.
93442         * lib/sys_stat_.h: Likewise.
93443         * lib/sys_time_.h: Likewise.
93444         * lib/time_.h: Likewise.
93445         * lib/unistd_.h: Likewise.
93446         * lib/wchar_.h: Likewise.
93447         * lib/wctype_.h: Likewise.
93448         * lib/dirent_.h: Likewise.
93449         * lib/iconv_.h: Likewise.
93450         * lib/locale_.h: Likewise.
93451         * lib/netinet_in_.h: Likewise.
93452         * lib/sys_select_.h: Likewise.
93453         * lib/sys_socket_.h: Likewise.
93454         * lib/sysexits_.h: Likewise.
93455         * modules/fcntl (Depends-on): Depend on include_next, not
93456         absolute_header.
93457         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
93458         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
93459         * modules/fchdir: Likewise.
93460         * modules/float: Likewise.
93461         * modules/iconv_open: Likewise.
93462         * modules/inttypes: Likewise.
93463         * modules/locale: Likewise.
93464         * modules/math: Likewise.
93465         * modules/netinet_in: Likewise.
93466         * modules/search: Likewise.
93467         * modules/signal: Likewise.
93468         * modules/stdint: Likewise.
93469         * modules/stdio: Likewise.
93470         * modules/stdlib: Likewise.
93471         * modules/string: Likewise.
93472         * modules/sys_select: Likewise.
93473         * modules/sys_socket: Likewise.
93474         * modules/sys_stat: Likewise.
93475         * modules/sys_time: Likewise.
93476         * modules/sysexits: Likewise.
93477         * modules/time: Likewise.
93478         * modules/unistd: Likewise.
93479         * modules/wchar: Likewise.
93480         * modules/wctype: Likewise.
93481         * modules/sys_stat: Change maintainer to "all".
93482         * modules/unistd: Likewise.
93484 2007-06-20  Karl Berry  <karl@gnu.org>
93486         * config/srclist.txt: track www changes in license files.
93488 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
93490         * build-aux/bootstrap: Remove stray dot.
93491         Make sure build_aux settings are honored when linking
93492         gnulib_extra_files.
93494 2007-06-19  Eric Blake  <ebb9@byu.net>
93496         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
93497         Allow compilation on cygwin.
93499 2007-06-19  Jim Meyering  <jim@meyering.net>
93501         xreadlink-with-size: Remove module.  No longer used.
93502         Ex-callers now use xreadlink or mreadlink-with-size.
93503         * modules/xreadlink-with-size: Remove module.
93504         * lib/xreadlink-with-size.c: Remove file.
93505         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
93506         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
93507         just before the function definition *is* accurate.
93509         Eliminate one way canonicalize_filename_mode could exit.
93510         * lib/canonicalize.c (canonicalize_filename_mode):
93511         Use mreadlink_with_size, not xreadlink_with_size.
93513 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
93515         Detect porting problems to FreeBSD/arm, which has time_t wider than
93516         long int.  Original problem reported for GNU diff by Xin Li in
93517         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
93518         * modules/getdate (Depends-on): Add intprops, verify.
93519         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
93520         is an integer type no wider than long int.
93522 2007-06-18  Jim Meyering  <jim@meyering.net>
93524         New module: mreadlink-with-size.
93525         * MODULES.html.sh: Add mreadlink-with-size.
93526         * modules/mreadlink-with-size: New module
93527         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
93528         not xreadlink-with-size.
93529         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
93531 2007-06-16  Bruno Haible  <bruno@clisp.org>
93533         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
93534         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
93535         Reported by Gary V. Vaughan <gary@gnu.org>.
93537 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
93539         Revamp lchown so that it lives in unistd.h where it belongs.
93540         * lib/lchown.h: Remove.
93541         * lib/dirchownmod.c: Don't include lib/lchown.h.
93542         * lib/fchownat.c: Likewise.
93543         * lib/openat.c: Likewise.
93544         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
93545         does not follow symlinks.
93546         (EOPNOTSUPP): Define if not defined.
93547         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
93548         is defined to 0.
93549         (lchown): New decl.
93550         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
93551         Do not check for lchown decl.
93552         Set REPLACE_LCHOWN.
93553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
93554         REPLACE_LCHOWN.
93555         * modules/chown: Make it clear it follows symlinks.
93556         * modules/lchown: Make it clear it doesn't follow symlinks.
93557         (Files): Remove lib/lchown.h
93558         (Depends-on): Add unistd.
93559         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
93560         (Include): Include <unistd.h>, not "lchown.h".
93561         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
93562         REPLACE_LCHOWN.
93564 2007-06-15  Jim Meyering  <jim@meyering.net>
93566         Change license (GPL to LGPL) of fsusage and dependents.
93567         * modules/fsusage (License): Change to LGPL.
93568         * modules/full-read (License): Likewise.
93569         * modules/full-write (License): Likewise.
93570         * modules/safe-read (License): Likewise.
93571         * modules/safe-write (License): Likewise.
93573 2007-06-14  Ben Pfaff  <blp@gnu.org>
93575         Missing part of allocsa -> malloca transition.
93576         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
93577         gl_MALLOCA.
93579 2007-06-12  Bruno Haible  <bruno@clisp.org>
93581         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
93582         to ia64, x86_64, i386.
93583         Reported by Eric Blake.
93585 2007-06-12  Bruno Haible  <bruno@clisp.org>
93587         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
93588         cross-compiling to x86_64.
93590 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
93592         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
93593         glitch reported by Ralf Wildenhues in
93594         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
93596         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
93597         Vin Shelton.
93599 2007-06-11  Bruno Haible  <bruno@clisp.org>
93601         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
93602         replacement string.
93603         Reported by Eric Blake.
93605 2007-06-10  Bruno Haible  <bruno@clisp.org>
93607         Prepare vasnprintf code for use with Unicode strings.
93608         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
93609         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
93610         TYPE_U32_STRING.
93611         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
93612         a_u32_string variants.
93613         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
93614         * lib/printf-args.c: Don't include config.h and the specification
93615         header if PRINTF_FETCHARGS is already defined.
93616         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
93617         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
93618         TYPE_U16_STRING, TYPE_U32_STRING.
93619         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
93620         u16_directive, u16_directives, u32_directive, u32_directives): New
93621         types.
93622         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
93623         New declarations.
93624         * lib/printf-parse.c: Don't include config.h and the specification
93625         header if PRINTF_PARSE is already defined. Eliminate the set of
93626         parameters for WIDE_CHAR_VERSION; the user of this file must provide
93627         them now. Include c-ctype.h.
93628         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
93629         directive and CHAR_T_ONLY_ASCII.
93630         * lib/vasnprintf.c: Don't include config.h and the specification header
93631         if VASNPRINTF is already defined.
93632         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
93633         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
93634         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
93635         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
93636         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
93637         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
93638         code accordingly.
93639         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
93640         pad_ourselves also in this case, with the 'c' and 's' directives, and
93641         with a different notion of "width".
93642         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
93644 2007-06-10  Bruno Haible  <bruno@clisp.org>
93646         * modules/unistr/u32-mbsnlen: New file.
93647         * lib/unistr/u32-mbsnlen.c: New file.
93649         * modules/unistr/u16-mbsnlen: New file.
93650         * lib/unistr/u16-mbsnlen.c: New file.
93652         * modules/unistr/u8-mbsnlen: New file.
93653         * lib/unistr/u8-mbsnlen.c: New file.
93655         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
93656         declarations.
93658 2007-06-10  Bruno Haible  <bruno@clisp.org>
93660         * lib/string_.h (mbsnlen): New declaration.
93661         * lib/mbsnlen.c: New file.
93662         * m4/mbsnlen.m4: New file.
93663         * modules/mbsnlen: New file.
93664         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
93665         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
93666         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
93668 2007-06-10  Bruno Haible  <bruno@clisp.org>
93670         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
93672 2007-06-10  Bruno Haible  <bruno@clisp.org>
93674         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
93675         * lib/mbuiter.h: Likewise.
93677 2007-06-10  Bruno Haible  <bruno@clisp.org>
93679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
93680         declaration.
93682 2007-06-10  Karl Berry  <karl@gnu.org>
93684         * config/srclist.txt: remove gettext entries, Bruno prefers
93685         to update individually.
93687 2007-06-10  Bruno Haible  <bruno@clisp.org>
93689         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
93690         'maxlen'. Ensure only length + width bytes are allocated, not
93691         length + 1 + width.
93693 2007-06-09  Bruno Haible  <bruno@clisp.org>
93695         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
93696         (CHAR_T): Remove macro.
93697         (VASNPRINTF): Update.
93699 2007-06-09  Bruno Haible  <bruno@clisp.org>
93701         * MODULES.html.sh (Unicode string functions): Add the new modules.
93703         * modules/uniconv/u32-conv-to-enc: New file.
93704         * lib/uniconv/u32-conv-to-enc.c: New file.
93705         * modules/uniconv/u32-conv-to-enc-tests: New file.
93706         * tests/uniconv/test-u32-conv-to-enc.c: New file.
93708         * modules/uniconv/u16-conv-to-enc: New file.
93709         * lib/uniconv/u16-conv-to-enc.c: New file.
93710         * lib/uniconv/u-conv-to-enc.h: New file.
93711         * modules/uniconv/u16-conv-to-enc-tests: New file.
93712         * tests/uniconv/test-u16-conv-to-enc.c: New file.
93714         * modules/uniconv/u8-conv-to-enc: New file.
93715         * lib/uniconv/u8-conv-to-enc.c: New file.
93716         * modules/uniconv/u8-conv-to-enc-tests: New file.
93717         * tests/uniconv/test-u8-conv-to-enc.c: New file.
93719         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
93720         u32_conv_to_encoding): New declarations.
93722 2007-06-09  Bruno Haible  <bruno@clisp.org>
93724         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
93726 2007-06-09  Bruno Haible  <bruno@clisp.org>
93728         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
93729         * modules/malloca: Renamed from modules/allocsa, updated.
93730         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
93731         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
93732         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
93733         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
93734         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
93735         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
93736         * modules/xmalloca: Renamed from modules/xallocsa, updated.
93737         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
93738         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
93739         * modules/c-strcasestr (Depends-on): Update.
93740         * lib/c-strcasestr.c: Update.
93741         * modules/c-strstr (Depends-on): Update.
93742         * lib/c-strstr.c: Update.
93743         * modules/canonicalize-lgpl (Depends-on): Update.
93744         * lib/canonicalize-lgpl.c: Update.
93745         * modules/clean-temp (Depends-on): Update.
93746         * lib/clean-temp.c: Update.
93747         * modules/csharpcomp (Depends-on): Update.
93748         * lib/csharpcomp.c: Update.
93749         * modules/csharpexec (Depends-on): Update.
93750         * lib/csharpexec.c: Update.
93751         * modules/javacomp (Depends-on): Update.
93752         * lib/javacomp.c: Update.
93753         * modules/javaexec (Depends-on): Update.
93754         * lib/javaexec.c: Update.
93755         * modules/mbscasestr (Depends-on): Update.
93756         * lib/mbscasestr.c: Update.
93757         * modules/mbsstr (Depends-on): Update.
93758         * lib/mbsstr.c: Update.
93759         * modules/setenv (Depends-on): Update.
93760         * lib/setenv.c: Update.
93761         * modules/strcasestr (Depends-on): Update.
93762         * lib/strcasestr.c: Update.
93763         * modules/striconveha (Depends-on): Update.
93764         * lib/striconveha.c: Update.
93765         * modules/relocatable-prog-wrapper (Files): Update.
93766         * lib/relocwrapper.c: Update.
93767         * build-aux/install-reloc: Update.
93768         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
93770 2007-06-08  Bruno Haible  <bruno@clisp.org>
93772         Port to uClibc.
93773         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
93774         * lib/fpurge.c (fpurge): Likewise.
93775         * lib/freading.c (freading): Likewise.
93776         * lib/fseeko.c (rpl_fseeko): Likewise.
93777         * lib/fseterr.c (fseterr): Likewise.
93778         * lib/fwriting.c (fwriting): Likewise.
93779         * tests/test-fflush.c (main): Avoid a failure on uClibc.
93781 2007-06-08  Bruno Haible  <bruno@clisp.org>
93783         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
93784         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
93785         * modules/gettext (Files): Add m4/intlmacosx.m4.
93787 2007-06-07  Bruno Haible  <bruno@clisp.org>
93789         * modules/localename-tests: New file.
93790         * tests/test-localename.c: New file.
93792         New module 'localename'.
93793         * lib/localename.h: New file.
93794         * lib/localename.c: New file, from GNU gettext.
93795         * m4/localename.m4: New file.
93796         * modules/localename: New file.
93798 2007-06-07  Bruno Haible  <bruno@clisp.org>
93800         Work around the lack of <wchar.h> on some builds of uClibc.
93801         * doc/headers/wchar.texi: Update.
93802         * lib/wchar_.h: Include <wchar.h> only if it exists.
93803         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
93804         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
93805         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
93806         doesn't exist.
93807         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
93808         * modules/mbfile (Depends-on): Add wchar.
93809         * modules/mbiter (Depends-on): Likewise.
93810         * modules/mbuiter (Depends-on): Likewise.
93811         Reported by Simon Josefsson.
93813 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
93815         Work around problem reported by Steven M. Schweda in
93816         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
93817         Tru64 5.1B with the Compaq compiler environment installed declares
93818         an 'isblank' function but does not define it in the C library.
93819         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
93820         * lib/regex_internal.h (isblank): Likewise.
93821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
93822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
93824 2007-06-05  Bruno Haible  <bruno@clisp.org>
93826         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
93827         ia64.
93828         * modules/printf-safe: New file.
93829         * modules/fprintf-posix (Depends-on): Add printf-safe.
93830         * modules/printf-posix (Depends-on): Likewise.
93831         * modules/snprintf-posix (Depends-on): Likewise.
93832         * modules/sprintf-posix (Depends-on): Likewise.
93833         * modules/vasnprintf-posix (Depends-on): Likewise.
93834         * modules/vasprintf-posix (Depends-on): Likewise.
93835         * modules/vfprintf-posix (Depends-on): Likewise.
93836         * modules/vprintf-posix (Depends-on): Likewise.
93837         * modules/vsnprintf-posix (Depends-on): Likewise.
93838         * modules/vsprintf-posix (Depends-on): Likewise.
93839         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
93840         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
93841         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
93842         "no" on i386, x86_64, ia64.
93843         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
93844         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93845         on i386, x86_64, ia64.
93846         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
93847         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93848         on i386, x86_64, ia64.
93849         * tests/test-vasnprintf-posix.c: Include float.h.
93850         (LDBL80_WORDS): New macro.
93851         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93852         on i386, x86_64, ia64.
93853         * tests/test-vasprintf-posix.c: Include float.h.
93854         (LDBL80_WORDS): New macro.
93855         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
93856         on i386, x86_64, ia64.
93857         * tests/test-snprintf-posix.c: Include float.h.
93858         * tests/test-sprintf-posix.c: Likewise.
93859         * tests/test-vsnprintf-posix.c: Likewise.
93860         * tests/test-vsprintf-posix.c: Likewise.
93862 2007-06-05  Bruno Haible  <bruno@clisp.org>
93864         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
93865         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
93866         non-IEEE numbers on i386, x86_64, ia64.
93867         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
93868         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
93869         * tests/test-isnanl.h: Include float.h.
93870         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
93872 2007-06-05  Bruno Haible  <bruno@clisp.org>
93874         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
93875         also the %a / %A. Handle the %a / %A code before this extra handling.
93877 2007-06-05  Bruno Haible  <bruno@clisp.org>
93879         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
93880         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
93882 2007-06-05  Bruno Haible  <bruno@clisp.org>
93884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
93885         typo in variable name.
93887 2007-06-05  Eric Blake  <ebb9@byu.net>
93889         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
93890         Reported by Simon Josefsson.
93892 2007-06-04  Bruno Haible  <bruno@clisp.org>
93894         Avoid test failures on some PowerPC platforms.
93895         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
93896         Define differently for PowerPC.
93897         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
93898         Reported by Gary V. Vaughan <gary@gnu.org>.
93900 2007-06-02  Bruno Haible  <bruno@clisp.org>
93902         Fix test-stdint failure on FreeBSD/ia64.
93903         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
93904         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
93905         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
93906         * doc/headers/stdint.texi: Update.
93908 2007-06-01  Bruno Haible  <bruno@clisp.org>
93910         * tests/test-binary-io.c (main): Pass a third argument to open().
93911         Reported by Gary V. Vaughan <gary@gnu.org>.
93913 2007-06-01  Bruno Haible  <bruno@clisp.org>
93915         * doc/functions/frexpl.texi: Update for mingw.
93917 2007-06-01  Bruno Haible  <bruno@clisp.org>
93919         * tests/test-lseek.c (main): Disable test of errno for invalid third
93920         argument.
93921         * doc/functions/lseek.texi: Update.
93922         Reported by Gary V. Vaughan <gary@gnu.org>.
93924 2007-05-28  Bruno Haible  <bruno@clisp.org>
93926         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
93928 2007-05-31  Eric Blake  <ebb9@byu.net>
93930         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
93931         cross compiling.
93933 2007-05-30  Eric Blake  <ebb9@byu.net>
93934         and Bruno Haible  <bruno@clisp.org>
93936         Work around mingw test failures exposed by m4-1.4.9b.
93937         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
93938         * tests/test-unistd.c: Disable uid_t and git_t tests for the
93939         moment.
93941 2007-05-30  Bruno Haible  <bruno@clisp.org>
93943         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
93944         assuming that they are closed. Needed on HP-UX 11.
93946 2007-05-29  Bruno Haible  <bruno@clisp.org>
93948         Fix a problem with #include_next.
93949         * lib/dirent_.h: Split the double-inclusion guard.
93950         * lib/fcntl_.h: Likewise.
93951         * lib/float_.h: Likewise.
93952         * lib/iconv_.h: Likewise.
93953         * lib/inttypes_.h: Likewise.
93954         * lib/locale_.h: Likewise.
93955         * lib/math_.h: Likewise.
93956         * lib/netinet_in_.h: Likewise.
93957         * lib/search_.h: Likewise.
93958         * lib/signal_.h: Likewise.
93959         * lib/stdint_.h: Likewise.
93960         * lib/stdio_.h: Likewise.
93961         * lib/stdlib_.h: Likewise.
93962         * lib/string_.h: Likewise.
93963         * lib/sys_select_.h: Likewise.
93964         * lib/sys_socket_.h: Likewise.
93965         * lib/sys_stat_.h: Likewise.
93966         * lib/sys_time_.h: Likewise.
93967         * lib/sysexits_.h: Likewise.
93968         * lib/time_.h: Likewise.
93969         * lib/unistd_.h: Likewise.
93970         * lib/wchar_.h: Likewise.
93971         * lib/wctype_.h: Likewise.
93973 2007-05-29  Bruno Haible  <bruno@clisp.org>
93975         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
93976         for the moment.
93978 2007-05-29  Bruno Haible  <bruno@clisp.org>
93980         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
93981         invocation.
93982         Reported by Eric Blake.
93984 2007-05-29  Bruno Haible  <bruno@clisp.org>
93986         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
93987         compiling case.
93989 2007-05-29  Eric Blake  <ebb9@byu.net>
93990             Bruno Haible  <bruno@clisp.org>
93992         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
93993         cross compiles.
93995 2007-05-28  Eric Blake  <ebb9@byu.net>
93997         * modules/closein-tests (test_closein_LDADD): Support test on
93998         cygwin with libtool.
94000 2007-05-28  Bruno Haible  <bruno@clisp.org>
94002         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
94003         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
94004         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
94005         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
94006         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
94007         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
94008         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
94009         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
94010         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
94012 2007-05-28  Eric Blake  <ebb9@byu.net>
94014         Unconditionally include <config.h> in unit tests.
94015         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
94016         * tests/test-allocsa.c, tests/test-arcfour.c,
94017         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
94018         tests/test-array_list.c, tests/test-array_oset.c,
94019         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
94020         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
94021         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
94022         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
94023         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
94024         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
94025         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
94026         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
94027         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
94028         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
94029         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
94030         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
94031         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
94032         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
94033         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
94034         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
94035         test-md5.c, test-memmem.c, test-printf-posix.c,
94036         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
94037         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
94038         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
94039         test-strcasestr.c, test-striconv.c, test-striconveh.c,
94040         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
94041         test-vasnprintf-posix2.c, test-vasnprintf.c,
94042         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
94043         test-vfprintf-posix.c, test-vprintf-posix.c,
94044         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
94045         test-xvasprintf.c: Likewise.
94047 2007-05-28  Bruno Haible  <bruno@clisp.org>
94049         * gnulib-tool (func_import): Remember the --with-tests command-line
94050         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
94051         Reported by Eric Blake.
94053 2007-05-28  Bruno Haible  <bruno@clisp.org>
94055         * modules/ftell-tests: New file.
94056         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
94057         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
94059         * lib/ftell.c: New file.
94060         * modules/ftell: New file.
94061         * m4/ftell.m4: New file.
94062         * doc/functions/ftell.texi: Update.
94063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
94064         REPLACE_FTELL.
94065         * lib/stdio_.h (rpl_ftell): New declaration.
94066         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
94067         REPLACE_FTELL.
94069 2007-05-28  Eric Blake  <ebb9@byu.net>
94071         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
94073 2007-05-28  Bruno Haible  <bruno@clisp.org>
94075         * modules/fseek-tests: New file.
94076         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
94077         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
94079         * lib/fseek.c: New file.
94080         * modules/fseek: New file.
94081         * m4/fseek.m4: New file.
94082         * doc/functions/fseek.texi: Update.
94083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
94084         REPLACE_FSEEK.
94085         * lib/stdio_.h (rpl_fseek): New declaration.
94086         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
94087         REPLACE_FSEEK.
94089 2007-05-28  Bruno Haible  <bruno@clisp.org>
94091         * lib/stdio_.h (fflush): More comments.
94093 2007-05-28  Bruno Haible  <bruno@clisp.org>
94095         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
94096         runtime test.
94098 2007-05-28  Eric Blake  <ebb9@byu.net>
94100         Improve lseek module.
94101         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
94102         * lib/unistd_.h (lseek): Scale back link warning message.
94103         * tests/test-lseek.c: Beef up test.
94104         * tests/test-lseek.sh: Exercise more facets of lseek.
94105         Reported by Bruno Haible.
94107 2007-05-28  Bruno Haible  <bruno@clisp.org>
94109         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
94110         to define.
94112 2007-05-27  Bruno Haible  <bruno@clisp.org>
94114         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
94116 2007-05-27  Bruno Haible  <bruno@clisp.org>
94118         * modules/openmp: New file.
94119         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
94120         Noah Misch.
94122 2007-05-26  Bruno Haible  <bruno@clisp.org>
94124         * modules/chdir-long (Depends-on): Add fchdir.
94125         * modules/chdir-safer (Depends-on): Likewise.
94126         * modules/fts (Depends-on): Likewise.
94127         * modules/fts-lgpl (Depends-on): Likewise.
94128         * modules/openat (Depends-on): Likewise.
94129         * modules/savewd (Depends-on): Likewise.
94131 2007-05-24  Eric Blake  <ebb9@byu.net>
94133         Fix lseek on mingw.
94134         * modules/lseek: New module.
94135         * m4/lseek.m4: New file.
94136         * lib/lseek.c: New file.
94137         * modules/lseek-tests: New file.
94138         * tests/test-lseek.c: New file.
94139         * tests/test-lseek.sh: New file.
94140         * MODULES.html.sh: Document lseek module.
94141         * modules/fflush (Depends-on): Add lseek, fseeko.
94142         * modules/fseeko (Depends-on): Likewise.
94143         * modules/ftello (Depends-on): Likewise.
94144         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
94145         broken.
94146         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
94147         broken.
94148         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
94149         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
94150         * lib/ftello.c (rpl_ftello): Likewise.
94151         * tests/test-fseeko.c (main): Test this.
94152         * tests/test-fseeko.sh: Likewise.
94153         * tests/test-ftello.c (main): Likewise.
94154         * tests/test-ftello.sh: Likewise.
94155         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
94156         implies replacing fseek.
94157         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
94158         HAVE_FTELLO.
94159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
94160         * modules/unistd (Makefile.am): Likewise.
94161         * lib/unistd_.h (lseek): Declare a replacement.
94162         * doc/functions/lseek.texi (lseek): Document this fix.
94163         * doc/functions/fseek.texi (fseek): Likewise.
94164         * doc/functions/ftell.texi (ftell): Likewise.
94166 2007-05-24  Bruno Haible  <bruno@clisp.org>
94168         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
94169         in the printed representation of a NaN.
94170         * tests/test-vasprintf-posix.c (test_function): Likewise.
94171         * tests/test-snprintf-posix.h (test_function): Likewise.
94172         * tests/test-sprintf-posix.h (test_function): Likewise.
94173         Reported by Eric Blake.
94175 2007-05-23  Eric Blake  <ebb9@byu.net>
94177         Fix fseeko/ftello on cygwin 1.5.24.
94178         * doc/functions/fseeko.texi (fseeko): Document the fix.
94179         * doc/functions/ftello.texi (ftello): Document the fix.
94180         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
94181         * doc/functions/stdout.text (stdout): New file.
94182         * doc/functions/stderr.text (stderr): New file.
94183         * doc/gnulib.texi (Function Substitutes): Use new files.
94184         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
94185         prior to 1.7.0.
94186         * tests/test-ftello.c (main): Likewise for ftello.
94187         * tests/test-fseeko.sh: New file.
94188         * tests/test-ftello.sh: New file.
94189         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
94190         with seekable stdin.
94191         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
94192         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
94193         (gl_REPLACE_FSEEKO): New macro.
94194         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
94195         * modules/fseeko (Files): Distribute fseeko.c.
94196         * modules/ftello (Files): Distribute ftello.c.
94197         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
94198         mode.
94199         * lib/ftello.c (rpl_ftello): New file.
94200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
94201         fseeko, ftello.
94202         (gl_STDIN_LARGE_OFFSET): New macro.
94203         * modules/stdio (Makefile.am): Perform the replacement.
94204         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
94206 2007-05-23  Bruno Haible  <bruno@clisp.org>
94208         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
94209         GNULIB_POSIXCHECK is defined.
94211 2007-05-21  Bruno Haible  <bruno@clisp.org>
94213         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
94214         Check also the output for NaN arguments. When cross-compiling, guess
94215         no on IRIX.
94216         * lib/vasnprintf.c: Update comments.
94217         * tests/test-vasnprintf-posix.c (strisnan): New function.
94218         (test_function): Use it.
94219         * tests/test-vasprintf-posix.c (strisnan): New function.
94220         (test_function): Use it.
94221         * tests/test-snprintf-posix.h (strisnan): New function.
94222         (test_function): Use it.
94223         * tests/test-sprintf-posix.h (strisnan): New function.
94224         (test_function): Use it.
94225         Reported by Eric Blake.
94227 2007-05-20  Bruno Haible  <bruno@clisp.org>
94229         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
94230         numbers that fails on BeOS.
94231         * doc/functions/frexpl.texi: Update.
94233 2007-05-20  Jim Meyering  <jim@meyering.net>
94235         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
94236         forced upon us by glibc-2.6.
94238 2007-05-20  Bruno Haible  <bruno@clisp.org>
94240         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
94241         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
94242         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
94243         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
94244         NEED_PRINTF_INFINITE.
94245         (is_infinitel): New function.
94246         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
94247         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
94248         gl_PREREQ_VASNPRINTF_INFINITE.
94249         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
94250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94251         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
94252         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
94253         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
94254         gl_PREREQ_VASNPRINTF_INFINITE.
94255         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94257         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94258         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94259         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94260         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94261         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94262         * doc/functions/fprintf.texi: Update.
94263         * doc/functions/printf.texi: Update.
94264         * doc/functions/snprintf.texi: Update.
94265         * doc/functions/sprintf.texi: Update.
94266         * doc/functions/vfprintf.texi: Update.
94267         * doc/functions/vprintf.texi: Update.
94268         * doc/functions/vsnprintf.texi: Update.
94269         * doc/functions/vsprintf.texi: Update.
94271 2007-05-20  Bruno Haible  <bruno@clisp.org>
94273         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
94274         was not found in libc.
94275         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
94277 2007-05-20  Bruno Haible  <bruno@clisp.org>
94279         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
94280         printed as "-nan" instead of "nan".
94281         * tests/test-vasprintf-posix.c (test_function): Likewise.
94282         * tests/test-snprintf-posix.h (test_function): Likewise.
94283         * tests/test-sprintf-posix.h (test_function): Likewise.
94284         Needed for HP-UX 11.
94286 2007-05-20  Jim Meyering  <jim@meyering.net>
94288         Fix buggy test for the fchownat-deref bug.
94289         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
94290         symlink required for the run-test.  Without it, this test would
94291         always declare that fchownat doesn't work, and client code would
94292         unnecessarily use the replacement function with fixed libc.
94293         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
94294         Reported by Greg Schafer.
94296 2007-05-19  Bruno Haible  <bruno@clisp.org>
94298         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
94299         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
94300         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
94301         Needed for IRIX 6.5 and Solaris 2.5.1.
94303 2007-05-19  Bruno Haible  <bruno@clisp.org>
94305         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
94306         (test_function): Skip tests involving -0.0 on platforms where
94307         -0.0 = 0.0.
94308         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
94309         (test_function): Skip tests involving -0.0 on platforms where
94310         -0.0 = 0.0.
94311         * tests/test-snprintf-posix.h (have_minus_zero): New function.
94312         (test_function): Skip tests involving -0.0 on platforms where
94313         -0.0 = 0.0.
94314         * tests/test-sprintf-posix.h (have_minus_zero): New function.
94315         (test_function): Skip tests involving -0.0 on platforms where
94316         -0.0 = 0.0.
94317         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
94318         tests.
94319         * tests/test-printf-posix.h (test_function): Likewise.
94320         * tests/test-printf-posix.output: Remove all -0.0 related results.
94321         Needed for IRIX 6.5.
94323 2007-05-19  Bruno Haible  <bruno@clisp.org>
94325         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
94326         printed as "nan0x7fffffff" instead of "nan".
94327         * tests/test-vasprintf-posix.c (test_function): Likewise.
94328         * tests/test-snprintf-posix.h (test_function): Likewise.
94329         * tests/test-sprintf-posix.h (test_function): Likewise.
94330         * tests/test-fprintf-posix.h (NaN): Remove macro.
94331         (test_function): Remove all NaN related tests.
94332         * tests/test-printf-posix.h (NaN): Remove macro.
94333         (test_function): Remove all NaN related tests.
94334         * tests/test-printf-posix.output: Remove all NaN related results.
94335         Needed for IRIX 6.5.
94337 2007-05-19  Bruno Haible  <bruno@clisp.org>
94339         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
94340         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
94342 2007-05-19  Bruno Haible  <bruno@clisp.org>
94344         * lib/float_.h: New file.
94345         * m4/float_h.m4: New file.
94346         * modules/float: New file.
94347         * modules/isnanl (Dependencies): Add float.
94348         * modules/isnanl-nolibm (Dependencies): Likewise.
94349         * modules/mathl (Dependencies): Likewise.
94350         * modules/printf-frexpl (Dependencies): Likewise.
94351         * modules/signbit (Dependencies): Likewise.
94352         * modules/vasnprintf (Dependencies): Likewise.
94353         * doc/headers/float.texi: Update.
94355 2007-05-19  Jim Meyering  <jim@meyering.net>
94357         * lib/utimens.c (gl_futimens): Rename from futimens,
94358         now that glibc-2.6 declares futimens.
94359         * lib/utimens.h: Likewise.
94361 2007-05-19  Bruno Haible  <bruno@clisp.org>
94363         Avoid test failures on mingw.
94364         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
94365         * tests/test-printf-posix.sh: Likewise.
94366         * tests/test-vfprintf-posix.sh: Likewise.
94367         * tests/test-vprintf-posix.sh: Likewise.
94369 2007-05-19  Bruno Haible  <bruno@clisp.org>
94371         Fix *printf result for NaN, Inf, -0.0 on mingw.
94372         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
94373         * lib/vasnprintf.c: Include math.h and isnan.h.
94374         (is_infinite_or_zero): New function.
94375         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
94376         values in the %f, %F, %e, %E, %g, %G directives.
94377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
94378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94379         gl_PRINTF_INFINITE and test its result. Invoke
94380         gl_PREREQ_VASNPRINTF_INFINITE.
94381         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94382         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94383         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94384         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94385         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94386         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94387         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94388         * doc/functions/fprintf.texi: Update.
94389         * doc/functions/printf.texi: Update.
94390         * doc/functions/snprintf.texi: Update.
94391         * doc/functions/sprintf.texi: Update.
94392         * doc/functions/vfprintf.texi: Update.
94393         * doc/functions/vprintf.texi: Update.
94394         * doc/functions/vsnprintf.texi: Update.
94395         * doc/functions/vsprintf.texi: Update.
94397 2007-05-19  Bruno Haible  <bruno@clisp.org>
94399         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
94400         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
94401         Instead of multiplying with 10^k, set extra_zeroes to k.
94402         (scale10_round_long_double): Remove function.
94404 2007-05-18  Bruno Haible  <bruno@clisp.org>
94406         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
94407         introduced on 2007-05-06.
94409 2007-05-18  Bruno Haible  <bruno@clisp.org>
94411         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
94412         %g directives.
94413         * tests/test-vasprintf-posix.c (test_function): Likewise.
94414         * tests/test-snprintf-posix.h (test_function): Likewise.
94415         * tests/test-sprintf-posix.h (test_function): Likewise.
94417 2007-05-18  Bruno Haible  <bruno@clisp.org>
94419         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
94420         (strmatch): New function.
94421         (test_function): Test the %f directive on numbers of various exponents.
94422         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
94423         (strmatch): New function.
94424         (test_function): Test the %f directive on numbers of various exponents.
94425         * tests/test-snprintf-posix.h (strmatch): New function.
94426         (test_function): Test the %f directive on numbers of various exponents.
94427         * tests/test-sprintf-posix.h (strmatch): New function.
94428         (test_function): Test the %f directive on numbers of various exponents.
94429         * tests/test-snprintf-posix.c (SIZEOF): New macro.
94430         * tests/test-sprintf-posix.c (SIZEOF): New macro.
94431         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
94432         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
94434 2007-05-18  Bruno Haible  <bruno@clisp.org>
94436         Add support for 'long double' number output.
94437         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
94438         * lib/vasnprintf.c: Include math.h and float+.h.
94439         (mp_limb_t): New type.
94440         (GMP_LIMB_BITS): New macro.
94441         (mp_twolimb_t): New type.
94442         (GMP_TWOLIMB_BITS): New macro.
94443         (mpn_t): New type.
94444         (multiply, divide, convert_to_decimal, decode_long_double,
94445         scale10_round_long_double, scale10_round_decimal_long_double,
94446         floorlog10l): New functions.
94447         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
94448         for the %f, %F, %e, %E, %g, %G directives.
94449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
94450         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
94451         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
94452         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
94453         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
94454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94455         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94456         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94458         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94459         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94460         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
94461         * modules/snprintf-posix (Depends-on): Likewise.
94462         * modules/sprintf-posix (Depends-on): Likewise.
94463         * modules/vasnprintf-posix (Depends-on): Likewise.
94464         * modules/vasprintf-posix (Depends-on): Likewise.
94465         * modules/vfprintf-posix (Depends-on): Likewise.
94466         * modules/vsnprintf-posix (Depends-on): Likewise.
94467         * modules/vsprintf-posix (Depends-on): Likewise.
94468         * modules/vasnprintf (Files): Add lib/float+.h.
94469         * doc/functions/fprintf.texi: Update.
94470         * doc/functions/printf.texi: Update.
94471         * doc/functions/snprintf.texi: Update.
94472         * doc/functions/sprintf.texi: Update.
94473         * doc/functions/vfprintf.texi: Update.
94474         * doc/functions/vprintf.texi: Update.
94475         * doc/functions/vsnprintf.texi: Update.
94476         * doc/functions/vsprintf.texi: Update.
94478 2007-05-18  Bruno Haible  <bruno@clisp.org>
94480         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
94482 2007-05-18  Bruno Haible  <bruno@clisp.org>
94484         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
94485         for printing 64-bit integers. Needed for mingw.
94487 2007-05-18  Bruno Haible  <bruno@clisp.org>
94489         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
94490         gl_FUNC_FREXPL_WORKS.
94491         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
94493 2007-05-18  Bruno Haible  <bruno@clisp.org>
94495         * modules/frexpl-nolibm-tests: New file.
94497         * modules/frexpl-nolibm: New file.
94498         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
94500 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
94502         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
94503         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
94504         GCC 4.2, which otherwise issues a lot of warnings.
94505         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
94506         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
94507         Likewise.
94508         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
94509         * modules/iconv_open (iconv.h): Likewise.
94510         * modules/locale (locale.h): Likewise.
94511         * modules/netinet_in (netinet/in.h): Likewise.
94512         * modules/sys_select (sys_select.h): Likewise.
94513         * modules/sys_socket (sys/socket.h): Likewise.
94514         * modules/sys_stat (sys/stat.h): Likewise.
94515         * modules/sysexits (sysexits.h): Likewise.
94516         * modules/unistd (unistd.h): Likewise.
94518 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94520         * modules/closein-tests (Makefile.am): Distribute
94521         `test-closein.sh'.
94523 2007-05-17  Bruno Haible  <bruno@clisp.org>
94525         * tests/test-printf-posix.output: Renamed from
94526         tests/test-fprintf-posix.out.
94527         * modules/fprintf-posix-tests: Update.
94528         * modules/printf-posix-tests: Update.
94529         * modules/vfprintf-posix-tests: Update.
94530         * modules/vprintf-posix-tests: Update.
94531         * tests/test-fprintf-posix.sh: Update.
94532         * tests/test-printf-posix.sh: Update.
94533         * tests/test-vfprintf-posix.sh: Update.
94534         * tests/test-vprintf-posix.sh: Update.
94535         Reported by Ralf Wildenhues.
94537 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
94539         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
94540         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
94541         GCC 4.2, which otherwise issues a lot of warnings.
94542         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
94543         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
94544         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
94545         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
94546         it should no longer be needed.
94547         * lib/string_.h: Likewise.
94548         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
94549         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
94550         * modules/inttypes (inttypes.h): Likewise.
94551         * modules/math (math.h): Likewise.
94552         * modules/search (search.h): Likewise.
94553         * modules/signal (signal.h): Likewise.
94554         * modules/stdint (stdint.h): Likewise.
94555         * modules/stdio (stdio.h): Likewise.
94556         * modules/stdlib (stdlib.h): Likewise.
94557         * modules/string (string.h): Likewise.
94558         * modules/sys_time (sys/time.h): Likewise.
94559         * modules/time (time.h): Likewise.
94560         * modules/wchar (wchar.h): Likewise.
94561         * modules/wctype (wtype.h): Likewise.
94563 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
94565         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
94567 2007-05-13  Bruno Haible  <bruno@clisp.org>
94569         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
94570         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
94571         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
94572         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
94573         (gl_PREREQ_STRTOK_R): Don't require it here.
94575 2007-05-13  Bruno Haible  <bruno@clisp.org>
94577         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
94578         when used in C++ mode.
94580 2007-05-12  Bruno Haible  <bruno@clisp.org>
94582         * lib/linebuffer.h: Tweak doc.
94583         * lib/linebuffer.c: Likewise.
94585 2007-05-12  James Youngman  <jay@gnu.org>
94587         * lib/linebuffer.c (readlinebuffer_delim): New function,
94588         like readlinebuffer, but use a caller-specified delimiter.
94589         (readlinebuffer): Just call readlinebuffer_delim with '\n'
94590         as the delimiter.
94591         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
94593 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
94595         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
94596         * modules/openat (Files): Remove openat-die.c.
94597         (Depends-on): Add openat-die.
94598         * modules/openat-die: New module.
94600 2007-05-06  Bruno Haible  <bruno@clisp.org>
94602         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
94603         Update with info about Cygwin.
94604         * doc/functions/fprintf.texi: Update.
94605         * doc/functions/printf.texi: Update.
94606         * doc/functions/snprintf.texi: Update.
94607         * doc/functions/sprintf.texi: Update.
94608         * doc/functions/vfprintf.texi: Update.
94609         * doc/functions/vprintf.texi: Update.
94610         * doc/functions/vsnprintf.texi: Update.
94611         * doc/functions/vsprintf.texi: Update.
94612         Reported by Eric Blake.
94614 2007-05-06  Bruno Haible  <bruno@clisp.org>
94616         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
94617         padding ourselves for the floating-point directives.
94618         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
94619         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
94620         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94621         gl_PRINTF_FLAG_ZERO and test its result. Invoke
94622         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
94623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94624         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
94625         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94626         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94627         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94628         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94629         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94630         * tests/test-snprintf-posix.h (test_function): Also check the width
94631         and some flags in the %f directive.
94632         * tests/test-sprintf-posix.h (test_function): Likewise.
94633         * tests/test-vasnprintf-posix.c (test_function): Likewise.
94634         * tests/test-vasprintf-posix.c (test_function): Likewise.
94635         * doc/functions/fprintf.texi: Update.
94636         * doc/functions/printf.texi: Update.
94637         * doc/functions/snprintf.texi: Update.
94638         * doc/functions/sprintf.texi: Update.
94639         * doc/functions/vfprintf.texi: Update.
94640         * doc/functions/vprintf.texi: Update.
94641         * doc/functions/vsnprintf.texi: Update.
94642         * doc/functions/vsprintf.texi: Update.
94644 2007-05-06  Bruno Haible  <bruno@clisp.org>
94646         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
94647         pass the ' flag character to sprintf or snprintf.
94648         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
94649         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
94650         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94651         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
94652         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
94653         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
94654         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
94655         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94656         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
94657         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
94658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94659         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
94660         * tests/test-snprintf-posix.h (test_function): Also check the grouping
94661         flag.
94662         * tests/test-sprintf-posix.h (test_function): Likewise.
94663         * tests/test-vasnprintf-posix.c (test_function): Likewise.
94664         * tests/test-vasprintf-posix.c (test_function): Likewise.
94665         * doc/functions/fprintf.texi: Update.
94666         * doc/functions/printf.texi: Update.
94667         * doc/functions/snprintf.texi: Update.
94668         * doc/functions/sprintf.texi: Update.
94669         * doc/functions/vfprintf.texi: Update.
94670         * doc/functions/vprintf.texi: Update.
94671         * doc/functions/vsnprintf.texi: Update.
94672         * doc/functions/vsprintf.texi: Update.
94674 2007-05-01  Bruno Haible  <bruno@clisp.org>
94676         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
94678 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
94680         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
94681         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
94683 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
94685         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
94686         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
94687         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
94689 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
94691         * lib/argp-help.c (struct hol_entry): New member `ord'.
94692         (HOL_ENTRY_PTRCMP): Use ord for comparison
94693         (hol_sort): Initialize ord.
94695 2007-05-01  Bruno Haible  <bruno@clisp.org>
94697         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
94698         Reported by Eric Blake.
94699         * doc/gnulib.texi (Function Substitutes): Update.
94701 2007-05-01  Bruno Haible  <bruno@clisp.org>
94703         * doc/functions.texi: Remove file, now redundant through
94704         doc/functions/*.texi.
94706 2007-05-01  Bruno Haible  <bruno@clisp.org>
94708         * modules/argp (Depends-on): Add sleep.
94710 2007-05-01  Bruno Haible  <bruno@clisp.org>
94712         * modules/sleep-tests: New file.
94713         * tests/test-sleep.c: New file.
94715         * modules/sleep: New file.
94716         * lib/sleep.c: New file.
94717         * m4/sleep.m4: New file.
94718         * lib/unistd_.h (sleep): New declaration.
94719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
94720         HAVE_SLEEP.
94721         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
94722         * doc/functions/sleep.texi: Document the sleep module.
94724 2007-05-01  Bruno Haible  <bruno@clisp.org>
94726         * lib/sigprocmask.h: Remove file.
94727         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
94728         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
94729         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
94730         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
94731         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
94732         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
94733         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
94734         HAVE_SIGSET_T as a shell variable.
94735         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
94736         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
94737         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
94738         (Depends-on): Add signal. Remove verify.
94739         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
94740         (Include): Mention <signal.h> instead of sigprocmask.h.
94741         * NEWS: Mention the change.
94742         * lib/fatal-signal.c: Don't include sigprocmask.h.
94744 2007-05-01  Bruno Haible  <bruno@clisp.org>
94746         * modules/signal: New file.
94747         * lib/signal_.h: New file.
94748         * m4/signal_h.m4: New file.
94750 2007-05-01  Bruno Haible  <bruno@clisp.org>
94752         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
94753         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
94754         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
94755         HAVE_WCTYPE_CTMP_BUG into wctype.h.
94757 2007-05-01  Bruno Haible  <bruno@clisp.org>
94759         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
94760         configure time.
94761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
94762         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
94763         * modules/sys_stat (Makefile.am): Substitute their values into
94764         sys/stat.h.
94766 2007-05-01  Bruno Haible  <bruno@clisp.org>
94768         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
94769         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
94770         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
94772 2007-05-01  Bruno Haible  <bruno@clisp.org>
94774         * doc/header/assert.texi: Undo last change: don't mention the gnulib
94775         'assert' module here.
94777 2007-05-01  Bruno Haible  <bruno@clisp.org>
94779         * doc/functions/*.texi: New files.
94780         * doc/functions/google-ranking.txt: New file.
94781         * doc/gnulib.texi (Function Substitutes): New chapter.
94782         (ctime, inet_ntoa): Remove sections.
94783         * doc/ctime.texi: Remove file.
94784         * doc/inet_ntoa.texi: Remove file.
94785         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
94786         dependencies.
94787         (%.info): New rule, specifying a --reference-limit.
94789 2007-05-01  Bruno Haible  <bruno@clisp.org>
94791         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
94793 2007-05-01  Bruno Haible  <bruno@clisp.org>
94795         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
94796         the portability of 'mkdir' to mingw systems.
94798 2007-05-01  Bruno Haible  <bruno@clisp.org>
94800         * doc/headers/google-ranking.txt: New file.
94802 2007-04-30  Eric Blake  <ebb9@byu.net>
94804         Prefer fseeko to fseek.
94805         * modules/getpass (Depends-on): Add fseeko.
94806         * lib/getpass.c (getpass): Use fseeko, not fseek.
94808 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
94810         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
94811         assumes the sorting is stable, while most qsort implementations
94812         are not.  Use argument addresses to ensure they never compare as
94813         equal.
94815         * tests/test-argp-2.sh (usage-indent test): Fix output
94816         (func_compare): Restore diff options
94817         * tests/test-argp.c: Restore #include "progname.h"
94819 2007-04-29  Bruno Haible  <bruno@clisp.org>
94821         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
94822         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
94823         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
94824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
94825         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
94826         (configure.ac): Define CHECK_SNPRINTF_POSIX.
94827         (TESTS, check_PROGRAMS): Add test-snprintf.
94828         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
94829         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
94830         (TESTS, check_PROGRAMS): Add test-vsnprintf.
94831         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
94832         assertions that fail on HP-UX, OSF/1, or IRIX.
94833         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
94835 2007-04-29  Bruno Haible  <bruno@clisp.org>
94837         * MODULES.html.sh (posix_functions): Remove 'contents'.
94839 2007-04-29  Karl Berry  <karl@gnu.org>
94841         * config/srclist.txt (gendocs_template_min): new entry.
94843 2007-04-29  Bruno Haible  <bruno@clisp.org>
94845         Work around fpurge bug on BSD systems.
94846         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
94847         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
94848         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
94849         fpurge to rpl_fpurge if the system already has this function.
94850         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
94851         the case where the system already has this function. Correct invariants
94852         on BSD systems.
94853         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
94854         BSD systems.
94856 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
94858         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
94859         proposed by Sven Verdoolaege.
94861         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
94862         options.
94863         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
94864         (usage and help tests): Update
94866 2007-04-29  Bruno Haible  <bruno@clisp.org>
94868         * tests/test-fflush.c (main): Use a file of size 17, not 10.
94869         Print more information in case of failure. Disable a test on BeOS.
94871 2007-04-29  Bruno Haible  <bruno@clisp.org>
94873         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
94874         This helps debugging on systems on which no gdb is available.
94876 2007-04-29  Bruno Haible  <bruno@clisp.org>
94878         * lib/freading.h: Improve comments.
94879         * lib/fwriting.h: Likewise.
94880         * tests/test-freading.c (main): Don't check freading immediately after
94881         repositioning. Needed for glibc.
94883 2007-04-29  Bruno Haible  <bruno@clisp.org>
94885         * lib/freading.c (freading): Trivial simplification.
94887 2007-04-28  Bruno Haible  <bruno@clisp.org>
94889         * tests/test-fwriting.c (main): Also test the interaction between
94890         fflush and fwriting.
94891         * modules/fwriting-tests (Depends-on): Add fflush.
94893         * tests/test-freading.c (main): Also test the interaction between
94894         fflush and freading.
94895         * modules/freading-tests (Depends-on): Add fflush.
94897 2007-04-28  Bruno Haible  <bruno@clisp.org>
94899         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
94900         fseeko and ftello.
94901         Suggested by Eric Blake.
94903 2007-04-28  Jim Meyering  <jim@meyering.net>
94905         Avoid false-negative in gl_STDINT_H's C99 conformance test.
94906         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
94907         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
94909 2007-04-27  Eric Blake  <ebb9@byu.net>
94911         * doc/headers/assert.texi (assert.h): Document assert module use.
94913 2007-04-27  Bruno Haible  <bruno@clisp.org>
94915         * doc/headers/*.texi: New files.
94916         * doc/gnulib.texi (Header File Substitutes): New chapter.
94917         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
94918         dependencies.
94919         (standards.info ,standards.html, standards.dvi): Update dependencies.
94920         (mostlyclean, clean): New targets.
94922 2007-04-27  Bruno Haible  <bruno@clisp.org>
94924         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
94925         * modules/sysexits (Files, Makefile.am): Update.
94927         * lib/sys_socket_.h: Renamed from lib/socket_.h.
94928         * modules/sys_socket (Files, Makefile.am): Update.
94930         * lib/sys_stat_.h: Renamed from lib/stat_.h.
94931         * modules/sys_stat (Files, Makefile.am): Update.
94933 2007-04-27  Eric Blake  <ebb9@byu.net>
94935         * lib/freading.h: Improve comments.
94936         * lib/fwriting.h: Likewise.
94937         * lib/fflush.c: Likewise.
94939         Fix closein for mingw.
94940         * modules/closein-tests: Add tests for closein.
94941         * tests/test-closein.c: New file.
94942         * tests/test-closein.sh: Likewise.
94943         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
94944         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
94946 2007-04-27  Bruno Haible  <bruno@clisp.org>
94948         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
94949         version is < 6.
94950         * lib/math_.h [__DECC]: Likewise.
94951         * lib/stdio_.h [__DECC]: Likewise.
94952         * lib/stdlib_.h [__DECC]: Likewise.
94953         * lib/string_.h [__DECC]: Likewise.
94954         * lib/time_.h [__DECC]: Likewise.
94955         * lib/wchar_.h [__DECC]: Likewise.
94956         * lib/wctype_.h [__DECC]: Likewise.
94958 2007-04-27  Bruno Haible  <bruno@clisp.org>
94960         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
94962 2007-04-27  Bruno Haible  <bruno@clisp.org>
94964         * lib/fflush.c: Add comments.
94965         * modules/fpurge-tests (Depends-on): Add fflush.
94966         * modules/freadable-tests (Depends-on): Likewise.
94967         * modules/fwritable-tests (Depends-on): Likewise.
94969 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
94971         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
94972         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
94973         Report by Bruno Haible <bruno@clisp.org>.
94975 2007-04-26  Eric Blake  <ebb9@byu.net>
94977         Fix fflush on mingw.
94978         * modules/fflush (Depends-on): Add freading.
94979         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
94980         but unread data.
94982 2007-04-26  Eric Blake  <ebb9@byu.net>
94983         and Bruno Haible  <bruno@clisp.org>
94985         Implement freading and fwriting.
94986         * lib/freading.c: New file.
94987         * lib/freading.h: Likewise.
94988         * m4/freading.m4: Likewise.
94989         * modules/freading: Likewise.
94990         * modules/freading-tests: Likewise.
94991         * tests/test-freading.c: Likewise.
94992         * lib/fwriting.c: New file.
94993         * lib/fwriting.h: Likewise.
94994         * m4/fwriting.m4: Likewise.
94995         * modules/fwriting: Likewise.
94996         * modules/fwriting-tests: Likewise.
94997         * tests/test-fwriting.c: Likewise.
94998         * MODULES.html.sh (File stream based Input/Output): Mention them.
95000 2007-04-26  Bruno Haible  <bruno@clisp.org>
95002         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
95003         'long' when we assume it.
95004         Suggested by Eric Blake.
95006 2007-04-26  Bruno Haible  <bruno@clisp.org>
95008         Ensure fseeko, ftello are declared on glibc systems.
95009         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
95010         * modules/fseeko (configure.ac-early): Likewise.
95011         * modules/ftello (configure.ac-early): Likewise.
95012         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
95013         AC_FUNC_FSEEKO for this.
95014         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
95015         (gl_CHECK_FSEEKO): Remove macro.
95017 2007-04-26  Bruno Haible  <bruno@clisp.org>
95019         * tests/test-fflush.c (main): Also check the ftell result after
95020         fflush and fseek/fseeko.
95021         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
95022         file descriptor position cache in the stream.
95023         * lib/fseeko.c (rpl_fseeko): Likewise.
95025 2007-04-26  Bruno Haible  <bruno@clisp.org>
95027         * modules/fflush-tests (Depends-on): Add fseeko.
95029 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
95030             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95032         * lib/argz_.h: ensure error_t definition is obtained in same
95033         mechanism system argz.h would have.
95034         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
95035         argz facilities are known bad.  Err on the side of caution if
95036         cross-compiling.
95038 2007-04-25  Eric Blake  <ebb9@byu.net>
95040         * lib/fpurge.c (includes): Use stdlib.h for free.
95041         * tests/test-fflush.c (main): Also test fflush-fseeko.
95043 2007-04-25  Bruno Haible  <bruno@clisp.org>
95045         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
95046         * lib/fseeko.c: New file.
95047         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
95048         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
95049         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
95050         gl_FUNC_FSEEKO.
95051         (gl_FUNC_FSEEKO): Invoke it.
95052         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
95053         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
95054         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
95056 2007-04-25  Bruno Haible  <bruno@clisp.org>
95058         * modules/fflush (Depends-on): Add ftello.
95060 2007-04-25  Bruno Haible  <bruno@clisp.org>
95062         * modules/ftello-tests: New file.
95063         * tests/test-ftello.c: New file.
95065         * modules/ftello: New file.
95066         * m4/ftello.m4: New file.
95067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
95068         HAVE_FTELLO.
95069         * lib/stdio_.h (ftello): New declaration.
95070         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
95071         HAVE_FTELLO.
95073 2007-04-25  Bruno Haible  <bruno@clisp.org>
95075         * modules/fseeko-tests: New file.
95076         * tests/test-fseeko.c: New file.
95078         * modules/fseeko: New file.
95079         * m4/fseeko.m4: New file.
95080         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
95081         HAVE_FSEEKO.
95082         * lib/stdio_.h (fseeko): New declaration.
95083         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
95084         HAVE_FSEEKO.
95086 2007-04-25  Bruno Haible  <bruno@clisp.org>
95088         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
95090 2007-04-25  Bruno Haible  <bruno@clisp.org>
95092         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
95093         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
95094         * tests/test-unistd.c: Likewise.
95095         * tests/test-fcntl.c: Likewise.
95097 2007-04-23  Eric Blake  <ebb9@byu.net>
95099         * lib/fflush.c: Fix missing include.
95100         Reported by Bruno Haible.
95102 2007-04-23  Bruno Haible  <bruno@clisp.org>
95104         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
95105         Reported by Eric Blake.
95107 2007-04-23  Bruno Haible  <bruno@clisp.org>
95109         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
95111 2007-04-23  Bruno Haible  <bruno@clisp.org>
95113         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
95115 2007-04-23  Bruno Haible  <bruno@clisp.org>
95117         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
95118         Needed on HP-UX 11.
95120 2007-04-16  Eric Blake  <ebb9@byu.net>
95122         Make fflush rely on fpurge.
95123         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
95124         open coding all variants.
95125         * modules/fflush (Depends-on): Add fpurge and unistd.
95126         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
95127         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
95129         Fix --with-tests compilation on cygwin.
95130         * modules/argmatch-tests (Makefile.am): List gnulib library first
95131         in LDADD.
95132         * modules/argp-tests (Makefile.am): Likewise.
95133         * modules/array-list-tests (Makefile.am): Likewise.
95134         * modules/array-oset-tests (Makefile.am): Likewise.
95135         * modules/avltree-list-tests (Makefile.am): Likewise.
95136         * modules/avltree-oset-tests (Makefile.am): Likewise.
95137         * modules/avltreehash-list-tests (Makefile.am): Likewise.
95138         * modules/carray-list-tests (Makefile.am): Likewise.
95139         * modules/dirname-tests (Makefile.am): Likewise.
95140         * modules/frexp-tests (Makefile.am): Likewise.
95141         * modules/isnanl-tests (Makefile.am): Likewise.
95142         * modules/linked-list-tests (Makefile.am): Likewise.
95143         * modules/linkedhash-list-tests (Makefile.am): Likewise.
95144         * modules/lock-tests (Makefile.am): Likewise.
95145         * modules/rbtree-list-tests (Makefile.am): Likewise.
95146         * modules/rbtree-oset-tests (Makefile.am): Likewise.
95147         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
95148         * modules/tls-tests (Makefile.am): Likewise.
95149         * modules/tsearch-tests (Makefile.am): Likewise.
95150         * modules/xvasprintf-tests (Makefile.am): Likewise.
95152         Fix fpurge for cygwin.
95153         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
95154         value.
95155         * modules/fpurge-tests (Depends-on): Clean up trash.
95157 2007-04-16  Simon Josefsson  <simon@josefsson.org>
95159         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
95161         * m4/autobuild.m4: Re-indent.
95163 2007-04-13  Bruno Haible  <bruno@clisp.org>
95165         * modules/fpurge-tests: New file.
95166         * tests/test-fpurge.c: New file.
95168         * modules/fpurge: New file.
95169         * lib/fpurge.h: New file.
95170         * lib/fpurge.c: New file.
95171         * m4/fpurge.m4: New file.
95173 2007-04-13  Bruno Haible  <bruno@clisp.org>
95175         * modules/fbufmode-tests: New file.
95176         * tests/test-fbufmode.c: New file.
95178         * modules/fbufmode: New file.
95179         * lib/fbufmode.h: New file.
95180         * lib/fbufmode.c: New file.
95181         * m4/fbufmode.m4: New file.
95183 2007-04-13  Bruno Haible  <bruno@clisp.org>
95185         * modules/fwritable-tests: New file.
95186         * tests/test-fwritable.c: New file.
95188         * modules/fwritable: New file.
95189         * lib/fwritable.h: New file.
95190         * lib/fwritable.c: New file.
95191         * m4/fwritable.m4: New file.
95193 2007-04-13  Bruno Haible  <bruno@clisp.org>
95195         * modules/freadable-tests: New file.
95196         * tests/test-freadable.c: New file.
95198         * modules/freadable: New file.
95199         * lib/freadable.h: New file.
95200         * lib/freadable.c: New file.
95201         * m4/freadable.m4: New file.
95203 2007-04-13  Bruno Haible  <bruno@clisp.org>
95205         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
95206         MOSTLYCLEANFILES.
95208 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
95210         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
95211         gzip bootstrap.conf to avoid dragging in i18n machinery.
95212         (gnulib_tool_option): Use it.
95214 2007-04-13  Bruno Haible  <bruno@clisp.org>
95216         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
95217         %F directives.
95218         * tests/test-vasprintf-posix.c (test_function): Likewise.
95219         * tests/test-snprintf-posix.h (test_function): Likewise.
95220         * tests/test-sprintf-posix.h (test_function): Likewise.
95221         * tests/test-fprintf-posix.h (test_function): Likewise.
95222         * tests/test-printf-posix.h (test_function): Likewise.
95223         * tests/test-fprintf-posix.out: Likewise.
95225 2007-04-13  Bruno Haible  <bruno@clisp.org>
95227         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
95228         * modules/tls-tests (configure.ac): Likewise.
95229         Reported by Arto C. Nirkko <anirkko@insel.ch>.
95231 2007-04-13  Bruno Haible  <bruno@clisp.org>
95233         * lib/tls.c (glthread_tls_get): Fix return type.
95234         Patch by Arto C. Nirkko <anirkko@insel.ch>.
95236 2007-04-12  Eric Blake  <ebb9@byu.net>
95238         * modules/gettime (Depends-on): Remove gettime.
95239         Reported by Dmitry V. Levin.
95241 2007-04-12  Bruno Haible  <bruno@clisp.org>
95243         * modules/fflush (Include): Mention <stdio.h>.
95244         * modules/strtoimax (Include): Mention <inttypes.h>.
95245         * modules/strtoumax (Include): Likewise.
95247 2007-04-12  Eric Blake  <ebb9@byu.net>
95249         * .cvsignore: New file.
95250         * .gitignore: Likewise.
95252 2007-04-12  Bruno Haible  <bruno@clisp.org>
95254         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
95255         not before, since $(LDADD) often contains libgnu.a.
95256         * modules/striconv-tests (test_striconv_LDADD): Likewise.
95257         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
95258         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
95259         Needed on Cygwin.
95261 2007-04-12  Eric Blake  <ebb9@byu.net>
95263         Work around glibc's failure to flush stdin on fclose.
95264         * lib/closein.c (close_stdin): Flush stdin before closing.
95266         Work around glibc's failure to reset seekable stdin on exit.
95267         * modules/closein: New module.
95268         * lib/closein.c: New file.
95269         * lib/closein.h: Likewise.
95270         * m4/closein.m4: Likewise.
95271         * MODULES.html.sh (File stream based Input/Output): Document it.
95273 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95275         * gnulib-tool: Rename generated 'autobuild' script to
95276         'do-autobuild' in --create-megatestdir output.
95278         * doc/gnulib.texi (Build robot for gnulib): Fix.
95280 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95282         * modules/sysexits (Depends-on): Add absolute-header.
95284 2007-04-12  Eric Blake  <ebb9@byu.net>
95286         No need to preserve errno on success.
95287         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
95288         Reported by Bruno Haible.
95290 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95292         * MODULES.html.sh (Support for maintaining and releasing
95293         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
95295 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95297         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
95299 2007-04-12  Simon Josefsson  <simon@josefsson.org>
95301         * modules/autobuild: New module.
95303         * m4/autobuild.m4: New file.
95305 2007-04-11  Bruno Haible  <bruno@clisp.org>
95307         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
95308         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
95309         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
95310         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
95311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
95312         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95313         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95315         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95316         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95317         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
95318         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95319         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
95321         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95322         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
95324         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95325         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95326         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
95327         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95328         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95329         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
95330         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95331         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
95333         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
95334         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
95335         Reported by Eric Blake.
95337 2007-04-11  Bruno Haible  <bruno@clisp.org>
95339         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
95341 2007-04-10  Bruno Haible  <bruno@clisp.org>
95343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
95344         for NaN and Infinity. Needed on FreeBSD 6.1.
95345         * tests/test-vasnprintf-posix.c (test_function): Undo last change
95346         regarding results for "%010a" of Infinity and NaN.
95347         * tests/test-vasprintf-posix.c (test_function): Likewise.
95348         * tests/test-snprintf-posix.h (test_function): Likewise.
95349         * tests/test-sprintf-posix.h (test_function): Likewise.
95350         * tests/test-fprintf-posix.h (test_function): Likewise.
95351         * tests/test-printf-posix.h (test_function): Likewise.
95352         * tests/test-fprintf-posix.out: Likewise.
95354 2007-04-10  Bruno Haible  <bruno@clisp.org>
95356         * modules/locale-tests: New file.
95357         * tests/test-locale.c: New file.
95359         * modules/locale: New file.
95360         * lib/locale_.h: New file.
95361         * m4/locale_h.m4: New file.
95363 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
95364             Bruno Haible  <bruno@clisp.org>
95366         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
95367         be determined, test for availability of the copysignf, copysign,
95368         copysignl functions.
95369         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
95370         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
95371         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
95373 2007-04-09  Eric Blake  <ebb9@byu.net>
95375         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
95376         * modules/stdio (Makefile.am): Support fflush.
95377         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
95378         * modules/fflush: New file.
95379         * lib/fflush.c: Likewise.
95380         * m4/fflush.m4: Likewise.
95381         * modules/fflush-tests: New test.
95382         * tests/test-fflush.c: Likewise.
95383         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
95385 2007-04-06  Bruno Haible  <bruno@clisp.org>
95387         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
95388         (VASNPRINTF): Use signbit for faster determination whether to print a
95389         minus sign.
95390         * modules/vasnprintf (Files): Remove lib/float+.h.
95391         * modules/fprintf-posix (Depends-on): Add signbit.
95392         * modules/snprintf-posix (Depends-on): Likewise.
95393         * modules/sprintf-posix (Depends-on): Likewise.
95394         * modules/vasnprintf-posix (Depends-on): Likewise.
95395         * modules/vasprintf-posix (Depends-on): Likewise.
95396         * modules/vfprintf-posix (Depends-on): Likewise.
95397         * modules/vsnprintf-posix (Depends-on): Likewise.
95398         * modules/vsprintf-posix (Depends-on): Likewise.
95400 2007-04-06  Bruno Haible  <bruno@clisp.org>
95402         * tests/test-frexp.c (main): Test also the sign bit of zero results.
95403         * tests/test-frexpl.c (main): Likewise.
95404         * tests/test-ldexpl.c (main): Likewise.
95405         * modules/frexp-tests (Depends-on): Add signbit.
95406         * modules/frexpl-tests (Depdends-on): Likewise.
95407         * modules/ldexpl-tests (Depdends-on): Likewise.
95409 2007-04-06  Bruno Haible  <bruno@clisp.org>
95411         * modules/signbit-tests: New file.
95412         * tests/test-signbit.c: New file.
95414         * modules/signbit: New file.
95415         * lib/signbitf.c: New file.
95416         * lib/signbitd.c: New file.
95417         * lib/signbitl.c: New file.
95418         * m4/signbit.m4: New file.
95419         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
95420         (signbit): New macro.
95421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
95422         REPLACE_SIGNBIT.
95423         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
95424         REPLACE_FREXPL into math.h.
95426 2007-04-06  Bruno Haible  <bruno@clisp.org>
95428         * modules/isnanf-nolibm-tests: New file.
95429         * tests/test-isnanf.c: New file.
95431         * modules/isnanf-nolibm: New file.
95432         * lib/isnanf.h: New file.
95433         * lib/isnanf.c: New file.
95434         * lib/isnan.c: Consider the USE_FLOAT macro.
95435         * m4/isnanf.m4: New file.
95437 2007-04-06  Bruno Haible  <bruno@clisp.org>
95439         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
95440         (Link): New section.
95442         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
95444 2007-04-06  Bruno Haible  <bruno@clisp.org>
95446         Assume the 'long double' type.
95447         * m4/longdouble.m4: Remove file.
95448         * config/srclist.txt: Don't mention longdouble.m4.
95449         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
95450         * lib/float+.h: Likewise.
95451         * lib/frexp.c: Likewise.
95452         * lib/printf-args.h: Likewise.
95453         * lib/printf-args.c: Likewise.
95454         * lib/printf-frexp.c: Likewise.
95455         * lib/printf-parse.c: Likewise.
95456         * lib/vasnprintf.c: Likewise.
95457         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
95458         * m4/intl.m4: Likewise.
95459         * m4/isnanl.m4: Likewise.
95460         * m4/printf.m4: Likewise.
95461         * m4/printf-frexpl.m4: Likewise.
95462         * m4/vasnprintf.m4: Likewise.
95463         * modules/allocsa (Files): Remove m4/longdouble.m4.
95464         * modules/gettext (Files): Likewise.
95465         * modules/relocatable-prog-wrapper (Files): Likewise.
95466         * modules/vasnprintf (Files): Likewise.
95467         * modules/isnanl (Files): Likewise.
95468         (Include): Simplify.
95469         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
95470         (Include): Simplify.
95471         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
95472         (Include): Simplify.
95473         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
95474         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95475         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
95476         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95477         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
95478         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95479         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
95480         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95481         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
95482         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95483         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
95484         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
95485         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
95486         * tests/test-isnanl.c: Likewise.
95487         * tests/test-snprintf-posix.h: Likewise.
95488         * tests/test-sprintf-posix.h: Likewise.
95489         * tests/test-vasnprintf-posix.c: Likewise.
95490         * tests/test-vasnprintf-posix2.c: Likewise.
95491         * tests/test-vasprintf-posix.c: Likewise.
95493 2007-04-06  Bruno Haible  <bruno@clisp.org>
95495         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
95496         * lib/math_.h [__DECC]: Include the overridden include file through
95497         #include_next, outside the double-inclusion guard.
95498         * lib/stdio_.h [__DECC]: Likewise.
95499         * lib/stdlib_.h [__DECC]: Likewise.
95500         * lib/string_.h [__DECC]: Likewise.
95501         * lib/time_.h [__DECC]: Likewise.
95502         * lib/wchar_.h [__DECC]: Likewise.
95503         * lib/wctype_.h [__DECC]: Likewise.
95504         * lib/inttypes_.h [__DECC]: Likewise.
95505         Reported by Albert Chin <china@thewrittenword.com> in
95506         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
95508 2007-04-04  Eric Blake  <ebb9@byu.net>
95510         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
95511         1.5.x.
95513 2007-04-04  Bruno Haible  <bruno@clisp.org>
95515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
95516         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
95518 2007-04-04  Bruno Haible  <bruno@clisp.org>
95520         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
95521         results for "%010a" of Infinity and NaN.
95522         * tests/test-vasprintf-posix.c (test_function): Likewise.
95523         * tests/test-snprintf-posix.h (test_function): Likewise.
95524         * tests/test-sprintf-posix.h (test_function): Likewise.
95525         * tests/test-fprintf-posix.h (test_function): Remove these tests.
95526         * tests/test-printf-posix.h (test_function): Likewise.
95527         * tests/test-fprintf-posix.out: Update.
95528         Needed for FreeBSD 6.1.
95530 2007-04-04  Bruno Haible  <bruno@clisp.org>
95532         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
95533         directly used by the gnulib modules nor by gnulib-tool.
95535 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
95537         * DEPENDENCIES: Give overall description of version dependency
95538         desirability.  Use more-typical names for apps.
95539         Add shell, coreutils, diffutils, grep, tar, gzip.
95541 2007-04-04  Simon Josefsson  <simon@josefsson.org>
95543         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
95545 2007-04-04  Karl Berry  <karl@gnu.org>
95547         * MODULES.html.sh (func_module): missing '.
95549 2007-04-03  Bruno Haible  <bruno@clisp.org>
95551         * modules/argmatch-tests (Makefile.am): New variable
95552         test_argmatch_LDADD.
95553         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
95554         * modules/array-list-tests (Makefile.am): New variable
95555         test_array_list_LDADD.
95556         * modules/array-oset-tests (Makefile.am): New variable
95557         test_array_oset_LDADD.
95558         * modules/avltree-list-tests (Makefile.am): New variable
95559         test_avltree_list_LDADD.
95560         * modules/avltree-oset-tests (Makefile.am): New variable
95561         test_avltree_oset_LDADD.
95562         * modules/avltreehash-list-tests (Makefile.am): New variable
95563         test_avltreehash_list_LDADD.
95564         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
95565         test_canonicalize_lgpl_LDADD.
95566         * modules/carray-list-tests (Makefile.am): New variable
95567         test_carray_list_LDADD.
95568         * modules/dirname-tests (Makefile.am): New variable
95569         test_dirname_LDADD.
95570         * modules/linked-list-tests (Makefile.am): New variable
95571         test_linked_list_LDADD.
95572         * modules/linkedhash-list-tests (Makefile.am): New variable
95573         test_linkedhash_list_LDADD.
95574         * modules/rbtree-list-tests (Makefile.am): New variable
95575         test_rbtree_list_LDADD.
95576         * modules/rbtree-oset-tests (Makefile.am): New variable
95577         test_rbtree_oset_LDADD.
95578         * modules/rbtreehash-list-tests (Makefile.am): New variable
95579         test_rbtreehash_list_LDADD.
95580         * modules/xvasprintf-tests (Makefile.am): New variable
95581         test_xvasprintf_LDADD.
95582         Reported by Eric Blake.
95584 2007-04-03  Eric Blake  <ebb9@byu.net>
95586         * DEPENDENCIES: Weaken m4 requirements.
95588 2007-04-03  Bruno Haible  <bruno@clisp.org>
95590         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
95591         * modules/isnanl-tests (configure.ac): Likewise.
95593 2007-04-03  Ben Pfaff  <blp@gnu.org>
95595         * modules/iconv_open: Add $(srcdir)/ to source directory
95596         references in Makefile fragments that call gperf, to fix VPATH
95597         builds.
95599 2007-04-03  Bruno Haible  <bruno@clisp.org>
95601         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
95602         * lib/ldexpl.c: Undo last change.
95604 2007-04-03  Bruno Haible  <bruno@clisp.org>
95606         * modules/printf-frexpl (Depends-on): Undo last change.
95607         (Files): Add m4/ldexpl.m4.
95609 2007-04-03  Bruno Haible  <bruno@clisp.org>
95611         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
95612         * modules/isnanl (Link): New section.
95614         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
95615         * modules/frexp (Link): New section.
95617         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
95618         * modules/frexpl (Link): New section.
95620         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
95621         * modules/ldexpl (Link): New section.
95623 2007-04-03  Bruno Haible  <bruno@clisp.org>
95625         * modules/TEMPLATE-EXTENDED: New file.
95626         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
95628 2007-04-03  Bruno Haible  <bruno@clisp.org>
95630         * DEPENDENCIES: New file.
95631         Suggested by Simon Josefsson.
95633 2007-04-03  Bruno Haible  <bruno@clisp.org>
95635         * doc/gnulib.texi: Escape @.
95637 2007-04-03  James Youngman  <jay@gnu.org>
95638         and Paul Eggert  <eggert@cs.ucla.edu>
95640         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
95641         birthtime on all systems that have birthtime, not just those which
95642         use st_birthtimensec rather than st_birthtim.  Putting zero in
95643         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
95644         that the birth time is not available for files on an NFS mount.
95646 2007-04-03  Simon Josefsson  <simon@josefsson.org>
95648         * modules/memxor: Move back from crypto/, suggested by Bruno.
95649         * modules/crypto/hmac-sha1: Fix memxor dependency.
95651         * modules/crypto/gc: Moved from ../.
95653 2007-04-02  Eric Blake  <ebb9@byu.net>
95655         * lib/ldexpl.c (includes): Avoid libm.
95657         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
95659 2007-04-02  Bruno Haible  <bruno@clisp.org>
95661         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
95662         on IRIX.
95664 2007-04-02  Bruno Haible  <bruno@clisp.org>
95666         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
95667         x86 or x86_64 platforms running MacOS X.
95668         Reported by Ryan Schmidt <@ryandesign.com>.
95670 2007-04-02  Bruno Haible  <bruno@clisp.org>
95672         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
95673         i386.
95675 2007-04-01  Simon Josefsson  <simon@josefsson.org>
95677         * modules/crypto/arcfour: Moved from ../.
95678         * modules/crypto/arcfour-tests: Moved from ../.
95679         * modules/crypto/arctwo: Moved from ../.
95680         * modules/crypto/arctwo-tests: Moved from ../.
95681         * modules/crypto/des: Moved from ../.
95682         * modules/crypto/des-tests: Moved from ../.
95683         * modules/crypto/gc-arcfour: Moved from ../.
95684         * modules/crypto/gc-arcfour-tests: Moved from ../.
95685         * modules/crypto/gc-arctwo: Moved from ../.
95686         * modules/crypto/gc-arctwo-tests: Moved from ../.
95687         * modules/crypto/gc-des: Moved from ../.
95688         * modules/crypto/gc-des-tests: Moved from ../.
95689         * modules/crypto/gc-hmac-md5: Moved from ../.
95690         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
95691         * modules/crypto/gc-hmac-sha1: Moved from ../.
95692         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
95693         * modules/crypto/gc-md2: Moved from ../.
95694         * modules/crypto/gc-md2-tests: Moved from ../.
95695         * modules/crypto/gc-md4: Moved from ../.
95696         * modules/crypto/gc-md4-tests: Moved from ../.
95697         * modules/crypto/gc-md5: Moved from ../.
95698         * modules/crypto/gc-md5-tests: Moved from ../.
95699         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
95700         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
95701         * modules/crypto/gc-random: Moved from ../.
95702         * modules/crypto/gc-rijndael: Moved from ../.
95703         * modules/crypto/gc-rijndael-tests: Moved from ../.
95704         * modules/crypto/gc-sha1: Moved from ../.
95705         * modules/crypto/gc-sha1-tests: Moved from ../.
95706         * modules/crypto/gc-tests: Moved from ../.
95707         * modules/crypto/hmac-md5: Moved from ../.
95708         * modules/crypto/hmac-md5-tests: Moved from ../.
95709         * modules/crypto/hmac-sha1: Moved from ../.
95710         * modules/crypto/hmac-sha1-tests: Moved from ../.
95711         * modules/crypto/md2: Moved from ../.
95712         * modules/crypto/md2-tests: Moved from ../.
95713         * modules/crypto/md4: Moved from ../.
95714         * modules/crypto/md4-tests: Moved from ../.
95715         * modules/crypto/md5: Moved from ../.
95716         * modules/crypto/md5-tests: Moved from ../.
95717         * modules/crypto/memxor: Moved from ../.
95718         * modules/crypto/rijndael: Moved from ../.
95719         * modules/crypto/rijndael-tests: Moved from ../.
95720         * modules/crypto/sha1: Moved from ../.
95722 2007-03-30  James Youngman  <jay@gnu.org>
95724         * tests/test-stat-time.c (prepare_test): use chmod() rather than
95725         rename() to change the ctime of a file (because ctime is unaffected
95726         by rename on jfs2 on AIX 5.1).
95727         (main): Start by doing cleanup, in case a previous run failed leaving
95728         test files behind.
95730 2007-03-31  Bruno Haible  <bruno@clisp.org>
95732         Support old proprietary implementations of iconv.
95733         * modules/iconv_open: New file.
95734         * lib/iconv_.h: New file.
95735         * m4/iconv_h.m4: New file.
95736         * lib/iconv_open.c: New file.
95737         * lib/iconv_open-aix.gperf: New file.
95738         * lib/iconv_open-hpux.gperf: New file.
95739         * lib/iconv_open-irix.gperf: New file.
95740         * lib/iconv_open-osf.gperf: New file.
95741         * m4/iconv_open.m4: New file.
95742         * modules/linebreak (Depends-on): Add iconv_open.
95743         * modules/striconv (Depends-on): Likewise.
95744         * modules/striconveh (Depends-on): Likewise.
95745         * modules/unicodeio (Depends-on): Likewise.
95746         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
95747         (iconv_t)(-1).
95748         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
95749         conversion if cd is (iconv_t)(-1).
95750         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
95751         is not possible.
95753 2007-03-31  Bruno Haible  <bruno@clisp.org>
95755         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
95756         work on Solaris either. Protect also second use of "autodetect_jp".
95758 2007-03-31  Bruno Haible  <bruno@clisp.org>
95760         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
95761         the function is not present.
95763 2007-03-31  Bruno Haible  <bruno@clisp.org>
95765         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
95766         the function is not present.
95768 2007-03-31  Bruno Haible  <bruno@clisp.org>
95770         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
95771         a bug in HP-UX iconv_open().
95773 2007-03-31  Bruno Haible  <bruno@clisp.org>
95775         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
95776         (Mathematics <math.h>): New section, add fpieee.
95777         (Input/output <stdio.h>): Add fseterr.
95778         (Mathematics <math.h>): New section, add printf-frexp.
95779         (Container data structures): Add sublist.
95780         (Core language properties): Add fpucw, inline.
95781         (Functions for greatest-width integer types <inttypes.h>): Add
95782         imaxabs, imaxdiv, inttypes.
95783         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
95784         isnanl-nolibm, ldexp.
95785         (Mathematics <math.h>): New section, add printf-frexpl.
95786         (Support for systems lacking POSIX:2001): Add fprintf-posix,
95787         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
95788         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
95789         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
95790         (Unicode string functions): Add unistr/u*-mbtoucr.
95791         (Java): Add javacomp-script, javaexec-script.
95792         (C#): Add csharpcomp-script, csharpexec-script.
95793         (Support for building libraries and executables): Add havelib,
95794         relocatable-*.
95795         (Support for maintaining and releasing projects): Renamed from
95796         'Support for maintaining and release projects'. Add announce-gen.
95798 2007-03-31  Bruno Haible  <bruno@clisp.org>
95800         * README: Talk primarily about git.
95801         (git and CVS): Renamed from CVS.
95802         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
95803         gnulib is available through git.
95804         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
95806 2007-03-30  Bruno Haible  <bruno@clisp.org>
95808         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
95809         * lib/poll_.h: Likewise.
95810         * lib/stat_.h: Likewise.
95811         * lib/sys_time_.h: Likewise.
95812         * lib/sysexit_.h: Likewise.
95813         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
95814         * lib/stdbool_.h: Likewise.
95815         * lib/byteswap_.h: Add double-inclusion guard.
95817 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
95819         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
95821 2007-03-30  Karl Berry  <karl@gnu.org>
95823         * config/srclist-update: double space after USA in the license
95824         substitution, since that's how it's usually (?) written.
95826 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
95828         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
95829         reported by Bruno Haible.
95831 2007-03-29  Bruno Haible  <bruno@clisp.org>
95833         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
95834         a bug in AIX iconv().
95836 2007-03-29  Bruno Haible  <bruno@clisp.org>
95838         * modules/ldexpl-tests: New file.
95839         * tests/test-ldexpl.c: New file.
95841 2007-03-29  Bruno Haible  <bruno@clisp.org>
95843         * lib/ldexpl.c: Include fpucw.h.
95844         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
95845         multiplication.
95846         * modules/ldexpl (Depends-on): Add fpucw.
95848 2007-03-29  Bruno Haible  <bruno@clisp.org>
95850         * modules/ldexpl: New file.
95851         * m4/ldexpl.m4: New file.
95852         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
95853         set.
95854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
95855         REPLACE_LDEXPL.
95856         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
95857         REPLACE_LDEXPL.
95858         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
95859         gl_FUNC_LDEXPL_WORKS.
95860         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
95861         * modules/mathl (Files): Remove lib/ldexpl.c.
95862         (Depends-on): Add ldexpl.
95864 2007-03-29  Bruno Haible  <bruno@clisp.org>
95866         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
95868 2007-03-29  Bruno Haible  <bruno@clisp.org>
95870         * tests/test-striconveh.c (main): Don't assume that a direct conversion
95871         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
95872         and possibly also HP-UX.
95873         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
95874         work on AIX, IRIX, HP-UX, OSF/1.
95875         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
95876         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
95877         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
95878         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
95879         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
95880         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
95882 2007-03-29  Bruno Haible  <bruno@clisp.org>
95884         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
95886 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
95888         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
95889         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
95891 2007-03-29  Eric Blake  <ebb9@byu.net>
95893         * lib/acl-internal.h: Remove redundant include.
95894         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
95895         Cygwin when a file is locked.
95897 2007-03-29  Bruno Haible  <bruno@clisp.org>
95899         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
95900         file.
95901         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
95903 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
95905         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
95906         try to remove a parent directory if the child couldn't be removed
95907         (except for the first rmdir, which could fail because the child
95908         doesn't exist).  Problem reported by Jeff Blaine in
95909         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
95911 2007-03-28  Bruno Haible  <bruno@clisp.org>
95913         * lib/striconveh.c (utf8conv_carefully): New function.
95914         (mem_cd_iconveh_internal): Invoke it.
95916 2007-03-28  Bruno Haible  <bruno@clisp.org>
95918         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
95919         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
95920         input.
95921         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
95922         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
95923         unistr/u8-uctomb.
95925 2007-03-28  Bruno Haible  <bruno@clisp.org>
95927         * modules/unistr/u8-mbtoucr: New file.
95928         * lib/unistr/u8-mbtoucr.c: New file.
95929         * modules/unistr/u16-mbtoucr: New file.
95930         * lib/unistr/u16-mbtoucr.c: New file.
95931         * modules/unistr/u16-mbtoucr: New file.
95932         * lib/unistr/u16-mbtoucr.c: New file.
95933         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
95935 2007-03-27  Simon Josefsson  <simon@josefsson.org>
95936             Bruno Haible  <bruno@clisp.org>
95938         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
95939         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
95940         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
95942         * m4/stdio_h.m4: Add stubs for vasprintf too.
95944         * modules/stdio: Support vasprintf in sed command.
95946         * modules/vasprintf: Depend on stdio for prototypes.  Remove
95947         vasprintf.h.  Add stdio module indicator.
95949         * lib/stdio_.h: Declare asprintf and vasprintf, based on
95950         vasprintf.h.
95952         * lib/vasprintf.h: File removed.
95954         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
95955         * lib/vasprintf.c: Ditto.
95956         * lib/xvasprintf.c: Ditto.
95957         * tests/test-vasprintf-posix.c: Ditto.
95958         * tests/test-vasprintf.c: Ditto.
95960 2007-03-27  Bruno Haible  <bruno@clisp.org>
95962         Make vasnprintf multithread-safe.
95963         * lib/vasnprintf.c (decimal_point_char): New function.
95964         (VASNPRINTF): Use it.
95965         Suggested by Simon Josefsson.
95967 2007-03-27  Eric Blake  <ebb9@byu.net>
95969         Support sub-second birthtime on cygwin.
95970         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
95971         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
95972         (get_stat_birthtime): Also work with st_birthtim.
95974 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
95976         * lib/stat-time.h (USE_BIRTHTIME): Remove.
95977         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
95978         (get_stat_birthtime_ns): Do not try to use "spare" fields.
95979         (get_stat_birthtime_ns): Simplify compile-time tests.
95980         (get_stat_birthtime): Change the API to look like
95981         get_stat_mtime etc., except return a negative tv_nsec on error.
95982         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
95983         Don't check for "spare" fields.
95984         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
95985         or for struct stat.st_birthtime, as these tests aren't used.
95986         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
95988 2007-03-27  Bruno Haible  <bruno@clisp.org>
95990         * lib/stat-time.h: Include <sys/stat.h>.
95992 2007-03-27  James Youngman  <jay@gnu.org>
95994         * lib/stat-time.h (get_stat_birthtime): New function for
95995           retrieving st_birthtime as provided by UFS2 (hence *BSD).
95996         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
95997           and its variants.
95998         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
95999         * modules/stat-time-test: New file.
96000         * tests/test-stat-time.c: New test, devised by Bruno Haible.
96002 2007-03-26  Bruno Haible  <bruno@clisp.org>
96004         Better support of signalling NaNs.
96005         * lib/atanl.c: Include isnanl.h.
96006         (atanl): Perform test for NaN at the beginning of the function and
96007         through a call to isnanl.
96008         * lib/cosl.c: Include isnanl.h.
96009         (cosl): Perform test for NaN at the beginning of the function and
96010         through a call to isnanl.
96011         * lib/ldexpl.c: Include isnanl.h.
96012         (ldexpl): Perform test for NaN through a call to isnanl.
96013         * lib/logl.c: Include isnanl.h.
96014         (logl): Perform test for NaN at the beginning of the function and
96015         through a call to isnanl.
96016         * lib/sinl.c: Include isnanl.h.
96017         (sinl): Perform test for NaN at the beginning of the function and
96018         through a call to isnanl.
96019         * lib/sqrtl.c: Include isnanl.h.
96020         (sqrtl): Perform test for NaN at the beginning of the function and
96021         through a call to isnanl.
96022         * lib/tanl.c: Include isnanl.h.
96023         (tanl): Perform test for NaN at the beginning of the function and
96024         through a call to isnanl.
96025         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
96026         * modules/mathl (Depends-on): Add isnanl.
96028 2007-03-26  Eric Blake  <ebb9@byu.net>
96030         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
96031         regression in logic sense of previous patch.
96033 2007-03-26  Bruno Haible  <bruno@clisp.org>
96035         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
96036         unportable shell command "if ! ...".
96037         Reported by Ralf Wildenhues.
96039 2007-03-25  Bruno Haible  <bruno@clisp.org>
96041         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
96042         <sysexits.h> file, and only add EX_CONFIG.
96043         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
96044         absolute file name and whether it is sufficient. Substitute also
96045         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
96046         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
96047         ABSOLUTE_SYSEXITS_H into sysexits.h.
96049 2007-03-25  Bruno Haible  <bruno@clisp.org>
96051         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
96052         hints is NULL.
96054 2007-03-25  Bruno Haible  <bruno@clisp.org>
96056         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
96057         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
96059 2007-03-25  Bruno Haible  <bruno@clisp.org>
96061         * lib/vasnprintf.c: Include langinfo.h.
96062         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
96063         multithread-safe.
96064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
96065         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
96066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
96067         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96068         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96070         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96071         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
96072         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96073         Reported by Simon Josefsson.
96075 2007-03-25  Bruno Haible  <bruno@clisp.org>
96077         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
96078         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
96079         * modules/vasnprintf (Depends-on): Add stdint.
96081 2007-03-25  Bruno Haible  <bruno@clisp.org>
96083         * modules/fpieee: New file.
96084         * m4/fpieee.m4: New file.
96085         * modules/isnan-nolibm (Depends-on): Add fpieee.
96086         * modules/isnanl-nolibm (Depends-on): Add fpieee.
96087         * modules/isnanl (Depends-on): Add fpieee.
96089 2007-03-25  Bruno Haible  <bruno@clisp.org>
96091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
96093 2007-03-25  Bruno Haible  <bruno@clisp.org>
96095         Avoid test failures on IRIX 6.5.
96096         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
96097         (main): Use it.
96098         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
96099         macros.
96100         (main): Use them.
96102 2007-03-25  Bruno Haible  <bruno@clisp.org>
96104         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
96105         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
96106         exists but doesn't work.
96107         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
96108         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
96109         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
96110         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
96111         math.h.
96113 2007-03-25  Bruno Haible  <bruno@clisp.org>
96115         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
96116         returns inf. Needed on IRIX 6.5.
96118 2007-03-25  Bruno Haible  <bruno@clisp.org>
96120         * tests/test-frexpl.c: Include isnanl-nolibm.h.
96121         (main): Use isnanl instead of x != x idiom.
96122         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
96124         * tests/test-frexp.c: Include isnan.h.
96125         (main): Use isnan instead of x != x idiom.
96126         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
96128 2007-03-25  Bruno Haible  <bruno@clisp.org>
96130         * tests/test-frexp.c (NaN): New function/macro.
96131         (main): Use it instead of 0.0 / 0.0.
96132         * tests/test-isnan.c (NaN): New function/macro.
96133         (main): Use it instead of 0.0 / 0.0.
96134         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
96135         (test_function): Use it instead of 0.0 / 0.0.
96136         * tests/test-vasprintf-posix.c (NaN): New function/macro.
96137         (test_function): Use it instead of 0.0 / 0.0.
96138         * tests/test-snprintf-posix.h (NaN): New function/macro.
96139         (test_function): Use it instead of 0.0 / 0.0.
96140         * tests/test-sprintf-posix.h (NaN): New function/macro.
96141         (test_function): Use it instead of 0.0 / 0.0.
96142         * tests/test-fprintf-posix.h (NaN): New function/macro.
96143         (test_function): Use it instead of 0.0 / 0.0.
96144         * tests/test-printf-posix.h (NaN): New function/macro.
96145         (test_function): Use it instead of 0.0 / 0.0.
96147         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
96149 2007-03-25  Bruno Haible  <bruno@clisp.org>
96151         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
96153 2007-03-25  Bruno Haible  <bruno@clisp.org>
96155         * lib/regexec.c (merge_state_with_log): Make static.
96157 2007-03-25  Bruno Haible  <bruno@clisp.org>
96159         * lib/trigl.c (kernel_rem_pio2): Make static.
96161 2007-03-25  Bruno Haible  <bruno@clisp.org>
96163         * lib/sincosl.c (sincosl_table): Make static.
96165 2007-03-25  Bruno Haible  <bruno@clisp.org>
96167         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
96168         if the compiler does not support C99.
96170 2007-03-25  Bruno Haible  <bruno@clisp.org>
96172         * modules/time (Makefile.am): Ensure all rule action lines start with a
96173         tab.
96175 2007-03-24  Bruno Haible  <bruno@clisp.org>
96177         * modules/tsearch-tests: New file.
96178         * tests/test-tsearch.sh: New file.
96179         * tests/test-tsearch.c: New file, mostly copied from glibc.
96181         * modules/search-tests: New file.
96182         * tests/test-search.c: New file.
96184         * modules/search: New file.
96185         * lib/search_.h: New file, incorporating lib/tsearch.h.
96186         * m4/search_h.m4: New file.
96187         * lib/tsearch.h: Remove file.
96188         * lib/tsearch.c: Include search.h instead of tsearch.h.
96189         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
96190         HAVE_TSEARCH.
96191         * modules/tsearch (Files): Remove lib/tsearch.h.
96192         (Depends-on): Add search.
96193         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
96194         (Include): Change tsearch.h into search.h.
96196 2007-03-24  Bruno Haible  <bruno@clisp.org>
96198         * modules/fpucw: New file.
96199         * lib/fpucw.h: New file.
96200         * lib/frexp.c: Include fpucw.h.
96201         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
96202         (FUNC): Use them.
96203         * lib/printf-frexp.c: Include fpucw.h.
96204         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
96205         (FUNC): Use them.
96206         * lib/vasnprintf.c: Include fpucw.h.
96207         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
96208         'long double' calculations.
96209         * tests/test-frexpl.c: Include fpucw.h.
96210         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
96211         * tests/test-printf-frexpl.c: Include fpucw.h.
96212         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
96213         * modules/frexpl (Depends-on): Add fpucw.
96214         * modules/printf-frexpl (Depends-on): Likewise.
96215         * modules/fprintf-posix (Depends-on): Likewise.
96216         * modules/snprintf-posix (Depends-on): Likewise.
96217         * modules/sprintf-posix (Depends-on): Likewise.
96218         * modules/vasnprintf-posix (Depends-on): Likewise.
96219         * modules/vasprintf-posix (Depends-on): Likewise.
96220         * modules/vfprintf-posix (Depends-on): Likewise.
96221         * modules/vsnprintf-posix (Depends-on): Likewise.
96222         * modules/vsprintf-posix (Depends-on): Likewise.
96223         * modules/frexpl-tests (Depends-on): Likewise.
96224         * modules/printf-frexpl-tests (Depends-on): Likewise.
96226 2007-03-24  Bruno Haible  <bruno@clisp.org>
96228         * lib/float+.h: New file.
96229         * lib/isnan.c: Include float+.h.
96230         (SIZE): New macro.
96231         (FUNC): Compare only SIZE bytes of the value.
96232         * lib/vasnprintf.c: Include float+.h.
96233         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
96234         SIZEOF_LDBL or SIZEOF_DBL bytes.
96235         * modules/isnan-nolibm (Files): Add lib/float+.h.
96236         * modules/isnanl-nolibm (Files): Add lib/float+.h.
96237         * modules/isnanl (Files): Add lib/float+.h.
96238         * modules/vasnprintf (Files): Add lib/float+.h.
96240 2007-03-24  Bruno Haible  <bruno@clisp.org>
96242         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
96243         include isnanl-nolibm.h.
96245 2007-03-24  Bruno Haible  <bruno@clisp.org>
96247         * tests/test-read-file.c (main): Don't produce spurious output for
96248         expected situations. Make the test fail if it encountered unexpected
96249         results.
96251 2007-03-24  Bruno Haible  <bruno@clisp.org>
96253         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
96254         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
96256 2007-03-24  Bruno Haible  <bruno@clisp.org>
96258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
96260 2007-03-24  Bruno Haible  <bruno@clisp.org>
96262         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
96263         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
96265         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
96266         * modules/utf8-ucs4: Turn into a symbolic link to module
96267         unistr/u8-mbtouc.
96269         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
96270         utf8-ucs4-unsafe.
96271         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
96272         unistr/u8-mbtouc-unsafe.
96274         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
96275         * modules/utf16-ucs4: Turn into a symbolic link to module
96276         unistr/u16-mbtouc.
96278         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
96279         utf16-ucs4-unsafe.
96280         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
96281         unistr/u16-mbtouc-unsafe.
96283         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
96284         * modules/ucs4-utf8: Turn into a symbolic link to module
96285         unistr/u8-ubtomb.
96287         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
96288         * modules/ucs4-utf16: Turn into a symbolic link to module
96289         unistr/u16-ubtomb.
96291 2007-03-24  Bruno Haible  <bruno@clisp.org>
96293         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
96294         Enable the function only if HAVE_INLINE.
96295         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
96296         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
96297         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
96298         Enable the function only if HAVE_INLINE.
96299         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
96300         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
96301         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
96302         Enable the function only if HAVE_INLINE.
96303         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
96304         Enable the function only if HAVE_INLINE.
96305         * modules/utf8-ucs4: Update.
96306         * modules/utf8-ucs4-unsafe: Update.
96307         * modules/utf16-ucs4: Update.
96308         * modules/utf16-ucs4-unsafe: Update.
96309         * modules/ucs4-utf8: Update.
96310         * modules/ucs4-utf16: Update.
96312 2007-03-24  Bruno Haible  <bruno@clisp.org>
96314         * lib/utf8-ucs4.h: Remove file.
96315         * lib/utf8-ucs4-unsafe.h: Remove file.
96316         * lib/utf16-ucs4.h: Remove file.
96317         * lib/utf16-ucs4-unsafe.h: Remove file.
96318         * lib/ucs4-utf8.h: Remove file.
96319         * lib/ucs4-utf16.h: Remove file.
96320         * lib/unistr.h: Include their previous contents.
96321         * m4/utf-ucs4.m4: Remove file.
96322         * m4/ucs4-utf.m4: Remove file.
96323         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
96324         (Depends-on): Add unistr/base.
96325         (configure.ac): Remove gl_UTF_UCS4.
96326         (Makefile.am): Update.
96327         (Include): Change to unistr.h.
96328         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
96329         (Depends-on): Add unistr/base.
96330         (configure.ac): Remove gl_UTF_UCS4.
96331         (Makefile.am): Update.
96332         (Include): Change to unistr.h.
96333         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
96334         (Depends-on): Add unistr/base.
96335         (configure.ac): Remove gl_UTF_UCS4.
96336         (Makefile.am): Update.
96337         (Include): Change to unistr.h.
96338         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
96339         (Depends-on): Add unistr/base.
96340         (configure.ac): Remove gl_UTF_UCS4.
96341         (Makefile.am): Update.
96342         (Include): Change to unistr.h.
96343         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
96344         (Depends-on): Add unistr/base.
96345         (configure.ac): Remove gl_UCS4_UTF.
96346         (Makefile.am): Update.
96347         (Include): Change to unistr.h.
96348         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
96349         (Depends-on): Add unistr/base.
96350         (configure.ac): Remove gl_UCS4_UTF.
96351         (Makefile.am): Update.
96352         (Include): Change to unistr.h.
96353         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
96354         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
96355         utf8-ucs4-unsafe.h.
96356         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
96357         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
96358         utf16-ucs4-unsafe.h.
96359         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
96360         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
96361         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
96362         * lib/unistr/u8-strchr.c: Likewise.
96363         * lib/unistr/u8-strrchr.c: Likewise.
96364         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
96365         * lib/unistr/u16-strchr.c: Likewise.
96366         * lib/unistr/u16-strrchr.c: Likewise.
96367         * lib/striconveh.c: Update.
96368         * lib/linebreak.c: Update.
96370 2007-03-24  Bruno Haible  <bruno@clisp.org>
96372         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
96373         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
96375 2007-03-22  Bruno Haible  <bruno@clisp.org>
96377         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
96379 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
96381         * MODULES.html.sh (File system functions): New module write-any-file.
96382         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
96383         * m4/write-any-file.m4: New files.
96385 2007-03-23  Eric Blake  <ebb9@byu.net>
96387         * gnulib-tool: Rearrange space-tab sequences, since some editors
96388         like to eat them.
96390 2007-03-23  Eric Blake  <ebb9@byu.net>
96392         * lib/version-etc.c (version_etc_va): Update license wording to
96393         be more concise.  Recommended by Richard Stallman.
96395 2007-03-22  Bruno Haible  <bruno@clisp.org>
96397         * lib/poll.c (MSG_PEEK): New fallback definition.
96399 2007-03-22  Bruno Haible  <bruno@clisp.org>
96401         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
96402         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
96403         (main): Update.
96404         Fixes a compilation error on BeOS.
96406 2007-03-22  Bruno Haible  <bruno@clisp.org>
96408         * modules/frexpl-tests: New file.
96409         * tests/test-frexpl.c: New file.
96411         * modules/frexpl: New file.
96412         * m4/frexpl.m4: New file.
96413         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
96414         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
96415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
96416         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
96417         (Depends-on): Add frexpl. Remove isnanl-nolibm.
96418         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
96420 2007-03-22  Bruno Haible  <bruno@clisp.org>
96422         * lib/frexpl.c: Share code with lib/frexp.c.
96423         * modules/mathl (Files): Add lib/frexp.c.
96424         (Depends-on): Add isnanl-nolibm.
96426 2007-03-22  Bruno Haible  <bruno@clisp.org>
96428         * modules/printf-frexp (Files): Add m4/frexp.m4.
96429         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
96430         only if the found frexp function actually works.
96432 2007-03-22  Bruno Haible  <bruno@clisp.org>
96434         * lib/frexp.c: Remove older implementation that uses divisions.
96436 2007-03-21  Bruno Haible  <bruno@clisp.org>
96438         * modules/frexp-tests: New file.
96439         * tests/test-frexp.c: New file.
96441         * modules/frexp: New file.
96442         * lib/frexp.c: New file.
96443         * m4/frexp.m4: New file.
96444         * lib/math_.h (frexp): New declaration.
96445         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
96446         REPLACE_FREXP.
96447         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
96449 2007-03-21  Bruno Haible  <bruno@clisp.org>
96451         * modules/isnanl-tests: New file.
96452         * tests/test-isnanl.c: New file.
96454         * modules/isnanl: New file.
96455         * lib/isnanl.h: New file.
96456         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
96457         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
96458         gl_FUNC_ISNANL_WORKS.
96459         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
96460         New macros.
96462 2007-03-21  Bruno Haible  <bruno@clisp.org>
96464         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
96465         lib/isnanl.h.
96466         (Include): Update.
96467         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
96468         * lib/vasnprintf.c: Update.
96469         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
96470         tests/test-isnanl.h, remove tests/test-isnanl.c.
96471         (Makefile.am): Update.
96472         * tests/test-isnanl-nolibm.c: New file.
96473         * tests/test-isnanl.h: New file.
96474         * tests/test-isnanl.c: Remove file.
96476 2007-03-21  Jim Meyering  <jim@meyering.net>
96478         When trying to open ".", treat ESTALE like EACCES.
96479         * lib/savewd.c (savewd_save): Resort to forking not just upon
96480         failure with EACCES, but also when errno is ESTALE.
96482 2007-03-20  Bruno Haible  <bruno@clisp.org>
96484         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
96485         Needed on AIX 5.1. Reported by Matthew Woehlke.
96487 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96489         Suggestions by Bruno Haible:
96490         * lib/acl-internal.h: Include "gettext.h" rather than rolling
96491         our own.
96492         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
96493         * modules/acl (Depends-on): Add gettext.
96495 2007-03-19  Bruno Haible  <bruno@clisp.org>
96497         * modules/iconvme: Remove file.
96498         * lib/iconvme.h: Remove file.
96499         * lib/iconvme.c: Remove file.
96500         * m4/iconvme.m4: Remove file.
96502 2007-03-19  Bruno Haible  <bruno@clisp.org>
96504         * doc/relocatable-maint.texi: Break long shell script line.
96505         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
96507 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96509         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
96510         handle file_has_acl.
96511         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
96512         * lib/acl.c: Move header inclusions and related macro defns into
96513         lib/acl-internal.h.
96514         (S_ISLNK): Remove defn, since that's now done for us.
96515         (file_has_acl): Move to lib/file-has-acl.c.
96516         Call acl_trivial if available.  This is the crucial part of the fix.
96517         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
96518         shared within the library.  Rewrite a bit, partly to make it compatible
96519         with the GNU coding style.
96520         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
96521         Remove unnecessary double-quotes.
96522         Don't test for acl_to_text; the build will catch that.
96523         Replace acl_entries if it doesn't exist and it is needed.
96524         Check for -lsec and acl_trivial (as used on Solaris 10).
96525         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
96526         lib/file-has-acl.c.
96527         (Depends-on): Add sys_stat, for S_ISLNK.
96529 2007-03-19  Ben Pfaff  <blp@gnu.org>
96531         * doc/gnulib.texi: Fix typos.
96532         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
96534 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
96536         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
96537         If size is zero here, buf must be zero.
96539 2007-03-19  Simon Josefsson  <simon@josefsson.org>
96541         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
96542         <bruno@clisp.org>.
96544 2007-03-18  Bruno Haible  <bruno@clisp.org>
96546         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
96547         Suggested by Eric Blake.
96549 2007-03-18  Ben Pfaff  <blp@gnu.org>
96551         * doc/relocatable.texi: Recommend using as prefix a directory
96552         that does not exist and will never be created.  Based on
96553         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
96554         and others.
96556 2007-03-17  Bruno Haible  <bruno@clisp.org>
96558         * lib/fchownat.c: Include lchown.h.
96560 2007-03-17  Bruno Haible  <bruno@clisp.org>
96562         Fix endless loop when the given allocated size was > INT_MAX.
96563         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
96564         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
96565         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
96566         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
96567         * lib/sprintf.c (sprintf): Likewise.
96569 2007-03-17  Bruno Haible  <bruno@clisp.org>
96571         * tests/test-argp-2.sh (func_compare): Output a context diff.
96573 2007-03-17  Bruno Haible  <bruno@clisp.org>
96575         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
96576         locale's decimal-point character.
96578 2007-03-17  Bruno Haible  <bruno@clisp.org>
96580         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
96581         before comparing it. Needed because on some platforms (e.g. x86) a
96582         'long double' occupies less bytes than sizeof (long double).
96584 2007-03-17  Bruno Haible  <bruno@clisp.org>
96586         * tests/test-crc.c (main): Make printf statements 64-bit clean.
96587         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
96588         * tests/test-getaddrinfo.c (simple): Likewise.
96589         * tests/test-read-file.c (main): Likewise.
96591 2007-03-17  Bruno Haible  <bruno@clisp.org>
96593         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
96595 2007-03-17  Bruno Haible  <bruno@clisp.org>
96597         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
96598         unused variable.
96600 2007-03-17  Bruno Haible  <bruno@clisp.org>
96602         * tests/test-c-strcasecmp.c: Include c-strcase.h.
96603         * tests/test-c-strncasecmp.c: Likewise.
96605 2007-03-17  Bruno Haible  <bruno@clisp.org>
96607         * modules/stdlib (Depends-on): Add unistd.
96608         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
96609         Needed for MacOS X 10.3.
96611 2007-03-17  Bruno Haible  <bruno@clisp.org>
96613         * lib/unistr/u-strdup.h: Include <stdlib.h>.
96615 2007-03-17  Bruno Haible  <bruno@clisp.org>
96617         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
96619 2007-03-17  Bruno Haible  <bruno@clisp.org>
96621         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
96622         to reflect files copied from gnulib (with or without modifications).
96623         Suggested by Jim Meyering.
96625 2007-03-17  Eric Blake  <ebb9@byu.net>
96627         * NEWS: Document stdlib change from 2007-02-18.
96629 2007-03-17  Jim Meyering  <jim@meyering.net>
96631         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
96632         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
96633         someone uses a name containing shell meta-characters.
96634         Reported by Alfred M. Szmidt.
96636         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
96638 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
96640         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
96641         and copy gettext configuration files only if configure.ac contains
96642         a use of AM_GNU_GETTEXT_VERSION.
96644 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
96646         * build-aux/bootstrap (gnulib_name): New variable.
96647         (gnulib_tool_options): Use it.
96649 2007-03-13  Simon Josefsson  <simon@josefsson.org>
96651         * tests/test-des.c: Use new namespace.
96653 2007-03-15  Bruno Haible  <bruno@clisp.org>
96655         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
96656         Reported by James Youngman <jay@gnu.org>.
96658 2007-03-15  Bruno Haible  <bruno@clisp.org>
96660         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
96661         declared prototype. Needed with cc on OSF/1 5.1.
96663 2007-03-15  Bruno Haible  <bruno@clisp.org>
96665         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
96666         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
96667         (struct gl_list_implementation): Add dispose_fn argument to the
96668         'create_empty', 'create' methods.
96669         (struct gl_list_impl_base): Add field 'dispose_fn'.
96670         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
96671         argument.
96672         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
96673         dispose_fn argument.
96674         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
96675         dispose_fn on the dropped values.
96676         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
96677         dispose_fn argument.
96678         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
96679         dropped values.
96680         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
96681         (gl_tree_remove_node): Call dispose_fn on the dropped value.
96682         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
96683         (gl_tree_remove_node): Call dispose_fn on the dropped value.
96684         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
96685         argument.
96686         (gl_tree_list_free): Call dispose_fn on the dropped values.
96687         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
96688         the dropped values.
96689         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
96690         Add dispose_fn argument.
96691         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
96692         Call dispose_fn on the dropped values.
96693         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
96694         Add dispose_fn argument.
96695         (gl_sublist_create): Initialize the 'dispose_fn' field.
96696         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
96697         * tests/test-array_list.c (main): Update.
96698         * tests/test-carray_list.c (main): Update.
96699         * tests/test-avltree_list.c (main): Update.
96700         * tests/test-rbtree_list.c (main): Update.
96701         * tests/test-avltreehash_list.c (main): Update.
96702         * tests/test-rbtreehash_list.c (main): Update.
96703         * tests/test-linked_list.c (main): Update.
96704         * tests/test-linkedhash_list.c (main): Update.
96705         * tests/test-array_oset.c (main): Update.
96707 2007-03-15  Bruno Haible  <bruno@clisp.org>
96709         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
96710         (gl_oset_create_empty): Add dispose_fn argument.
96711         (struct gl_oset_implementation): Add dispose_fn argument to
96712         'create_empty' method.
96713         (struct gl_oset_impl_base): Add dispose_fn field.
96714         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
96715         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
96716         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
96717         values.
96718         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
96719         (gl_tree_oset_free): Call dispose_fn on the dropped values.
96720         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
96721         dropped value.
96722         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
96723         dropped value.
96724         * tests/test-array_oset.c (main): Update.
96725         * tests/test-avltree_oset.c (main): Update.
96726         * tests/test-rbtree_oset.c (main): Update.
96727         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
96729 2007-03-13  Bruno Haible  <bruno@clisp.org>
96731         * tests/test-stdbool.c (i): Update after last patch.
96733 2007-03-12  Bruno Haible  <bruno@clisp.org>
96735         * lib/quotearg.c: Include <wctype.h> early, before the definition of
96736         the iswprint macro. Needed on Solaris 2.5.1.
96738 2007-03-12  Bruno Haible  <bruno@clisp.org>
96740         * tests/test-printf-frexp.c (main): Declare x as volatile.
96742 2007-03-12  Simon Josefsson  <simon@josefsson.org>
96744         * doc/gnulib.texi (Build robot for gnulib): New section.
96746 2007-03-12  Jim Meyering  <jim@meyering.net>
96748         * build-aux/bootstrap: New file.
96749         * build-aux/bootstrap.conf: New file, from coreutils.
96751 2007-03-11  Bruno Haible  <bruno@clisp.org>
96753         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
96755 2007-03-12  Simon Josefsson  <simon@josefsson.org>
96757         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
96758         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
96759         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
96761 2007-03-11  Bruno Haible  <bruno@clisp.org>
96763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
96764         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
96766 2007-03-11  Bruno Haible  <bruno@clisp.org>
96768         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
96769         formula. Needed for SunPRO C 5.0.
96771 2007-03-11  Bruno Haible  <bruno@clisp.org>
96773         * modules/long-options (Depends-on): Add getopt.
96775 2007-03-11  Bruno Haible  <bruno@clisp.org>
96777         * modules/modechange (Depends-on): Add stdbool.
96779 2007-03-11  Bruno Haible  <bruno@clisp.org>
96781         * modules/i-ring (Depends-on): Add stdbool.
96783 2007-03-11  Bruno Haible  <bruno@clisp.org>
96785         * modules/gc-des (Depends-on): Add stdbool.
96787 2007-03-11  Bruno Haible  <bruno@clisp.org>
96789         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
96791 2007-03-11  Bruno Haible  <bruno@clisp.org>
96793         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
96795 2007-03-11  Bruno Haible  <bruno@clisp.org>
96797         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
96799 2007-03-11  Bruno Haible  <bruno@clisp.org>
96801         * lib/vasnprintf.c (sprintf): Undefine.
96803 2007-03-11  Bruno Haible  <bruno@clisp.org>
96805         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
96806         initializers in SunPRO C and Compaq C compilers.
96808 2007-03-11  Bruno Haible  <bruno@clisp.org>
96810         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
96811         decrementing code ANSI C compliant.
96813 2007-03-11  Bruno Haible  <bruno@clisp.org>
96815         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
96816         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
96818 2007-03-11  Bruno Haible  <bruno@clisp.org>
96820         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
96821         <stdbool.h> substitute doesn't pass.
96823 2007-03-11  Bruno Haible  <bruno@clisp.org>
96825         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
96827 2007-03-11  Bruno Haible  <bruno@clisp.org>
96829         * gnulib-tool (func_create_megatestdir): Create also an autobuild
96830         script, for submission to autobuild.josefsson.org.
96832 2007-03-10  Bruno Haible  <bruno@clisp.org>
96834         * modules/canonicalize-lgpl-tests: New file.
96835         * tests/test-canonicalize-lgpl.sh: New file.
96836         * tests/test-canonicalize-lgpl.c: New file.
96838         * modules/c-strcase-tests: New file.
96839         * tests/test-c-strcase.sh: New file.
96840         * tests/test-c-strcasecmp.c: New file.
96841         * tests/test-c-strncasecmp.c: New file.
96843         * modules/atexit-tests: New file.
96844         * tests/test-atexit.sh: New file.
96845         * tests/test-atexit.c: New file.
96847 2007-03-10  Bruno Haible  <bruno@clisp.org>
96849         * tests/test-binary-io.sh: Use temporary filenames that are not so
96850         likely to clash with those of other tests (in a parallel make).
96851         * tests/test-binary-io.c: Likewise.
96853 2007-03-10  Bruno Haible  <bruno@clisp.org>
96855         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
96856         fallback; use #error instead.
96857         Suggested by Simon Josefsson.
96859 2007-03-10  Bruno Haible  <bruno@clisp.org>
96861         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
96862         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
96863         first and the last.
96865 2007-03-10  Bruno Haible  <bruno@clisp.org>
96867         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
96869 2007-03-10  Bruno Haible  <bruno@clisp.org>
96871         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
96872         "make distcheck".
96873         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
96874         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
96875         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
96877 2007-03-10  Bruno Haible  <bruno@clisp.org>
96879         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
96880         variable.
96881         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
96882         variable.
96884 2007-03-09  Eric Blake  <ebb9@byu.net>
96885         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
96887         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
96888         types are not being provided by gnulib.
96889         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
96890         types are supported.
96892 2007-03-10  Bruno Haible  <bruno@clisp.org>
96894         * lib/stdio_.h (__attribute__): New macro.
96895         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
96896         vsprintf): Specify __attribute__ __format__ for GCC.
96897         Suggested by Eric Blake.
96899 2007-03-09  Bruno Haible  <bruno@clisp.org>
96901         * modules/printf-posix-tests: New file.
96902         * tests/test-printf-posix.sh: New file.
96903         * tests/test-printf-posix.c: New file.
96905         * modules/printf-posix: New file.
96906         * lib/printf.c: New file.
96907         * m4/printf-posix-rpl.m4: New file.
96908         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
96909         REPLACE_PRINTF.
96910         * lib/stdio_.h (printf): New declaration.
96911         (format, __format__, ____printf____, ____scanf____, ____strftime____,
96912         ____strfmon____): New macros.
96913         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
96914         REPLACE_PRINTF.
96916 2007-03-09  Bruno Haible  <bruno@clisp.org>
96918         * tests/test-vasnprintf-posix2.sh: New file.
96919         * tests/test-vasnprintf-posix2.c: New file.
96920         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
96921         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
96922         (Makefile.am): Activate test-vasnprintf-posix2.sh.
96924         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
96925         a locale dependent decimal point, rather than always '.'.
96927 2007-03-09  Eric Blake  <ebb9@byu.net>
96929         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
96930         spite of platforms like Tandem/NSK that define it to -1.
96932 2007-03-08  Bruno Haible  <bruno@clisp.org>
96934         * modules/vprintf-posix-tests: New file.
96935         * tests/test-vprintf-posix.sh: New file.
96936         * tests/test-vprintf-posix.c: New file.
96937         * tests/test-printf-posix.h: New file.
96939         * modules/vprintf-posix: New file.
96940         * lib/vprintf.c: New file.
96941         * m4/vprintf-posix.m4: New file.
96942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
96943         REPLACE_VPRINTF.
96944         * lib/stdio_.h (vprintf): New declaration.
96945         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
96946         REPLACE_VPRINTF.
96948 2007-03-08  Bruno Haible  <bruno@clisp.org>
96950         * modules/fprintf-posix-tests: New file.
96951         * tests/test-fprintf-posix.sh: New file.
96952         * tests/test-fprintf-posix.c: New file.
96954         * modules/fprintf-posix: New file.
96955         * lib/fprintf.c: New file.
96956         * m4/fprintf-posix.m4: New file.
96957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
96958         REPLACE_FPRINTF.
96959         * lib/stdio_.h (fprintf): New declaration.
96960         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
96961         REPLACE_FPRINTF.
96963 2007-03-08  Bruno Haible  <bruno@clisp.org>
96965         * modules/vfprintf-posix-tests: New file.
96966         * tests/test-vfprintf-posix.sh: New file.
96967         * tests/test-vfprintf-posix.c: New file.
96968         * tests/test-fprintf-posix.h: New file.
96969         * tests/test-fprintf-posix.out: New file.
96971         * modules/vfprintf-posix: New file.
96972         * lib/vfprintf.c: New file.
96973         * m4/vfprintf-posix.m4: New file.
96974         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
96975         REPLACE_VFPRINTF.
96976         * lib/stdio_.h (vfprintf): New declaration.
96977         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
96978         REPLACE_VFPRINTF.
96980 2007-03-08  Bruno Haible  <bruno@clisp.org>
96982         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
96984 2007-03-08  Bruno Haible  <bruno@clisp.org>
96986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
96987         instead of 'expr' invocations.
96988         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
96989         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
96990         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
96991         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
96992         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
96993         Suggested by Paul Eggert.
96995 2007-03-08  Bruno Haible  <bruno@clisp.org>
96997         * modules/fseterr-tests: New file.
96998         * tests/test-fseterr.c: New file.
97000         * modules/fseterr: New file.
97001         * lib/fseterr.h: New file.
97002         * lib/fseterr.c: New file.
97004 2007-03-08  Bruno Haible  <bruno@clisp.org>
97006         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
97007         * lib/getopt_.h: Likewise.
97008         * lib/mbswidth.h: Likewise.
97009         * lib/setenv.h: Likewise.
97010         * lib/vasnprintf.h: Likewise.
97011         * lib/vasprintf.h: Likewise.
97012         * lib/verror.h: Likewise.
97013         * lib/xsetenv.h: Likewise.
97014         * lib/xvasprintf.h: Likewise.
97016 2007-03-08  Jim Meyering  <jim@meyering.net>
97018         * users.txt: Add parted.
97020         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
97022 2007-03-07  Bruno Haible  <bruno@clisp.org>
97024         * m4/printf.m4: Make the shell script snippets copy&pastable.
97026 2007-03-02  Bruno Haible  <bruno@clisp.org>
97028         * lib/netinet_in_.h: New file.
97029         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
97030         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
97031         * modules/netinet_in (Files): Add lib/netinet_in_.h.
97032         (Depends-on): Add absolute-header.
97033         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
97034         into netinet/in.h.
97036 2007-03-03  Bruno Haible  <bruno@clisp.org>
97038         * lib/sys_select_.h: New file.
97039         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
97040         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
97041         * modules/sys_select (Files): Add lib/sys_select_.h.
97042         (Depends-on): Add absolute-header.
97043         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
97044         into sys/select.h.
97046 2007-03-02  Bruno Haible  <bruno@clisp.org>
97048         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
97049         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
97050         values.
97051         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
97052         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
97053         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
97054         * modules/sys_socket (Depends-on): Add absolute-header.
97055         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
97056         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
97057         (Include): Remove requirement of inclusion of <sys/types.h>.
97059 2007-03-02  Bruno Haible  <bruno@clisp.org>
97061         * lib/byteswap_.h (bswap_32): Fix formula.
97063 2007-03-06  Bruno Haible  <bruno@clisp.org>
97065         * modules/sprintf-posix-tests: New file.
97066         * tests/test-sprintf-posix.c: New file.
97068         * modules/sprintf-posix: New file.
97069         * lib/sprintf.c: New file.
97070         * m4/sprintf-posix.m4: New file.
97071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
97072         REPLACE_SPRINTF.
97073         * lib/stdio_.h (sprintf): New declaration.
97074         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
97075         REPLACE_SPRINTF.
97077 2007-03-06  Bruno Haible  <bruno@clisp.org>
97079         * modules/vsprintf-posix-tests: New file.
97080         * tests/test-vsprintf-posix.c: New file.
97081         * tests/test-sprintf-posix.h: New file.
97083         * modules/vsprintf-posix: New file.
97084         * lib/vsprintf.c: New file.
97085         * m4/vsprintf-posix.m4: New file.
97086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
97087         REPLACE_VSPRINTF.
97088         * lib/stdio_.h (vsprintf): New declaration.
97089         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
97090         REPLACE_VSPRINTF.
97092 2007-03-06  Bruno Haible  <bruno@clisp.org>
97094         * modules/vsnprintf (Depend-on): Remove minmax.
97096 2007-03-06  Bruno Haible  <bruno@clisp.org>
97098         * modules/snprintf-posix-tests: New file.
97099         * tests/test-snprintf-posix.c: New file.
97101         * modules/snprintf-posix: New file.
97102         * m4/snprintf-posix.m4: New file.
97103         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
97104         gl_FUNC_SNPRINTF.
97105         (gl_FUNC_SNPRINTF): Invoke it.
97106         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
97107         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
97108         is set.
97109         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
97111 2007-03-06  Bruno Haible  <bruno@clisp.org>
97113         * modules/vsnprintf-posix-tests: New file.
97114         * tests/test-vsnprintf-posix.c: New file.
97115         * tests/test-snprintf-posix.h: New file.
97117         * modules/vsnprintf-posix: New file.
97118         * m4/vsnprintf-posix.m4: New file.
97119         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
97120         gl_FUNC_VSNPRINTF.
97121         (gl_FUNC_VSNPRINTF): Invoke it.
97122         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
97123         * lib/stdio_.h (vsnprintf): Define as a replacement if
97124         REPLACE_VSNPRINTF is set.
97125         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
97127 2007-03-06  Bruno Haible  <bruno@clisp.org>
97129         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
97130         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
97132 2007-03-06  Bruno Haible  <bruno@clisp.org>
97134         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
97135         (asinl): Declare also if HAVE_DECL_ASINL is set.
97136         (atanl): Declare also if HAVE_DECL_ATANL is set.
97137         (ceill): Declare also if HAVE_DECL_CEILL is set.
97138         (cosl): Declare also if HAVE_DECL_COSL is set.
97139         (expl): Declare also if HAVE_DECL_EXPL is set.
97140         (floorl): Declare also if HAVE_DECL_FLOORL is set.
97141         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
97142         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
97143         (logl): Declare also if HAVE_DECL_LOGL is set.
97144         (sinl): Declare also if HAVE_DECL_SINL is set.
97145         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
97146         (tanl): Declare also if HAVE_DECL_TANL is set.
97147         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
97148         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
97149         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
97150         declaration of frexpl, ldexpl.
97151         * modules/printf-frexpl (Depends-on): Add math.
97152         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
97154 2007-03-05  Bruno Haible  <bruno@clisp.org>
97156         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
97157         frexpl and ldexpl are declared.
97158         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
97160 2007-03-05  Bruno Haible  <bruno@clisp.org>
97162         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
97163         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
97165 2007-03-05  Bruno Haible  <bruno@clisp.org>
97167         * lib/stdio_.h: Include <stddef.h>.
97169 2007-03-05  Bruno Haible  <bruno@clisp.org>
97171         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
97173 2007-03-05  Bruno Haible  <bruno@clisp.org>
97175         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
97176         NetBSD 4, from Ralf Wildenhues.
97178 2007-03-04  Bruno Haible  <bruno@clisp.org>
97180         * lib/vasprintf.h: Update #if logic for the case when the functions
97181         exist but are overridden.
97183 2007-03-04  Bruno Haible  <bruno@clisp.org>
97185         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
97186         implementations: glibc-2.4 and MacOS X 10.3.
97187         * tests/test-vasnprintf-posix.c (test_function): Test also the case
97188         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
97189         * tests/test-vasprintf-posix.c (test_function): Likewise.
97191 2007-03-04  Bruno Haible  <bruno@clisp.org>
97193         * modules/vasprintf-posix-tests: New file.
97194         * tests/test-vasprintf-posix.c: New file.
97196         * modules/vasprintf-posix: New file.
97197         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
97198         defined.
97199         * m4/vasprintf-posix.m4: New file.
97200         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
97201         gl_FUNC_VASPRINTF.
97202         (gl_FUNC_VASPRINTF): Invoke it.
97203         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
97204         here.
97205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
97207 2007-03-04  Bruno Haible  <bruno@clisp.org>
97209         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
97210         REPLACE_GETTIMEOFDAY.
97211         * modules/sys_time (Makefile.am): Likewise.
97212         * m4/sys_time_h.m4: Likewise.
97213         * m4/gettimeofday.m4: Likewise.
97215 2007-03-04  Bruno Haible  <bruno@clisp.org>
97217         * modules/vasnprintf-posix-tests: New file.
97218         * tests/test-vasnprintf-posix.c: New file.
97220         * modules/vasnprintf-posix: New file.
97221         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
97222         printf-frexpl.h.
97223         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
97224         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
97225         REPLACE_VASNPRINTF is defined.
97226         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
97227         gl_FUNC_VASNPRINTF.
97228         (gl_FUNC_VASNPRINTF): Invoke it.
97229         * m4/vasnprintf-posix.m4: New file.
97230         * m4/printf.m4: New file.
97232 2007-03-04  Bruno Haible  <bruno@clisp.org>
97234         Compile progreloc.c only if --enable-relocatable is specified.
97235         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
97236         if --enable-relocatable was specified.
97237         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
97238         lib_SOURCES.
97240 2007-03-04  Jim Meyering  <jim@meyering.net>
97242         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
97243         Use it consistently, rather than enumerating errno constants.
97245 2007-03-04  Bruno Haible  <bruno@clisp.org>
97247         * modules/xvasprintf-tests: New file.
97248         * tests/test-xvasprintf.c: New file.
97250         * modules/vasprintf-tests: New file.
97251         * tests/test-vasprintf.c: New file.
97253         * modules/vasnprintf-tests: New file.
97254         * tests/test-vasnprintf.c: New file.
97256         * modules/vsnprintf-tests: New file.
97257         * tests/test-vsnprintf.c: New file.
97259         * modules/snprintf-tests: New file.
97260         * tests/test-snprintf.c: New file.
97262 2007-03-04  Bruno Haible  <bruno@clisp.org>
97264         Compile relocatable.c only if --enable-relocatable is specified.
97265         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
97266         gl_RELOCATABLE_LIBRARY.
97267         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
97268         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
97269         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
97270         gl_RELOCATABLE_LIBRARY.
97271         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
97272         (Makefile.am): Remove lib_SOURCES.
97273         * modules/relocatable-lib-lgpl (configure.ac): Invoke
97274         gl_RELOCATABLE_LIBRARY.
97275         (Makefile.am): Remove lib_SOURCES.
97276         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
97277         always.
97278         * modules/relocatable-prog-wrapper (configure.ac): Invoke
97279         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
97281 2007-03-04  Bruno Haible  <bruno@clisp.org>
97283         * modules/argmatch-tests: New file.
97284         * tests/test-argmatch.c: New file.
97286         * tests/test-allocsa.c (main): Halve the number of loop runs.
97288         * modules/alloca-opt-tests: New file.
97289         * tests/test-alloca-opt.c: New file.
97291 2007-03-04  Jim Meyering  <jim@meyering.net>
97293         Work around difference between Linux ACLs and Solaris 10 ZFS.
97294         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
97295         for EINVAL.
97297 2007-03-03  Bruno Haible  <bruno@clisp.org>
97299         * modules/relocatable-prog (Depends-on): Add back progreloc's
97300         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
97302 2007-03-03  Bruno Haible  <bruno@clisp.org>
97304         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
97305         * modules/relocatable-lib: New file.
97307 2007-03-03  Bruno Haible  <bruno@clisp.org>
97309         * modules/relocatable-prog: Renamed from modules/relocatable.
97310         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
97312 2007-03-03  Bruno Haible  <bruno@clisp.org>
97314         * modules/relocatable-script (Files): Add doc/relocatable.texi,
97315         m4/relocatable-lib.m4.
97316         (Depends-on): Remove 'relocatable'.
97317         (configure.ac): Add gl_RELOCATABLE_NOP.
97319 2007-03-03  Bruno Haible  <bruno@clisp.org>
97321         * modules/relocatable-prog-wrapper: New file.
97322         * modules/relocatable (Depends-on): Add it. Remove all other
97323         dependencies except progname.
97324         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
97326         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
97327         (gl_FUNC_STRERROR): Nop.
97328         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
97330         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
97331         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
97333         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
97334         (gl_FUNC_READLINK): Update.
97336         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
97338 2007-03-03  Bruno Haible  <bruno@clisp.org>
97340         * lib/xreadlink.c: Include <unistd.h> unconditionally.
97341         * modules/xreadlink (Depends-on): Add unistd.
97342         * modules/xreadlink-with-size (Depends-on): Likewise.
97344 2007-03-03  Bruno Haible  <bruno@clisp.org>
97346         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
97347         extracted from gt_FUNC_SETENV.
97348         (gt_FUNC_SETENV): Remove macro.
97349         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
97350         remove gt_FUNC_SETENV.
97352 2007-03-03  Bruno Haible  <bruno@clisp.org>
97354         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
97355         ENABLE_RELOCATABLE here.
97356         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
97358 2007-03-03  Bruno Haible  <bruno@clisp.org>
97360         * modules/rbtreehash-list-tests (Depends-on): Add progname.
97361         * tests/test-rbtreehash_list.c: Include progname.h.
97362         (main): Call set_program_name.
97364         * modules/rbtree-oset-tests (Depends-on): Add progname.
97365         * tests/test-rbtree_oset.c: Include progname.h.
97366         (main): Call set_program_name.
97368         * modules/rbtree-list-tests (Depends-on): Add progname.
97369         * tests/test-rbtree_list.c: Include progname.h.
97370         (main): Call set_program_name.
97372         * modules/linked-list-tests (Depends-on): Add progname.
97373         * tests/test-linked_list.c: Include progname.h.
97374         (main): Call set_program_name.
97376 2007-03-03  Bruno Haible  <bruno@clisp.org>
97378         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
97379         All uses of __restrict changed to _Restrict_.
97380         * lib/glob_.h (__restrict): Remove macro.
97382 2007-03-02  Bruno Haible  <bruno@clisp.org>
97384         * modules/gettext (configure.ac): Require gettext infrastructure
97385         from version 0.16.1.
97387 2007-03-02  Bruno Haible  <bruno@clisp.org>
97389         * modules/linkedhash-list-tests (Depends-on): Add progname.
97390         * tests/test-linkedhash_list.c: Include progname.h.
97391         (main): Call set_program_name.
97393         * modules/carray-list-tests (Depends-on): Add progname.
97394         * tests/test-carray_list.c: Include progname.h.
97395         (main): Call set_program_name.
97397         * modules/avltreehash-list-tests (Depends-on): Add progname.
97398         * tests/test-avltreehash_list.c: Include progname.h.
97399         (main): Call set_program_name.
97401         * modules/avltree-oset-tests (Depends-on): Add progname.
97402         * tests/test-avltree_oset.c: Include progname.h.
97403         (main): Call set_program_name.
97405         * modules/avltree-list-tests (Depends-on): Add progname.
97406         * tests/test-avltree_list.c: Include progname.h.
97407         (main): Call set_program_name.
97409         * modules/array-oset-tests (Depends-on): Add progname.
97410         * tests/test-array_oset.c: Include progname.h.
97411         (main): Call set_program_name.
97413         * modules/array-list-tests (Depends-on): Add progname.
97414         * tests/test-array_list.c: Include progname.h.
97415         (main): Call set_program_name.
97417         * modules/argp-tests (Depends-on): Add progname.
97418         * tests/test-argp.c: Include argp.h first. Include progname.h.
97419         (main): Call set_program_name.
97421 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
97423         * doc/gnulib-tool.texi (Initial import): Reword description of
97424         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
97425         limited effect even if defined after the first system include.
97427 2007-03-01  Bruno Haible  <bruno@clisp.org>
97429         * build-aux/config.libpath: Update to libtool-1.5.22.
97430         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
97432 2007-03-01  Bruno Haible  <bruno@clisp.org>
97434         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
97435         foo_CFLAGS.
97436         Reported by Ralf Wildenhues.
97438 2007-03-01  Bruno Haible  <bruno@clisp.org>
97440         * build-aux/install-reloc: Remove object files left over by some
97441         compilers.
97442         Reported by Ralf Wildenhues.
97444 2007-03-01  Bruno Haible  <bruno@clisp.org>
97446         * build-aux/install-reloc: Break long lines.
97448 2007-03-01  Bruno Haible  <bruno@clisp.org>
97450         * doc/relocatable.texi: Document that it may not work on OpenBSD.
97451         Reported by Ralf Wildenhues.
97453 2007-03-01  Bruno Haible  <bruno@clisp.org>
97455         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
97456         include ordering constraints.
97458 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
97460         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
97461         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
97462         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
97463         as another example.
97464         * lib/time_.h: Fix misspelling.
97465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
97466         Require gl_HEADER_TIME_H_DEFAULTS.
97467         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
97468         * m4/time_r.m4 (gl_TIME_R): Likewise.
97469         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
97471 2007-03-01  Bruno Haible  <bruno@clisp.org>
97473         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
97474         * m4/utimens.m4 (gl_UTIMENS): Likewise.
97476 2007-03-01  Jim Meyering  <jim@meyering.net>
97478         * modules/xreadlink (Maintainer): Add my name.
97479         * modules/xreadlink-with-size (Depends-on): Alphabetize.
97481 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
97482             Bruno Haible  <bruno@clisp.org>
97484         * build-aux/install-reloc: Compile also c-ctype.c.
97485         * build-aux/relocatable.sh.in: New file.
97486         * doc/relocatable.texi: New file.
97487         * doc/relocatable-maint.texi: New file.
97488         * doc/gnulib.texi: Include relocatable-maint.texi.
97489         * lib/progreloc.c: Include unistd.h unconditionally.
97490         * lib/relocwrapper.c: Include unistd.h unconditionally.
97491         Include c-ctype.h.
97492         (add_dotbin): Use c_tolower.
97493         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
97494         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
97495         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
97496         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
97497         to m4/relocatable-lib.m4.
97498         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
97499         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
97500         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
97501         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
97502         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
97503         * modules/relocatable: New file.
97504         * modules/relocatable-lib: New file.
97505         * modules/relocatable-script: New file.
97507 2007-02-28  Bruno Haible  <bruno@clisp.org>
97509         Import --enable-relocatable infrastructure.
97510         * build-aux/config.libpath: New file, from GNU gettext.
97511         * build-aux/install-reloc: New file, from GNU gettext.
97512         * build-aux/reloc-ldflags: New file, from GNU gettext.
97513         * lib/relocatable.h: New file, from GNU gettext.
97514         * lib/relocatable.c: New file, from GNU gettext.
97515         * lib/relocwrapper.c: New file, from GNU gettext.
97516         * m4/relocatable.m4: New file, from GNU gettext.
97518 2007-02-28  Bruno Haible  <bruno@clisp.org>
97520         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
97522         * modules/xreadlink: New file, from GNU gettext with modifications.
97523         * lib/xreadlink.c: New file, from GNU gettext.
97524         * lib/xreadlink.h: Add comments.
97525         (xreadlink): New declaration.
97527         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
97528         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
97529         lib/xreadlink-with-size.c.
97530         (configure.ac): Remove gl_XREADLINK invocation.
97531         (Makefile.am): Augment lib_SOURCES.
97532         * m4/xreadlink.m4: Remove file.
97533         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
97534         (xreadlink_with_size): Renamed from xreadink.
97535         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
97536         * modules/canonicalize (Depends-on): Replace xreadlink with
97537         xreadlink-with-size.
97538         * lib/canonicalize.c (canonicalize_filename_mode): Update.
97540 2007-02-25  Jim Meyering  <jim@meyering.net>
97542         * build-aux/announce-gen: When complaining about excess arguments,
97543         list them.
97545 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
97547         * README: Document signed integer overflow situation more
97548         accurately.
97550 2007-02-25  Bruno Haible  <bruno@clisp.org>
97552         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
97553         'a' or 'A' conversion.
97555 2007-02-25  Bruno Haible  <bruno@clisp.org>
97557         * modules/filename: Renamed from modules/pathname.
97558         (Files): Replace lib/pathname.h with lib/filename.h. Replace
97559         lib/concatpath.c with lib/concat-filename.c.
97560         (Makefile.am): Update.
97561         (Include): Replace pathname.h with filename.h.
97562         * lib/filename.h: Renamed from lib/pathname.h.
97563         (concatenated_filename): Renamed from concatenated_pathname.
97564         * lib/concat-filename.c: Renamed from lib/concatpath.c.
97565         (concatenated_filename): Renamed from concatenated_pathname.
97566         * lib/findprog.c: Include filename.h instead of pathname.h.
97567         (find_in_path): Update.
97568         * lib/javacomp.c: Include filename.h instead of pathname.h.
97569         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
97570         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
97571         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
97572         is_oldgcj_14_13_usable, is_javac_usable): Update.
97573         * lib/javaexec.c: Include filename.h instead of pathname.h.
97574         (execute_java_class): Update.
97575         * modules/findprog: Update.
97576         * modules/javacomp: Update.
97577         * modules/javaexec: Update.
97578         * MODULES.html.sh (File system functions): Add 'filename', remove
97579         'pathname'.
97581 2007-02-25  Bruno Haible  <bruno@clisp.org>
97583         * modules/printf-frexpl-tests: New file.
97584         * tests/test-printf-frexpl.c: New file.
97586         * modules/printf-frexpl: New file.
97587         * lib/printf-frexpl.h: New file.
97588         * lib/printf-frexpl.c: New file.
97589         * m4/printf-frexpl.m4: New file.
97591 2007-02-25  Bruno Haible  <bruno@clisp.org>
97593         * modules/printf-frexp-tests: New file.
97594         * tests/test-printf-frexp.c: New file.
97596         * modules/printf-frexp: New file.
97597         * lib/printf-frexp.h: New file.
97598         * lib/printf-frexp.c: New file.
97599         * m4/printf-frexp.m4: New file.
97601 2007-02-25  Bruno Haible  <bruno@clisp.org>
97603         Assume automake >= 1.10 for the tests.
97604         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
97605         * modules/arctwo-tests: Likewise.
97606         * modules/argp-tests: Likewise.
97607         * modules/avltree-list-tests: Likewise.
97608         * modules/avltree-oset-tests: Likewise.
97609         * modules/avltreehash-list-tests: Likewise.
97610         * modules/carray-list-tests: Likewise.
97611         * modules/crc-tests: Likewise.
97612         * modules/des-tests: Likewise.
97613         * modules/gc-arcfour-tests: Likewise.
97614         * modules/gc-arctwo-tests: Likewise.
97615         * modules/gc-des-tests: Likewise.
97616         * modules/gc-hmac-md5-tests: Likewise.
97617         * modules/gc-hmac-sha1-tests: Likewise.
97618         * modules/gc-md2-tests: Likewise.
97619         * modules/gc-md4-tests: Likewise.
97620         * modules/gc-md5-tests: Likewise.
97621         * modules/gc-pbkdf2-sha1-tests: Likewise.
97622         * modules/gc-rijndael-tests: Likewise.
97623         * modules/gc-sha1-tests: Likewise.
97624         * modules/gc-tests: Likewise.
97625         * modules/getaddrinfo-tests: Likewise.
97626         * modules/hmac-md5-tests: Likewise.
97627         * modules/hmac-sha1-tests: Likewise.
97628         * modules/linked-list-tests: Likewise.
97629         * modules/linkedhash-list-tests: Likewise.
97630         * modules/lock-tests: Likewise.
97631         * modules/md2-tests: Likewise.
97632         * modules/md4-tests: Likewise.
97633         * modules/md5-tests: Likewise.
97634         * modules/rbtree-list-tests: Likewise.
97635         * modules/rbtree-oset-tests: Likewise.
97636         * modules/rbtreehash-list-tests: Likewise.
97637         * modules/read-file-tests: Likewise.
97638         * modules/rijndael-tests: Likewise.
97639         * modules/stdint-tests: Likewise.
97640         * modules/tls-tests: Likewise.
97642 2007-02-24  Bruno Haible  <bruno@clisp.org>
97644         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
97645         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
97646         function; instead check whether isnan with a double argument links.
97647         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
97648         function; instead check whether isnan with a 'long double' argument
97649         links.
97650         Reported by Eric Blake <ebb9@byu.net>.
97652 2007-02-24  Bruno Haible  <bruno@clisp.org>
97654         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
97655         defined.
97656         * lib/isnanl.c: Remove all code. Just include isnan.c.
97657         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
97659 2007-02-25  Jim Meyering  <jim@meyering.net>
97661         Avoid conflicting types for 'unsetenv' on FreeBSD.
97662         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
97663         conflicting with FreeBSD's (5.0 and 6.1) function declaration
97664         in stdlib.h.
97666 2007-02-24  Bruno Haible  <bruno@clisp.org>
97668         * modules/isnanl-nolibm-tests: New file.
97669         * tests/test-isnanl.c: New file.
97671         * modules/isnanl-nolibm: New file.
97672         * lib/isnanl.h: New file.
97673         * lib/isnanl.c: New file.
97674         * m4/isnanl.m4: New file.
97676 2007-02-24  Bruno Haible  <bruno@clisp.org>
97678         * modules/isnan-nolibm-tests: New file.
97679         * tests/test-isnan.c: New file.
97681         * modules/isnan-nolibm: New file.
97682         * lib/isnan.h: New file.
97683         * lib/isnan.c: New file.
97684         * m4/isnan.m4: New file.
97686 2007-02-24  Bruno Haible  <bruno@clisp.org>
97688         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
97689         assume that an exponent fits in 20 bits.
97691 2007-02-24  Jim Meyering  <jim@meyering.net>
97693         * m4/regex.m4: Update the description of the configure-time option,
97694         --without-included-regex, to state accurately what the defaults are,
97695         and perhaps to give people an idea why using this option is risky.
97697 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
97699         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
97700         loops on small arguments.  This attempts to avoid the problem
97701         Bruno Haible reported for AIX 4.3.2 in
97702         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
97704 2007-02-23  Bruno Haible  <bruno@clisp.org>
97706         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
97707         Needed for help2man.
97709 2007-02-23  Karl Berry  <karl@gnu.org>
97711         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
97712         exists, foo.h should be cvs-ignored, not committed.
97714 2007-02-23  Eric Blake  <ebb9@byu.net>
97716         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
97717         * lib/stat-time.h (includes): Likewise.
97718         * lib/utimecmp.c (includes): Likewise.
97719         * lib/utimens.h (includes): Likewise.
97720         * lib/getdate.y (includes): Also include "timespec.h" for use
97721         internal to the module.
97722         * modules/utimens (Depends-on): Revert yesterday's patch.
97723         * modules/nanosleep (Depends-on): Add missing dependency.
97725 2007-02-22  Bruno Haible  <bruno@clisp.org>
97727         * lib/glob.c: Don't include getlogin_r.h.
97729 2007-02-22  Jim Meyering  <jim@meyering.net>
97731         * modules/utimens (Depends-on): Add timespec, required for
97732         utimens.h's inclusion of timespec.h.
97734 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
97736         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
97737         long unreadable paths in GNU/Linux.  Problem reported by Andreas
97738         Schwab in
97739         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
97740         I'll try to think of a better way to fix the Solaris problem.
97742         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
97743         like glibc; on Solaris 10, it fails with errno == EINVAL.
97744         POSIX says the behavior is unspecified if the first argument is NULL,
97745         so play it safe and never pass NULL to the system getcwd.
97747 2007-02-21  Jim Meyering  <jim@meyering.net>
97749         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
97750         of gettimeofday.  It would conflict with the one now always
97751         provided via sys_time_.h.  Reported by Matthew Woehlke, as
97752         an IRIX 6.5 build failure.
97754 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
97756         Minor fixups to port to Solaris 10 with Sun C 5.8.
97757         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
97758         * modules/getcwd (Depends-on): Add dirfd.
97759         * lib/putenv.c (putenv): #undef it.
97760         (rpl_putenv): New decl.
97761         (malloc, free): Include <stdlib.h> rather than prototyping separately.
97763 2007-02-20  Bruno Haible  <bruno@clisp.org>
97765         * modules/stdio-tests: New file.
97766         * tests/test-stdio.c: New file.
97768         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
97769         (Depends-on): Add stdio.
97770         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
97771         (Include): Use <stdio.h> instead of vsnprintf.h.
97772         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
97773         HAVE_DECL_VSNPRINTF.
97774         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
97776         * modules/snprintf (Files): Remove lib/snprintf.h.
97777         (Depends-on): Add stdio.
97778         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
97779         (Include): Use <stdio.h> instead of snprintf.h.
97780         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
97781         HAVE_DECL_SNPRINTF.
97782         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
97783         * lib/getaddrinfo.c: Likewise.
97785         * modules/stdio: New file.
97786         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
97787         * lib/snprintf.h: Remove file.
97788         * lib/vsnprintf.h: Remove file.
97789         * lib/.cppi-disable: Remove snprintf.h.
97790         * m4/stdio_h.m4: New file.
97791         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
97793 2007-02-20  Jim Meyering  <jim@meyering.net>
97795         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
97796         used by e.g., mingw.  From Bruno Haible.
97798 2007-02-19  Bruno Haible  <bruno@clisp.org>
97800         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
97801         warnings.
97802         Reported by Ben Pfaff <blp@cs.stanford.edu>.
97804 2007-02-19  Bruno Haible  <bruno@clisp.org>
97806         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
97807         from mingw users.
97809 2007-02-19  Bruno Haible  <bruno@clisp.org>
97811         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
97812         warnings.
97813         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
97815 2007-02-19  Jim Meyering  <jim@meyering.net>
97817         Don't use FD after a successful "fdopendir (fd)".
97818         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
97819         Reset it by calling dirfd on the just-obtained DIR*.
97821         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
97822         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
97824 2007-02-18  Bruno Haible  <bruno@clisp.org>
97826         * lib/readlink.c: Include <unistd.h>.
97827         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
97828         HAVE_READLINK.
97829         * modules/readlink (Depends-on): Add unistd.
97830         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97831         (Include): Add <unistd.h>.
97833         * lib/getlogin_r.h: Remove file.
97834         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
97835         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
97836         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
97837         HAVE_DECL_GETLOGIN_R.
97838         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
97839         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97840         (Include): Use <unistd.h> instead of getlogin_r.h.
97842         * lib/getcwd.h: Remove file.
97843         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
97844         * lib/xgetcwd.c: Likewise.
97845         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
97846         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
97847         * modules/getcwd (Files): Remove lib/getcwd.h.
97848         (Depends-on): Add unistd.
97849         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97850         (Include): Use <unistd.h> instad of getcwd.h.
97852         * lib/ftruncate.c: Include <unistd.h> first.
97853         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
97854         Set HAVE_FTRUNCATE.
97855         * modules/ftruncate (Depends-on): Add unistd.
97856         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97858         * lib/fchdir.c: Include <unistd.h> first.
97859         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
97860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
97861         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
97862         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97863         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
97865         * lib/dup2.c: Include <unistd.h> first.
97866         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
97867         HAVE_DUP2.
97868         * modules/dup2 (Depends-on): Add unistd.
97869         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97871         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
97872         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
97873         REPLACE_CHOWN. Don't define chown as a macro here.
97874         * modules/chown (Depends-on): Add unistd.
97875         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
97877         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
97878         Add definition for GL_LINK_WARNING.
97879         (chown, dup2): New declarations.
97880         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
97881         link warning.
97882         (ftruncate): New declaration.
97883         (getcwd): New declaration, taken from old getcwd.h.
97884         (getlogin_r): New declaration, taken from old getlogin_r.h.
97885         (readlink): New declaration.
97886         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
97887         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
97888         (gl_PREREQ_UNISTD): Remove macro.
97889         (gl_UNISTD_MODULE_INDICATOR): New macro.
97890         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
97891         many new variables. Don't set UNISTD_H.
97892         * modules/unistd (Description): Change.
97893         (Depends-on): Add link-warning.
97894         (configure.ac): Update.
97895         (Makefile.am): Create unistd.h always. Substitute many new variables
97896         into it.
97898 2007-02-18  Bruno Haible  <bruno@clisp.org>
97900         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
97901         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
97902         HAVE_GETSUBOPT.
97903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
97904         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
97905         * lib/getsubopt.h: Remove file.
97906         * modules/getsubopt (Files): Remove lib/getsubopt.h.
97907         (Depends-on): Add stdlib.
97908         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97909         (Includes): Use <stdlib.h> instead of getsubopt.h.
97910         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
97911         Set HAVE_GETSUBOPT.
97912         * lib/getsubopt.c: Don't include getsubopt.h.
97914 2007-02-18  Bruno Haible  <bruno@clisp.org>
97916         * modules/fchdir (Depends-on): Add dup2.
97918 2007-02-18  Bruno Haible  <bruno@clisp.org>
97920         * lib/stdlib_.h: Handle glibc's special invocation convention
97921         specially.
97923 2007-02-18  Bruno Haible  <bruno@clisp.org>
97925         * modules/stdlib-tests: New file.
97926         * tests/test-stdlib.c: New file.
97928         * modules/mkstemp (Files): Remove lib/mkstemp.h.
97929         (Depends-on): Add stdlib.
97930         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97931         (Includes): Use <stdlib.h> instead of mkstemp.h.
97932         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
97933         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
97934         * lib/mkstemp.c: Don't include mkstemp.h.
97935         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
97936         * lib/stdlib--.h: Don't include mkstemp.h.
97938         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
97939         (Depends-on): Add stdlib.
97940         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
97941         (Includes): Use <stdlib.h> instead of mkdtemp.h.
97942         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
97943         HAVE_MKDTEMP.
97944         * lib/mkdtemp.c: Don't include mkdtemp.h.
97945         * lib/clean-temp.c: Don't include mkdtemp.h.
97947         * modules/exit (Files): Remove lib/exit.h.
97948         (Depends-on): Add stdlib.
97949         (Makefile.am): Remove lib_SOURCES.
97950         (Include): Use <stdlib.h> instead of exit.h.
97951         * lib/argmatch.c: Don't include exit.h.
97952         * lib/execute.c: Likewise.
97953         * lib/pagealign_alloc.c: Likewise.
97954         * lib/pipe.c: Likewise.
97955         * lib/wait-process.c: Likewise.
97956         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
97957         * lib/exitfail.c: Likewise.
97958         * lib/savewd.c: Likewise.
97959         * lib/xsetenv.c: Likewise.
97961         * modules/stdlib: New file.
97962         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
97963         and extra comments about mkstemp().
97964         * lib/exit.h: Remove file.
97965         * lib/mkdtemp.h: Remove file.
97966         * lib/mkstemp.h: Remove file.
97967         * m4/stdlib_h.m4: New file.
97968         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
97970 2007-02-18  Bruno Haible  <bruno@clisp.org>
97972         * modules/math-tests: New file.
97973         * tests/test-math.c: New file.
97975         * modules/math: New file.
97976         * modules/mathl (Files): Remove lib/mathl.h.
97977         (Depends-on): Add math.
97978         (Makefile.am): Don't mention mathl.h.
97979         (Include): Use <math.h> instead of mathl.h.
97980         * lib/math_.h: New file.
97981         * lib/mathl.h: Remove file.
97982         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
97983         mathl.h.
97984         * lib/asinl.c: Likewise.
97985         * lib/atanl.c: Likewise.
97986         * lib/ceill.c: Likewise.
97987         * lib/cosl.c: Likewise.
97988         * lib/expl.c: Likewise.
97989         * lib/floorl.c: Likewise.
97990         * lib/frexpl.c: Likewise.
97991         * lib/ldexpl.c: Likewise.
97992         * lib/logl.c: Likewise.
97993         * lib/sincosl.c: Likewise.
97994         * lib/sinl.c: Likewise.
97995         * lib/sqrtl.c: Likewise.
97996         * lib/tanl.c: Likewise.
97997         * lib/trigl.c: Likewise.
97998         * m4/math_h.m4: New file.
97999         * MODULES.html.sh (Mathematics): Add math.
98001 2007-02-17  Bruno Haible  <bruno@clisp.org>
98003         * modules/wctype-tests: New file.
98004         * tests/test-wctype.c: New file.
98006         * modules/wchar-tests: New file.
98007         * tests/test-wchar.c: New file.
98009         * modules/unistd-tests: New file.
98010         * tests/test-unistd.c: New file.
98012         * modules/time-tests: New file.
98013         * tests/test-time.c: New file.
98015         * modules/sysexits-tests: New file.
98016         * tests/test-sysexits.c: New file.
98018         * modules/sys_time-tests: New file.
98019         * tests/test-sys_time.c: New file.
98021         * modules/sys_stat-tests: New file.
98022         * tests/test-sys_stat.c: New file.
98024         * modules/sys_socket-tests: New file.
98025         * tests/test-sys_socket.c: New file.
98027         * modules/sys_select-tests: New file.
98028         * tests/test-sys_select.c: New file.
98030         * modules/string-tests: New file.
98031         * tests/test-string.c: New file.
98033         * modules/stdbool-tests: New file.
98034         * tests/test-stdbool.c: New file.
98036         * modules/netinet_in-tests: New file.
98037         * tests/test-netinet_in.c: New file.
98039         * modules/inttypes-tests: New file.
98040         * tests/test-inttypes.c: New file.
98042         * modules/fcntl-tests: New file.
98043         * tests/test-fcntl.c: New file.
98045         * modules/byteswap-tests: New file.
98046         * tests/test-byteswap.c: New file.
98048         * modules/arpa_inet-tests: New file.
98049         * tests/test-arpa_inet.c: New file.
98051 2007-02-17  Bruno Haible  <bruno@clisp.org>
98053         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
98054         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
98055         if the corresponding module is not enabled. Emit link warnings if
98056         the function is used nevertheless.
98057         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
98058         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
98059         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
98060         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
98061         * modules/inttypes (Depends-on): Add link-warning.
98062         (Makefile.am): Copy the contents of build-aux/link-warning.h into
98063         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
98064         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
98065         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
98066         * modules/imaxdiv (configure.ac): Likewise.
98067         * modules/strtoimax (configure.ac): Likewise.
98068         * modules/strtoumax (configure.ac): Likewise.
98070 2007-02-17  Bruno Haible  <bruno@clisp.org>
98072         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
98073         gl_STRING_MODULE_INDICATOR_DEFAULTS.
98074         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
98075         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
98077 2007-02-17  Bruno Haible  <bruno@clisp.org>
98079         * modules/link-warning: New file.
98080         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
98081         * lib/string_.h (GL_LINK_WARNING): Remove definition.
98082         * modules/string (Depends-on): Add link-warning.
98083         (Makefile.am): Copy the contents of build-aux/link-warning.h into
98084         string.h.
98085         * MODULES.html.sh (Support for building libraries and executables): Add
98086         link-warning.
98088 2007-02-17  Bruno Haible  <bruno@clisp.org>
98090         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
98091         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
98092         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
98093         long lines.
98095 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
98096             Bruno Haible  <bruno@clisp.org>
98098         * modules/tmpfile: New file.
98099         * lib/tmpfile.c: New file.
98100         * m4/tmpfile.m4: New file.
98101         * MODULES.html.sh (func_all_modules): New section "Input/output".
98103 2007-02-15  Bruno Haible  <bruno@clisp.org>
98105         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
98106         (supports_delete_on_close): New function.
98107         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
98109 2007-02-14  Bruno Haible  <bruno@clisp.org>
98111         * modules/mbspcasecmp-tests: New file.
98112         * tests/test-mbspcasecmp.sh: New file.
98113         * tests/test-mbspcasecmp.c: New file.
98115         New module mbspcasecmp.
98116         * modules/mbspcasecmp: New file.
98117         * lib/mbspcasecmp.c: New file.
98118         * lib/string_.h (strncasecmp): Change warning message.
98119         (mbspcasecmp): New declaration.
98120         * m4/mbspcasecmp.m4: New file.
98121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98122         GNULIB_MBSPCASECMP.
98123         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
98124         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
98126 2007-02-14  Bruno Haible  <bruno@clisp.org>
98128         * modules/mbsncasecmp-tests: New file.
98129         * tests/test-mbsncasecmp.sh: New file.
98130         * tests/test-mbsncasecmp.c: New file.
98132         New module mbsncasecmp.
98133         * modules/mbsncasecmp: New file.
98134         * lib/mbsncasecmp.c: New file.
98135         * lib/string_.h (mbsncasecmp): New declaration.
98136         * m4/mbsncasecmp.m4: New file.
98137         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98138         GNULIB_MBSNCASECMP.
98139         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
98140         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
98142 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
98144         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
98145         Verify that it doesn't overlap with our flags.
98146         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
98147         do not have the desired effect in multibyte locales; instead, use
98148         mbscasecmp.
98149         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
98150         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
98151         we don't require GNU fnmatch ourselves (if our users require it, they
98152         should do so explicitly).
98154         Fix regex code so it doesn't rely on strcasecmp.
98155         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
98156         Otherwise, include gnulib's langinfo.h.
98157         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
98158         undesirable behavior in non-C locales.  Instead, rely on localecharset.
98159         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
98160         * modules/regex (FILES): Remove m4/codeset.m4.
98161         (Depends-on): Add localcharset.  Remove strcase.
98163 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98165         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
98166         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
98168 2007-02-13  Bruno Haible  <bruno@clisp.org>
98170         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
98171         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98173 2007-02-12  Bruno Haible  <bruno@clisp.org>
98175         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
98176         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
98177         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
98178         time warning rather than a link error.
98180 2007-02-12  Bruno Haible  <bruno@clisp.org>
98182         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
98183         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
98184         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
98186 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
98188         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
98189         args, not 2.
98191 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
98193         New module 'time', so that apps can include <time.h> as per
98194         POSIX and GNU instead of separate include files like time_r.h
98195         and timegm.h.  This implementation tries out a simpler approach
98196         for replacing decls in standard include files (as compared to
98197         the string module), somewhat as an experiment.
98199         * config/srclist.txt: Comment out mktime.c for now.
98200         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
98201         since it doesn't apply any more.  Use generic wording instead.
98202         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
98203         'time'.
98204         * lib/time_.h, m4/time_h.m4, modules/time: New files.
98205         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
98206         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
98207         Don't include <sys/types.h>; no longer needed since we assume C89.
98208         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
98209         * lib/strftime.c: Likewise.
98210         * lib/time_r.c: Likewise.
98211         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
98212         * lib/nanosleep.c: Include <time.h> first, to check interface.
98213         * lib/strptime.c: Likewise.
98214         * lib/time_r.c: Likewise.
98215         * lib/timegm.c: Likewise.
98216         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
98217         needed.
98218         * lib/timegm.c: Don't include timegm.h; no longer needed.
98219         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
98220         time.h now handles any problems in that area.
98221         (struct timespec, nanosleep): Remove; time.h now arranges for these.
98222         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
98223         that time.h defines struct timespec.
98224         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
98225         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
98226         handles that.
98227         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
98228         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
98229         needed.  Set REPLACE_LOCALTIME.
98230         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
98231         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
98232         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
98233         nanosleep; time_h.m4 now does that.  Don't require
98234         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
98235         module handles this now.
98236         * modules/getdate (Depends-on): Remove timespec.  Add time.
98237         * modules/nanosleep (Depends-on): Likewise.
98238         * modules/stat-time (Depends-on): Likewise.
98239         * modules/nanosleep (Include): Include time.h, not timespec.h.
98240         * modules/strptime (Files): Remove lib/strptime.h.
98241         (Depends-on): Add extensions, time.
98242         (Include): Include time.h, not strptime.h.
98243         * modules/time_r (Files): Remove lib/time_r.h.
98244         (Depends-on): Add time.
98245         (Include): Include time.h, not time_r.h.
98246         * modules/timegm: Likewise.
98247         * modules/timespec (Description): Now does timespec-related decls
98248         of our own, instead of struct timespec itself.
98249         (Depends-on): Add time; remove extensions.
98250         (Maintainer): Add self.
98251         * modules/utimecmp (Depends-on): Add time; remove timespec.
98252         * modules/utimens (Depends-on): Likewise.
98253         * modules/xnanosleep (Depends-on): Likewise.
98255 2007-02-11  Bruno Haible  <bruno@clisp.org>
98257         * lib/c-strstr.c: Include allocsa.h.
98258         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
98259         * lib/c-strcasestr.c: Include allocsa.h.
98260         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
98261         * lib/strcasestr.c: Include allocsa.h.
98262         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
98263         * lib/mbsstr.c: Include allocsa.h.
98264         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
98265         allocsa/freesa instead of malloc/free.
98266         * lib/mbscasestr.c: Include allocsa.h.
98267         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
98268         allocsa/freesa instead of malloc/free.
98269         * modules/c-strstr (Depends-on): Add allocsa.
98270         * modules/c-strcasestr (Depends-on): Likewise.
98271         * modules/strcasestr (Depends-on): Likewise.
98272         * modules/mbsstr (Depends-on): Likewise.
98273         * modules/mbscasestr (Depends-on): Likewise.
98275 2007-02-11  Bruno Haible  <bruno@clisp.org>
98277         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
98279         * modules/mbsspn-tests: New file.
98280         * tests/test-mbsspn.sh: New file.
98281         * tests/test-mbsspn.c: New file.
98283 2007-02-11  Bruno Haible  <bruno@clisp.org>
98285         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
98287         * modules/mbspbrk-tests: New file.
98288         * tests/test-mbspbrk.sh: New file.
98289         * tests/test-mbspbrk.c: New file.
98291 2007-02-11  Bruno Haible  <bruno@clisp.org>
98293         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
98294         unneeded cast.
98296         * modules/mbscspn-tests: New file.
98297         * tests/test-mbscspn.sh: New file.
98298         * tests/test-mbscspn.c: New file.
98300 2007-02-11  Bruno Haible  <bruno@clisp.org>
98302         * modules/mbscasecmp-tests: New file.
98303         * tests/test-mbscasecmp.sh: New file.
98304         * tests/test-mbscasecmp.c: New file.
98306 2007-02-11  Bruno Haible  <bruno@clisp.org>
98308         Ensure O(n) worst-case complexity of mbscasestr.
98309         * lib/mbscasestr.c: Include stdbool.h.
98310         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
98311         functions.
98312         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
98313         the bookkeeping indicates that it's worth it.
98314         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
98316         * modules/mbscasestr-tests: New file.
98317         * tests/test-mbscasestr1.c: New file.
98318         * tests/test-mbscasestr2.sh: New file.
98319         * tests/test-mbscasestr2.c: New file.
98320         * tests/test-mbscasestr3.sh: New file.
98321         * tests/test-mbscasestr3.c: New file.
98322         * tests/test-mbscasestr4.sh: New file.
98323         * tests/test-mbscasestr4.c: New file.
98324         * m4/locale-tr.m4: New file.
98326 2007-02-11  Bruno Haible  <bruno@clisp.org>
98328         Ensure O(n) worst-case complexity of mbsstr.
98329         * lib/mbsstr.c: Include stdbool.h.
98330         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
98331         functions.
98332         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
98333         bookkeeping indicates that it's worth it.
98334         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
98336         * modules/mbsstr-tests: New file.
98337         * tests/test-mbsstr1.c: New file.
98338         * tests/test-mbsstr2.sh: New file.
98339         * tests/test-mbsstr2.c: New file.
98340         * tests/test-mbsstr3.sh: New file.
98341         * tests/test-mbsstr3.c: New file.
98342         * m4/locale-fr.m4: New file.
98344 2007-02-11  Bruno Haible  <bruno@clisp.org>
98346         * lib/mbsrchr.c (mbsrchr): Fix bug.
98348         * modules/mbsrchr-tests: New file.
98349         * tests/test-mbsrchr.sh: New file.
98350         * tests/test-mbsrchr.c: New file.
98352 2007-02-11  Bruno Haible  <bruno@clisp.org>
98354         * lib/mbschr.c (mbschr): Fix bug.
98356         * modules/mbschr-tests: New file.
98357         * tests/test-mbschr.sh: New file.
98358         * tests/test-mbschr.c: New file.
98359         * m4/locale-zh.m4: New file.
98361 2007-02-11  Bruno Haible  <bruno@clisp.org>
98363         Support for copying multibyte string iterators.
98364         * lib/mbiter.h: Include <string.h>.
98365         (mbiter_multi_copy): New function.
98366         (mbi_copy): New macro.
98367         * lib/mbuiter.h: Include <string.h>.
98368         (mbuiter_multi_copy): New function.
98369         (mbui_copy): New macro.
98371 2007-02-11  Bruno Haible  <bruno@clisp.org>
98373         New module mbslen.
98374         * modules/mbslen: New file.
98375         * lib/mbslen.c: New file.
98376         * lib/string_.h (mbslen): New declaration.
98377         * m4/mbslen.m4: New file.
98378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98379         GNULIB_MBSLEN.
98380         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
98381         * MODULES.html.sh (Internationalization functions): Add mbslen.
98383 2007-02-11  Bruno Haible  <bruno@clisp.org>
98385         Ensure O(n) worst-case complexity of strcasestr substitute.
98386         * lib/strcasestr.c: Include stdbool.h.
98387         (knuth_morris_pratt): New function.
98388         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
98389         bookkeeping indicates that it's worth it.
98390         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
98392         * modules/strcasestr-tests: New file.
98393         * tests/test-strcasestr.c: New file.
98395 2007-02-11  Bruno Haible  <bruno@clisp.org>
98397         Ensure O(n) worst-case complexity of c_strcasestr.
98398         * lib/c-strcasestr.c: Include stdbool.h, string.h.
98399         (knuth_morris_pratt): New function.
98400         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
98401         the bookkeeping indicates that it's worth it.
98402         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
98404         * modules/c-strcasestr-tests: New file.
98405         * tests/test-c-strcasestr.c: New file.
98407 2007-02-11  Bruno Haible  <bruno@clisp.org>
98409         Ensure O(n) worst-case complexity of c_strstr.
98410         * lib/c-strstr.c: Include stdbool.h, string.h.
98411         (knuth_morris_pratt): New function.
98412         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
98413         bookkeeping indicates that it's worth it.
98414         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
98416         * lib/c-strstr.c: Complete rewrite for maintainability.
98418         * modules/c-strstr-tests: New file.
98419         * tests/test-c-strstr.c: New file.
98421 2007-02-11  Bruno Haible  <bruno@clisp.org>
98423         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
98424         5.2.1 and earlier, whereby \055 was treated just like the range
98425         delimiter '-'.
98426         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
98428 2007-02-08  Bruno Haible  <bruno@clisp.org>
98430         * modules/regex (Depends-on): Add stdbool.
98431         Reported by Dalibor Topic <robilad@kaffe.org>.
98433 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
98435         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
98436         Prefer returning from main to exiting from it.
98437         Remove unnecessary parens after sizeof.
98439 2007-02-05  Bruno Haible  <bruno@clisp.org>
98441         New module mbssep.
98442         * modules/mbssep: New file.
98443         * lib/mbssep.c: New file.
98444         * lib/string_.h (strsep): Add a conditional link warning.
98445         (mbssep): New declaration.
98446         * m4/mbssep.m4: New file.
98447         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98448         GNULIB_MBSSEP.
98449         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
98450         * MODULES.html.sh (Internationalization functions): Add mbssep.
98452 2007-02-05  Bruno Haible  <bruno@clisp.org>
98454         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
98455         Optimize search in case of 1 delimiter.
98457 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
98459         * lib/acl.h: Include sys/types.h before sys/acl.h.
98461 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
98463         Merge upstream fix for glibc bugzilla #3957:
98465         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
98467         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
98468         bit for RE_HAT_LISTS_NOT_NEWLINE.
98469         (build_charclass_op): Remove bogus comment.
98471 2007-02-05  Simon Josefsson  <simon@josefsson.org>
98473         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
98475 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
98477         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
98478         * lib/memmem.c [!defined _LIBC]: Include config.h.
98480 2007-02-04  Bruno Haible  <bruno@clisp.org>
98482         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
98483         warning message.
98485 2007-02-04  Bruno Haible  <bruno@clisp.org>
98487         New module mbstok_r.
98488         * modules/mbstok_r: New file.
98489         * lib/mbstok_r.c: New file.
98490         * lib/string_.h (strtok_r): Change argument names to match the
98491         comments. Add a conditional link warning.
98492         (mbstok_r): New declaration.
98493         * m4/mbstok_r.m4: New file.
98494         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98495         GNULIB_MBSTOK_R.
98496         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
98497         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
98499 2007-02-04  Bruno Haible  <bruno@clisp.org>
98501         New module mbsspn.
98502         * modules/mbsspn: New file.
98503         * lib/mbsspn.c: New file.
98504         * lib/string_.h (strspn): Add a conditional link warning.
98505         (mbsspn): New declaration.
98506         * m4/mbsspn.m4: New file.
98507         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98508         GNULIB_MBSSPN.
98509         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
98510         * MODULES.html.sh (Internationalization functions): Add mbsspn.
98512 2007-02-04  Bruno Haible  <bruno@clisp.org>
98514         New module mbspbrk.
98515         * modules/mbspbrk: New file.
98516         * lib/mbspbrk.c: New file.
98517         * lib/string_.h (strpbrk): Add a conditional link warning.
98518         (mbspbrk): New declaration.
98519         * m4/mbspbrk.m4: New file.
98520         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98521         GNULIB_MBSPBRK.
98522         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
98523         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
98525 2007-02-04  Bruno Haible  <bruno@clisp.org>
98527         New module mbscspn.
98528         * modules/mbscspn: New file.
98529         * lib/mbscspn.c: New file.
98530         * lib/string_.h (strcspn): Add a conditional link warning.
98531         (mbscspn): New declaration.
98532         * m4/mbscspn.m4: New file.
98533         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98534         GNULIB_MBSCSPN.
98535         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
98536         * MODULES.html.sh (Internationalization functions): Add mbscspn.
98538 2007-02-04  Bruno Haible  <bruno@clisp.org>
98540         New module mbscasestr, reduced goal of strcasestr.
98541         * modules/mbscasestr: New file.
98542         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
98543         (mbscasestr): Renamed from strcasestr.
98544         * lib/strcasestr.c: Don't include mbuiter.h.
98545         (strcasestr): Remove support for multibyte locales.
98546         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
98547         Change the conditional link warning.
98548         (mbscasestr): New declaration.
98549         * m4/mbscasestr.m4: New file.
98550         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
98551         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
98552         REPLACE_STRCASESTR.
98553         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
98554         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98555         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
98556         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
98557         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
98558         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
98559         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
98560         (Depends-on): Remove mbuiter.
98561         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
98563 2007-02-04  Bruno Haible  <bruno@clisp.org>
98565         Simplify handling of strncasecmp.
98566         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
98567         the conditional link warning.
98568         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
98569         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
98570         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
98571         * modules/strcase (configure.ac): Don't invoke
98572         gl_STRING_MODULE_INDICATOR.
98573         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
98575 2007-02-04  Bruno Haible  <bruno@clisp.org>
98577         New module mbscasecmp, reduced goal of strcasecmp.
98578         * modules/mbscasecmp: New file.
98579         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
98580         (mbscasecmp): Renamed from strcasecmp.
98581         * lib/strcasecmp.c: Don't include mbuiter.h.
98582         (strcasecmp): Remove support for multibyte locales.
98583         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
98584         Change the conditional link warning.
98585         (mbscasecmp): New declaration.
98586         * m4/mbscasecmp.m4: New file.
98587         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
98588         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
98589         REPLACE_STRCASECMP.
98590         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
98591         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98592         GNULIB_MBSCASECMP.
98593         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
98594         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
98595         * modules/strcase (Files): Remove m4/mbrtowc.m4.
98596         (Depends-on): Remove mbuiter.
98597         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
98599 2007-02-04  Bruno Haible  <bruno@clisp.org>
98601         New module mbsstr. Remove module strstr.
98602         * modules/mbsstr: New file.
98603         * modules/strstr: Remove file.
98604         * lib/mbsstr.c: Renamed from lib/strstr.c.
98605         (mbsstr): Renamed from strstr.
98606         * lib/string_.h (strstr): Remove declaration. Change the conditional
98607         link warning.
98608         (mbsstr): New declaration.
98609         * m4/mbsstr.m4: New file.
98610         * m4/strstr.m4: Remove file.
98611         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
98612         REPLACE_STRSTR.
98613         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
98614         Don't initialize GNULIB_STRSTR.
98615         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
98616         substitute GNULIB_STRSTR and REPLACE_STRSTR.
98617         * MODULES.html.sh (Internationalization functions): Add mbsstr.
98618         (Support for systems lacking ANSI C 89): Remove strstr.
98620 2007-02-04  Bruno Haible  <bruno@clisp.org>
98622         New module mbsrchr.
98623         * modules/mbsrchr: New file.
98624         * lib/mbsrchr.c: New file.
98625         * lib/string_.h (strrchr): Add a conditional link warning.
98626         (mbsrchr): New declaration.
98627         * m4/mbsrchr.m4: New file.
98628         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98629         GNULIB_MBSRCHR.
98630         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
98631         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
98633 2007-02-04  Bruno Haible  <bruno@clisp.org>
98635         New module mbschr.
98636         * modules/mbschr: New file.
98637         * lib/mbschr.c: New file.
98638         * lib/string_.h (strchr): Add a conditional link warning.
98639         (mbschr): New declaration.
98640         * m4/mbschr.m4: New file.
98641         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
98642         GNULIB_MBSCHR.
98643         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
98644         * MODULES.html.sh (Internationalization functions): Add mbschr.
98646 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
98648         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
98650         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
98652 2007-02-04  Bruno Haible  <bruno@clisp.org>
98654         New module description section 'configure.ac-early'.
98655         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
98656         (func_get_autoconf_early_snippet): New function.
98657         (func_import, func_create_testdir): Use it. Remove special cases for
98658         modules 'extensions' and 'lock'.
98659         * modules/extensions (configure.ac-early): Require
98660         gl_USE_SYSTEM_EXTENSIONS.
98661         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
98663 2007-02-04  Bruno Haible  <bruno@clisp.org>
98665         Make use of gcj-4.3's -fsource and -ftarget option.
98666         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
98667         and if so try the options -fsource and -ftarget.
98668         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
98669         source_version, ftarget_option, target_version arguments.
98670         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
98671         (is_envjavac_oldgcj_14_14_usable): Renamed from
98672         is_envjavac_gcj_14_14_usable.
98673         (is_envjavac_oldgcj_14_13_usable): Renamed from
98674         is_envjavac_gcj_14_13_usable.
98675         (is_gcj_present): Update.
98676         (is_gcj_43, is_gcj43_usable): New functions.
98677         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
98678         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
98679         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
98680         try the options -fsource and -ftarget.
98682 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
98684         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
98685         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
98686         larger value.
98688 2007-02-03  Jim Meyering  <jim@meyering.net>
98690         Give tools a better chance to allocate space for very large buffers.
98691         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
98693         Make pwd and readlink work also when run with an unreadable parent dir
98694         on systems with openat support.
98695         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
98696         provided getcwd function, even when we have openat support.
98697         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
98699 2007-02-02  Bruno Haible  <bruno@clisp.org>
98701         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
98702         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
98703         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
98704         portability problems if one of these functions is only used on specific
98705         platforms.
98706         Reported by Paul Eggert.
98708 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
98710         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
98711         is causing more trouble than it's curing.
98712         * lib/regex_internal.h (__mempcpy): Remove.
98713         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
98714         (and make the code a tad smaller to boot).
98715         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
98717 2007-02-02  Jim Meyering  <jim@meyering.net>
98719         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
98720         section, not in the Makefile.am: one.
98722 2007-02-02  Eric Blake  <ebb9@byu.net>
98724         * lib/strchrnul.c: Always include config.h first.
98726         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
98727         gnulib strstr is not necessary here.
98729 2007-02-02  Simon Josefsson  <simon@josefsson.org>
98731         * m4/socklen.m4: Fix typo.
98733 2007-02-02  Eric Blake  <ebb9@byu.net>
98735         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
98736         * modules/netinet_in (Makefile.am): Likewise.
98738 2007-02-01  Bruno Haible  <bruno@clisp.org>
98740         * lib/string_.h (GL_LINK_WARNING): New macro.
98741         (strcasecmp, strstr, strcasestr): If provided by the system,
98742         conditionally define as a macro that leads to a warning instead of to
98743         an error.
98744         (strncasecmp): Conditionally define as a macro that leads to a warning.
98746 2007-02-01  Karl Berry  <karl@gnu.org>
98748         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
98750 2007-02-01  Bruno Haible  <bruno@clisp.org>
98752         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
98753         renamings.
98755 2007-02-01  Eric Blake  <ebb9@byu.net>
98757         * modules/regex (Depends-on): Revert dependence on mempcpy.
98758         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
98759         module's definition of mempcpy.
98760         Reported by Paul Eggert.
98762 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
98764         * lib/string_.h: If the gnulib module XYZ is not present, undefine
98765         the symbol XYZ before redefining it.  This fixes a problem with
98766         programs that don't use XYZ, when compiled on systems that define
98767         XYZ to something else.
98769 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
98771         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
98772         occurs when "mkdir -m foo" creates a setgid directory that is (1)
98773         writeable to group or other and (2) is intended to have a special
98774         mode bit that is set or cleared.  In such a case, the directory
98775         should be neither group- nor other-writeable until the special
98776         mode bits are right.
98778 2007-01-31  Eric Blake  <ebb9@byu.net>
98780         * modules/mountlist (Depends-on): Add strstr.
98782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
98783         bug.
98784         * modules/string (Makefile.am): Remove redundant replacement.
98785         * modules/regex (Depends-on): Add mempcpy.
98787 2007-01-31  Bruno Haible  <bruno@clisp.org>
98789         New module description field 'Link'.
98790         * gnulib-tool (func_usage): Document --extract-link-directive.
98791         (sed_extract_prog): Recognize 'Link' directive.
98792         (func_get_link_directive): New function.
98793         (func_import): Show summary of link directives.
98794         Handle --extract-link-directive option.
98795         * modules/acl (Link): New section.
98796         * modules/clock-time (Link): New section.
98797         * modules/euidaccess (Link): New section.
98798         * modules/gettext (Link): New section.
98799         * modules/iconv (Link): New section.
98800         * modules/lock (Link): New section.
98801         * modules/nanosleep (Link): New section.
98802         * modules/readline (Link): New section.
98804 2007-01-27  Bruno Haible  <bruno@clisp.org>
98806         Enforce the use of gnulib modules for unportable <string.h> functions.
98807         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
98808         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
98809         (gl_HEADER_STRING_H_BODY): Require it.
98810         * lib/string_.h: If the gnulib module XYZ is not present, redefine
98811         the symbol XYZ to one that gives a link error.
98812         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
98813         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
98814         * modules/mempcpy (configure.ac): Likewise.
98815         * modules/memrchr (configure.ac): Likewise.
98816         * modules/stpcpy (configure.ac): Likewise.
98817         * modules/stpncpy (configure.ac): Likewise.
98818         * modules/strcase (configure.ac): Likewise.
98819         * modules/strcasestr (configure.ac): Likewise.
98820         * modules/strchrnul (configure.ac): Likewise.
98821         * modules/strdup (configure.ac): Likewise.
98822         * modules/strndup (configure.ac): Likewise.
98823         * modules/strnlen (configure.ac): Likewise.
98824         * modules/strpbrk (configure.ac): Likewise.
98825         * modules/strsep (configure.ac): Likewise.
98826         * modules/strstr (configure.ac): Likewise.
98827         * modules/strtok_r (configure.ac): Likewise.
98829 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
98831         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
98833 2007-01-30  Jim Meyering  <jim@meyering.net>
98835         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
98837 2007-01-29  Bruno Haible  <bruno@clisp.org>
98839         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
98840         * lib/execute.c: Likewise.
98841         * lib/pipe.c: Likewise.
98842         * lib/printf-args.h: Likewise.
98843         * lib/printf-args.c: Likewise.
98844         * lib/printf-parse.c: Likewise.
98845         * lib/vasnprintf.c: Likewise.
98847 2007-01-29  Eric Blake  <ebb9@byu.net>
98849         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
98850         declaration.
98852 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
98854         * lib/strptime.h (strptime): Use 'restrict' for args where
98855         POSIX requires this.
98856         * lib/strptime.c (strptime): Likewise.
98857         Change license notice from LGPL to GPL, since gnulib-tool will
98858         change this as needed.
98859         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
98860         defined.
98861         Include "strptime.h" first, to check interface.
98862         Do not #undef _LIBC and _NL_CURRENT.
98863         Do not include <stdlib.h>; no longer needed.
98864         Include "time_r.h" and declare ptime_locale_status
98865         only if _LIBC is not defined.
98866         (__P): Remove unused macro.
98867         (match_string): Bring back glibc version, but use it only if _LIBC
98868         is defined.
98869         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
98870         Remove unnecessary assertion and abort() call.
98871         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
98872         * m4/strptime.m4: Fix serial number comment.
98873         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
98874         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
98875         (Depends-on): Add time_r.
98877 2007-01-29  Bruno Haible  <bruno@clisp.org>
98879         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
98880         strptime.
98881         * modules/strptime (Depends-on): Add stdbool.
98882         * lib/strptime.h: Include <time.h> always. Add comments.
98884 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
98886         * modules/strptime: New file.
98887         * lib/strptime.h: New file.
98888         * lib/strptime.c: New file.
98889         * m4/strptime.m4: New file.
98891 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
98893         * MODULES.html.sh: New module mpsort.
98894         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
98896         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
98897         a circularity problem with HP-UX ia64 reported by Bob Proulx in
98898         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
98899         All uses changed.
98900         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
98901         All uses changed.
98902         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
98903         to _Restrict_.
98904         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
98905         the parameter matches the prototype.
98907 2007-01-28  Jim Meyering  <jim@meyering.net>
98909         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
98910         sys/time.h here, reverting that part of the previous patch:
98911         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
98913 2007-01-28  Bruno Haible  <bruno@clisp.org>
98915         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
98916         value of $(SYS_TIME_H).
98917         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
98918         remove it conditionally, too. [added by Jim Meyering]
98919         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
98920         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
98921         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
98922         GETTIMEOFDAY_REPLACEMENT to 1.
98924 2007-01-28  Bruno Haible  <bruno@clisp.org>
98926         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
98927         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
98928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
98929         Set UNISTD_H instead of UNISTD_H2.
98930         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
98932 2007-01-28  Bruno Haible  <bruno@clisp.org>
98934         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
98935         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
98937 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98939         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
98940         (func_create_testdir): Ensure C locale for `grep' and `tr'
98941         character ranges.
98942         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
98943         ACLOCAL_AMFLAGS parsing state machine.
98945 2007-01-27  Bruno Haible  <bruno@clisp.org>
98947         * modules/unistr/base: Update.
98949 2007-01-27  Bruno Haible  <bruno@clisp.org>
98951         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
98952         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
98953         * modules/unistr/u32-mbtouc-unsafe: Renamed from
98954         modules/unistr/u32-mbtouc.
98955         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
98956         * lib/unistr.h: Update.
98957         * lib/linebreak.c: Update.
98958         * modules/unistr/u32-mbtouc: Renamed from
98959         modules/unistr/u32-mbtouc-safe.
98960         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
98961         * lib/unistr.h: Update.
98962         * lib/unistr/u32-to-u8.c: Update.
98963         * lib/unistr/u32-to-u16.c: Update.
98965 2007-01-27  Bruno Haible  <bruno@clisp.org>
98967         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
98968         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
98969         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
98970         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
98971         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
98972         * modules/unistr/u16-mbtouc-unsafe: Renamed from
98973         modules/unistr/u16-mbtouc.
98974         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
98975         * lib/unistr.h: Update.
98976         * lib/linebreak.c: Update.
98977         * modules/linebreak: Update.
98978         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
98979         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
98980         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
98981         * modules/unistr/u16-mbtouc: Renamed from
98982         modules/unistr/u16-mbtouc-safe.
98983         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
98984         * lib/unistr.h: Update.
98985         * lib/unistr/u16-to-u8.c: Update.
98986         * modules/unistr/u16-to-u8: Update.
98987         * lib/unistr/u16-to-u32.c: Update.
98988         * modules/unistr/u16-to-u32: Update.
98990 2007-01-27  Bruno Haible  <bruno@clisp.org>
98992         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
98993         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
98994         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
98995         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
98996         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
98997         * modules/unistr/u8-mbtouc-unsafe: Renamed from
98998         modules/unistr/u8-mbtouc.
98999         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
99000         * lib/unistr.h: Update.
99001         * lib/striconveh.c: Update.
99002         * modules/striconveh: Update.
99003         * lib/linebreak.c: Update.
99004         * modules/linebreak: Update.
99005         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
99006         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
99007         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
99008         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
99009         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
99010         * lib/unistr.h: Update.
99011         * lib/striconveh.c: Update.
99012         * modules/striconveh: Update.
99013         * lib/unistr/u8-to-u16.c: Update.
99014         * modules/unistr/u8-to-u16: Update.
99015         * lib/unistr/u8-to-u32.c: Update.
99016         * modules/unistr/u8-to-u32: Update.
99018 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99020         Sync from Libtool.
99021         * lib/argz.c: Do not include strings.h nor memory.h, include
99022         string.h unconditionally.  Patch by Simon Josefsson.
99024 2007-01-27  Bruno Haible  <bruno@clisp.org>
99026         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
99027         from gl_HEADER_STRING_H_BODY.
99028         (gl_HEADER_STRING_H_BODY): Require it.
99029         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
99030         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
99031         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
99032         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
99033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
99034         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
99035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
99036         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
99037         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
99038         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
99039         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
99040         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
99041         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
99042         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
99043         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
99045 2007-01-27  Bruno Haible  <bruno@clisp.org>
99047         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
99048         check_PROGRAMS into noinst_PROGRAMS.
99049         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
99050         check_PROGRAMS in this case.
99051         (func_import): Set for_test to false.
99052         (func_create_testdir): Set for_test to true.
99054 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99055             Bruno Haible  <bruno@clisp.org>
99057         * modules/strcasestr (Files): Remove lib/strcasestr.h.
99058         (Depends-on): Add string.
99059         (Includes): Use <string.h> instead of strcasestr.h.
99060         * modules/string (Makefile.am): Also substitute the value of
99061         REPLACE_STRCASESTR.
99062         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
99063         assume strcasestr is declared in <string.h> not <strings.h>. Also
99064         set REPLACE_STRCASESTR.
99065         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
99066         REPLACE_STRCASESTR.
99067         * lib/strcasestr.h: Remove file.
99068         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
99069         * lib/string_.h (strcasestr): New declaration.
99071 2007-01-27  Bruno Haible  <bruno@clisp.org>
99073         * lib/string_.h: Use 'extern'.
99075 2007-01-27  Jim Meyering  <jim@meyering.net>
99077         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
99078         of set-but-not-used local, "q".
99080         * lib/mempcpy.c: Include <config.h> before <string.h>.
99081         This fixes a compilation error on HP-UX, due to the system's
99082         "restrict"-using mempcpy prototype.
99084 2007-01-26  Bruno Haible  <bruno@clisp.org>
99086         Small optimization.
99087         * lib/javacomp.c: Include c-strstr.h.
99088          (is_envjavac_gcj): Use c_strstr instead of strstr.
99089         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
99091 2007-01-26  Bruno Haible  <bruno@clisp.org>
99093         * MODULES.html.sh (Unicode string functions): Add the new modules.
99095         * modules/uniconv/u32-strconv-to-locale: New file.
99096         * lib/uniconv/u32-strconv-to-locale.c: New file.
99098         * modules/uniconv/u16-strconv-to-locale: New file.
99099         * lib/uniconv/u16-strconv-to-locale.c: New file.
99101         * modules/uniconv/u8-strconv-to-locale: New file.
99102         * lib/uniconv/u8-strconv-to-locale.c: New file.
99104         * modules/uniconv/u32-strconv-from-locale: New file.
99105         * lib/uniconv/u32-strconv-from-locale.c: New file.
99107         * modules/uniconv/u16-strconv-from-locale: New file.
99108         * lib/uniconv/u16-strconv-from-locale.c: New file.
99110         * modules/uniconv/u8-strconv-from-locale: New file.
99111         * lib/uniconv/u8-strconv-from-locale.c: New file.
99113         * modules/uniconv/u32-strconv-to-enc: New file.
99114         * lib/uniconv/u32-strconv-to-enc.c: New file.
99115         * modules/uniconv/u32-strconv-to-enc-tests: New file.
99116         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
99118         * modules/uniconv/u16-strconv-to-enc: New file.
99119         * lib/uniconv/u16-strconv-to-enc.c: New file.
99120         * lib/uniconv/u-strconv-to-enc.h: New file.
99121         * modules/uniconv/u16-strconv-to-enc-tests: New file.
99122         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
99124         * modules/uniconv/u8-strconv-to-enc: New file.
99125         * lib/uniconv/u8-strconv-to-enc.c: New file.
99126         * modules/uniconv/u8-strconv-to-enc-tests: New file.
99127         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
99129         * modules/uniconv/u32-strconv-from-enc: New file.
99130         * lib/uniconv/u32-strconv-from-enc.c: New file.
99131         * modules/uniconv/u32-strconv-from-enc-tests: New file.
99132         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
99134         * modules/uniconv/u16-strconv-from-enc: New file.
99135         * lib/uniconv/u16-strconv-from-enc.c: New file.
99136         * modules/uniconv/u16-strconv-from-enc-tests: New file.
99137         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
99139         * modules/uniconv/u8-strconv-from-enc: New file.
99140         * lib/uniconv/u8-strconv-from-enc.c: New file.
99141         * lib/uniconv/u-strconv-from-enc.h: New file.
99142         * modules/uniconv/u8-strconv-from-enc-tests: New file.
99143         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
99145         * modules/uniconv/u32-conv-from-enc: New file.
99146         * lib/uniconv/u32-conv-from-enc.c: New file.
99147         * modules/uniconv/u32-conv-from-enc-tests: New file.
99148         * tests/uniconv/test-u32-conv-from-enc.c: New file.
99150         * modules/uniconv/u16-conv-from-enc: New file.
99151         * lib/uniconv/u16-conv-from-enc.c: New file.
99152         * lib/uniconv/u-conv-from-enc.h: New file.
99153         * modules/uniconv/u16-conv-from-enc-tests: New file.
99154         * tests/uniconv/test-u16-conv-from-enc.c: New file.
99156         * modules/uniconv/u8-conv-from-enc: New file.
99157         * lib/uniconv/u8-conv-from-enc.c: New file.
99158         * modules/uniconv/u8-conv-from-enc-tests: New file.
99159         * tests/uniconv/test-u8-conv-from-enc.c: New file.
99161         * modules/uniconv/base: New file.
99162         * lib/uniconv.h: New file.
99164 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
99166         * doc/gnulib-tool.texi (Initial import): Update to match current
99167         behavior with strdup module.
99168         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
99169         * lib/memmem.h: Remove; all uses removed.  This is now done
99170         by <string.h>.
99171         * lib/mempcpy.h: Likewise.
99172         * lib/memrchr.h: Likewise.
99173         * lib/stpcpy.h: Likewise.
99174         * lib/stpncpy.h: Likewise.
99175         * lib/strcase.h: Likewise.
99176         * lib/strchrnul.h: Likewise.
99177         * lib/strdup.h: Likewise.
99178         * lib/strndup.h: Likewise.
99179         * lib/strnlen.h: Likewise.
99180         * lib/strpbrk.h: Likewise.
99181         * lib/strsep.h: Likewise.
99182         * lib/strstr.h: Likewise.
99183         * lib/strtok_r.h: Likewise.
99184         * lib/string_.h: New file.
99185         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
99186         Rely on <string.h> instead.
99187         * lib/canon-host.c: Likewise.
99188         * lib/chdir-long.c: Likewise.
99189         * lib/concatpath.c: Likewise.
99190         * lib/exclude.c: Likewise.
99191         * lib/fchdir.c: Likewise.
99192         * lib/getaddrinfo.c: Likewise.
99193         * lib/getcwd.c: Likewise.
99194         * lib/getsubopt.c: Likewise.
99195         * lib/glob.c: Likewise.
99196         * lib/hard-locale.c: Likewise.
99197         * lib/iconvme.c: Likewise.
99198         * lib/javacomp.c: Likewise.
99199         * lib/mempcpy.c: Likewise.
99200         * lib/memrchr.c: Likewise.
99201         * lib/regex_internal.h: Likewise.
99202         * lib/stpncpy.c: Likewise.
99203         * lib/strcasecmp.c: Likewise.
99204         * lib/strchrnul.c: Likewise.
99205         * lib/strdup.c: Likewise.
99206         * lib/striconv.c: Likewise.
99207         * lib/striconveh.c: Likewise.
99208         * lib/striconveha.c: Likewise.
99209         * lib/strncasecmp.c: Likewise.
99210         * lib/strndup.c: Likewise.
99211         * lib/strnlen.c: Likewise.
99212         * lib/strsep.c: Likewise.
99213         * lib/strstr.c: Likewise.
99214         * lib/strtok_r.c: Likewise.
99215         * lib/userspec.c: Likewise.
99216         * lib/w32spawn.h: Likewise.
99217         * lib/xstrndup.c: Likewise.
99218         * lib/mountlist.c (strstr): Remove decl.
99219         * m4/string_h.m4: New file.
99220         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
99221         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
99222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
99223         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
99224         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
99225         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
99226         Set REPLACE_STRCASECMP if necessary.
99227         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
99228         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
99229         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
99230         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
99231         HAVE_DECL_STRDUP if necessary.
99232         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
99233         since gl_FUNC_STRNDUP does that now.
99234         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
99235         Check for decl here...
99236         (gl_PREREQ_STRNLEN): ... not here.
99237         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
99238         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
99239         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
99240         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
99241         necessary.
99242         * modules/string: New file.
99243         * modules/memmem (Files): Remove special-purpose include file.
99244         (Depends-on): Add string.
99245         (Include): Include <string.h>, not the removed file.
99246         * modules/mempcpy: Likewise.
99247         * modules/memrchr: Likewise.
99248         * modules/stpcpy: Likewise.
99249         * modules/stpncpy: Likewise.
99250         * modules/strcase: Likewise.
99251         * modules/strchrnul: Likewise.
99252         * modules/strdup: Likewise.
99253         * modules/strndup: Likewise.
99254         * modules/strnlen: Likewise.
99255         * modules/strpbrk: Likewise.
99256         * modules/strsep: Likewise.
99257         * modules/strstr: Likewise.
99258         * modules/strtok_r: Likewise.
99259         * tests/test-dirname.c: Don't include "strdup.h", since
99260         <string.h> now suffices.
99261         * tests/test-memmem.c: Don't include "memmem.h", since
99262         <string.h> now suffices.
99264 2007-01-25  Bruno Haible  <bruno@clisp.org>
99266         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
99267         *resultp is 0.
99269         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
99270         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
99271         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
99272         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
99274         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
99275         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
99276         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
99277         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
99278         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
99279         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
99281 2007-01-24  Bruno Haible  <bruno@clisp.org>
99283         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
99284         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
99285         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
99286         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
99287         gl_FUNC_FTS_CORE.
99288         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
99289         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
99290         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
99291         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
99292         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
99293         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
99294         gl_FUNC_FCHOWNAT.
99295         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
99296         gl_FUNC_STRFTIME.
99297         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
99298         Reported by Ralf Wildenhues.
99300 2007-01-24  Bruno Haible  <bruno@clisp.org>
99302         Drop AC_REQUIRE calls that are redundant with the module dependencies.
99303         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
99304         gl_GETADDRINFO.
99305         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
99306         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
99307         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
99309 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
99311         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
99312         Don't use 'exit'; just return from 'main'.
99313         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
99315         * lib/fnmatch_.h: Readjust white space and comments to match
99316         glibc, to avoid spurious diffs.
99318 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99320         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
99321         2004-12-01 change by Jakub Jelinek, since this code won't compile
99322         if !LIBC.  Problem reported by Bob Proulx.
99324 2007-01-23  Bruno Haible  <bruno@clisp.org>
99326         * lib/striconveh.c: Include c-strcaseeq.h.
99327         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
99328         * modules/striconveh (Depends-on): Add c-strcaseeq.
99330 2007-01-23  Bruno Haible  <bruno@clisp.org>
99332         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
99334         * modules/c-strcaseeq: New file.
99335         * lib/c-strcaseeq.h: New file.
99337         * modules/streq: New file.
99338         * lib/streq.h: New file.
99340 2007-01-23  Bruno Haible  <bruno@clisp.org>
99342         * modules/striconveha-tests: New file.
99343         * tests/test-striconveha.c: New file.
99345         * lib/striconveha.h: Include <stdbool.h>.
99346         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
99347         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
99348         (mem_iconveha_notranslit): Renamed from mem_iconveha.
99349         (mem_iconveha): New function.
99350         (str_iconveha_notranslit): Renamed from str_iconveha.
99351         (str_iconveha): New function.
99352         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
99353         c-strcase.
99355 2007-01-23  Bruno Haible  <bruno@clisp.org>
99357         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
99358         encodings without forgiving before trying any encoding with handler.
99359         (str_iconveha): Try all encodings without forgiving before trying any
99360         encoding with handler.
99362 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
99364         Import the following changes from libc.
99366         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
99368         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
99370         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
99372         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
99373         normal_bracket label.
99375         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
99377         [BZ #361]
99378         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
99379         to normal_bracket after fetching the next character.
99381 2007-01-22  Bruno Haible  <bruno@clisp.org>
99383         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
99384         argument.
99385         * lib/striconveh.c (iconv_carefully_1): New function.
99386         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
99387         argument.
99388         (str_cd_iconveh): Update.
99389         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
99390         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
99391         * tests/test-striconveh.c (MAGIC): New macro.
99392         (new_offsets): New function.
99393         (main): Test call with and without offsets.
99395 2007-01-22  Bruno Haible  <bruno@clisp.org>
99397         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
99398         * modules/sys_select (Makefile.am): Likewise.
99399         * modules/sys_socket (Makefile.am): Likewise.
99400         * modules/sys_time (Makefile.am): Likewise.
99402 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
99404         * modules/gettimeofday (License): Change from GPL to LGPL, since
99405         gettimeofday is a library function.
99407 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99409         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
99411 2007-01-21  Bruno Haible  <bruno@clisp.org>
99413         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
99415 2007-01-21  Bruno Haible  <bruno@clisp.org>
99417         * modules/striconveha: New file.
99418         * lib/striconveha.h: New file.
99419         * lib/striconveha.c: New file.
99420         * MODULES.html.sh (Internationalization functions): Add striconveha.
99421         * lib/striconv.c (str_iconv): Optimize the case of an empty input
99422         string.
99423         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
99425 2007-01-21  Bruno Haible  <bruno@clisp.org>
99427         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
99428         * lib/striconveh.c (str_iconveh): Likewise.
99430 2007-01-21  Bruno Haible  <bruno@clisp.org>
99432         * lib/striconveh.h (mem_iconveh): New declaration.
99433         * lib/striconveh.c (mem_iconveh): New function.
99434         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
99436 2007-01-21  Bruno Haible  <bruno@clisp.org>
99438         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
99440         * lib/striconveh.h (mem_cd_iconveh): Change specification.
99441         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
99442         original result buffer.
99443         (str_cd_iconveh): Update.
99444         * tests/test-striconveh.c (main): Update.
99446         * lib/striconv.h (mem_cd_iconv): Change specification.
99447         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
99448         result buffer.
99449         (str_cd_iconv): Update.
99450         * tests/test-striconv.c (main): Update.
99452 2007-01-21  Bruno Haible  <bruno@clisp.org>
99454         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
99456 2007-01-20  Jim Meyering  <jim@meyering.net>
99458         * lib/userspec.c (parse_with_separator): If a user or group string
99459         starts with "+", skip the corresponding name-to-ID look-up, since
99460         such a look-up must fail: user and group names may not include "+".
99462 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
99464         * lib/poll.c: Include sys/time.h and time.h unconditionally,
99465         since we now assume the sys_time module.
99466         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
99467         check for sys/time.h; no longer needed.
99468         * modules/poll (Depends-on): Depend on sys_time.
99470 2007-01-18  Bruno Haible  <bruno@clisp.org>
99472         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
99473         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
99475         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
99476         gettimeofday.
99478         * tests/test-gettimeofday.c: Include <time.h>.
99479         (dummy): Remove variable.
99481         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
99482         gl_HEADER_SYS_TIME_H.
99483         (gl_HEADER_SYS_TIME_H): New macro.
99485         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
99486         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99487         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
99488         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
99489         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99490         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
99491         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
99492         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99493         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
99494         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
99495         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99497         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
99498         last change; it caused a compilation error when cross-compiling to
99499         Cygwin.
99501 2007-01-18  Jim Meyering  <jim@meyering.net>
99503         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
99504         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
99505         than the race-prone "test -d sys || mkdir sys".
99506         (configure.ac): Use AC_PROG_MKDIR_P.
99507         * modules/sys_select: Likewise.
99508         * modules/sys_socket: Likewise.
99509         * modules/sys_time: Likewise.
99511 2007-01-18  Eric Blake  <ebb9@byu.net>
99513         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
99514         replace gettimeofday.
99515         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
99516         name, to avoid infinite recursion.
99518 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
99520         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
99521         module sys_time.
99522         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
99523         assume timespec.h defines struct timeval.
99524         * lib/settime.c: Likewise.
99525         * lib/utimens.c: Likewise.
99526         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
99527         since we now assume the gettimeofday module.
99528         * lib/tempname.c (__gen_tempname): Likewise.
99529         * lib/gettimeofday.h: Remove.
99530         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
99531         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
99532         Include <time.h>, for 'time()'.
99533         (localtime_buffer_addr): Also use this workaround if
99534         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
99535         to simplify the uses.  All uses changed.
99536         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
99537         that #undef is inside {}, and 'const' follows type name consistently.
99538         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
99539         (gettimeofday): Do not use the maximum possible value for
99540         tv->tv_usec, since that might break usages other than ls.c.
99541         Instead, we'll leave ls.c alone.  This undoes today's patch
99542         by Bruno.  Add a compile-time warning for 1s-clock resolution;
99543         we've never observed the problem but might as well keep the
99544         canary.
99545         * lib/nanosleep.c: Include timespec.h first, for interface check.
99546         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
99547         now assume the sys_time module.
99548         * lib/tempname.c: Likewise.
99549         * lib/timespec.h: Likewise.
99550         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
99551         needed.
99552         * lib/strftime.c: Likewise.
99553         * lib/timespec.h: Likewise.
99554         * lib/posixtm.c: Include posixtm.h first, for interface check.
99555         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
99556         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
99557         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
99558         * lib/sys_time_.h: New file.
99559         * lib/timespec.h (struct timespec): Use long int, not long.
99560         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
99561         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
99562         Remove obsolescent call to AC_HEADER_TIME.
99563         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
99564         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
99565         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
99566         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
99567         Likewise.
99568         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
99569         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
99570         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
99571         into the sys_time module.  Check for gettimeofday just once.
99572         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
99573         for gettimeofday signature to just check the signature.  Merely
99574         compile it, since linking doesn't test signature.  Improve test for
99575         whether gettimeofday.o is actually needed.
99576         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
99577         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
99578         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
99579         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99580         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
99581         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
99582         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
99583         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
99584         than worrying about sys/time.h.
99585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
99586         Don't bother worrying about TIME_WITH_SYS_TIME.
99587         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
99588         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
99589         * m4/sys_time_h.m4: New file.
99590         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
99591         Don't include sys/time.h.  Return from main rather than exiting.
99592         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
99593         all uses changed.
99594         * modules/gethrxtime (Depends-on): Add sys_time.
99595         * modules/gettime (Depends-on): Likewise.
99596         * modules/gettimeofday (Depends-on): Likewise.
99597         * modules/nanosleep (Depends-on): Likewise.
99598         * modules/settime (Depends-on): Likewise.
99599         * modules/tempname (Depends-on): Likewise.
99600         * modules/utimens (Depends-on): Likewise.
99601         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
99602         (Include): Change back to <sys/time.h>.
99603         (Maintainer): Add self.
99604         * modules/sys_time: New file.
99605         * modules/tempname (Depends-on): Add gettimeofday.
99606         * tests/test-gettimeofday.c: Include <sys/time.h>
99607         rather than gettimeofday.h.
99609 2007-01-17  Bruno Haible  <bruno@clisp.org>
99611         * gnulib-tool (func_get_license): Revert last patch. Instead, let
99612         the license default to GPL.
99613         (func_create_testdir): Don't complain if a module is LGPL and its
99614         tests module depends on GPLed modules.
99616 2007-01-17  Bruno Haible  <bruno@clisp.org>
99618         * lib/gettimeofday.c (gettimeofday): Add code for the case
99619         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
99620         maximum possible value for tv->tv_usec, rather than the minimum one.
99622 2005-10-08  Martin Lambers  <marlam@marlam.de>
99623 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
99624 2007-01-16  Bruno Haible  <bruno@clisp.org>
99626         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
99627         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
99628         gl_FUNC_GETTIMEOFDAY.
99629         (Include): Add gettimeofday.h.
99630         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
99631         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
99632         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
99633         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
99634         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
99635         * lib/gettimeofday.h: New file.
99636         * lib/gettimeofday.c: Include <sys/timeb.h>.
99637         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
99638         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
99639         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
99640         fall back on time().
99642         * tests/test-gettimeofday.c: New file.
99643         * modules/gettimeofday-tests: New file.
99645 2007-01-16  Eric Blake  <ebb9@byu.net>
99647         * modules/fnmatch (Depends-on): Depend on wchar.
99648         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
99649         * m4/fnmatch.m4: Likewise.
99650         * modules/mbchar (Makefile.am): Assume <wchar.h>.
99651         * m4/mbchar.m4: Likewise.
99652         * modules/mbswidth (Depends-on): Depend on wchar.
99653         * lib/mbswidth.c: Assume <wchar.h>.
99654         * m4/mbswidth.m4: Likewise.
99655         * modules/quotearg (Depends-on): Depend on wchar.
99656         * lib/quotearg.c: Assume <wchar.h>.
99657         * m4/quotearg.m4: Likewise.
99658         * modules/regex (Depends-on): Depend on wchar.
99659         * lib/regex_internal.h: Assume <wchar.h>.
99660         * m4/regex.m4: Likewise.
99661         * modules/stdint (Depends-on): Depend on wchar.
99662         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
99663         * m4/stdint.m4: Likewise.
99664         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
99665         * modules/strftime (Depends-on): Depend on wchar.
99666         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
99667         * modules/strtol (Depends-on): Depend on wchar.
99668         * lib/strtol.c: Assume <wchar.h>.
99669         * modules/wcwidth (Depends-on): Depend on wchar.
99670         * lib/wcwidth.h: Assume <wchar.h>.
99671         * m4/wcwidth.m4: Likewise.
99673 2007-01-16  Bruno Haible  <bruno@clisp.org>
99675         * modules/csharpexec-script: New, created from...
99676         * modules/csharpexec: ... this.
99678 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
99680         * modules/javaexec-script: New, created from...
99681         * modules/javaexec: ... this.
99683 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99685         * modules/poll (Dependencies): Add sys_select.
99687 2007-01-15  Jim Meyering  <jim@meyering.net>
99689         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
99690         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
99691         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
99692         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
99694 2007-01-15  Bruno Haible  <bruno@clisp.org>
99696         * modules/striconveh: New file.
99697         * lib/striconveh.h: New file.
99698         * lib/striconveh.c: New file.
99699         * MODULES.html.sh (Internationalization functions): Add striconveh.
99701         * modules/striconveh-tests: New file.
99702         * tests/test-striconveh.c: New file.
99704 2007-01-15  Bruno Haible  <bruno@clisp.org>
99706         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
99707         not from GNU libiconv or GNU libc.
99709 2007-01-15  Bruno Haible  <bruno@clisp.org>
99711         * doc/gnulib-intro.texi (Copyright): Explain the different license
99712         terms for module descriptions, autoconf macros, tests, documentation.
99714 2007-01-14  Bruno Haible  <bruno@clisp.org>
99716         * modules/striconv-tests: New file.
99717         * tests/test-striconv.c: New file.
99719 2007-01-14  Bruno Haible  <bruno@clisp.org>
99721         * modules/iconv-tests: New file.
99722         * tests/test-iconv.c: New file.
99724 2007-01-14  Bruno Haible  <bruno@clisp.org>
99726         * gnulib-tool (func_get_license): For test modules, use the license of
99727         the main module.
99729 2007-01-14  Bruno Haible  <bruno@clisp.org>
99731         * modules/iconv (Include): Clarify that <iconv.h> can only be included
99732         if iconv is found to exist.
99734 2007-01-14  Bruno Haible  <bruno@clisp.org>
99736         * modules/c-ctype-tests: New file.
99737         * tests/test-c-ctype.c: New file.
99739 2007-01-14  Bruno Haible  <bruno@clisp.org>
99741         * modules/binary-io-tests: New file.
99742         * tests/test-binary-io.sh: New file.
99743         * tests/test-binary-io.c: New file.
99745 2007-01-14  Bruno Haible  <bruno@clisp.org>
99747         * modules/array-oset-tests: New file.
99748         * tests/test-array_oset.c: New file.
99750 2007-01-14  Bruno Haible  <bruno@clisp.org>
99752         * modules/array-list-tests: New file.
99753         * tests/test-array_list.c: New file.
99755 2007-01-14  Bruno Haible  <bruno@clisp.org>
99757         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
99758         and make.
99759         Reported by Simon Josefsson in
99760         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
99762 2007-01-14  Bruno Haible  <bruno@clisp.org>
99764         * modules/allocsa-tests: New file.
99765         * tests/test-allocsa.c: New file.
99767 2007-01-14  Bruno Haible  <bruno@clisp.org>
99769         * modules/fchdir (Depends-on): Add absolute-header.
99770         * modules/unistd (Depends-on): Likewise.
99772 2006-12-30  Bruno Haible  <bruno@clisp.org>
99774         * modules/fchdir: New file.
99775         * modules/unistd (Files): Add lib/unistd_.h.
99776         (Makefile.am): Generate unistd.h from unistd_.h.
99777         * lib/fchdir.c: New file.
99778         * lib/dirent_.h: New file.
99779         * lib/unistd_.h: New file.
99780         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
99781         * m4/fchdir.m4: New file.
99782         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
99783         (gl_HEADER_UNISTD): Invoke it.
99784         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
99785         function.
99786         * lib/backupfile.c (opendir, closedir): Undefine.
99787         * lib/chown.c (open, close): Undefine.
99788         * lib/clean-temp.c (open, close): Undefine.
99789         * lib/copy-file.c (open, close): Undefine.
99790         * lib/execute.c (open, close): Undefine.
99791         * lib/fsusage.c (open, close): Undefine.
99792         * lib/gc-gnulib.c (open, close): Undefine.
99793         * lib/getcwd.c (opendir, closedir): Undefine.
99794         * lib/glob.c (opendir, closedir): Undefine.
99795         * lib/javacomp.c (open, close): Undefine.
99796         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
99797         * lib/openat-proc.c (open, close): Undefine.
99798         * lib/pagealign_alloc.c (open, close): Undefine.
99799         * lib/pipe.c (open, close): Undefine.
99800         * lib/progreloc.c (open, close): Undefine.
99801         * lib/savedir.c (opendir, closedir): Undefine.
99802         * lib/utime.c (open, close): Undefine.
99803         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
99805 2007-01-10  Bruno Haible  <bruno@clisp.org>
99807         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
99809 2007-01-12  Eric Blake  <ebb9@byu.net>
99811         Provide a robust <wchar.h>.  Further simplifications are now
99812         possible in other modules, but not included here.
99813         * modules/wchar: New module.
99814         * m4/wchar.m4: New file.
99815         * lib/wchar_.h: Likewise.
99816         * modules/mbchar (Depends-on): Depend on wchar, as the first use
99817         of the new module.
99818         * MODULES.html.sh (Extended multibyte and wide character utilities):
99819         New section.
99821 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
99823         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
99824         to a reasonable default for memory allocation.
99825         (xreadlink): Don't allocate a huge buffer, to work around a buggy
99826         file system that reports garbage st_size values for symlinks.
99827         Problem reported by Liyang Hu.
99829 2007-01-11  Simon Josefsson  <simon@josefsson.org>
99831         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
99832         Emacs .#* auto-save files).
99834 2007-01-11  Bruno Haible  <bruno@clisp.org>
99836         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
99837         directory.
99839 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
99841         Use @...@ consistently in lib/wctype_.h.
99842         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
99843         on it being set to 1 or 0.
99844         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
99845         go back to AC_SUBSTing it.
99846         * modules/wctype (Makefile.am): Undo previous change.
99848 2007-01-10  Eric Blake  <ebb9@byu.net>
99850         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
99851         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
99852         * modules/wctype (Makefile.am): Likewise.
99853         Reported by Chris McGuire.
99855 2007-01-10  Jim Meyering  <jim@meyering.net>
99857         fts.c: a small readability/maintainability improvement
99858         * lib/fts.c (fts_read): Make this code slightly more readable and
99859         maintainable by hoisting the "sp->fts_cur = p" assignments to
99860         immediately follow the statements that set P.  Derived from
99861         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
99863 2007-01-10  Eric Blake  <ebb9@byu.net>
99865         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
99866         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
99867         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
99868         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
99869         Reported by Chris McGuire.
99871 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99873         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
99874         in sed script.
99876 2007-01-09  Bruno Haible  <bruno@clisp.org>
99878         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
99879         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
99880         variables.
99881         (func_module): Use them.
99883 2007-01-09  Bruno Haible  <bruno@clisp.org>
99885         * modules/unistr/base: New file.
99886         * lib/unistr.h: New file.
99888         * modules/unistr/u8-to-u16: New file.
99889         * lib/unistr/u8-to-u16.c: New file.
99891         * modules/unistr/u8-to-u32: New file.
99892         * lib/unistr/u8-to-u32.c: New file.
99894         * modules/unistr/u16-to-u8: New file.
99895         * lib/unistr/u16-to-u8.c: New file.
99897         * modules/unistr/u16-to-u32: New file.
99898         * lib/unistr/u16-to-u32.c: New file.
99900         * modules/unistr/u32-to-u8: New file.
99901         * lib/unistr/u32-to-u8.c: New file.
99903         * modules/unistr/u32-to-u16: New file.
99904         * lib/unistr/u32-to-u16.c: New file.
99906         * modules/unistr/u8-check: New file.
99907         * modules/unistr/u16-check: New file.
99908         * modules/unistr/u32-check: New file.
99909         * lib/unistr/u8-check.c: New file.
99910         * lib/unistr/u16-check.c: New file.
99911         * lib/unistr/u32-check.c: New file.
99913         * modules/unistr/u8-chr: New file.
99914         * modules/unistr/u16-chr: New file.
99915         * modules/unistr/u32-chr: New file.
99916         * lib/unistr/u8-chr.c: New file.
99917         * lib/unistr/u16-chr.c: New file.
99918         * lib/unistr/u32-chr.c: New file.
99920         * modules/unistr/u8-cmp: New file.
99921         * modules/unistr/u16-cmp: New file.
99922         * modules/unistr/u32-cmp: New file.
99923         * lib/unistr/u8-cmp.c: New file.
99924         * lib/unistr/u16-cmp.c: New file.
99925         * lib/unistr/u32-cmp.c: New file.
99927         * modules/unistr/u8-cpy: New file.
99928         * modules/unistr/u16-cpy: New file.
99929         * modules/unistr/u32-cpy: New file.
99930         * lib/unistr/u8-cpy.c: New file.
99931         * lib/unistr/u16-cpy.c: New file.
99932         * lib/unistr/u32-cpy.c: New file.
99933         * lib/unistr/u-cpy.h: New file.
99935         * modules/unistr/u8-cpy-alloc: New file.
99936         * modules/unistr/u16-cpy-alloc: New file.
99937         * modules/unistr/u32-cpy-alloc: New file.
99938         * lib/unistr/u8-cpy-alloc.c: New file.
99939         * lib/unistr/u16-cpy-alloc.c: New file.
99940         * lib/unistr/u32-cpy-alloc.c: New file.
99941         * lib/unistr/u-cpy-alloc.h: New file.
99943         * modules/unistr/u8-endswith: New file.
99944         * modules/unistr/u16-endswith: New file.
99945         * modules/unistr/u32-endswith: New file.
99946         * lib/unistr/u8-endswith.c: New file.
99947         * lib/unistr/u16-endswith.c: New file.
99948         * lib/unistr/u32-endswith.c: New file.
99949         * lib/unistr/u-endswith.h: New file.
99951         * modules/unistr/u8-mblen: New file.
99952         * modules/unistr/u16-mblen: New file.
99953         * modules/unistr/u32-mblen: New file.
99954         * lib/unistr/u8-mblen.c: New file.
99955         * lib/unistr/u16-mblen.c: New file.
99956         * lib/unistr/u32-mblen.c: New file.
99958         * modules/unistr/u8-mbtouc: New file.
99959         * modules/unistr/u16-mbtouc: New file.
99960         * modules/unistr/u32-mbtouc: New file.
99961         * lib/unistr/u8-mbtouc.c: New file.
99962         * lib/unistr/u16-mbtouc.c: New file.
99963         * lib/unistr/u32-mbtouc.c: New file.
99965         * modules/unistr/u8-mbtouc-safe: New file.
99966         * modules/unistr/u16-mbtouc-safe: New file.
99967         * modules/unistr/u32-mbtouc-safe: New file.
99968         * lib/unistr/u8-mbtouc-safe.c: New file.
99969         * lib/unistr/u16-mbtouc-safe.c: New file.
99970         * lib/unistr/u32-mbtouc-safe.c: New file.
99972         * modules/unistr/u8-move: New file.
99973         * modules/unistr/u16-move: New file.
99974         * modules/unistr/u32-move: New file.
99975         * lib/unistr/u8-move.c: New file.
99976         * lib/unistr/u16-move.c: New file.
99977         * lib/unistr/u32-move.c: New file.
99978         * lib/unistr/u-move.h: New file.
99980         * modules/unistr/u8-next: New file.
99981         * modules/unistr/u16-next: New file.
99982         * modules/unistr/u32-next: New file.
99983         * lib/unistr/u8-next.c: New file.
99984         * lib/unistr/u16-next.c: New file.
99985         * lib/unistr/u32-next.c: New file.
99987         * modules/unistr/u8-prev: New file.
99988         * modules/unistr/u16-prev: New file.
99989         * modules/unistr/u32-prev: New file.
99990         * lib/unistr/u8-prev.c: New file.
99991         * lib/unistr/u16-prev.c: New file.
99992         * lib/unistr/u32-prev.c: New file.
99994         * modules/unistr/u8-set: New file.
99995         * modules/unistr/u16-set: New file.
99996         * modules/unistr/u32-set: New file.
99997         * lib/unistr/u8-set.c: New file.
99998         * lib/unistr/u16-set.c: New file.
99999         * lib/unistr/u32-set.c: New file.
100000         * lib/unistr/u-set.h: New file.
100002         * modules/unistr/u8-startswith: New file.
100003         * modules/unistr/u16-startswith: New file.
100004         * modules/unistr/u32-startswith: New file.
100005         * lib/unistr/u8-startswith.c: New file.
100006         * lib/unistr/u16-startswith.c: New file.
100007         * lib/unistr/u32-startswith.c: New file.
100008         * lib/unistr/u-startswith.h: New file.
100010         * modules/unistr/u8-stpcpy: New file.
100011         * modules/unistr/u16-stpcpy: New file.
100012         * modules/unistr/u32-stpcpy: New file.
100013         * lib/unistr/u8-stpcpy.c: New file.
100014         * lib/unistr/u16-stpcpy.c: New file.
100015         * lib/unistr/u32-stpcpy.c: New file.
100016         * lib/unistr/u-stpcpy.h: New file.
100018         * modules/unistr/u8-stpncpy: New file.
100019         * modules/unistr/u16-stpncpy: New file.
100020         * modules/unistr/u32-stpncpy: New file.
100021         * lib/unistr/u8-stpncpy.c: New file.
100022         * lib/unistr/u16-stpncpy.c: New file.
100023         * lib/unistr/u32-stpncpy.c: New file.
100024         * lib/unistr/u-stpncpy.h: New file.
100026         * modules/unistr/u8-strcat: New file.
100027         * modules/unistr/u16-strcat: New file.
100028         * modules/unistr/u32-strcat: New file.
100029         * lib/unistr/u8-strcat.c: New file.
100030         * lib/unistr/u16-strcat.c: New file.
100031         * lib/unistr/u32-strcat.c: New file.
100032         * lib/unistr/u-strcat.h: New file.
100034         * modules/unistr/u8-strchr: New file.
100035         * modules/unistr/u16-strchr: New file.
100036         * modules/unistr/u32-strchr: New file.
100037         * lib/unistr/u8-strchr.c: New file.
100038         * lib/unistr/u16-strchr.c: New file.
100039         * lib/unistr/u32-strchr.c: New file.
100041         * modules/unistr/u8-strcmp: New file.
100042         * modules/unistr/u16-strcmp: New file.
100043         * modules/unistr/u32-strcmp: New file.
100044         * lib/unistr/u8-strcmp.c: New file.
100045         * lib/unistr/u16-strcmp.c: New file.
100046         * lib/unistr/u32-strcmp.c: New file.
100048         * modules/unistr/u8-strcpy: New file.
100049         * modules/unistr/u16-strcpy: New file.
100050         * modules/unistr/u32-strcpy: New file.
100051         * lib/unistr/u8-strcpy.c: New file.
100052         * lib/unistr/u16-strcpy.c: New file.
100053         * lib/unistr/u32-strcpy.c: New file.
100054         * lib/unistr/u-strcpy.h: New file.
100056         * modules/unistr/u8-strcspn: New file.
100057         * modules/unistr/u16-strcspn: New file.
100058         * modules/unistr/u32-strcspn: New file.
100059         * lib/unistr/u8-strcspn.c: New file.
100060         * lib/unistr/u16-strcspn.c: New file.
100061         * lib/unistr/u32-strcspn.c: New file.
100062         * lib/unistr/u-strcspn.h: New file.
100064         * modules/unistr/u8-strdup: New file.
100065         * modules/unistr/u16-strdup: New file.
100066         * modules/unistr/u32-strdup: New file.
100067         * lib/unistr/u8-strdup.c: New file.
100068         * lib/unistr/u16-strdup.c: New file.
100069         * lib/unistr/u32-strdup.c: New file.
100070         * lib/unistr/u-strdup.h: New file.
100072         * modules/unistr/u8-strlen: New file.
100073         * modules/unistr/u16-strlen: New file.
100074         * modules/unistr/u32-strlen: New file.
100075         * lib/unistr/u8-strlen.c: New file.
100076         * lib/unistr/u16-strlen.c: New file.
100077         * lib/unistr/u32-strlen.c: New file.
100078         * lib/unistr/u-strlen.h: New file.
100080         * modules/unistr/u8-strmblen: New file.
100081         * modules/unistr/u16-strmblen: New file.
100082         * modules/unistr/u32-strmblen: New file.
100083         * lib/unistr/u8-strmblen.c: New file.
100084         * lib/unistr/u16-strmblen.c: New file.
100085         * lib/unistr/u32-strmblen.c: New file.
100087         * modules/unistr/u8-strmbtouc: New file.
100088         * modules/unistr/u16-strmbtouc: New file.
100089         * modules/unistr/u32-strmbtouc: New file.
100090         * lib/unistr/u8-strmbtouc.c: New file.
100091         * lib/unistr/u16-strmbtouc.c: New file.
100092         * lib/unistr/u32-strmbtouc.c: New file.
100094         * modules/unistr/u8-strncat: New file.
100095         * modules/unistr/u16-strncat: New file.
100096         * modules/unistr/u32-strncat: New file.
100097         * lib/unistr/u8-strncat.c: New file.
100098         * lib/unistr/u16-strncat.c: New file.
100099         * lib/unistr/u32-strncat.c: New file.
100100         * lib/unistr/u-strncat.h: New file.
100102         * modules/unistr/u8-strncmp: New file.
100103         * modules/unistr/u16-strncmp: New file.
100104         * modules/unistr/u32-strncmp: New file.
100105         * lib/unistr/u8-strncmp.c: New file.
100106         * lib/unistr/u16-strncmp.c: New file.
100107         * lib/unistr/u32-strncmp.c: New file.
100109         * modules/unistr/u8-strncpy: New file.
100110         * modules/unistr/u16-strncpy: New file.
100111         * modules/unistr/u32-strncpy: New file.
100112         * lib/unistr/u8-strncpy.c: New file.
100113         * lib/unistr/u16-strncpy.c: New file.
100114         * lib/unistr/u32-strncpy.c: New file.
100115         * lib/unistr/u-strncpy.h: New file.
100117         * modules/unistr/u8-strnlen: New file.
100118         * modules/unistr/u16-strnlen: New file.
100119         * modules/unistr/u32-strnlen: New file.
100120         * lib/unistr/u8-strnlen.c: New file.
100121         * lib/unistr/u16-strnlen.c: New file.
100122         * lib/unistr/u32-strnlen.c: New file.
100123         * lib/unistr/u-strnlen.h: New file.
100125         * modules/unistr/u8-strpbrk: New file.
100126         * modules/unistr/u16-strpbrk: New file.
100127         * modules/unistr/u32-strpbrk: New file.
100128         * lib/unistr/u8-strpbrk.c: New file.
100129         * lib/unistr/u16-strpbrk.c: New file.
100130         * lib/unistr/u32-strpbrk.c: New file.
100131         * lib/unistr/u-strpbrk.h: New file.
100133         * modules/unistr/u8-strrchr: New file.
100134         * modules/unistr/u16-strrchr: New file.
100135         * modules/unistr/u32-strrchr: New file.
100136         * lib/unistr/u8-strrchr.c: New file.
100137         * lib/unistr/u16-strrchr.c: New file.
100138         * lib/unistr/u32-strrchr.c: New file.
100140         * modules/unistr/u8-strspn: New file.
100141         * modules/unistr/u16-strspn: New file.
100142         * modules/unistr/u32-strspn: New file.
100143         * lib/unistr/u8-strspn.c: New file.
100144         * lib/unistr/u16-strspn.c: New file.
100145         * lib/unistr/u32-strspn.c: New file.
100146         * lib/unistr/u-strspn.h: New file.
100148         * modules/unistr/u8-strstr: New file.
100149         * modules/unistr/u16-strstr: New file.
100150         * modules/unistr/u32-strstr: New file.
100151         * lib/unistr/u8-strstr.c: New file.
100152         * lib/unistr/u16-strstr.c: New file.
100153         * lib/unistr/u32-strstr.c: New file.
100154         * lib/unistr/u-strstr.h: New file.
100156         * modules/unistr/u8-strtok: New file.
100157         * modules/unistr/u16-strtok: New file.
100158         * modules/unistr/u32-strtok: New file.
100159         * lib/unistr/u8-strtok.c: New file.
100160         * lib/unistr/u16-strtok.c: New file.
100161         * lib/unistr/u32-strtok.c: New file.
100162         * lib/unistr/u-strtok.h: New file.
100164         * modules/unistr/u8-uctomb: New file.
100165         * modules/unistr/u16-uctomb: New file.
100166         * modules/unistr/u32-uctomb: New file.
100167         * lib/unistr/u8-uctomb.c: New file.
100168         * lib/unistr/u16-uctomb.c: New file.
100169         * lib/unistr/u32-uctomb.c: New file.
100171         * MODULES.html.sh (Unicode string functions): Add the new modules.
100173 2007-01-08  Bruno Haible  <bruno@clisp.org>
100175         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
100176         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
100177         subdirectories.
100179 2007-01-08  Karl Berry  <karl@gnu.org>
100181         * doc/error.texi: mention that main() fns must set program_name
100182         when progname is used.
100184 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
100186         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
100187         WCTYPE_H is empty, for the benefit of builds from non-distclean
100188         directories.  Problem reported by Eric Blake in
100189         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
100191 2007-01-08  Bruno Haible  <bruno@clisp.org>
100193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
100194         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
100195         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
100196         PROVIDE_CANONICALIZE_FILENAME_MODE.
100197         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
100199 2007-01-08  Bruno Haible  <bruno@clisp.org>
100201         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
100202         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
100203         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
100204         * lib/fts.c: Likewise.
100205         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
100207 2006-12-25  Bruno Haible  <bruno@clisp.org>
100209         * modules/utf8-ucs4-safe: New file.
100210         * lib/utf8-ucs4-safe.h: New file.
100211         * lib/unistr/utf8-ucs4-safe.c: New file.
100213         * modules/utf16-ucs4-safe: New file.
100214         * lib/utf16-ucs4-safe.h: New file.
100215         * lib/unistr/utf16-ucs4-safe.c: New file.
100217         * MODULES.html.sh (Unicode string functions): Add the new modules.
100219 2007-01-08  Bruno Haible  <bruno@clisp.org>
100221         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
100222         (Depends-on): Add unitypes.
100223         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
100224         (u8_mbtouc_aux): Move out to separate file.
100225         (u8_mbtouc): Use ucs4_t, uint8_t types.
100226         * lib/unistr/utf8-ucs4.c: New file.
100228         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
100229         (Depends-on): Add unitypes.
100230         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
100231         (u16_mbtouc_aux): Move out to separate file.
100232         (u16_mbtouc): Use ucs4_t, uint16_t types.
100233         * lib/unistr/utf16-ucs4.c: New file.
100235         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
100236         (Depends-on): Add unitypes.
100237         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
100238         (u8_uctomb_aux): Move out to separate file.
100239         (u8_uctomb): Use ucs4_t, uint8_t types.
100240         * lib/unistr/ucs4-utf8.c: New file.
100242         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
100243         (Depends-on): Add unitypes.
100244         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
100245         (u16_uctomb_aux): Move out to separate file.
100246         (u16_uctomb): Use ucs4_t, uint16_t types.
100247         * lib/unistr/ucs4-utf16.c: New file.
100249 2006-12-25  Bruno Haible  <bruno@clisp.org>
100251         * modules/unitypes: New file.
100252         * lib/unitypes.h: New file.
100253         * MODULES.html.sh (func_all_modules): New section "Unicode string
100254         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
100255         this section. Add unitypes.
100257 2007-01-08  Bruno Haible  <bruno@clisp.org>
100259         Avoid variable names that conflict with those from libtool.
100260         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
100261         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
100262         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
100263         library_names_spec to acl_library_names_spec, hardcode_* to
100264         acl_hardcode_*.
100265         Reported by Ralf Wildenhues.
100267 2007-01-08  Bruno Haible  <bruno@clisp.org>
100269         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
100270         definition.
100271         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
100272         definition.
100273         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
100274         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
100275         definition.
100276         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
100277         definition.
100278         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
100279         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
100280         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
100281         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
100282         definition.
100283         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
100284         definition.
100285         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
100286         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
100287         GC_USE_<algorithm>.
100288         * lib/gc-libgcrypt.c: Likewise.
100289         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
100290         * modules/gc-arctwo (configure.ac): Likewise.
100291         * modules/gc-des (configure.ac): Likewise.
100292         * modules/gc-hmac-md5 (configure.ac): Likewise.
100293         * modules/gc-hmac-sha1 (configure.ac): Likewise.
100294         * modules/gc-md2 (configure.ac): Likewise.
100295         * modules/gc-md4 (configure.ac): Likewise.
100296         * modules/gc-md5 (configure.ac): Likewise.
100297         * modules/gc-random (configure.ac): Likewise.
100298         * modules/gc-rijndael (configure.ac): Likewise.
100299         * modules/gc-sha1 (configure.ac): Likewise.
100301 2007-01-08  Bruno Haible  <bruno@clisp.org>
100303         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
100304         macro definition.
100305         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
100306         definition.
100307         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
100308         definition.
100309         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
100310         * modules/fcntl-safer (configure.ac): Likewise.
100311         * modules/fopen-safer (configure.ac): Likewise.
100312         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
100313         GNULIB_FWRITEERROR macro definition.
100315 2007-01-08  Bruno Haible  <bruno@clisp.org>
100317         * m4/gnulib-common.m4: New file.
100318         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
100319         (func_get_filelist): Add m4/gnulib-common.m4.
100321 2007-01-08  Bruno Haible  <bruno@clisp.org>
100323         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
100324         command.
100326 2007-01-08  Jim Meyering  <jim@meyering.net>
100328         Use a more robust test for a "can't happen" condition.
100329         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
100330         narrowed the st_size value.  Presuming the "can't happen" condition
100331         is true, that narrowing could conceivably convert an invalid st_size
100332         value into a valid one.  Instead, use a change based on Matthew
100333         Woehlke's original patch.
100335         Slight readability improvement: use an assert-like macro
100336         in place of literal "abort ()" uses.
100337         * lib/fts.c (fts_assert): Define.
100338         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
100339         Use this macro instead of a bare 'abort'.
100341 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
100343         Don't worry about using IRIX 5.3's wctype.h broken definitions;
100344         simply work around them.
100345         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
100346         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
100347         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
100348         declaring.
100349         Don't bother to define as macros, since the standard doesn't require it.
100350         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
100351         longer worry about IRIX 5.3.
100352         (HAVE_WCTYPE_CTMP_BUG): Remove.
100354 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
100356         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
100357         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
100358         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
100359         Problems reported by Georg Schwarz for IRIX 5.3.
100361         * gnulib-tool (autoconf_minversion): Take the maximum version number
100362         found, not the minimum.  Problem reported by James Youngman.
100364 2007-01-03  Karl Berry  <karl@gnu.org>
100366         * doc/error.texi: new file, explaining interaction with progname.
100367         * doc/gnulib.texi: include it.  Update copyright.
100369 2007-01-03  Simon Josefsson  <simon@josefsson.org>
100371         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
100372         AC_CANONICAL_HOST, to improve autobuild outputs.
100374 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
100375             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
100377         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
100378         sockets, server sockets, and other file descriptors.  Count errors
100379         to compute the return value.  Reorder the code a bit to be easier
100380         to follow.  Don't set event bits that were not requested (except
100381         POLLERR and POLLHUP).
100383 2007-01-01  Bruno Haible  <bruno@clisp.org>
100385         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
100387 2007-01-03  Jim Meyering  <jim@meyering.net>
100389         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
100391 2007-01-02  Bruno Haible  <bruno@clisp.org>
100393         * modules/settime (Include): Require timespec.h.
100394         * modules/nanosleep (Include): Likewise.
100396 2007-01-01  Bruno Haible  <bruno@clisp.org>
100398         * gnulib-tool (func_emit_copyright_notice): Bump year.
100399         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
100401 2007-01-01  Bruno Haible  <bruno@clisp.org>
100403         Improve support for OpenBSD.
100404         * build-aux/config.rpath (libname_spec): Export.
100405         (library_names_spec): New variable. Export.
100406         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
100407         library_names_spec from the config.rpath output. Locate shared library
100408         through the name pattern in library_names_spec.
100410 2007-01-01  Eric Blake  <ebb9@byu.net>
100412         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
100414 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
100416         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
100417         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
100418         assume the C locale, and avoid an "eval" that could cause trouble.
100419         Problem with SORT reported by Bob Proulx.
100421         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
100422         Define.  Trivial patch from Henning Nielsen Lund, originally
100423         sent to bug-grep@gnu.org today.
100425 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
100427         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
100428         struct stat.  Problem reported by Henning Nielsen Lund.
100429         * lib/acl.c: Include acl.h first, to check interface.  Don't
100430         bother to include sys/types.h and sys/stat.h again.
100432 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
100434         Import the following change from libc; problem reported by
100435         Sven Verdoolaege.
100437         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
100439         [BZ #1373]
100440         * lib/argp.h: Remove __NTH for __argp_usage inline function.
100442 2006-12-28  Jim Meyering  <jim@meyering.net>
100444         * build-aux/announce-gen: Do not assume that the package
100445         builds any of tar.gz, tar.bz2, and .xdelta files.
100446         Suggestion from Simon Josefsson.
100448 2006-12-28  Simon Josefsson  <simon@josefsson.org>
100450         * modules/announce-gen: New file.
100452 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
100454         * lib/mbchar.h: Just include <wctype.h>; the wctype module
100455         handles its gotchas now.
100456         * lib/mbswidth.c: Likewise.
100457         * lib/wcwidth.h: Likewise.
100458         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
100459         and iswcntrl; the wctype module does this stuff now.
100460         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
100461         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
100462         * modules/mbchar (Depends-on): Add wctype.
100463         * modules/mbswidth (Depends-on): Likewise.
100464         * modules/wcwidth (Depends-on): Likewise.
100466 2006-12-27  Eric Blake  <ebb9@byu.net>
100468         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
100469         module uses more than what <wctype.h> is required to provide.
100471 2006-12-26  Eric Blake  <ebb9@byu.net>
100473         * gnulib-tool (sed_extract_prog): Avoid space-tab.
100475 2006-12-26  Eric Blake  <ebb9@byu.net>
100477         * modules/absolute-header: New module.
100478         * modules/fcntl (Depends-on): Depend on it.
100479         * modules/inttypes (Depends-on): Likewise.
100480         * modules/stdint (Depends-on): Likewise.
100481         * modules/sys_stat (Depends-on): Likewise.
100482         * modules/wctype (Depends-on): Likewise.
100483         * MODULES.html.sh (Support for building libraries and
100484         executables): Document it.
100486 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
100488         * gnulib-tool (SED): Remove, undoing previous change.
100489         The problem was that it broke coreutils on Solaris, because
100490         "sed --posix" leaked into a makefile.
100491         (sed): New alias, if 'alias' and GNU sed.
100493 2006-12-24  Jim Meyering  <jim@meyering.net>
100495         Work around an fchownat bug in glibc-2.4:
100496         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
100497         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
100498         in spite of the -P option.
100499         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
100500         New macros.
100501         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
100502         * modules/openat (Files): Add lib/fchownat.c.
100503         * lib/openat.c (fchownat): Don't define here.  Move to...
100504         * lib/fchownat.c: ...this new file.
100506 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
100508         Fix bug reported by Bruno Haible in
100509         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
100510         where quotearg.c didn't compile on Mac OS X 10.2 because it
100511         lacks <wchar.h> and wint_t.
100512         * lib/wctype_.h (__wctype_wint_t): New type.
100513         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
100514         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
100515         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
100516         Arg is now of type __wctype_wint_t, not wint_t.
100517         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
100518         substitute HAVE_WINT_T.
100519         * modules/wctype (Files): Add m4/wint_t.m4.
100520         (wctype.h): Substitute HAVE_WINT_T.
100522 2006-12-23  Bruno Haible  <bruno@clisp.org>
100524         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
100526 2006-12-23  Bruno Haible  <bruno@clisp.org>
100528         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
100529         S_ISLNK.
100530         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
100531         mingw.
100533 2006-12-22  Bruno Haible  <bruno@clisp.org>
100535         * lib/copy-file.c: Include acl.h.
100536         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
100537         Close the file descriptors only after being done with copy_acl.
100538         * modules/copy-file (Depends-on): Add acl.
100540 2006-12-22  Bruno Haible  <bruno@clisp.org>
100542         * gnulib-tool (SED): New variable.
100543         Use $SED instead of sed everywhere.
100545 2006-12-22  Bruno Haible  <bruno@clisp.org>
100547         * modules/no-c++: New file.
100548         * m4/no-c++.m4: New file.
100549         * MODULES.html.sh (Support for building libraries and executables):
100550         Add no-c++.
100552 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
100554         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
100555         Include <limits.h>, and use its INT_MAX to rewrite the
100556         j loop so that it does not overflow 'int'.  Problem reported by
100557         Ralf Wildenhues in
100558         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
100559         Play it safe by shifting left by 1 rather than multiplying by 2,
100560         as GCC is less likely to optimize this away when the value
100561         is signed (when it assumes overflow leads to undefined behavior).
100562         Also, don't assume time_t uses two's complement.
100564 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
100566         * MODULES.html.sh: New module wctype.
100567         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
100568         * lib/fnmatch.c: Don't bother to include <wchar.h> before
100569         <wctype.h>, since the new wctype module should fix this.
100570         * lib/quotearg.c: Include <wctype.h> unconditionally, since
100571         the wctype module should arrange for it.
100572         * lib/regex_internal.h: Likewise.
100573         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
100574         since the wctype module should handle this now.
100575         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
100576         * modules/fnmatch (Depends-on): Add wctype.
100577         * modules/quotearg (Depends-on): Likewise.
100578         * modules/regex (Depends-on): Likewise.
100580 2006-12-19  Bruno Haible  <bruno@clisp.org>
100582         * lib/strdup.h [C++]: Wrap definitions in extern "C".
100583         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
100585 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100587         * modules/savewd (Depends-on): Fix dependency on fcntl.
100589 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100591         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
100592         conforms to C99, rather than relying on the user's environment
100593         setting of STDINT_H.
100595 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100596         and Eric Blake  <ebb9@byu.net>
100598         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
100599         This is more consistent with the other defines here.
100600         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
100601         Port to z/OS.  Problem reported by Paul Gilmartin.
100602         Change local vars to use gl_ prefix rather than ac_.
100603         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
100604         with other defines.
100605         * modules/double-slash-root: New module.
100606         * modules/dirname (Files): Remove m4/double-slash-root.m4.
100607         (Depends-on): Add double-slash-root.
100608         * MODULES.html.sh (File system functions): Mention new module.
100610 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
100612         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
100613         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
100614         This is for the benefit of gzip, which doesn't do i18n.
100616 2006-12-12  Jim Meyering  <jim@meyering.net>
100618         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
100619         Reported by Andreas Schwab <schwab@suse.de>.
100621 2006-12-12  Bruno Haible  <bruno@clisp.org>
100623         Merge these changes.
100624         2006-09-05  Bruno Haible  <bruno@clisp.org>
100625         * lib/iconvme.c (iconv_string): No need to save and restore errno when
100626         iconv_alloc succeeded.
100627         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
100628         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
100629         test for " && dest " at the end - dest is always != NULL there. Call
100630         iconv with 4xNULL arguments initially, to reset the state. Call iconv
100631         with 2xNULL arguments, also to flush the state storage. Handle the
100632         IRIX iconv behaviour. Realloc the final result, to throw away unused
100633         memory.
100635 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
100637         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
100638         and fchmodat unconditionally, since glibc 2.4 has them.
100639         Problem reported by Arkadiusz Miskiewicz.
100641 2006-12-10  Bruno Haible  <bruno@clisp.org>
100643         * gnulib-tool (func_import): Show the include files only for those
100644         modules that are copied and specified.
100645         Reported by Karl Berry.
100647 2006-12-08  Jim Meyering  <jim@meyering.net>
100649         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
100650         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
100652         * build-aux/announce-gen: Add two new options, both optional:
100653         --bootstrap-tools=TOOL_LIST
100654               a comma-separated list of tools, e.g.,
100655               autoconf,automake,bison,gnulib
100656         --gnulib-snapshot-date=DATE
100657               if gnulib is in the bootstrap tool list,
100658               then report this as the snapshot date.
100659               If not specified, use the current date/time.
100660               If you specify a date here, be sure it's UTC.
100662 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100664         * tests/test-argp-2.sh: Fix test to match actual output.
100665         (func_compare): Fix sed script to be portable.
100667 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
100669         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
100670         workaround for this case.  It is not autoconfigured now; offhand
100671         it's hard to see how to autoconfigure it.
100673 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
100675         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
100676         a directory that is about to be chowned.  Such a directory's
100677         initial file permissions should permit the owner only and this
100678         should not be changed until after the chown, since the group and
100679         other bits would be incorrect if they granted permission before
100680         the chown.
100682         Fix porting problem for iswctype reported by Georg Schwarz in:
100683         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
100684         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
100685         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
100686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
100687         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
100689 2006-12-03  Jim Meyering  <jim@meyering.net>
100691         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
100692         p->fts_statp may not yet be defined.
100693         (fts_read): Instead, set it in the caller, once p->fts_statp is
100694         sure to be defined, and corresponds to a top-level directory.
100695         This bug made du -x fail.  Here's the coreutils test case:
100696         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
100697         Reported by Mike Frysinger.
100699 2006-12-01  Jim Meyering  <jim@meyering.net>
100701         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
100702         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
100703         Reported by Simon Josefsson.
100705 2006-11-30  Jim Meyering  <jim@meyering.net>
100707         * m4/warning.m4: Use the all-permissive copyright notice
100708         recommended by RMS (rather than LGPL).
100709         * m4/vararrays.m4: Likewise.
100710         * m4/flexmember.m4: Likewise.
100712 2006-11-29  Bruno Haible  <bruno@clisp.org>
100714         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
100715         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
100716         using +=.
100717         Reported by Simon Josefsson <simon@josefsson.org>.
100719 2006-11-28  James Youngman  <jay@gnu.org>
100721         * README: Advise users that they might find the bug-gnulib@gnu.org
100722         and autotools-announce@gnu.org mailing lists useful.
100724 2006-11-28  Bruno Haible  <bruno@clisp.org>
100726         * m4/ptrdiff_max.m4: Remove file.
100728 2006-11-21  Bruno Haible  <bruno@clisp.org>
100730         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
100731         _AC_COMPUTE_INT.
100732         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100733         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
100734         _AC_COMPUTE_INT.
100735         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100736         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
100737         _AC_COMPUTE_INT.
100738         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100740 2006-11-28  Jim Meyering  <jim@meyering.net>
100742         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
100743         warning from "gcc -Wshadow" about shadowing the builtin.
100745 2006-11-27  Bruno Haible  <bruno@clisp.org>
100747         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
100748         _AC_COMPUTE_INT.
100749         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
100751 2006-11-27  Bruno Haible  <bruno@clisp.org>
100752             Paul Eggert  <eggert@cs.ucla.edu>
100754         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
100756 2006-11-26  Bruno Haible  <bruno@clisp.org>
100758         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
100759         noinst_LTLIBRARIES.
100761 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
100762             Bruno Haible  <bruno@clisp.org>
100764         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
100765         if compiling with "gcc -ansi".
100767 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
100769         Fix some incompatibilities with gcc -ansi -pedantic.
100770         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
100771         if compiling pedantically with GCC, unless it's C99 or later.
100772         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
100773         it mishandles gcc -ansi -pedantic as well.
100774         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
100775         if gcc -pedantic.
100776         * lib/regexec.c (check_node_accept_bytes): Don't use auto
100777         initializers for struct if -pedantic, unless it's C99 or later.
100779 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
100781         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
100782         Don't close an fd more than once. Identical atimes indicate
100783         success, not failure.
100785 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
100787         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
100789 2006-11-23  Jim Meyering  <jim@meyering.net>
100791         * build-aux/announce-gen: New file.  From coreutils.
100793 2006-11-22  Jim Meyering  <jim@meyering.net>
100795         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
100796         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
100797         (fts_read): Use a temporary to narrow the overused st_size member
100798         before using it in a switch statement.  Reported by Matthew Woehlke.
100800         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
100801         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
100803 2006-11-20  Bruno Haible  <bruno@clisp.org>
100805         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
100806         changequote instead of pairs of brackets.
100807         Reported by Andreas Schwab <schwab@suse.de>.
100809 2006-11-21  Jim Meyering  <jim@meyering.net>
100811         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
100812         so as to remain compatible with older compilers.
100813         Patch from Michael Deutschmann.
100815 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100817         * MODULES.html.sh (File system functions): Add openat.
100819         * lib/openat.h (rpl_fstatat): New macro, if
100820         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
100821         (fstatat): Define to rpl_fstatat under the same conditions,
100822         unless COMPILING_FSTATAT.
100823         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
100824         seems to have the bug.
100825         * lib/fstatat.c: New file.
100826         * modules/openat (Files): Add it.
100828 2006-11-20  Bruno Haible  <bruno@clisp.org>
100830         * Makefile: New file.
100832 2006-11-20  Jim Meyering  <jim@meyering.net>
100834         The beginnings of syntax-related checks for gnulib.
100835         * lib/Makefile: New file.
100836         * lib/t-idcache: New script.  Ensure that the two halves of
100837         idcache.c stay in sync.
100839         * lib/idcache.c: Adjust comments in user- and group- portions to
100840         be more accurate, and to be consistent with one another.
100842 2006-11-20  Jim Meyering  <jim@meyering.net>
100844         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
100845         continue using the flexible array member (thus, this module performs
100846         half as many malloc calls), with the addition that...
100847         (getgroup, getuser): Consistently record a non-match via an empty
100848         "name" string, and map an empty string match to a NULL return value.
100849         * modules/idcache (Depends-on): Re-add flexmember.
100851         * lib/idcache.c (getuser): Remove all uses of the register keyword.
100852         (getuidbyname, getgroup, getgidbyname): Likewise.
100854         Use cleaner syntax: NULL rather than 0.
100855         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
100857 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
100859         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
100860         It mishandled the case where the group was missing.
100861         Problem reported by Greg Schafer.
100862         * modules/idcache: Likewise.
100864 2006-11-18  Jim Meyering  <jim@meyering.net>
100866         * check-module (%exempt_header): Add exception for some
100867         conditionally-included headers.
100869         * modules/i-ring (Depends-on): Add verify.
100870         (License): Change to LGPL.
100872 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
100874         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
100875         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
100876         and inttostr.h.  Use snprintf rather than uinttostr, so that
100877         LGPLed code doesn't depend on GPLed.
100879 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
100881         * modules/inline (License): Change from GPL to LGPL.
100883 2006-11-17  Jim Meyering  <jim@meyering.net>
100885         * modules/d-type (License): Switch to LGPL.
100887 2006-11-15  Bruno Haible  <bruno@clisp.org>
100889         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
100891 2006-11-15  Eric Blake  <ebb9@byu.net>
100893         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
100894         the module dependency.
100896 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100897             Bruno Haible  <bruno@clisp.org>
100899         * gnulib-tool (func_create_testdir): Add license consistency check.
100901 2006-11-15  Eric Blake  <ebb9@byu.net>
100903         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
100904         random "(cached)" in configure output.
100906 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100908         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
100909         test for conforming inttypes.h is both announced and cached.
100911         * MODULES.html.sh (seen_modules, seen_files): New variables.
100912         (func_module): Rewrite to use a few less gnulib-tool and sed
100913         invocations.  Avoid a couple of quadratic algorithms for ...
100914         (missed_modules, missed_files): ... these, with ...
100915         (func_append, func_tmpdir): ... these new functions, from
100916         gnulib-tool.  Analogously, install traps for cleanup.
100918         * tests/test-gc.c (main): Remove unused variables.
100919         * tests/test-read-file.c: Include stdlib.h, for 'free'.
100921 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
100923         * modules/inttostr (License): Change to LGPL.
100925 2006-11-14  Eric Blake  <ebb9@byu.net>
100927         * modules/tempname (License): Change to LGPL.
100929 2006-11-14  Eric Blake  <ebb9@byu.net>
100931         * doc/functions.texi (Function Portability): *printf functions on
100932         Cygwin now understand all POSIX size specifiers.
100934 2006-11-14  Bruno Haible  <bruno@clisp.org>
100936         * modules/c-ctype (License): Change to LGPL.
100938 2006-11-12  Bruno Haible  <bruno@clisp.org>
100940         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
100941         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
100942         for GNOME libraries, for which the include files are installed in
100943         subdirectories of $prefix/include.
100945 2006-11-12  Bruno Haible  <bruno@clisp.org>
100947         * m4/lib-link.m4: Require at least autoconf-2.54.
100948         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
100949         name to underscores for the --with option.
100951 2006-11-13  Bruno Haible  <bruno@clisp.org>
100953         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
100954         the tests directory.
100955         Reported by Ralf Wildenhues.
100957 2006-11-13  Bruno Haible  <bruno@clisp.org>
100959         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
100960         (func_emit_initmacro_end): Undo the override here.
100961         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
100962         Works around the famous automake error in coreutils.
100964 2006-11-13  Eric Blake  <ebb9@byu.net>
100966         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
100967         element, not its node.
100969 2006-11-12  Bruno Haible  <bruno@clisp.org>
100971         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
100972         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
100974 2006-11-12  Bruno Haible  <bruno@clisp.org>
100976         * gnulib-tool: New option --local-symlink.
100977         (func_usage): Document it.
100978         (lsymbolic): New variable.
100979         (func_import, func_create_testdir): If --symlink was not specified,
100980         test whether --local-symlink was specified and the file comes from
100981         the local_gnulib_dir.
100983 2006-11-12  Bruno Haible  <bruno@clisp.org>
100985         * gnulib-tool (func_ln): New function.
100986         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
100988 2006-11-12  Bruno Haible  <bruno@clisp.org>
100990         Finish support for source files in subdirectories.
100991         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
100992         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
100993         AUTOMAKE_OPTIONS.
100994         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
100996 2006-11-12  Bruno Haible  <bruno@clisp.org>
100998         * gnulib-tool (func_get_automake_snippet): Synthesize also an
100999         EXTRA_lib_SOURCES augmentation.
101000         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
101002 2006-11-12  Jim Meyering  <jim@meyering.net>
101004         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
101005         file descriptors.  This also averts a failure on systems with
101006         native openat support when a traversed directory lacks "x" access.
101007         * lib/fts_.h: Include "i-ring.h"
101008         (struct FTS) [fts_fd_ring]: New member.
101009         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
101010         (FCHDIR): Add parentheses.
101011         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
101012         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
101013         When descending, rather than simply closing the previous
101014         fts_cwd_fd value, push that file descriptor onto the ring.
101015         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
101016         (fts_open): Initialize the new fd_ring member.
101017         (fts_close): Clear the ring.
101018         (fts_safe_changedir): When possible, use our new fd_ring to skip
101019         the diropen and fstat and dev/ino comparison that would normally
101020         accompany a virtual `chdir ("..")'.
101022         * modules/fts (Depends-on): Add i-ring.
101023         * modules/i-ring: New module.
101024         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
101025         * m4/i-ring.m4: New file.
101027 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101029         * gnulib-tool (func_create_testdir): Fix replacement of
101030         `build-aux' in configure.ac.  Run autotools in gltests
101031         subdirectory.
101032         (func_create_testdir, func_create_megatestdir, test): There is
101033         no need for '--force' in most autotool invocations in a new
101034         tree.  Actually fail the whole test if any of the tools, or the
101035         configure or make stages fail.
101037         Sync from Automake.
101038         * build-aux/gnupload: Revert last change.  Add pointer to upload
101039         instructions of the GNU Maintenance Instructions.
101040         Suggestion by Karl Berry.
101042 2006-11-10  Jim Meyering  <jim@meyering.net>
101044         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
101046 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101048         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
101049         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
101050         (bind_textdomain_codeset) [! ENABLE_NLS]:
101051         Evaluate all the arguments.  That way, callers get compatible behavior
101052         if the arguments have side effects.  Also, it avoids some GCC
101053         diagnostics in some cases; Joel E. Denny reported problems when Bison
101054         was configured with --enable-gcc-warnigs.
101056 2006-11-10  Jim Meyering  <jim@meyering.net>
101058         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
101059         relevant options in CFLAGS (like -O, -fno-inline) are taken into
101060         account.
101062 2006-11-10  Jim Meyering  <jim@meyering.net>
101064         * modules/inline: New file/module.
101065         * modules/xalloc (Files): Remove m4/inline.m4.
101066         (Depends-on): Add inline, instead.
101067         * modules/oset: Likewise.
101068         * modules/list: Likewise.
101070 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
101072         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
101073         Problem reported by Matthew Woehlke.
101075 2006-11-09  Bruno Haible  <bruno@clisp.org>
101077         * lib/tempname.c (gen_tempname): Remove variant that invokes
101078         __gen_tempname.
101079         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
101080         __gen_tempname.
101082 2006-11-08  Bruno Haible  <bruno@clisp.org>
101084         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
101085         to 'yes' instead of 'cross-compiling'.
101087 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
101089         * lib/quotearg.h (quotearg_free): New decl.
101090         * lib/quotearg.c (quotearg_free): New function.
101091         (slot0, nslots, slotvec0, slotvec):
101092         Now file-scope so that quotearg_free can get at them.
101094 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101096         Sync from Automake.
101097         * build-aux/gnupload: Add missing 'gnu' to example URL.
101098         Report by Karl Berry.
101100 2006-11-08  Bruno Haible  <bruno@clisp.org>
101102         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
101103         Suggested by Paul Eggert.
101105 2006-11-08  Jim Meyering  <jim@meyering.net>
101107         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
101108         It's already included if !_LIBC.
101109         (fts_safe_changedir): Add a comment.
101111 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
101113         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
101114         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
101115         Matthew Woehlke.
101117         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
101118         definitions up, to avoid colliding with change below.
101119         (static_inline) [HAVE_INLINE]: New macro.
101120         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
101121         Provide extern decls when !HAVE_INLINE.  Do not define unless
101122         static_inline is defined, either by us or by xmalloc.c.  Use
101123         static_inline rather than static inline.
101124         (XCALLOC): Optimize sizeof(T) = 1 case.
101125         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
101127 2006-11-07  Bruno Haible  <bruno@clisp.org>
101129         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
101130         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
101131         AC_C_INLINE.
101132         * modules/xalloc (Files): Add m4/inline.m4.
101134 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101136         * README: Fix typo.
101137         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
101138         (Miscellanous Notes): ...from this.
101140 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
101142         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
101143         Mention that offsetof should be used instead of sizeof.
101144         From Bruno Haible.
101146 2006-11-07  Bruno Haible  <bruno@clisp.org>
101148         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
101150 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
101152         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
101153         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
101154         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
101155         (gl_tree_add_before, gl_tree_add_after):
101156         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
101157         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
101158         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
101159         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
101160         (gl_linked_add_after, gl_linked_add_at): Likewise.
101161         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
101162         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
101163         (gl_tree_add_before, gl_tree_add_after): Likewise.
101164         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
101165         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
101166         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
101168 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101170         * lib/gl_oset.h: Use C comment style, not C++ comment style.
101172 2006-11-06  Bruno Haible  <bruno@clisp.org>
101174         * m4/inline.m4: New file.
101175         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
101176         * modules/list (Files): Add m4/inline.m4.
101177         * modules/oset (Files): Likewise.
101179 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
101181         * lib/idcache.c: Include <stddef.h>, for offsetof.
101182         (struct userid.name): Change from char * to a flexible array member.
101183         All uses changed.
101184         * modules/idcache (Depends-on): Add flexmember.
101186         * MODULES.html.sh (Core language properties): New module flexmember.
101187         * modules/flexmember, m4/flexmember.m4: New files.
101189         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
101190         inline functions that are identical with the old xnmalloc_inline,
101191         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
101192         that we can avoid some unnecessary integer multiplications and
101193         divisions in the common case where the element size is known at
101194         compile time.
101195         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
101196         needed.
101197         (xnboundedmalloc): Remove.
101198         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
101199         arguments, for consistency with rest of this header.
101200         (xcharalloc): Rewrite using XNMALLOC.
101201         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
101202         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
101203         versions have been moved to lib/xalloc.h and renamed to be the
101204         non-*_inline versions.
101205         (xmalloc, xrealloc): Implement without reference to the xnmalloc
101206         and xnrealloc functions, since those functions are now inline and
101207         now call us.
101208         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
101209         renaming described above.
101210         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
101211         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
101212         captures the dependency in AC_C_INLINE.
101214         New module canonicalize-lgpl, proposed by Charles Wilson in
101215         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
101216         with a few small changes afterwards.
101217         * MODULES.html.sh (File system functions): New module
101218         canonicalize-lgpl.
101219         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
101220         and canonicalize_file_name.
101221         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
101222         * modules/canonicalize-lgpl: New files.
101224 2006-11-05  Bruno Haible  <bruno@clisp.org>
101226         * gnulib-tool (func_import, func_create_testdir): Create directories
101227         also for files in subdirectories of lib/.
101229 2006-11-05  Bruno Haible  <bruno@clisp.org>
101231         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
101232         ANSI C compliant.
101234 2006-11-03  Bruno Haible  <bruno@clisp.org>
101236         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
101237         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
101238         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
101239         (xnboundedmalloc): New inline function.
101240         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
101241         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
101242         xmalloc.
101243         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
101244         xmalloc.
101245         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
101246         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
101247         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
101248         xmalloc.
101249         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
101250         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
101251         xmalloc.
101252         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
101253         gl_tree_add_after): Use XMALLOC instead of xmalloc.
101254         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
101255         xmalloc.
101256         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
101257         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
101258         gl_tree_add_after): Use XMALLOC instead of xmalloc.
101259         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
101260         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
101261         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
101262         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
101264 2006-11-03  Bruno Haible  <bruno@clisp.org>
101266         * lib/c-ctype.h [C++]: Define functions without name mangling.
101267         * lib/fwriteerror.h [C++]: Likewise.
101268         * lib/gcd.h [C++]: Likewise.
101269         * lib/linebreak.h [C++]: Likewise.
101271 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
101273         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
101274         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
101275         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
101276         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
101277         Check for functions and headers just once.
101278         Check for declaration of canonicalize_file_name.
101279         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
101281 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
101283         * gnulib-tool (func_import): Fix typo in actioncmd.
101285 2006-11-02  Bruno Haible  <bruno@clisp.org>
101287         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
101288         newline sequence in the Makefile.am snippet as a space, like "make"
101289         does.
101290         Reported by Roger Persson <perrog@gmail.com>.
101292 2006-11-01  Bruno Haible  <bruno@clisp.org>
101294         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
101295         already declared in <string.h>.
101296         * lib/strcase.h (strncasecmp): Don't declare it if yes.
101298 2006-11-01  Bruno Haible  <bruno@clisp.org>
101300         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
101301         * lib/strcase.h: Include <string.h>.
101302         (strcasecmp): Define to rpl_strcasecmp here.
101304 2006-11-01  Bruno Haible  <bruno@clisp.org>
101306         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
101308 2006-11-01  Eric Blake  <ebb9@byu.net>
101310         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
101312         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
101314 2006-10-29  Bruno Haible  <bruno@clisp.org>
101316         Make it compile in C++ mode.
101317         * lib/full-write.c (full_rw): Add a cast.
101319 2006-11-01  Bruno Haible  <bruno@clisp.org>
101321         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
101322         be POSIX compliant.
101323         Reported by Roger Persson <perrog@gmail.com>.
101325 2006-11-01  Eric Blake  <ebb9@byu.net>
101327         * lib/getopt_.h: Fix comments.
101329 2006-10-31  Eric Blake  <ebb9@byu.net>
101331         * modules/tmpdir (Depends-on): Add sys_stat.
101332         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
101333         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
101334         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
101335         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
101336         tempname.
101338 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
101340         Avoid some C++ diagnostics reported by Bruno Haible.
101341         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
101342         xmalloc.
101343         (quotearg_alloc): Use xcharalloc rather than xmalloc.
101344         (struct slotvec): Move to top level.
101345         (quotearg_n_options): Rewrite to avoid xmalloc.
101346         * lib/xalloc.h (xcharalloc): New function.
101347         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
101348         [defined __cplusplus]: Add function template that provides result
101349         type propagation.  This part of the change is from Bruno Haible.
101351 2006-10-29  Bruno Haible  <bruno@clisp.org>
101353         Make it compile in C++ mode.
101354         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
101355         * lib/strnlen1.c (strnlen1): Cast memchr result.
101356         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
101357         * lib/clean-temp.c (string_equals, string_hash): Add casts.
101358         (create_temp_dir): Rename local variable 'template'.
101359         (compile_csharp_using_sscli): Add cast.
101360         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
101361         * lib/findprog.c (find_in_path): Likewise.
101362         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
101363         * lib/wait-process.c (register_slave_subprocess): Likewise.
101365 2006-10-22  Bruno Haible  <bruno@clisp.org>
101367         * modules/tsearch: New file.
101368         * lib/tsearch.h: New file.
101369         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
101370         * m4/tsearch.m4: New file.
101371         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
101373 2006-10-29  Eric Blake  <ebb9@byu.net>
101375         * lib/arcfour.c: Assume config.h.
101376         * lib/arctwo.c: Likewise.
101377         * lib/base64.c: Likewise.
101378         * lib/check-version.c: Likewise.
101379         * lib/crc.c: Likewise.
101380         * lib/des.c: Likewise.
101381         * lib/gc-gnulib.c: Likewise.
101382         * lib/gc-libgcrypt.c: Likewise.
101383         * lib/gc-pbkdf2-sha1.c: Likewise.
101384         * lib/getaddrinfo.c: Likewise.
101385         * lib/getdelim.c: Likewise.
101386         * lib/getline.c: Likewise.
101387         * lib/hmac-md5.c: Likewise.
101388         * lib/hmac-sha1.c: Likewise.
101389         * lib/iconvme.c: Likewise.
101390         * lib/md2.c: Likewise.
101391         * lib/md4.c: Likewise.
101392         * lib/memxor.c: Likewise.
101393         * lib/read-file.c: Likewise.
101394         * lib/readline.c: Likewise.
101395         * lib/rijndael-alg-fst.c: Likewise.
101396         * lib/rijndael-api-fst.c: Likewise.
101397         * lib/xgetdomainname.c: Likewise.
101399 2006-10-28  Eric Blake  <ebb9@byu.net>
101401         * lib/xstrndup.c: Assume config.h.
101403 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
101405         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
101406         stat-macros.h is now for our own macros, whereas stat_h is for
101407         macros in the <sys/stat.h> name space.
101408         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
101409         (STAT_MACROS_H): Remove.
101410         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
101411         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
101412         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
101413         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
101414         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
101415         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
101416         Move these macros to ...
101417         * lib/stat_.h: here.  Don't include stat-macros.h.
101418         * lib/canonicalize.c: Don't include stat-macros.h.
101419         * lib/chown.c: Likewise.
101420         * lib/euidaccess.c: Likewise.
101421         * lib/file-type.c: Likewise.
101422         * lib/filemode.c: Likewise.
101423         * lib/glob.c: Likewise.
101424         * lib/isapipe.c: Likewise.
101425         * lib/lchown.c: Likewise.
101426         * lib/lstat.c: Likewise.
101427         * lib/mkdir-p.c: Likewise.
101428         * lib/rmdir.c: Likewise.
101429         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
101430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
101431         unless mkdir isn't declared, to speed up 'configure'.
101432         Always create sys/stat.h, since it's unlikely any real sys/stat.h
101433         would define all the S_* symbols.
101434         * modules/canonicalize (Depends-on):
101435         Depend on sys_stat, not stat-macros.
101436         * modules/chown: Likewise.
101437         * modules/euidaccess: Likewise.
101438         * modules/filemode: Likewise.
101439         * modules/file-type: Likewise.
101440         * modules/glob: Likewise.
101441         * modules/isapipe: Likewise.
101442         * modules/lchown: Likewise.
101443         * modules/lstat: Likewise.
101444         * modules/mkancesdirs: Likewise.
101445         * modules/rmdir: Likewise.
101446         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
101447         * modules/modechange: Likewise.
101448         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
101449         (configure.ac): Remove gl_STAT_MACROS.
101450         * modules/sys_stat (Depends-on): Remove stat-macros.
101452 2006-10-27  Bruno Haible  <bruno@clisp.org>
101454         * m4/signed.m4: Remove file.
101455         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
101456         invocation.
101457         * modules/vasnprintf (Files): Remove m4/signed.m4.
101459 2006-10-27  Bruno Haible  <bruno@clisp.org>
101461         Update to GNU gettext 0.16.
101462         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
101463         m4/inttypes-h.m4, m4/signed.m4.
101464         * m4/gettext.m4: Update to GNU gettext 0.16.
101465         * m4/intl.m4: New file, from GNU gettext.
101466         * m4/intldir.m4: New file, from GNU gettext.
101467         * config/srclist.txt: Update
101469 2006-10-27  Eric Blake  <ebb9@byu.net>
101471         * MODULES.html.sh: Document tempname.
101472         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
101473         dependencies.
101474         (Files): Move lib/tempname.c...
101475         * modules/tempname: ...to this new module.
101476         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
101477         (gl_PREREQ_TEMPNAME): Move...
101478         * m4/tempname.m4: ...to this new file.
101479         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
101480         * modules/sys_stat (Depends-on): Add stat-macros.
101481         * lib/stat_.h (includes): Pick up stat macros.
101482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
101483         if stat macros are broken.
101484         * lib/tempname.c (includes): No need to include "stat-macros.h".
101485         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
101486         (direxists, __path_search) [!_LIBC]: Don't compile these in
101487         gnulib; the tmpdir module covers that.
101488         * lib/tempname.h: New file.
101490 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
101492         * COPYING: Explain how gnulib-tool converts licence headers.
101493         Almost all wording by Eric Blake.
101495 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
101497         * lib/mbchar.h (is_basic_table): Make read-only.
101498         * lib/mbchar.c (is_basic_table): Likewise.
101499         Reported by John Darrington.
101501 2006-10-25  Bruno Haible  <bruno@clisp.org>
101503         * lib/progname.h (set_program_name): Undefine before defining.
101505 2006-10-25  Bruno Haible  <bruno@clisp.org>
101507         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
101508         false for non-gcc C++ compilers.
101509         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
101511 2006-10-24  Bruno Haible  <bruno@clisp.org>
101513         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
101514         iconv implementations like Irix iconv.
101516 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101518         * modules/vararrays: New file.
101519         * m4/vararrays.m4: New file, taken from diffutils.
101520         * MODULES.html.sh: New module vararrays.
101522 2006-10-24  Karl Berry  <karl@gnu.org>
101524         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
101525         Don't call GNU Unix.
101527 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101529         * users.txt: Add Libtool.
101531         Sync from Libtool:
101533         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101535         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
101536         to gnulib's policy of including config.h unconditionally.
101538 2006-10-24  Bruno Haible  <bruno@clisp.org>
101540         * modules/wcwidth (Files): Add m4/wint_t.m4.
101541         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
101542         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
101544 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
101546         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
101547         to pacify GCC with some -W flags enabled.  Problem reported by
101548         Bruno Haible.
101550 2006-10-24  Jim Meyering  <jim@meyering.net>
101552         * MODULES.html.sh: Remove uinttostr.  It's not a module.
101553         Reported by Karl Berry.
101555 2006-10-23  Bruno Haible  <bruno@clisp.org>
101557         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
101559 2006-10-24  Bruno Haible  <bruno@clisp.org>
101561         * lib/gl_list.h: Use C comment style, not C++ comment style.
101563 2006-10-23  Eric Blake  <ebb9@byu.net>
101565         * lib/getaddrinfo.c (includes): Add missing include.
101567 2006-10-23  Bruno Haible  <bruno@clisp.org>
101568             Paul Eggert  <eggert@cs.ucla.edu>
101570         Ability to rename obstack_free.
101571         * lib/obstack.h (__obstack_free): New macro. Declare instead of
101572         obstack_free.
101573         (obstack_free): Invoke the __obstack_free macro.
101574         * lib/obstack.c (obstack_free): Use __obstack_free macro.
101576 2006-10-23  Bruno Haible  <bruno@clisp.org>
101577             Paul Eggert  <eggert@cs.ucla.edu>
101579         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
101580         __argc, __argv from the declaration. (They are defined as macros on
101581         mingw.)
101583 2006-10-22  Bruno Haible  <bruno@clisp.org>
101585         * doc/gnulib-intro.texi: New file.
101586         * doc/gnulib.texi: Include it.
101588 2006-10-21  Bruno Haible  <bruno@clisp.org>
101590         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
101591         "Introduction", "Miscellanous Notes", "Particular Modules".
101593 2006-10-21  Bruno Haible  <bruno@clisp.org>
101595         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
101596         Change mostlyclean-local rule to avoid sh syntax error from bash
101597         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
101599 2006-10-23  Jim Meyering  <jim@meyering.net>
101601         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
101602         in place of snprintf.
101604         * modules/inttostr (Files): Add lib/uinttostr.c.
101605         * lib/uinttostr.c (inttostr): New file/function.
101606         * lib/inttostr.h (uinttostr): Declare.
101607         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
101608         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101609         Add uinttostr.
101610         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
101612 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
101614         * lib/canonicalize.c (ELOOP): Define if not already defined.
101615         Problem reported by Bruno Haible in
101616         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
101618 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
101620         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
101621         Problem reported by Perry Smith and Ville Laurikari.
101623         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
101624         uses.
101626 2006-10-19  Bruno Haible  <bruno@clisp.org>
101628         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
101629         for mingw.
101631 2006-10-19  Bruno Haible  <bruno@clisp.org>
101633         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
101634         Needed for mingw.
101636 2006-10-19  Bruno Haible  <bruno@clisp.org>
101638         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
101640 2006-10-19  Bruno Haible  <bruno@clisp.org>
101642         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
101643         it.
101645 2006-10-19  Bruno Haible  <bruno@clisp.org>
101647         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
101648         invocation.
101650 2006-10-19  Bruno Haible  <bruno@clisp.org>
101652         * gnulib-tool (func_create_testdir): Don't include ftruncate and
101653         mountlist by default.
101655 2006-10-16  Bruno Haible  <bruno@clisp.org>
101657         * lib/c-strstr.c: Include c-strstr.h.
101659 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
101661         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
101662         in a slash.
101664 2006-10-18  Bruno Haible  <bruno@clisp.org>
101666         * lib/lock.h [C++]: Wrap definitions in extern "C".
101668 2006-10-18  Bruno Haible  <bruno@clisp.org>
101670         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
101671         gl_LIBOBJS list.
101673 2006-10-18  Bruno Haible  <bruno@clisp.org>
101675         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
101677 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
101679         * lib/xstrtol.h: Include gettext.h.
101680         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
101681         Problem reported by Eric Blake.
101682         * modules/xstrtol (Depends-on): Add gettext-h.
101684 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
101686         * lib/strftime.c (advance): New macro.
101687         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
101688         incomplete type, so you can't add 0 to it.  Problem and patch
101689         reported by Eelco Dolstra for dietlibc.
101691 2006-10-18  Jim Meyering  <jim@meyering.net>
101693         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
101694         type for a local, and rename it: s/up/user_proc/.
101696 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
101698         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
101699         READ_UTMP_USER_PROCESS.
101700         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
101702 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
101704         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
101705         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
101707 2006-10-17  Eric Blake  <ebb9@byu.net>
101709         * lib/sigprocmask.c (sigprocmask): Fix typo.
101711         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
101713         * modules/clean-temp (Makefile.am): Don't add to make output...
101714         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
101715         config.h.
101717 2006-10-17  Bruno Haible  <bruno@clisp.org>
101719         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
101720         differently if DEFAULT_TEXT_DOMAIN is set.
101722 2006-10-16  Bruno Haible  <bruno@clisp.org>
101724         * lib/clean-temp.c: Include fwriteerror.h.
101726 2006-10-16  Bruno Haible  <bruno@clisp.org>
101728         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
101730 2006-10-16  Bruno Haible  <bruno@clisp.org>
101732         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
101733         * lib/sigprocmask.h: Include <sys/types.h>.
101734         (sigset_t): Use the system's definition if present.
101736 2006-10-17  Eric Blake  <ebb9@byu.net>
101738         * lib/xvasprintf.c (includes): Assume config.h.
101739         * lib/xasprintf.c (includes): Likewise.
101741 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
101743         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
101744         at least as wide as intmax_t.
101746 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
101748         (Imported from Automake.)
101749         * build-aux/gnupload: Update to version 1.1 of directive file.
101751 2006-10-16  Eric Blake  <ebb9@byu.net>
101753         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
101754         match Automake 1.10a.
101756 2006-10-14  Bruno Haible  <bruno@clisp.org>
101758         * modules/sigprocmask: New file.
101759         * lib/sigprocmask.h: New file.
101760         * lib/sigprocmask.c: New file.
101761         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
101762         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
101763         request sigprocmask.o.
101764         (gl_PREREQ_SIGPROCMASK): New macro.
101765         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
101766         (Depends-on): Add sigprocmask.
101767         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
101768         gt_SIGNALBLOCKING. Test for 'raise' only once.
101769         * lib/fatal-signal.c: Include sigprocmask.h.
101770         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
101771         unblock_fatal_signals): Define always.
101772         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
101773         sigprocmask.
101775 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
101777         Sync from Automake.
101778         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
101779         which incorrectly sets the mode of an existing destination
101780         directory.  In some cases the unpatched install-sh could do the
101781         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
101782         system.  We hope this is rare in practice, but it's clearly worth
101783         fixing.  Problem reported by Alex Unleashed in
101784         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
101785         Also, don't bother to check for -m bugs unless we're using -m;
101786         suggested by Stepan Kasal.
101788 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101790         Sync from Automake.
101791         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
101792         `-c' flag, so they appear at the same position as in %FASTDEP%
101793         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
101794         which ignores unknown options only after the first non-option.
101795         Bug report against M4 by Nelson H. F. Beebe.
101797 2006-10-13  Jim Meyering  <jim@meyering.net>
101799         Fix a bug in yesterday's change.
101800         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
101801         p->fts_statp->st_dev would be used uninitialized.
101802         Ensures that we always call fts_stat on the very first entry.
101803         Miklos Szeredi reported that find -xdev stopped working.
101805 2006-10-12  Bruno Haible  <bruno@clisp.org>
101807         * gnulib-tool (func_get_automake_snippet): Append an automatically
101808         computed EXTRA_DIST augmentation.
101809         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
101810         * modules/alloca-opt (Makefile.am): Likewise.
101811         * modules/allocsa (Makefile.am): Likewise.
101812         * modules/arcfour (Makefile.am): Likewise.
101813         * modules/arctwo (Makefile.am): Likewise.
101814         * modules/argmatch (Makefile.am): Likewise.
101815         * modules/argz (Makefile.am): Likewise.
101816         * modules/atexit (Makefile.am): Likewise.
101817         * modules/backupfile (Makefile.am): Likewise.
101818         * modules/byteswap (Makefile.am): Likewise.
101819         * modules/c-strtod (Makefile.am): Likewise.
101820         * modules/c-strtold (Makefile.am): Likewise.
101821         * modules/calloc (Makefile.am): Likewise.
101822         * modules/canon-host (Makefile.am): Likewise.
101823         * modules/canonicalize (Makefile.am): Likewise.
101824         * modules/chdir-long (Makefile.am): Likewise.
101825         * modules/chdir-safer (Makefile.am): Likewise.
101826         * modules/check-version (Makefile.am): Likewise.
101827         * modules/chown (Makefile.am): Likewise.
101828         * modules/cloexec (Makefile.am): Likewise.
101829         * modules/close-stream (Makefile.am): Likewise.
101830         * modules/closeout (Makefile.am): Likewise.
101831         * modules/crc (Makefile.am): Likewise.
101832         * modules/csharpexec (Makefile.am): Likewise.
101833         * modules/cycle-check (Makefile.am): Likewise.
101834         * modules/des (Makefile.am): Likewise.
101835         * modules/dev-ino (Makefile.am): Likewise.
101836         * modules/dirfd (Makefile.am): Likewise.
101837         * modules/dirname (Makefile.am): Likewise.
101838         * modules/dup2 (Makefile.am): Likewise.
101839         * modules/eealloc (Makefile.am): Likewise.
101840         * modules/error (Makefile.am): Likewise.
101841         * modules/euidaccess (Makefile.am): Likewise.
101842         * modules/exclude (Makefile.am): Likewise.
101843         * modules/exitfail (Makefile.am): Likewise.
101844         * modules/fcntl-safer (Makefile.am): Likewise.
101845         * modules/fcntl (Makefile.am): Likewise.
101846         * modules/file-type (Makefile.am): Likewise.
101847         * modules/fileblocks (Makefile.am): Likewise.
101848         * modules/filemode (Makefile.am): Likewise.
101849         * modules/filenamecat (Makefile.am): Likewise.
101850         * modules/fnmatch (Makefile.am): Likewise.
101851         * modules/fopen-safer (Makefile.am): Likewise.
101852         * modules/fpending (Makefile.am): Likewise.
101853         * modules/fprintftime (Makefile.am): Likewise.
101854         * modules/free (Makefile.am): Likewise.
101855         * modules/fsusage (Makefile.am): Likewise.
101856         * modules/ftruncate (Makefile.am): Likewise.
101857         * modules/fts (Makefile.am): Likewise.
101858         * modules/gc-arcfour (Makefile.am): Likewise.
101859         * modules/gc-des (Makefile.am): Likewise.
101860         * modules/gc-hmac-md5 (Makefile.am): Likewise.
101861         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
101862         * modules/gc-md4 (Makefile.am): Likewise.
101863         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
101864         * modules/gc-sha1 (Makefile.am): Likewise.
101865         * modules/gc (Makefile.am): Likewise.
101866         * modules/getaddrinfo (Makefile.am): Likewise.
101867         * modules/getcwd (Makefile.am): Likewise.
101868         * modules/getdelim (Makefile.am): Likewise.
101869         * modules/getdomainname (Makefile.am): Likewise.
101870         * modules/getgroups (Makefile.am): Likewise.
101871         * modules/gethostname (Makefile.am): Likewise.
101872         * modules/gethrxtime (Makefile.am): Likewise.
101873         * modules/getline (Makefile.am): Likewise.
101874         * modules/getloadavg (Makefile.am): Likewise.
101875         * modules/getlogin_r (Makefile.am): Likewise.
101876         * modules/getndelim2 (Makefile.am): Likewise.
101877         * modules/getopt (Makefile.am): Likewise.
101878         * modules/getpagesize (Makefile.am): Likewise.
101879         * modules/getpass-gnu (Makefile.am): Likewise.
101880         * modules/getpass (Makefile.am): Likewise.
101881         * modules/getsubopt (Makefile.am): Likewise.
101882         * modules/gettime (Makefile.am): Likewise.
101883         * modules/gettimeofday (Makefile.am): Likewise.
101884         * modules/getugroups (Makefile.am): Likewise.
101885         * modules/getusershell (Makefile.am): Likewise.
101886         * modules/glob (Makefile.am): Likewise.
101887         * modules/group-member (Makefile.am): Likewise.
101888         * modules/hard-locale (Makefile.am): Likewise.
101889         * modules/hash (Makefile.am): Likewise.
101890         * modules/hmac-md5 (Makefile.am): Likewise.
101891         * modules/hmac-sha1 (Makefile.am): Likewise.
101892         * modules/human (Makefile.am): Likewise.
101893         * modules/idcache (Makefile.am): Likewise.
101894         * modules/imaxabs (Makefile.am): Likewise.
101895         * modules/imaxdiv (Makefile.am): Likewise.
101896         * modules/inet_ntop (Makefile.am): Likewise.
101897         * modules/inet_pton (Makefile.am): Likewise.
101898         * modules/intprops (Makefile.am): Likewise.
101899         * modules/inttostr (Makefile.am): Likewise.
101900         * modules/inttypes (Makefile.am): Likewise.
101901         * modules/isapipe (Makefile.am): Likewise.
101902         * modules/javaversion (Makefile.am): Likewise.
101903         * modules/lchmod (Makefile.am): Likewise.
101904         * modules/lchown (Makefile.am): Likewise.
101905         * modules/localcharset (Makefile.am): Likewise.
101906         * modules/long-options (Makefile.am): Likewise.
101907         * modules/lstat (Makefile.am): Likewise.
101908         * modules/malloc (Makefile.am): Likewise.
101909         * modules/mathl (Makefile.am): Likewise.
101910         * modules/mbchar (Makefile.am): Likewise.
101911         * modules/md2 (Makefile.am): Likewise.
101912         * modules/md4 (Makefile.am): Likewise.
101913         * modules/md5 (Makefile.am): Likewise.
101914         * modules/memcasecmp (Makefile.am): Likewise.
101915         * modules/memchr (Makefile.am): Likewise.
101916         * modules/memcmp (Makefile.am): Likewise.
101917         * modules/memcoll (Makefile.am): Likewise.
101918         * modules/memcpy (Makefile.am): Likewise.
101919         * modules/memmem (Makefile.am): Likewise.
101920         * modules/memmove (Makefile.am): Likewise.
101921         * modules/mempcpy (Makefile.am): Likewise.
101922         * modules/memrchr (Makefile.am): Likewise.
101923         * modules/memset (Makefile.am): Likewise.
101924         * modules/memxor (Makefile.am): Likewise.
101925         * modules/mkancesdirs (Makefile.am): Likewise.
101926         * modules/mkdir-p (Makefile.am): Likewise.
101927         * modules/mkdir (Makefile.am): Likewise.
101928         * modules/mkdtemp (Makefile.am): Likewise.
101929         * modules/mkstemp (Makefile.am): Likewise.
101930         * modules/mktime (Makefile.am): Likewise.
101931         * modules/modechange (Makefile.am): Likewise.
101932         * modules/mountlist (Makefile.am): Likewise.
101933         * modules/nanosleep (Makefile.am): Likewise.
101934         * modules/obstack (Makefile.am): Likewise.
101935         * modules/openat (Makefile.am): Likewise.
101936         * modules/pagealign_alloc (Makefile.am): Likewise.
101937         * modules/pathmax (Makefile.am): Likewise.
101938         * modules/physmem (Makefile.am): Likewise.
101939         * modules/poll (Makefile.am): Likewise.
101940         * modules/posixtm (Makefile.am): Likewise.
101941         * modules/posixver (Makefile.am): Likewise.
101942         * modules/putenv (Makefile.am): Likewise.
101943         * modules/quote (Makefile.am): Likewise.
101944         * modules/quotearg (Makefile.am): Likewise.
101945         * modules/raise (Makefile.am): Likewise.
101946         * modules/read-file (Makefile.am): Likewise.
101947         * modules/readline (Makefile.am): Likewise.
101948         * modules/readlink (Makefile.am): Likewise.
101949         * modules/readtokens (Makefile.am): Likewise.
101950         * modules/readutmp (Makefile.am): Likewise.
101951         * modules/realloc (Makefile.am): Likewise.
101952         * modules/regex (Makefile.am): Likewise.
101953         * modules/rename-dest-slash (Makefile.am): Likewise.
101954         * modules/rename (Makefile.am): Likewise.
101955         * modules/rijndael (Makefile.am): Likewise.
101956         * modules/rmdir (Makefile.am): Likewise.
101957         * modules/rpmatch (Makefile.am): Likewise.
101958         * modules/safe-read (Makefile.am): Likewise.
101959         * modules/safe-write (Makefile.am): Likewise.
101960         * modules/same-inode (Makefile.am): Likewise.
101961         * modules/same (Makefile.am): Likewise.
101962         * modules/save-cwd (Makefile.am): Likewise.
101963         * modules/savedir (Makefile.am): Likewise.
101964         * modules/setenv (Makefile.am): Likewise.
101965         * modules/settime (Makefile.am): Likewise.
101966         * modules/sha1 (Makefile.am): Likewise.
101967         * modules/sig2str (Makefile.am): Likewise.
101968         * modules/snprintf (Makefile.am): Likewise.
101969         * modules/stat-macros (Makefile.am): Likewise.
101970         * modules/stat-time (Makefile.am): Likewise.
101971         * modules/stdbool (Makefile.am): Likewise.
101972         * modules/stdint (Makefile.am): Likewise.
101973         * modules/stdlib-safer (Makefile.am): Likewise.
101974         * modules/stpcpy (Makefile.am): Likewise.
101975         * modules/stpncpy (Makefile.am): Likewise.
101976         * modules/strcase (Makefile.am): Likewise.
101977         * modules/strcasestr (Makefile.am): Likewise.
101978         * modules/strchrnul (Makefile.am): Likewise.
101979         * modules/strcspn (Makefile.am): Likewise.
101980         * modules/strdup (Makefile.am): Likewise.
101981         * modules/strerror (Makefile.am): Likewise.
101982         * modules/strftime (Makefile.am): Likewise.
101983         * modules/strndup (Makefile.am): Likewise.
101984         * modules/strnlen (Makefile.am): Likewise.
101985         * modules/strpbrk (Makefile.am): Likewise.
101986         * modules/strsep (Makefile.am): Likewise.
101987         * modules/strstr (Makefile.am): Likewise.
101988         * modules/strtod (Makefile.am): Likewise.
101989         * modules/strtoimax (Makefile.am): Likewise.
101990         * modules/strtok_r (Makefile.am): Likewise.
101991         * modules/strtol (Makefile.am): Likewise.
101992         * modules/strtoll (Makefile.am): Likewise.
101993         * modules/strtoul (Makefile.am): Likewise.
101994         * modules/strtoull (Makefile.am): Likewise.
101995         * modules/strtoumax (Makefile.am): Likewise.
101996         * modules/strverscmp (Makefile.am): Likewise.
101997         * modules/sys_socket (Makefile.am): Likewise.
101998         * modules/sys_stat (Makefile.am): Likewise.
101999         * modules/sysexits (Makefile.am): Likewise.
102000         * modules/time_r (Makefile.am): Likewise.
102001         * modules/timegm (Makefile.am): Likewise.
102002         * modules/timespec (Makefile.am): Likewise.
102003         * modules/tmpfile-safer (Makefile.am): Likewise.
102004         * modules/trim (Makefile.am): Likewise.
102005         * modules/unistd-safer (Makefile.am): Likewise.
102006         * modules/unlinkdir (Makefile.am): Likewise.
102007         * modules/unlocked-io (Makefile.am): Likewise.
102008         * modules/userspec (Makefile.am): Likewise.
102009         * modules/utime (Makefile.am): Likewise.
102010         * modules/utimecmp (Makefile.am): Likewise.
102011         * modules/utimens (Makefile.am): Likewise.
102012         * modules/vasnprintf (Makefile.am): Likewise.
102013         * modules/vasprintf (Makefile.am): Likewise.
102014         * modules/vsnprintf (Makefile.am): Likewise.
102015         * modules/xalloc (Makefile.am): Likewise.
102016         * modules/xgetcwd (Makefile.am): Likewise.
102017         * modules/xnanosleep (Makefile.am): Likewise.
102018         * modules/xreadlink (Makefile.am): Likewise.
102019         * modules/xstrtod (Makefile.am): Likewise.
102020         * modules/xstrtol (Makefile.am): Likewise.
102021         * modules/xstrtold (Makefile.am): Likewise.
102022         * modules/yesno (Makefile.am): Likewise.
102023         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
102025 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
102027         * modules/error (Makefile.am): Distribute files through
102028         EXTRA_DIST, not lib_SOURCES.
102030 2006-10-12  Eric Blake  <ebb9@byu.net>
102032         * modules/error (Makefile.am): Distribute files in /lib.
102033         * modules/obstack (Makefile.am): Likewise.
102035 2006-10-12  Bruno Haible  <bruno@clisp.org>
102037         * modules/acl (Makefile.am): Distribute all files in lib/ through
102038         EXTRA_DIST.
102039         * modules/arcfour (Makefile.am): Likewise.
102040         * modules/arctwo (Makefile.am): Likewise.
102041         * modules/argmatch (Makefile.am): Likewise.
102042         * modules/argz (Makefile.am): Likewise.
102043         * modules/atexit (Makefile.am): Likewise.
102044         * modules/backupfile (Makefile.am): Likewise.
102045         * modules/c-strtod (Makefile.am): Likewise.
102046         * modules/c-strtold (Makefile.am): Likewise.
102047         * modules/calloc (Makefile.am): Likewise.
102048         * modules/canon-host (Makefile.am): Likewise.
102049         * modules/canonicalize (Makefile.am): Likewise.
102050         * modules/chdir-long (Makefile.am): Likewise.
102051         * modules/chdir-safer (Makefile.am): Likewise.
102052         * modules/check-version (Makefile.am): Likewise.
102053         * modules/chown (Makefile.am): Likewise.
102054         * modules/cloexec (Makefile.am): Likewise.
102055         * modules/close-stream (Makefile.am): Likewise.
102056         * modules/closeout (Makefile.am): Likewise.
102057         * modules/crc (Makefile.am): Likewise.
102058         * modules/cycle-check (Makefile.am): Likewise.
102059         * modules/des (Makefile.am): Likewise.
102060         * modules/dirfd (Makefile.am): Likewise.
102061         * modules/dirname (Makefile.am): Likewise.
102062         * modules/dup2 (Makefile.am): Likewise.
102063         * modules/euidaccess (Makefile.am): Likewise.
102064         * modules/exclude (Makefile.am): Likewise.
102065         * modules/exitfail (Makefile.am): Likewise.
102066         * modules/fcntl-safer (Makefile.am): Likewise.
102067         * modules/file-type (Makefile.am): Likewise.
102068         * modules/fileblocks (Makefile.am): Likewise.
102069         * modules/filemode (Makefile.am): Likewise.
102070         * modules/filenamecat (Makefile.am): Likewise.
102071         * modules/fnmatch (Makefile.am): Likewise.
102072         * modules/fopen-safer (Makefile.am): Likewise.
102073         * modules/fpending (Makefile.am): Likewise.
102074         * modules/fprintftime (Makefile.am): Likewise.
102075         * modules/free (Makefile.am): Likewise.
102076         * modules/fsusage (Makefile.am): Likewise.
102077         * modules/ftruncate (Makefile.am): Likewise.
102078         * modules/fts (Makefile.am): Likewise.
102079         * modules/gc (Makefile.am): Likewise.
102080         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
102081         * modules/getaddrinfo (Makefile.am): Likewise.
102082         * modules/getcwd (Makefile.am): Likewise.
102083         * modules/getdelim (Makefile.am): Likewise.
102084         * modules/getdomainname (Makefile.am): Likewise.
102085         * modules/getgroups (Makefile.am): Likewise.
102086         * modules/gethostname (Makefile.am): Likewise.
102087         * modules/gethrxtime (Makefile.am): Likewise.
102088         * modules/getline (Makefile.am): Likewise.
102089         * modules/getloadavg (Makefile.am): Likewise.
102090         * modules/getlogin_r (Makefile.am): Likewise.
102091         * modules/getopt (Makefile.am): Likewise.
102092         * modules/getpass (Makefile.am): Likewise.
102093         * modules/getpass-gnu (Makefile.am): Likewise.
102094         * modules/getsubopt (Makefile.am): Likewise.
102095         * modules/gettime (Makefile.am): Likewise.
102096         * modules/gettimeofday (Makefile.am): Likewise.
102097         * modules/getugroups (Makefile.am): Likewise.
102098         * modules/getusershell (Makefile.am): Likewise.
102099         * modules/glob (Makefile.am): Likewise.
102100         * modules/group-member (Makefile.am): Likewise.
102101         * modules/hard-locale (Makefile.am): Likewise.
102102         * modules/hash (Makefile.am): Likewise.
102103         * modules/hmac-md5 (Makefile.am): Likewise.
102104         * modules/hmac-sha1 (Makefile.am): Likewise.
102105         * modules/human (Makefile.am): Likewise.
102106         * modules/idcache (Makefile.am): Likewise.
102107         * modules/imaxabs (Makefile.am): Likewise.
102108         * modules/imaxdiv (Makefile.am): Likewise.
102109         * modules/inet_ntop (Makefile.am): Likewise.
102110         * modules/inet_pton (Makefile.am): Likewise.
102111         * modules/inttostr (Makefile.am): Likewise.
102112         * modules/isapipe (Makefile.am): Likewise.
102113         * modules/lchown (Makefile.am): Likewise.
102114         * modules/long-options (Makefile.am): Likewise.
102115         * modules/lstat (Makefile.am): Likewise.
102116         * modules/malloc (Makefile.am): Likewise.
102117         * modules/mathl (Makefile.am): Likewise.
102118         * modules/mbchar (Makefile.am): Likewise.
102119         * modules/md2 (Makefile.am): Likewise.
102120         * modules/md4 (Makefile.am): Likewise.
102121         * modules/md5 (Makefile.am): Likewise.
102122         * modules/memcasecmp (Makefile.am): Likewise.
102123         * modules/memchr (Makefile.am): Likewise.
102124         * modules/memcmp (Makefile.am): Likewise.
102125         * modules/memcoll (Makefile.am): Likewise.
102126         * modules/memcpy (Makefile.am): Likewise.
102127         * modules/memmem (Makefile.am): Likewise.
102128         * modules/memmove (Makefile.am): Likewise.
102129         * modules/mempcpy (Makefile.am): Likewise.
102130         * modules/memrchr (Makefile.am): Likewise.
102131         * modules/memset (Makefile.am): Likewise.
102132         * modules/memxor (Makefile.am): Likewise.
102133         * modules/mkancesdirs (Makefile.am): Likewise.
102134         * modules/mkdir (Makefile.am): Likewise.
102135         * modules/mkdir-p (Makefile.am): Likewise.
102136         * modules/mkdtemp (Makefile.am): Likewise.
102137         * modules/mkstemp (Makefile.am): Likewise.
102138         * modules/mktime (Makefile.am): Likewise.
102139         * modules/modechange (Makefile.am): Likewise.
102140         * modules/mountlist (Makefile.am): Likewise.
102141         * modules/nanosleep (Makefile.am): Likewise.
102142         * modules/openat (Makefile.am): Likewise.
102143         * modules/pagealign_alloc (Makefile.am): Likewise.
102144         * modules/physmem (Makefile.am): Likewise.
102145         * modules/poll (Makefile.am): Likewise.
102146         * modules/posixtm (Makefile.am): Likewise.
102147         * modules/posixver (Makefile.am): Likewise.
102148         * modules/putenv (Makefile.am): Likewise.
102149         * modules/quote (Makefile.am): Likewise.
102150         * modules/quotearg (Makefile.am): Likewise.
102151         * modules/raise (Makefile.am): Likewise.
102152         * modules/read-file (Makefile.am): Likewise.
102153         * modules/readline (Makefile.am): Likewise.
102154         * modules/readlink (Makefile.am): Likewise.
102155         * modules/readtokens (Makefile.am): Likewise.
102156         * modules/readutmp (Makefile.am): Likewise.
102157         * modules/realloc (Makefile.am): Likewise.
102158         * modules/regex (Makefile.am): Likewise.
102159         * modules/rename (Makefile.am): Likewise.
102160         * modules/rename-dest-slash (Makefile.am): Likewise.
102161         * modules/rijndael (Makefile.am): Likewise.
102162         * modules/rmdir (Makefile.am): Likewise.
102163         * modules/rpmatch (Makefile.am): Likewise.
102164         * modules/safe-read (Makefile.am): Likewise.
102165         * modules/safe-write (Makefile.am): Likewise.
102166         * modules/same (Makefile.am): Likewise.
102167         * modules/save-cwd (Makefile.am): Likewise.
102168         * modules/savedir (Makefile.am): Likewise.
102169         * modules/setenv (Makefile.am): Likewise.
102170         * modules/settime (Makefile.am): Likewise.
102171         * modules/sha1 (Makefile.am): Likewise.
102172         * modules/sig2str (Makefile.am): Likewise.
102173         * modules/snprintf (Makefile.am): Likewise.
102174         * modules/stdlib-safer (Makefile.am): Likewise.
102175         * modules/stpcpy (Makefile.am): Likewise.
102176         * modules/stpncpy (Makefile.am): Likewise.
102177         * modules/strcase (Makefile.am): Likewise.
102178         * modules/strcasestr (Makefile.am): Likewise.
102179         * modules/strchrnul (Makefile.am): Likewise.
102180         * modules/strcspn (Makefile.am): Likewise.
102181         * modules/strdup (Makefile.am): Likewise.
102182         * modules/strerror (Makefile.am): Likewise.
102183         * modules/strftime (Makefile.am): Likewise.
102184         * modules/strndup (Makefile.am): Likewise.
102185         * modules/strnlen (Makefile.am): Likewise.
102186         * modules/strpbrk (Makefile.am): Likewise.
102187         * modules/strsep (Makefile.am): Likewise.
102188         * modules/strstr (Makefile.am): Likewise.
102189         * modules/strtod (Makefile.am): Likewise.
102190         * modules/strtoimax (Makefile.am): Likewise.
102191         * modules/strtok_r (Makefile.am): Likewise.
102192         * modules/strtol (Makefile.am): Likewise.
102193         * modules/strtoll (Makefile.am): Likewise.
102194         * modules/strtoul (Makefile.am): Likewise.
102195         * modules/strtoull (Makefile.am): Likewise.
102196         * modules/strtoumax (Makefile.am): Likewise.
102197         * modules/strverscmp (Makefile.am): Likewise.
102198         * modules/time_r (Makefile.am): Likewise.
102199         * modules/timegm (Makefile.am): Likewise.
102200         * modules/tmpfile-safer (Makefile.am): Likewise.
102201         * modules/unistd-safer (Makefile.am): Likewise.
102202         * modules/unlinkdir (Makefile.am): Likewise.
102203         * modules/userspec (Makefile.am): Likewise.
102204         * modules/utime (Makefile.am): Likewise.
102205         * modules/utimecmp (Makefile.am): Likewise.
102206         * modules/utimens (Makefile.am): Likewise.
102207         * modules/vasnprintf (Makefile.am): Likewise.
102208         * modules/vasprintf (Makefile.am): Likewise.
102209         * modules/vsnprintf (Makefile.am): Likewise.
102210         * modules/xalloc (Makefile.am): Likewise.
102211         * modules/xgetcwd (Makefile.am): Likewise.
102212         * modules/xnanosleep (Makefile.am): Likewise.
102213         * modules/xreadlink (Makefile.am): Likewise.
102214         * modules/xstrtod (Makefile.am): Likewise.
102215         * modules/xstrtol (Makefile.am): Likewise.
102216         * modules/xstrtold (Makefile.am): Likewise.
102217         * modules/yesno (Makefile.am): Likewise.
102219 2006-10-12  Jim Meyering  <jim@meyering.net>
102221         * m4/getloadavg.m4: Revert the change below.
102223         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
102224         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
102225         fail with a symlink, which is what coreutils' ./bootstrap now
102226         creates by default.
102228 2006-10-12  Bruno Haible  <bruno@clisp.org>
102230         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
102231         mingw.
102232         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
102233         MSVC and mingw explicitly.
102235 2006-10-11  Simon Josefsson  <jas@extundo.com>
102236             Bruno Haible  <bruno@clisp.org>
102238         Add support for multiple gnulib-tool invocations in the scope of a
102239         single configure.ac file.
102240         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
102241         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
102242         with the same contents as the _LIBADD variable.
102243         (func_emit_initmacro_start, func_emit_initmacro_end,
102244         func_emit_initmacro_done): New functions.
102245         (func_import, func_create_testdir): Invoke them. Allow the identifiers
102246         gl_LIBOBJS and gl_LTLIBOBJS.
102248 2006-10-11  Bruno Haible  <bruno@clisp.org>
102250         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
102251         (func_create_testdir): Don't create po/Makefile.am, don't invoke
102252         autoreconf. Instead, invoke autopoint explicitly but move back the
102253         *.m4 files from gnulib.
102255 2006-10-11  Bruno Haible  <bruno@clisp.org>
102257         * gnulib-tool (func_usage): Make module names after --create-testdir
102258         optional.
102259         (func_create_testdir): If no module was specified, use nearly all
102260         modules.
102262 2006-10-12  Jim Meyering  <jim@meyering.net>
102264         Big performance improvement for fts-based tools that use FTS_NOSTAT.
102265         Avoid spurious inode-mismatch problems on non-POSIX file systems.
102266         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
102267         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
102268         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
102269         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
102270         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
102271         (fts_set_stat_required): New function.
102272         (fts_open): Defer the calls to fts_stat, if possible or requested.
102273         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
102274         into fts_stat itself.
102275         (fts_read): Perform any required (deferred) fts_stat call.
102276         (fts_build): Likewise, for the directory we're about to open and read.
102277         In the readdir loop, carefully decide whether each entry will require
102278         an eventual call to fts_stat, using dirent.d_type info if available.
102279         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
102280         a command line argument into this function.  Update all callers.
102281         Map a return value of FTS_DOT to FTS_D for a command line argument.
102282         * modules/fts (Depends-on): Add d-type.  Alphabetize.
102283         Thanks to Miklos Szeredi for his tenacity and for the initial
102284         bug report about "find" failing on a FUSE-based file system.
102286         * lib/fts.c (fts_open): Use consistent indentation.
102288 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
102290         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
102291         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
102292         reported by Jim Meyering.  All uses of cache variables renamed
102293         to match Autoconf's.
102294         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
102295         the other one.
102297         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
102298         Fix misspelling in diagnostic.
102300 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
102302         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
102303         defined.  Problem reported by Matthew Woehlke.
102305         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
102306         Add support for Tandem NonStop R series.
102307         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
102308         Use new macro.
102310         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
102311         (has_trailing_slash): Omit size arg; all callers changed.
102312         Omit 'inline', since it doesn't help performance and we'd
102313         need to configure it.
102314         Don't count //, ///, etc. as having a trailing slash.
102315         As a side effect, this removes a C99ism reported by Matthew Woehlke.
102316         (rpl_rename_dest_slash): On failure, use rename's errno rather
102317         than (in some cases) an incorrect or junk errno.
102318         Simplify code by removing need to compute length; this does
102319         cause it to make two passes instead of one over the file name,
102320         but it's worth it.
102322         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
102323         change, since Autoconf's version may no longer be appropriate now
102324         that we are using CVS Autoconf's version.  Add support for Tandem.
102326 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
102327             Bruno Haible  <bruno@clisp.org>
102329         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
102330         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
102331         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
102332         gl_AC_TYPE_LONG_LONG.
102334         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
102335         instead of HAVE_LONG_LONG.
102336         * lib/printf-args.c (printf_fetchargs): Likewise.
102337         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
102338         * lib/vasnprintf.c (VASNPRINTF): Likewise.
102339         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
102340         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
102341         gl_AC_TYPE_LONG_LONG.
102343 2006-10-11  Bruno Haible  <bruno@clisp.org>
102345         * m4/longlong.m4: Add comments.
102346         * m4/ulonglong.m4: Likewise.
102348 2006-10-10  Bruno Haible  <bruno@clisp.org>
102350         Make it possible to #define stpcpy, strdup to aliases.
102351         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
102352         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
102354 2006-10-10  Bruno Haible  <bruno@clisp.org>
102356         Make it possible to #define gcd to an alias.
102357         * lib/gcd.c: Include config.h.
102359 2006-10-10  Bruno Haible  <bruno@clisp.org>
102361         Make it possible to #define c_isascii to an alias.
102362         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
102363         defined. Undefine the macros before defining them, to avoid gcc
102364         warnings.
102365         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
102366         define NO_C_CTYPE_MACROS early.
102368 2006-10-10  Bruno Haible  <bruno@clisp.org>
102370         Make it possible to #define set_program_name to an alias.
102371         * lib/progname.c: Don't undefine set_program_name; instead, undefine
102372         ENABLE_RELOCATABLE early.
102374 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
102376         Port to Tandem NSK OSS, which has 64-bit signed int but at most
102377         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
102378         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
102379         More generally, don't assume that 64-bit signed int is available
102380         if unsigned int is, and vice versa.
102381         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
102382         unsigned symbols, not on their signed counterparts.
102383         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
102384         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
102385         (UINT64_C, UINTMAX_C):
102386         Likewise.
102387         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
102388         unsigned counterparts.
102389         (Have_long_long, Unsigned): New macros.
102390         (Int): Renamed from INT.
102391         (strtoimax): Use the new macros.
102392         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
102393         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
102394         * modules/inttypes (inttypes.h): Substitute
102395         HAVE_UNSIGNED_LONG_LONG_INT.
102396         * modules/stdint (stdint.h): Likewise.
102397         (Files): Add m4/ulonglong.m4.
102399 2006-10-10  Bruno Haible  <bruno@clisp.org>
102401         Fix a gcc -Wshadow warning.
102402         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
102403         to 'bucket'.
102404         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
102405         gl_linked_indexof_from_to): Likewise.
102406         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
102407         Likewise.
102408         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
102409         Likewise.
102410         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
102411         Reported by Eric Blake.
102413 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
102415         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
102416         for NetBSD.  Problem reported by Bruno Haible.
102418 2006-10-09  Jim Meyering  <jim@meyering.net>
102420         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
102421         Patch from Bruno Haible.
102423 2006-10-09  Jim Meyering  <jim@meyering.net>
102425         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
102426         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
102427         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
102429 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
102431         Don't include <config.h> twice; this doesn't work in some cases,
102432         e.g., when config.h has "#define intmax_t long long int" and
102433         we include <config.h>, <inttypes.h>, <config.h> in that order.
102434         Problem reported by Matthew Woehlke in:
102435         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
102436         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
102437         * lib/fts-cycle.c: Don't include config.h.
102438         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
102439         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
102440         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
102441         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
102442         inttypes.h.
102443         * lib/xstrtoumax.c: Likewise.
102444         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
102445         __strtol and the like, so that this module is more like its siblings.
102446         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
102447         Remove; no longer needed now that we assume gnulib inttypes.h.
102449 2006-10-08  Bruno Haible  <bruno@clisp.org>
102451         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
102452         option.
102454 2006-10-07  Jim Meyering  <jim@meyering.net>
102456         * modules/inttypes (inttypes.h): Revert what seems to have been
102457         an inadvertent part of today's change: use "|", not "/" in the
102458         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
102460 2006-10-07  Bruno Haible  <bruno@clisp.org>
102462         * modules/sublist: New file.
102464 2006-10-07  Bruno Haible  <bruno@clisp.org>
102466         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
102467         * modules/argz (argz.h): Likewise.
102468         * modules/arpa_inet (arpa/inet.h): Likewise.
102469         * modules/byteswap (byteswap.h): Likewise.
102470         * modules/configmake (configmake.h): Likewise.
102471         * modules/fcntl (fcntl.h): Likewise.
102472         * modules/fnmatch (fnmatch.h): Likewise.
102473         * modules/getopt (getopt.h): Likewise.
102474         * modules/glob (glob.h): Likewise.
102475         * modules/inttypes (inttypes.h): Likewise.
102476         * modules/netinet_in (netinet/in.h): Likewise.
102477         * modules/poll (poll.h): Likewise.
102478         * modules/stdbool (stdbool.h): Likewise.
102479         * modules/stdint (stdint.h): Likewise.
102480         * modules/sys_select (sys/select.h): Likewise.
102481         * modules/sys_socket (sys/socket.h): Likewise.
102482         * modules/sys_stat (sys/stat.h): Likewise.
102483         * modules/sysexits (sysexits.h): Likewise.
102484         * modules/unistd (unistd.h): Likewise.
102485         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102486         Add a "DO NOT EDIT" comment to the generated file.
102487         (func_import): Likewise for gnulib-comp.m4.
102489 2006-10-07  Bruno Haible  <bruno@clisp.org>
102491         * lib/gl_sublist.h: New file.
102492         * lib/gl_sublist.c: New file.
102494 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
102496         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
102497         name (relative to the original working directory) and the file
102498         name component (relative to the temporary working directory).  All
102499         callers changed.
102500         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
102501         * lib/mkdir-p.c (make_dir_parents): Likewise.
102502         * lib/mkdir-p.h (make_dir_parents): Likewise.
102504 2006-10-06  Eric Blake  <ebb9@byu.net>
102506         Define several macros for use by the clean-temp module.
102507         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
102508         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
102509         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
102511         * lib/clean-temp.h (close_stream_temp): New declaration.
102512         * lib/clean-temp.c (includes): Pull in headers according to what
102513         other modules are in use.
102514         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
102516 2006-10-06  Bruno Haible  <bruno@clisp.org>
102518         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
102519         instead of fopen, fwriteerror.
102521 2006-10-06  Bruno Haible  <bruno@clisp.org>
102523         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
102524         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
102525         int.
102526         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
102527         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
102528         Return an error indicator.
102529         Suggested by Eric Blake.
102531 2006-10-06  Bruno Haible  <bruno@clisp.org>
102533         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
102534         Reported by Eric Blake.
102536 2006-10-06  Bruno Haible  <bruno@clisp.org>
102538         * modules/closeout (Description): Mention stderr too.
102540 2006-10-06  Bruno Haible  <bruno@clisp.org>
102541         and Paul Eggert  <eggert@cs.ucla.edu>
102543         * lib/closeout.c (close_stdout): Also close stderr.
102544         * lib/closeout.h: Update comment.
102546 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
102548         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
102549         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
102550         * lib/dirchownmod.c: Include lchown.h.
102551         * lib/lchown.c: Don't include files that lchown.h now includes.
102552         Don't declare chown, since lchown.h now does that.
102553         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
102554         (lchown): Define to rpl_chown if lchown is declared but
102555         does not exist.  Declare using a prototype if lchown is not
102556         declared.  Add a copyright notice.
102557         * lib/mkstemp.h: Include <unistd.h>.
102558         * lib/openat.c: Include lchown.h.
102560         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
102561         we now test for that separately.
102562         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
102563         rather than O_NOFOLLOW, when testing whether it's possible to
102564         avoid a race condition reliably.
102565         * lib/savewd.c (savewd_chdir): Likewise.
102567         Remove macros that are no longer needed now that stdint.h is
102568         reliable.
102569         * lib/fsusage.c (UINTMAX_MAX): Remove.
102570         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
102571         * lib/utimecmp.c (SIZE_MAX): Remove.
102573         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
102575         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
102576         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
102577         O_NOATIME works.
102579 2006-10-05  Bruno Haible  <bruno@clisp.org>
102581         * lib/gl_list.h (gl_sortedlist_search_from_to,
102582         gl_sortedlist_indexof_from_to): New declarations.
102583         (gl_list_implementation): New fields sortedlist_search_from_to,
102584         sortedlist_indexof_from_to.
102585         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
102586         inline functions.
102587         * lib/gl_list.c (gl_sortedlist_search_from_to,
102588         gl_sortedlist_indexof_from_to): New functions.
102589         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
102590         function.
102591         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
102592         (gl_array_sortedlist_search_from_to): New function.
102593         (gl_array_list_implementation): Update.
102594         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
102595         function.
102596         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
102597         (gl_carray_sortedlist_search_from_to): New function.
102598         (gl_carray_list_implementation): Update.
102599         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
102600         gl_linked_sortedlist_indexof_from_to): New functions.
102601         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
102602         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
102603         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
102604         gl_tree_sortedlist_indexof_from_to): New functions.
102605         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
102606         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
102607         Update.
102608         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
102609         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
102610         Update.
102612 2006-10-05  Bruno Haible  <bruno@clisp.org>
102614         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
102615         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
102616         (struct gl_list_implementation): Add fields search_from_to,
102617         indexof_from_to. Remove fields search, indexof.
102618         (gl_list_search): Use the search_from_to method.
102619         (gl_list_search_from, gl_list_search_from_to): New functions.
102620         (gl_list_indexof): Use the indexof_from_to method.
102621         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
102622         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
102623         (gl_list_search_from, gl_list_search_from_to): New functions.
102624         (gl_list_indexof): Use the indexof_from_to method.
102625         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
102626         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
102627         gl_array_indexof. Add start_index, end_index arguments.
102628         (gl_array_search_from_to): Renamed from gl_array_search. Add
102629         start_index, end_index arguments.
102630         (gl_array_remove, gl_array_list_implementation): Update.
102631         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
102632         gl_carray_indexof. Add start_index, end_index arguments.
102633         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
102634         start_index, end_index arguments.
102635         (gl_carray_remove, gl_carray_list_implementation): Update.
102636         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
102637         gl_linked_search. Add start_index, end_index arguments.
102638         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
102639         start_index, end_index arguments.
102640         (gl_linked_remove): Update.
102641         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
102642         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
102643         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
102644         field to 'size_t'.
102645         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
102646         gl_tree_search. Add start_index, end_index arguments.
102647         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
102648         start_index, end_index arguments.
102649         (gl_tree_remove): Update.
102650         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
102651         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
102652         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
102653         function.
102654         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
102655         gl_tree_search. Add start_index, end_index arguments.
102656         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
102657         start_index, end_index arguments.
102658         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
102659         Update.
102660         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
102662 2006-10-05  Bruno Haible  <bruno@clisp.org>
102664         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
102666         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
102667         fwriteerror_temp): New declarations.
102668         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
102669         (descriptors): New variable.
102670         (cleanup): First, close the descriptors.
102671         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
102672         fclose_temp, fwriteerror_temp): New functions.
102674 2006-10-04  Jim Meyering  <jim@meyering.net>
102676         * lib/fts.c (fts_open): Tiny comment change.
102678 2006-10-04  Bruno Haible  <bruno@clisp.org>
102680         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
102681         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
102682         gl_LOCK_BODY.
102683         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
102684         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
102685         gl_LOCK_EARLY_BODY.
102686         (gl_LOCK): Require gl_LOCK_BODY.
102688 2006-10-04  Bruno Haible  <bruno@clisp.org>
102690         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
102691         (gl_oset_search_atleast): New declaration.
102692         (struct gl_oset_implementation): Add field 'search_atleast'.
102693         (gl_oset_search_atleast): New inline function.
102694         * lib/gl_oset.c (gl_oset_search_atleast): New function.
102695         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
102696         (gl_array_oset_implementation): Update.
102697         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
102698         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
102699         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
102701 2006-10-04  Bruno Haible  <bruno@clisp.org>
102703         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
102705 2006-10-03  Bruno Haible  <bruno@clisp.org>
102707         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
102708         from gl_avltreehash_list_implementation.
102710 2006-10-03  Bruno Haible  <bruno@clisp.org>
102712         * lib/gl_oset.c (gl_oset_add): Fix return type.
102714 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
102716         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
102718 2006-10-02  Eric Blake  <ebb9@byu.net>
102720         * modules/strnlen (Depends-on): Add extensions.
102722 2006-10-02  Eric Blake  <ebb9@byu.net>
102724         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
102725         definition in 2.60+.
102727 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
102729         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
102730         checks.
102732 2006-10-02  Bruno Haible  <bruno@clisp.org>
102734         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
102735         to the AUTOMAKE_OPTIONS.
102736         Reported by Jim Meyering.
102738 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
102740         Work around bug in Solaris 10 /proc file system:
102741         /proc/self/fd/NNN/.. isn't the parent directory of
102742         the directory whose file descriptor is NNN.  This needs to
102743         be worked around at run time, not compile time, since a
102744         program might be built on Solaris 8, where things work, and
102745         run on Solaris 10.
102746         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
102747         to use the following interface instead:
102748         (OPENAT_BUFFER_SIZE): New macro.
102749         (openat_proc_name): New function.
102750         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
102751         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
102752         Likewise.
102753         * lib/openat-proc.c: New file.
102754         * modules/openat (Files): Add lib/openat-proc.c.
102755         (Depends-on): Add same-inode, stdbool.
102756         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
102758 2006-09-29  Bruno Haible  <bruno@clisp.org>
102760         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
102761         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
102762         argument. Set stdout_closed before testing for ferror, not after.
102763         (fwriteerror, fwriteerror_no_ebadf): New functions.
102765 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102767         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
102769 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
102771         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
102772         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
102774 2006-09-28  Jim Meyering  <jim@meyering.net>
102776         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
102777         Include <unistd.h>.
102779 2006-09-28  Bruno Haible  <bruno@clisp.org>
102781         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
102782         * modules/linkedhash-list (Depends-on): Likewise.
102783         * modules/rbtreehash-list (Depends-on): Likewise.
102785 2006-09-28  Bruno Haible  <bruno@clisp.org>
102787         * lib/strndup.h: Simplify the redefinition of strndup.
102788         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
102789         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
102791 2006-09-28  Bruno Haible  <bruno@clisp.org>
102793         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
102794         * lib/gl_linkedhash_list.c: Likewise.
102795         * lib/gl_rbtreehash_list.c: Likewise.
102797 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
102799         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
102800         getaddrinfo.
102802         * lib/__fpending.h: Don't include <stdio_ext.h> unless
102803         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
102804         it causes <stdio_ext.h> to cause a compile-time error.
102805         Problem reported by Nelson H. F. Beebe.
102806         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
102807         of HAVE_DECL___PENDING.
102809         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
102810         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
102811         declaration.
102813 2006-09-27  Jim Meyering  <jim@meyering.net>
102815         This file could end up with a definition for a function
102816         named __strndup, rather than rpl_strndup on a system with
102817         incomplete weak_alias support.
102818         * lib/strndup.c (strndup): Rename from __strndup.
102819         Remove #defines that used to map __strndup to strndup.
102820         Don't use K&R prototypes.
102821         Remove LIBC-related code, since this file is not sync'd with glibc.
102822         * lib/strndup.h: Revamp, accordingly.
102823         * m4/strndup.m4: Modernize.
102825 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
102827         * modules/savewd (Depends-on): Add 'raise'.
102828         * lib/savewd.c: Include <signal.h>, for 'raise'.
102830 2006-09-26  Jim Meyering  <jim@meyering.net>
102832         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
102833         when we detect Darwin 8.7.0's acl_get_file bug.
102834         Rearrange to perform the new (below) run-test while $LIBS
102835         contains any acl-related library.  Set USE_ACL at the end.
102836         (gl_ACL_GET_FILE): New function.
102838 2006-09-26  Eric Blake  <ebb9@byu.net>
102840         * lib/verror.c: Include <config.h> unconditionally.
102842 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
102844         * modules/clock-time (Maintainer): Add self.
102845         * modules/getlogin_r (Depends-on): Add extensions.
102847 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102849         * modules/clock-time: New module.
102850         * modules/nanosleep (Depends-on): Add clock-time.
102851         * modules/gethrxtime (Depends-on): Likewise.
102852         * modules/gettime (Depends-on): Likewise.
102853         * modules/settime (Depends-on): Likewise.
102855         * modules/fts-lgpl: Depend on openat.
102856         * modules/mkancesdirs: Depend on savewd.
102857         * modules/mkdir-p: Likewise.
102859 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102861         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
102863         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
102864         `gl_have_arbitrary_file_name_length_limit' to
102865         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
102866         actually works between configure runs.
102868 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102869             Bruno Haible  <bruno@clisp.org>
102871         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
102873 2006-09-25  Jim Meyering  <jim@meyering.net>
102875         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
102876         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
102878 2006-09-25  Eric Blake  <ebb9@byu.net>
102880         * gnulib-tool (func_import, func_create_testdir): Fix typos in
102881         exec's in 2006-09-18 patch when shuffling fds.
102883 2006-09-25  Bruno Haible  <bruno@clisp.org>
102885         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
102886         Reported by Jim Meyering.
102888 2006-09-24  Jim Meyering  <jim@meyering.net>
102890         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
102891         compare a pointer against a literal "0".  That caused failures with
102892         at least HP-UX's hpcc.
102894 2006-09-22  Simon Josefsson  <jas@extundo.com>
102896         * modules/gc-sha1:
102897         * modules/gc-md4:
102898         * modules/gc-hmac-sha1:
102899         * modules/gc-hmac-md5:
102900         * modules/gc-des:
102901         * modules/gc-arcfour: Distribute more files.
102903 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102905         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
102906         (gl_linked_iterator_from_to): Initialize struct completely.
102907         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
102908         (gl_tree_iterator_from_to): Likewise
102909         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
102910         * lib/gl_array_list.c [lint] (gl_array_iterator)
102911         (gl_array_iterator_from_to): Likewise.
102912         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
102913         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
102914         (gl_carray_iterator_from_to): Likewise.
102916         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
102917         * lib/md4.c (md4_process_block): Remove unused variable.
102918         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
102919         parentheses for clarity.
102921 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102923         * modules/bison-i18n (Depends-on): Add gettext.
102925 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102927         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
102928         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
102929         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
102930         also add missing comma that caused broken test.
102931         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
102932         stdlib.h, for `abort'.
102933         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
102934         variables.
102935         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
102936         include unistd.h if present, for `rmdir'.
102937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
102938         variables.
102939         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
102940         in the process include standard headers for prototypes.
102941         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
102942         gets declared on GNU/Linux.
102943         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
102944         unistd.h, for `rmdir'.
102945         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
102947         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
102948         always true.
102949         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
102951         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
102953 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102955         * gnulib-tool (func_version): Create output all at once.  This
102956         may help avoid triggering unnecessary SIGPIPEs, and at any
102957         rate it doesn't hurt.
102959 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102960             Bruno Haible  <bruno@clisp.org>
102962         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
102963         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
102964         * m4/signed.m4 (bh_C_SIGNED): Likewise.
102966         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
102967         (gl_FUNC_VASPRINTF): Invoke it.
102969 2006-09-22  Bruno Haible  <bruno@clisp.org>
102971         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
102972         getloadavg.c as first argument.
102974 2006-09-22  Bruno Haible  <bruno@clisp.org>
102976         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
102977         at the beginning of the gl_INIT macro.
102978         * modules/getloadavg (configure.ac): Pass $gl_source_base to
102979         gl_GETLOADAVG.
102981 2006-09-22  Bruno Haible  <bruno@clisp.org>
102983         * gnulib-tool (func_create_megatestdir): Don't include the config-h
102984         module.
102985         Suggested by Ralf Wildenhues.
102987 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
102989         Import this patch from libc:
102991         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
102993         * lib/regex_internal.c (re_string_reconstruct): Handle
102994         offset < pstr->valid_raw_len && pstr->offsets_needed case.
102995         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
102996         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
102997         re_string_context_at.
102999         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
103000         now requires it.
103001         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
103002         gl_REGEX now does it for us.
103003         (gl_REGEX): Add test taken from
103004         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
103006         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
103007         Check that large offsets work.  Modernize Autoconf usages.
103008         Prefer "yes" to mean a good thing rather than a bad.
103009         Don't put "#define mkstemp" in config.h, as this might interfere
103010         with standard system headers that "#define mkstemp mkstemp64".
103012         * modules/mkstemp (Depends-on): Add extensions, so that
103013         mkstemp is visible on some platforms.
103014         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
103015         (Include): Change to "mkstemp.h" from <stdlib.h>.
103016         (Files): Add mkstemp.h.
103018         * lib/mkstemp.h: New file, since some standard headers
103019         #define mkstemp.
103020         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
103021         Include "mkstemp.h".
103022         Make the _LIBC code resemble glibc original more,
103023         e.g., use K&R style.
103024         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
103025         (mkstemp): Remove, since mkstemp.h does this for us.
103026         * lib/stdlib--.h: Include mkstemp.h.
103028         Import this patch from libc:
103030         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
103032         * lib/tempname.c (__gen_tempname): Change attempts_min
103033         into a macro.  Use preprocessor to decide how to initialize
103034         attempts [Coverity CID 67].
103036 2006-09-20  Bruno Haible  <bruno@clisp.org>
103038         * lib/mkdtemp.c: Import from libc.
103039         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
103040                 * sysdeps/posix/tempname.c (__gen_tempname): Change
103041                 attempts_min into a macro.  Use preprocessor to decide how to
103042                 initialize attempts [Coverity CID 67].
103043         2001-11-27  Paul Eggert  <eggert@twinsun.com>
103044                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
103045                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
103047 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103049         * gnulib-tool (func_exit): New function, to allow to pass the
103050         exit status portably through the trap.  Use everywhere.
103051         (--help, --version): Signal a write error.
103052         (trap): catch SIGPIPE, for write errors.
103053         Exit at the end of the trap, with the correct exit status.
103055 2006-09-19  Karl Berry  <karl@gnu.org>
103057         * doc/gnulib.texi: note about the license texinfo files.
103059 2006-09-19  Eric Blake  <ebb9@byu.net>
103061         * gnulib-tool: Avoid space-tab.
103063 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
103065         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
103066         that prevented coreutils 6.1 from building.  Problem reported
103067         by Petter Reinholdtsen.
103069 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
103071         * gnulib-tool (avoidlist): Fix typo that broke options like
103072         --avoid=lock that are used by coreutils bootstrap.
103074 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
103076         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
103077         more systematically.
103079 2006-09-18  Jim Meyering  <jim@meyering.net>
103081         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
103083 2006-09-18  Bruno Haible  <bruno@clisp.org>
103085         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
103087 2006-09-18  Bruno Haible  <bruno@clisp.org>
103089         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
103090         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
103091         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
103092         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
103093         * m4/gettext.m4: Require autoconf >= 2.52.
103094         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
103095         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
103096         of gl_cv_header_inttypes_h.
103098 2006-09-18  Bruno Haible  <bruno@clisp.org>
103100         * lib/javaversion.c: Include configmake.h.
103102 2006-09-18  Bruno Haible  <bruno@clisp.org>
103104         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
103105         avoid that the while loops be executed in a subshell.
103107 2006-09-18  Bruno Haible  <bruno@clisp.org>
103109         * MODULES.html.sh (func_module): Break long lines.
103110         Suggested by Bruce Korb <bkorb@gnu.org>.
103112 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103114         Speed up by a factor of 1.12.
103115         * gnulib-tool (nl): New variable.
103116         (func_import): Rewrite include directive extraction to only read each
103117         directive once.
103119 2006-09-17  Bruno Haible  <bruno@clisp.org>
103121         * modules/javaversion (Makefile.am): Remove DEFS setting.
103122         (Depends-on): Add configmake, for PKGDATADIR definition.
103124 2006-09-17  Bruno Haible  <bruno@clisp.org>
103126         * gnulib-tool (func_create_testdir): Rewrite all files at once.
103128 2006-09-17  Bruno Haible  <bruno@clisp.org>
103130         * gnulib-tool (func_append): New function, stolen from libtool.m4.
103131         (func_modules_transitive_closure, func_modules_add_dummy,
103132         func_modules_to_filelist, func_import, func_create_testdir,
103133         func_create_megatestdir, ...): Use it wherever possible.
103134         Suggested by Ralf Wildenhues.
103136 2006-09-16  Karl Berry  <karl@gnu.org>
103138         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
103139         to avoid sectioning errors.
103140         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
103141         [ifinfo]: blank line after @center-ed titles.
103142         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
103143         Spell FSF address consistently with others.
103144         (These changes approved by rms.)
103146 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103148         Speed up by a factor of 1.61.
103149         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
103150         already checked module names again.
103152 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103154         Speed up by a factor of 1.13.
103155         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
103156         for new_files, and the input to func_add_or_update.
103158 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103160         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
103161         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
103163 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103165         * modules/mkancesdirs (Depends-on): Add fcntl.
103166         * modules/savewd: New file.
103167         * MODULES.html.sh (File system functions): Add savewd.
103169         * modules/configmake (Makefile.am): Add support for the
103170         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
103172 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103174         * m4/savewd.m4: New file.
103176 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
103178         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
103179         (dirchownmod): New arg FD.  All callers changed.
103180         Use FD rather than opening the directory ourself, as opening is
103181         now the caller's responsibility.
103182         * lib/dirchownmod.h: Likewise.
103183         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
103184         hosts that require <sys/types.h> before <sys/stat.h>.  Include
103185         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
103186         (test_dir): Remove.
103187         (mkancesdirs): Return length of prefix of FILE that has already
103188         been made, or -2 if there is a child doing the work.  Redo
103189         algorithm so that it is O(N) rather than O(N**2).  Optimize away
103190         ".", and treat ".." specially since it might stray back into
103191         already-created areas.  Use a subprocess if necessary.  New arg
103192         WD; all users changed.  MAKE_DIR function should now return 1
103193         if it creates a directory that is not readable.  Return -2 if
103194         a child process is spun off.
103195         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
103196         Adjust signature to match code.
103197         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
103198         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
103199         all users changed.
103200         * lib/savewd.c, lib/savewd.h: New files.
103202 2006-09-15  Jim Meyering  <jim@meyering.net>
103204         * modules/rename-dest-slash: New module.
103205         * MODULES.html.sh (posix_compat): Add it here.
103207         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
103209 2006-09-15  Jim Meyering  <jim@meyering.net>
103211         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
103212         file.
103214         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
103216 2006-09-15  Jim Meyering  <jim@meyering.net>
103218         * lib/rename-dest-slash.c (has_trailing_slash): Use
103219         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
103220         (rpl_rename_dest_slash): Perform the cheaper trailing slash
103221         test before testing whether SRC is a directory.
103222         Suggestions from Bruno Haible.
103224         Avoid a warning about an unused variable.
103225         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
103226         into the #ifdef block where it's used.
103228         * lib/rename-dest-slash.c: New file.
103230 2006-09-14  Bruno Haible  <bruno@clisp.org>
103232         * lib/allocsa.c: Include <config.h> unconditionally.
103233         * lib/asnprintf.c: Likewise.
103234         * lib/asprintf.c: Likewise.
103235         * lib/c-strcasecmp.c: Likewise.
103236         * lib/c-strcasestr.c: Likewise.
103237         * lib/c-strncasecmp.c: Likewise.
103238         * lib/c-strstr.c: Likewise.
103239         * lib/classpath.c: Likewise.
103240         * lib/clean-temp.c: Likewise.
103241         * lib/concatpath.c: Likewise.
103242         * lib/copy-file.c: Likewise.
103243         * lib/csharpcomp.c: Likewise.
103244         * lib/csharpexec.c: Likewise.
103245         * lib/execute.c: Likewise.
103246         * lib/fatal-signal.c: Likewise.
103247         * lib/findprog.c: Likewise.
103248         * lib/fwriteerror.c: Likewise.
103249         * lib/gl_array_list.c: Likewise.
103250         * lib/gl_array_oset.c: Likewise.
103251         * lib/gl_avltree_list.c: Likewise.
103252         * lib/gl_avltree_oset.c: Likewise.
103253         * lib/gl_avltreehash_list.c: Likewise.
103254         * lib/gl_carray_list.c: Likewise.
103255         * lib/gl_linked_list.c: Likewise.
103256         * lib/gl_linkedhash_list.c: Likewise.
103257         * lib/gl_list.c: Likewise.
103258         * lib/gl_oset.c: Likewise.
103259         * lib/gl_rbtree_list.c: Likewise.
103260         * lib/gl_rbtree_oset.c: Likewise.
103261         * lib/gl_rbtreehash_list.c: Likewise.
103262         * lib/imaxabs.c: Likewise.
103263         * lib/imaxdiv.c: Likewise.
103264         * lib/javacomp.c: Likewise.
103265         * lib/javaexec.c: Likewise.
103266         * lib/javaversion.c: Likewise.
103267         * lib/linebreak.c: Likewise.
103268         * lib/localcharset.c: Likewise.
103269         * lib/lock.c: Likewise.
103270         * lib/mbchar.c: Likewise.
103271         * lib/mbswidth.c: Likewise.
103272         * lib/mkdtemp.c: Likewise.
103273         * lib/pipe.c: Likewise.
103274         * lib/printf-args.c: Likewise.
103275         * lib/printf-parse.c: Likewise.
103276         * lib/progname.c: Likewise.
103277         * lib/progreloc.c: Likewise.
103278         * lib/readlink.c: Likewise.
103279         * lib/sh-quote.c: Likewise.
103280         * lib/stpcpy.c: Likewise.
103281         * lib/stpncpy.c: Likewise.
103282         * lib/strcasecmp.c: Likewise.
103283         * lib/strcasestr.c: Likewise.
103284         * lib/strcspn.c: Likewise.
103285         * lib/striconv.c: Likewise.
103286         * lib/strncasecmp.c: Likewise.
103287         * lib/strnlen1.c: Likewise.
103288         * lib/strstr.c: Likewise.
103289         * lib/strtok_r.c: Likewise.
103290         * lib/tls.c: Likewise.
103291         * lib/tmpdir.c: Likewise.
103292         * lib/unicodeio.c: Likewise.
103293         * lib/unsetenv.c: Likewise.
103294         * lib/vasnprintf.c: Likewise.
103295         * lib/vasprintf.c: Likewise.
103296         * lib/wait-process.c: Likewise.
103297         * lib/xallocsa.c: Likewise.
103298         * lib/xsetenv.c: Likewise.
103299         * lib/xstriconv.c: Likewise.
103301 2006-09-13  Simon Josefsson  <jas@extundo.com>
103303         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
103304         that internally, suggested by Ralf Wildenhues
103305         <Ralf.Wildenhues@gmx.de>.
103307 2006-09-13  Simon Josefsson  <jas@extundo.com>
103309         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
103310         @LIBOBJS@.
103311         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103313 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
103315         * lib/_fpending.c: Include <config.h> unconditionally, since we no
103316         longer worry about uses that don't define HAVE_CONFIG_H.
103317         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
103318         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
103319         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
103320         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
103321         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
103322         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
103323         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
103324         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
103325         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
103326         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
103327         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
103328         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
103329         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
103330         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
103331         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
103332         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
103333         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
103334         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
103335         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
103336         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
103337         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
103338         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
103339         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
103340         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
103341         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
103342         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
103343         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
103344         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
103345         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
103346         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
103347         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
103348         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
103349         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
103350         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
103351         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
103352         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
103353         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
103354         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
103355         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
103356         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
103357         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
103358         Likewise.
103360 2006-09-13  Eric Blake  <ebb9@byu.net>
103362         * lib/getopt.c: Fix typo in last commit.
103364 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
103366         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
103367         dgettext.
103369 2006-09-12  Jim Meyering  <jim@meyering.net>
103371         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
103372         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
103373         Reported by Nelson H. F. Beebe.
103375 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103377         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
103378         program_invocation_name and program_invocation_short_name are
103379         initialized.
103380         * lib/argp-namefrob.h: Move declarations of program_invocation_name
103381         and program_invocation_short_name to argp.h, so they are visible
103382         to user programs.
103383         * lib/argp.h: Likewise
103385 2006-09-10  Bruno Haible  <bruno@clisp.org>
103387         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
103388         m4/inttypes_h.m4, m4/uintmax_t.m4.
103390 2006-09-10  Bruno Haible  <bruno@clisp.org>
103392         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
103393         gl_AC_TYPE_UINTMAX_T.
103395 2006-09-10  Bruno Haible  <bruno@clisp.org>
103397         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
103399 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
103401         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
103402         convention.  Text proposed by Bruno Haible.
103403         (struct argp_option): Document the use of N_() wrappers.
103405         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
103406         '\v', and translate the two parts separately, instead of feeding
103407         the whole string to gettext.  This allows to exclude
103408         '\v' from the strings visible to the translator by writing doc
103409         strings as N_("..") "\v" N_("..").
103411 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
103413         * config/srclist.txt: Undo latest change; the bug was fixed.
103415 2006-09-09  Bruno Haible  <bruno@clisp.org>
103417         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
103418         assignments if building a library without libtool.
103419         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
103420         in func_emit_lib_Makefile_am.
103421         (func_import): When building a static library libfoo.a, arrange to
103422         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
103423         (func_create_testdir): Likewise.
103424         * modules/gc (configure.ac, Makefile.am): If building statically,
103425         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
103426         * modules/iconvme (configure.ac, Makefile.am): Likewise.
103427         * modules/striconv (configure.ac, Makefile.am): Likewise.
103428         Based on a suggestion by Ralf Wildenhues.
103430 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103432         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
103433         Check for unistd.h too, since Autoconf doesn't assume POSIX.
103434         Also:
103436         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103437         Add year_2050_test to catch glibc bug 2821
103438         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
103440         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
103441         Prefer #ifdef to #if.
103443         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
103444         Return from 'main' instead of calling 'exit'.
103446 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103448         * lib/mktime.c (guess_time_tm): Fix bug where mktime
103449         returned the maximum time_t value rather than (time_t) -1.
103450         Problem originally reported by William Bardwell
103451         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
103453         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
103454         Moved to here ...
103455         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
103456         ... from here.
103458 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
103460         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
103461         2821 is fixed.
103463 2006-09-08  Jim Meyering  <jim@meyering.net>
103465         Don't make generated files read-only.  That would bother too many
103466         people.  However, do retain the ability to work when targets are
103467         read-only: remove the destination and temporary files before writing
103468         them (when generated via sed or echo), or by using the -f option for
103469         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
103470         * modules/alloca-opt, modules/argz, modules/arpa_inet:
103471         * modules/byteswap, modules/configmake, modules/fcntl:
103472         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
103473         * modules/localcharset, modules/netinet_in, modules/poll:
103474         * modules/stdbool, modules/stdint, modules/sys_select:
103475         * modules/sys_socket, modules/sys_stat, modules/sysexits:
103477 2006-09-08  Jim Meyering  <jim@meyering.net>
103479         Avoid new build failure on FreeBSD 6.0.
103480         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
103481         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
103482         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
103484 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103486         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
103488 2006-09-07  Jim Meyering  <jim@meyering.net>
103490         Fix global typo in last change: use chmod u-w, not chmod u-x.
103491         Spotted by Paul Eggert and Bruce Korb.
103492         * modules/alloca-opt, modules/argz, modules/arpa_inet:
103493         * modules/byteswap, modules/configmake, modules/fcntl:
103494         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
103495         * modules/localcharset, modules/netinet_in, modules/poll:
103496         * modules/stdbool, modules/stdint, modules/sys_select:
103497         * modules/sys_socket, modules/sys_stat, modules/sysexits:
103499 2006-09-06  Jim Meyering  <jim@meyering.net>
103501         Make generated files be read-only.
103502         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
103503         Ensure that each generated file is now read-only.
103504         * modules/argz: Likewise.
103505         * modules/arpa_inet: Likewise.
103506         * modules/byteswap: Likewise.
103507         * modules/configmake: Likewise.
103508         * modules/fcntl: Likewise.
103509         * modules/fnmatch: Likewise.
103510         * modules/getopt: Likewise.
103511         * modules/glob: Likewise.
103512         * modules/inttypes: Likewise.
103513         * modules/netinet_in: Likewise.
103514         * modules/poll: Likewise.
103515         * modules/stdbool: Likewise.
103516         * modules/stdint: Likewise.
103517         * modules/sys_select: Likewise.
103518         * modules/sys_socket: Likewise.
103519         * modules/sys_stat: Likewise.
103520         * modules/sysexits: Likewise.
103521         * modules/localcharset: Same as above, but continue using temporary
103522         file named "t-$@" (why different?) rather than the "$@-t" used
103523         everywhere else.
103525         * modules/sysexits (Makefile.am): Replace literal occurrences
103526         of "sysexit.h" more readable, and more consistent, "$@".
103528 2006-09-06  Bruno Haible  <bruno@clisp.org>
103530         * modules/striconv: New file.
103531         * modules/xstriconv: New file.
103532         * MODULES.html.sh (Internationalization functions): Add striconv,
103533         xstriconv.
103535 2006-09-06  Bruno Haible  <bruno@clisp.org>
103537         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
103538         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
103539         not using libtool correctly.
103541 2006-09-06  Bruno Haible  <bruno@clisp.org>
103543         * lib/striconv.h: New file.
103544         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
103545         iconvstring.c.
103546         * lib/xstriconv.h: New file.
103547         * lib/xstriconv.c: New file.
103549 2006-09-06  Bruno Haible  <bruno@clisp.org>
103551         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
103552         lib_..._LDFLAGS.
103554 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103556         * lib/argz_.h: Sync from Libtool.
103558         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
103559                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
103561         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
103563 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
103565         * modules/trim: New file.
103567 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
103569         * lib/trim.h: New file.
103570         * lib/trim.c: New file.
103572 2006-09-05  Bruno Haible  <bruno@clisp.org>
103574         * MODULES.html.sh (String handling): Add trim.
103576 2006-09-04  Karl Berry  <karl@gnu.org>
103578         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
103579         until next release.
103581 2006-09-03  Bruno Haible  <bruno@clisp.org>
103583         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
103584         correctly.
103586 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103588         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
103589         not gl_GETLOADAVG.  Omit unneeded semicolons.
103590         Problems reported by Ralf Wildenhues in
103591         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
103592         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
103593         at the end, which is the usual gnulib style.
103595         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
103596         of doing all the work ourselves.
103597         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
103598         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
103600 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103602         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
103603         Problem reported by Ralf Wildenhues in
103604         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
103606         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
103607         HAVE_STRUCT_STATFS_F_FSTYPENAME.
103609 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
103611         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
103612         yesterday's patch by changing test -n to test -z.
103614 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103616         * modules/getloadavg (Files): Add m4/getloadavg.m4.
103617         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
103618         the former is now obsolescent.
103620         * modules/chdir-long (Depends-on): Add fcntl.
103622 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103624         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
103625         obsolescent, and programs should use gnulib instead.
103626         * m4/getloadavg.m4: New file, with contents taken from Autoconf
103627         but with prefixes changed.
103629 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
103631         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
103632         or stdbool.h, because they might not exist while configuring.
103634         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
103635         Don't include unistd.h or limits.h; not needed, since chdir-long.h
103636         does that for us.
103637         (O_DIRECTORY): Remove.
103639 2006-08-31  Eric Blake  <ebb9@byu.net>
103641         * gnulib-tool: Don't let emacs change spaces to TAB.
103643 2006-08-31  Bruno Haible  <bruno@clisp.org>
103645         * gnulib-tool: When calling func_import more than once, do it in a
103646         subshell.
103647         Reported by Eric Blake <ebb9@byu.net>.
103649 2006-08-31  Bruno Haible  <bruno@clisp.org>
103651         * gnulib-tool (nl): Remove variable.
103652         (sed_transform_lib_file): Use more robust test for config-h module.
103653         (func_import): Fix typo in 2006-08-25 patch.
103655 2006-08-31  Bruno Haible  <bruno@clisp.org>
103657         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
103658         specified, augment Makefile.am variables instead of assigning them.
103660 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103662         Work around a bug in both the Linux and SunOS 64-bit kernels:
103663         nanosleep mishandles sleeps for longer than 2**31 seconds.
103664         Problem reported by Frank v Waveren in
103665         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
103666         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
103667         Check for nanosleep bug.
103668         (LIB_NANOSLEEP): Append clock_gettime library if needed.
103670 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103672         Work around a bug in both the Linux and SunOS 64-bit kernels:
103673         nanosleep mishandles sleeps for longer than 2**31 seconds.
103674         Problem reported by Frank v Waveren in
103675         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
103676         * lib/nanosleep.c (BILLION): New constant.
103677         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
103678         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
103679         implementation.
103681 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103683         * modules/nanosleep (Depends-on): Add gettime.
103685 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
103686         and Simon Josefsson  <jas@extundo.com>
103687         and Oskar Liljeblad  <oskar@osk.mine.nu>
103689         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
103690         * gnulib-tool (func_import): New license type 'unmodifiable license
103691         text'.
103692         * modules/fdl: Use it.  Longer description.
103693         * module/gpl, module/lgpl: New files.
103695 2006-08-30  Jim Meyering  <jim@meyering.net>
103697         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
103698         shadowing the parameter.
103700 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103702         Sync from Libtool:
103704         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103706         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
103707         sharing with gnulib.  Report by Eric Blake.
103709 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103711         * modules/isapipe: New file.
103712         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
103714 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103716         * modules/configmake (Makefile.am): Add a comment, and omit
103717         the CONFIGMAKE_ prefix from generated macro names.  Suggested
103718         by Bruno Haible.
103720 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103722         * m4/isapipe.m4: New file.
103724 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
103726         * lib/isapipe.c, lib/isapipe.h: New files.
103728 2006-08-29  Jim Meyering  <jim@meyering.net>
103730         * modules/configmake (Makefile.am): Make configmake.h depend on
103731         Makefile.  Otherwise, a stale configmake.h could hang around.
103733 2006-08-29  Eric Blake  <ebb9@byu.net>
103735         * lib/error.c (error_at_line, print_errno_message): Match libc, after
103736         resolution of upstream bug 3044.
103738 2006-08-29  Bruno Haible  <bruno@clisp.org>
103740         * modules/localcharset (Depends-on): Add configmake.
103741         (Makefile.am): Remove setting of LIBDIR through DEFS.
103743 2006-08-29  Bruno Haible  <bruno@clisp.org>
103745         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
103746         defined.
103748 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103750         * modules/fcntl: New file.
103751         * modules/chdir-safer (Depends-on): Add fcntl.
103752         * modules/fts: Likewise.
103753         * modules/mkdir-p: Likewise.
103755         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
103756         This undoes the most recent change, since we're now addressing the
103757         problem in a different way.
103759         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
103760         into output, since the output might be called Makefile.am even
103761         if $makefile_name is something different.
103762         (func_import): Use $makefile_am rather than
103763         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
103764         empty.
103766         * modules/inttypes (Files): Add m4/inttypes-h.m4.
103768 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103770         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
103771         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
103772         recent change to stdint.m4, since we're now addressing the problem in a
103773         different way.
103775 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103777         * m4/fcntl_h.m4: New file.
103779 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
103781         * lib/fcntl_.h: New file.
103782         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
103783         the fcntl module.
103784         * lib/dirchownmod.c: Likewise.
103785         * lib/fts.c: Likewise.
103787         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
103788         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
103789         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
103790         just before including <inttypes.h>, to avoid circular inclusion.
103792 2006-08-28  Jim Meyering  <jim@meyering.net>
103794         * doc/visibility.texi: Actually read and correct the grammar of the
103795         sentence affected by yesterday's change.
103797 2006-08-28  Eric Blake  <ebb9@byu.net>
103799         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
103800         needs wrapper.
103802 2006-08-28  Eric Blake  <ebb9@byu.net>
103804         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
103806 2006-08-28  Eric Blake  <ebb9@byu.net>
103808         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
103810 2006-08-28  Bruno Haible  <bruno@clisp.org>
103812         * modules/c-strstr: New file, from GNU gettext.
103813         * MODULES.html.sh (String handling): Add c-strstr.
103815 2006-08-28  Bruno Haible  <bruno@clisp.org>
103817         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
103818         macros.
103819         Reported by Eric Blake.
103821 2006-08-28  Bruno Haible  <bruno@clisp.org>
103823         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
103824         (VASNPRINTF): Return a string of length > INT_MAX without failing.
103825         * lib/vasprintf.c: Include errno.h, limits.h.
103826         (EOVERFLOW): New fallback definition.
103827         (vasprintf): Test here whether the string length is > INT_MAX.
103828         * lib/vsnprintf.c: Include errno.h, limits.h.
103829         (EOVERFLOW): New fallback definition.
103830         (vsnprintf): Fix bug when generated string was too long for the buffer.
103831         Test here whether the string length is > INT_MAX.
103833 2006-08-28  Bruno Haible  <bruno@clisp.org>
103835         * lib/inttypes_.h (SCNX*): Remove definitions.
103836         Reported by Eric Blake.
103838 2006-08-28  Bruno Haible  <bruno@clisp.org>
103840         * lib/c-strstr.h: New file, from GNU gettext.
103841         * lib/c-strstr.c: New file, from GNU gettext.
103843 2006-08-28  Bruno Haible  <bruno@clisp.org>
103845         * gnulib-tool: Reorder some statements.
103847 2006-08-28  Bruno Haible  <bruno@clisp.org>
103849         * gnulib-tool: New option --makefile-name.
103850         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
103851         $makefile_name.
103852         (func_import): Write $makefile_name to the cache file, and read it from
103853         there unless explicitly specified. Use $makefile_name as file name
103854         instead of Makefile.am. Adjust the recommendations accordingly.
103856 2006-08-28  Bruno Haible  <bruno@clisp.org>
103858         * gnulib-tool (func_verify_module): Check against misapplying patch.
103860 2006-08-28  Bruno Haible  <bruno@clisp.org>
103862         * gnulib-tool (func_relativize, func_relconcat): New functions.
103863         Give an error if --local-dir is given with --update.
103864         Remove trailing slashes from $local_gnulib_dir.
103865         (func_import): Store the relativized $local_gnulib_dir in
103866         gnulib-cache.m4, and read it from there if not specified explicitly.
103868 2006-08-28  Bruno Haible  <bruno@clisp.org>
103870         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
103871         is the current directory. Respect also $local_gnulib_dir.
103873 2006-08-28  Bruno Haible  <bruno@clisp.org>
103874             Simon Josefsson  <jas@extundo.com>
103876         BeOS portability.
103877         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
103879 2006-08-27  Jim Meyering  <jim@meyering.net>
103881         * doc/visibility.texi: Remove duplicate word: "pointer".
103883 2006-08-26  Bruno Haible  <bruno@clisp.org>
103885         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
103886         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
103887         (Makefile.am): Create inttypes.h from inttypes_.h.
103888         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
103890         * modules/imaxabs: New file.
103892         * modules/imaxdiv: New file.
103894 2006-08-26  Bruno Haible  <bruno@clisp.org>
103896         * m4/inttypes.m4: New file.
103897         * m4/_inttypes_h.m4: Remove file.
103898         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
103899         PRI_MACROS_BROKEN.
103900         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
103902         * m4/imaxabs.m4: New file.
103904         * m4/imaxdiv.m4: New file.
103906 2006-08-26  Bruno Haible  <bruno@clisp.org>
103908         * lib/inttypes_.h: New file.
103909         * lib/inttypes.h: Remove file.
103910         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
103912         * lib/imaxabs.c: New file.
103914         * lib/imaxdiv.c: New file.
103916 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103918         New config-h module, so that "make" output needn't be cluttered
103919         by -DHAVE_CONFIG_H.
103920         * MODULES.html.sh (Support for building libraries and executables):
103921         Add config-h.
103922         * modules/config-h: New file.
103923         * gnulib-tool (nl, sed_transform_lib_file): New vars.
103924         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
103925         the config-h module is used.
103927         New configmake module, so that "make" output needn't be cluttered
103928         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
103929         * MODULES.html.sh (Support for building libraries and executables):
103930         Add configmake.
103931         * modules/configmake: New file.
103933 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
103935         * m4/config-h.m4: New file.
103937 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103939         * config/srclist.txt: Add elisp-comp.
103941 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
103943         * MODULES.html.sh (Support for building libraries and executables):
103944         Add elisp-comp.
103945         * build-aux/elisp-comp: New file.
103946         * modules/elisp-comp: New file.
103948 2006-08-24  Bruno Haible  <bruno@clisp.org>
103950         * gnulib-tool (func_create_testdir): Use non-default values of
103951         sourcebase and m4base.
103953 2006-08-24  Bruno Haible  <bruno@clisp.org>
103955         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
103956         HTML structure.
103958 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
103960         * modules/openat (Depends-on): Add lchown.
103962 2006-08-23  Bruno Haible  <bruno@clisp.org>
103964         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
103965         of gl_LOCK_EARLY instead of gl_LOCK.
103967 2006-08-23  Bruno Haible  <bruno@clisp.org>
103969         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
103970         on OSF/1 to no.
103971         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
103973 2006-08-23  Bruno Haible  <bruno@clisp.org>
103975         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
103976         as unusable.
103978         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
103979         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
103980         (gl_LOCK): New macro.
103982 2006-08-22  Simon Josefsson  <jas@extundo.com>
103984         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
103985         to md5 module.
103987 2006-08-22  Simon Josefsson  <jas@extundo.com>
103989         * MODULES.html.sh: Add "Support for maintaining and release
103990         projects".
103992         * build-aux/gnupload: New file, from coreutils.
103994 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
103996         Avoid the need for AC_LIBSOURCES in m4 macros.
103997         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
103998         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
103999         * modules/check-version (EXTRA_DIST): Add check-version.h.
104000         * modules/crc (EXTRA_DIST): Add crc.h.
104001         * modules/des (EXTRA_DIST): Add des.h.
104002         * modules/gc (EXTRA_DIST): Add gc.h.
104003         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
104004         * modules/getline (EXTRA_DIST): Add getline.h.
104005         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
104006         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
104007         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
104008         * modules/md2 (EXTRA_DIST): Add md2.h.
104009         * modules/md4 (EXTRA_DIST): Add md4.h.
104010         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
104011         * modules/read-file (EXTRA_DIST): Add read-file.h.
104012         * modules/readline (EXTRA_DIST): Add readline.h.
104013         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
104014         rijndael-api-fst.h.
104016 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
104018         * m4/rijndael.m4 (gl_ARCFOUR):
104019         * m4/arctwo.m4 (gl_ARCTWO):
104020         * m4/check-version.m4 (gl_CHECK_VERSION):
104021         * m4/crc.m4 (gl_CRC):
104022         * m4/des.m4 (gl_DES):
104023         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
104024         * m4/gc.m4 (gl_GC):
104025         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
104026         * m4/getline.m4 (gl_FUNC_GETLINE):
104027         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
104028         * m4/hmac-md5.m4 (gl_HMAC_MD5):
104029         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
104030         * m4/md2.m4 (gl_MD2):
104031         * m4/md4.m4 (gl_MD4):
104032         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
104033         * m4/read-file.m4 (gl_FUNC_READ_FILE):
104034         * m4/readline.m4 (gl_FUNC_READLINE):
104035         * m4/rijndael.m4 (gl_RIJNDAEL):
104036         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
104037         to get the necessary .h files and whatnot.
104039 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
104041         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
104042         gnulib rather than the other way around.
104043         * config/srclistvars.sh (COREUTILS): Remove.
104045 2006-08-22  Jim Meyering  <jim@meyering.net>
104047         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
104049         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
104051 2006-08-22  Eric Blake  <ebb9@byu.net>
104053         * modules/regexprops-generic: New file.
104054         * MODULES.html.sh (Support for building documentation): List it.
104056 2006-08-22  Eric Blake  <ebb9@byu.net>
104058         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
104059         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
104060         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
104061         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
104063 2006-08-22  Bruno Haible  <bruno@clisp.org>
104065         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
104066         and lib_LTLIBRARIES like the other lib_* variables.
104068 2006-08-22  Bruno Haible  <bruno@clisp.org>
104070         * build-aux/x-to-1.in: New file, from GNU gettext.
104072 2006-08-22  Bruno Haible  <bruno@clisp.org>
104074         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
104075         <utmpx.h> exists.
104077 2006-08-22  Bruno Haible  <bruno@clisp.org>
104079         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
104080         <utmpx.h> exists.
104082 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
104084         BeOS portability.
104085         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
104086         exist.
104087         Problem reported by Bruno Haible.
104089 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
104091         Avoid the need for AC_LIBSOURCES in m4 macros.
104092         * modules/acl (EXTRA_DIST): Add acl.h.
104093         * modules/argmatch (Files): Add m4/argmatch.m4.
104094         (configure.ac): Add gl_ARGMATCH.
104095         (EXTRA_DIST): Renamed from lib_SOURCES, for
104096         consistency with the other modules.  Remove argmatch.c.
104097         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
104098         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
104099         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
104100         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
104101         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
104102         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
104103         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
104104         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
104105         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
104106         * modules/closeout (EXTRA_DIST): Add closeout.h.
104107         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
104108         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
104109         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
104110         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
104111         dirname.h; remove basename.c and stripslash.c.
104112         * modules/exclude (EXTRA_DIST): Add exclude.h.
104113         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
104114         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
104115         * modules/file-type (EXTRA_DIST): Add file-type.h.
104116         * modules/filemode (EXTRA_DIST): Add filemode.h.
104117         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
104118         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
104119         * modules/fpending (EXTRA_DIST): Add __fpending.h.
104120         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
104121         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
104122         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
104123         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
104124         * modules/getdate (EXTRA_DIST): Add getdate.c.
104125         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
104126         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
104127         * modules/getpass (EXTRA_DIST): Add getpass.h.
104128         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
104129         * modules/group-member (EXTRA_DIST): Add group-member.h.
104130         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
104131         * modules/hash (EXTRA_DIST): Add hash.h.
104132         * modules/human (EXTRA_DIST): Add human.h.
104133         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
104134         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
104135         * modules/lchown (EXTRA_DIST): Add lchown.h.
104136         * modules/long-options (EXTRA_DIST): Add long-options.h.
104137         * modules/lstat (EXTRA_DIST): Add lstat.h.
104138         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
104139         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
104140         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
104141         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
104142         * modules/memxor (EXTRA_DIST): Add memxor.h.
104143         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
104144         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
104145         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
104146         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
104147         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
104148         * modules/physmem (EXTRA_DIST): Add physmem.h.
104149         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
104150         * modules/posixver (EXTRA_DIST): Add posixver.h.
104151         * modules/quote (EXTRA_DIST): Add quote.h.
104152         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
104153         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
104154         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
104155         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
104156         regex_internal.h regexec.c.
104157         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
104158         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
104159         * modules/same (EXTRA_DIST): Add same.h.
104160         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
104161         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
104162         * modules/savedir (EXTRA_DIST): Add savedir.h.
104163         * modules/sha1 (EXTRA_DIST): Add sha1.h.
104164         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
104165         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
104166         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
104167         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
104168         * modules/strdup (EXTRA_DIST): Add strdup.h.
104169         * modules/strftime (EXTRA_DIST): Add strftime.h.
104170         * modules/strndup (EXTRA_DIST): Add strndup.h.
104171         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
104172         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
104173         * modules/time_r (EXTRA_DIST): Add time_r.h.
104174         * modules/timespec (EXTRA_DIST): Add timespec.h.
104175         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
104176         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
104177         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
104178         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
104179         * modules/userspec (EXTRA_DIST): Add userspec.h.
104180         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
104181         * modules/utimens (EXTRA_DIST): Add utimens.h.
104182         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
104183         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
104184         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
104185         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
104186         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
104187         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
104188         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
104189         * modules/yesno (EXTRA_DIST): Add yesno.h.
104191 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
104193         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
104195         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
104196         * m4/dev-ino.m4, same-inode.m4: Remove.
104198         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
104199         * m4/acl.m4 (AC_FUNC_ACL):
104200         * m4/backupfile.m4 (gl_BACKUPFILE):
104201         * m4/c-strtod.m4 (gl_C99_STRTOLD):
104202         * m4/canon-host.m4 (gl_CANON_HOST):
104203         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
104204         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
104205         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
104206         * m4/cloexec.m4 (gl_CLOEXEC):
104207         * m4/close-stream.m4 (gl_CLOSE_STREAM):
104208         * m4/closeout.m4 (gl_CLOSEOUT):
104209         * m4/dirfd.m4 (gl_FUNC_DIRFD):
104210         * m4/dirname.m4 (gl_DIRNAME):
104211         * m4/exclude.m4 (gl_EXCLUDE):
104212         * m4/exitfail.m4 (gl_EXITFAIL):
104213         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
104214         * m4/file-type.m4 (gl_FILE_TYPE):
104215         * m4/filemode.m4 (gl_FILEMODE):
104216         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
104217         * m4/fpending.m4 (gl_FUNC_FPENDING):
104218         * m4/fprintftime.m4 (gl_FPRINTFTIME):
104219         * m4/fts.m4 (gl_FUNC_FTS):
104220         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
104221         * m4/getdate.m4 (gl_GETDATE):
104222         * m4/gethrxtime.m4 (gl_GETHRXTIME):
104223         * m4/getpagesize.m4 (gl_GETPAGESIZE):
104224         * m4/getpass.m4 (gl_FUNC_GETPASS):
104225         * m4/gettime.m4 (gl_GETTIME):
104226         * m4/getugroups.m4 (gl_GETUGROUPS):
104227         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
104228         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
104229         * m4/hard-locale.m4 (gl_HARD_LOCALE):
104230         * m4/hash.m4 (gl_HASH):
104231         * m4/idcache.m4 (gl_IDCACHE):
104232         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
104233         * m4/lchown.m4 (gl_FUNC_LCHOWN):
104234         * m4/long-options.m4 (gl_LONG_OPTIONS):
104235         * m4/lstat.m4 (gl_FUNC_LSTAT):
104236         * m4/md5.m4 (gl_MD5):
104237         * m4/memcasecmp.m4 (gl_MEMCASECMP):
104238         * m4/memcoll.m4 (gl_MEMCOLL):
104239         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
104240         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
104241         * m4/memxor.m4 (gl_MEMXOR):
104242         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
104243         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
104244         * m4/modechange.m4 (gl_MODECHANGE):
104245         * m4/mountlist.m4 (gl_MOUNTLIST):
104246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
104247         * m4/openat.m4 (gl_FUNC_OPENAT):
104248         * m4/pathmax.m4 (gl_PATHMAX):
104249         * m4/physmem.m4 (gl_PHYSMEM):
104250         * m4/posixtm.m4 (gl_POSIXTM):
104251         * m4/posixver.m4 (gl_POSIXVER):
104252         * m4/quote.m4 (gl_QUOTE):
104253         * m4/quotearg.m4 (gl_QUOTEARG):
104254         * m4/readtokens.m4 (gl_READTOKENS):
104255         * m4/readutmp.m4 (gl_READUTMP):
104256         * m4/regex.m4 (gl_REGEX):
104257         * m4/safe-read.m4 (gl_SAFE_READ):
104258         * m4/safe-write.m4 (gl_SAFE_WRITE):
104259         * m4/same.m4 (gl_SAME):
104260         * m4/save-cwd.m4 (gl_SAVE_CWD):
104261         * m4/savedir.m4 (gl_SAVEDIR):
104262         * m4/settime.m4 (gl_SETTIME):
104263         * m4/sha1.m4 (gl_SHA1):
104264         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
104265         * m4/stat-macros.m4 (gl_STAT_MACROS):
104266         * m4/stat-time.m4 (gl_STAT_TIME):
104267         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
104268         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
104269         * m4/strdup.m4 (gl_FUNC_STRDUP):
104270         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
104271         * m4/strndup.m4 (gl_FUNC_STRNDUP):
104272         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
104273         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
104274         * m4/time_r.m4 (gl_TIME_R):
104275         * m4/timespec.m4 (gl_TIMESPEC):
104276         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
104277         * m4/unlinkdir.m4 (gl_UNLINKDIR):
104278         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
104279         * m4/userspec.m4 (gl_USERSPEC):
104280         * m4/utimecmp.m4 (gl_UTIMECMP):
104281         * m4/utimens.m4 (gl_UTIMENS):
104282         * m4/xalloc.m4 (gl_XALLOC):
104283         * m4/xgetcwd.m4 (gl_XGETCWD):
104284         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
104285         * m4/xreadlink.m4 (gl_XREADLINK):
104286         * m4/xstrtod.m4 (gl_XSTRTOD):
104287         * m4/yesno.m4 (gl_YESNO):
104288         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
104289         to get the necessary .h files and whatnot.
104291 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
104292             Bruno Haible  <bruno@clisp.org>
104294         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
104295         /bin/sh understanding of '!' conditional negation.
104297 2006-08-21  Jim Meyering  <jim@meyering.net>
104299         * modules/openat (Depends-on): Really alphabetize.
104301         * modules/acl (Depends-on): Add error and quote.
104303         * check-module (find_included_lib_files): Add at-func.c to the
104304         ok-to-include-more-than-once white list.
104306         * modules/openat (Depends-on): Add lstat.  Alphabetize.
104308 2006-08-21  Bruno Haible  <bruno@clisp.org>
104310         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104311         Emit a pkgdata_DATA variable only if some snippets add contents to it.
104312         Reported by Martin Lambers <marlam@marlam.de>.
104314 2006-08-21  Bruno Haible  <bruno@clisp.org>
104316         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
104317         specify an installation location, don't emit a noinst_LIBRARIES or
104318         noinst_LTLIBRARIES assignment.
104320 2006-08-21  Bruno Haible  <bruno@clisp.org>
104322         BeOS portability.
104323         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
104324         BeOS has mbrtowc() but no <wctype.h>.
104326 2006-08-21  Bruno Haible  <bruno@clisp.org>
104328         BeOS portability.
104329         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
104330         exist.
104332 2006-08-21  Bruno Haible  <bruno@clisp.org>
104334         BeOS portability.
104335         * lib/mbchar.h: Include <wctype.h> only if it exists.
104337 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104339         Remove files that are no longer needed by their respective modules.
104340         * m4/obstack.m4: Remove.
104341         * m4/strerror_r.m4: Remove.
104342         * m4/uint32_t.m4: Remove.
104343         * m4/uintptr_t.m4: Remove.
104344         * m4/ullong_max.m4: Remove.
104345         * m4/xstrtoimax.m4: Remove.
104346         * m4/xstrtoumax.m4: Remove.
104348         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
104349         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
104350         dependencies now capture this.
104352         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
104353         Do not use AC_LIBSOURCES, since gnulib modules now do this.
104354         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
104355         * m4/human.m4 (gl_HUMAN): Likewise.
104356         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
104357         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
104359         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
104361         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
104362         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
104363         stdint.
104364         * m4/human.m4 (gl_HUMAN): Likewise.
104365         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
104366         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
104367         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
104368         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
104369         * m4/xstrtol (gl_XSTRTOL): Likewise.
104371         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
104372         AC_TYPE_LONG_LONG_INT.
104373         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
104374         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
104375         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
104376         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
104378         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
104379         on stdbool.
104381         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
104382         (gl_PREREQ_XSTRTOUL): Remove.
104384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
104386         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
104387         mode.
104389 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104391         Add and change modules to make it easier for coreutils to use
104392         gnulib-tool.
104393         * modules/backupfile (Files): Remove m4/d-ino.m4.
104394         (Depends-on): Add d-ino.
104395         * modules/cycle-check (Depends-on): Add stdint.
104396         (lib_SOURCES): Add cycle-check.h.
104397         * modules/d-ino: New module.
104398         * modules/d-type: New module.
104399         * modules/error (Files): Remove m4/strerror_r.m4.
104400         * modules/filemode (Files): Add m4/st_dm_mode.m4.
104401         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
104402         m4/inttypes_h.m4, m4/uintmax_t.m4.
104403         (Depends-on): Add stdint.
104404         (lib_SOURCES): Add fsusage.h.
104405         * modules/getcwd (Files): Remove d-ino.m4.
104406         (Depends-on): Add d-ino.
104407         * modules/getndelim2 (Depends-on): Add stdint.
104408         * modules/glob (Files): Remove m4/d-type.m4.
104409         (Depends-on): Add d-type.
104410         * modules/host-os: New module.
104411         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
104412         m4/inttypes_h.m4, m4/uintmax_t.m4.
104413         * Depends-on: Add stdint.
104414         (lib_SOURCES): Add human.h.
104415         * modules/inttostr (Files): Remove m4/intmax_t.m4,
104416         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
104417         m4/uintmax_t.m4, m4/ulonglong.m4.
104418         (Depends-on): Add stdint.
104419         (EXTRA_DIST): Add inttostr.h.
104420         * modules/lchmod: New module.
104421         * modules/link-follow: New module.
104422         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
104423         (Depends-on): Add lchmod.
104424         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
104425         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
104426         (Depends-on): Add stdint.
104427         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
104428         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
104429         (Depends-on): Add stdint.
104430         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
104431         * modules/perl: New module.
104432         * modules/regex (Depends-on): Add stdint.
104433         * modules/rmdir-errno: New module.
104434         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
104435         m4/intmax_t.m4.
104436         (Depends-on): Add stdint.
104437         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
104438         m4/uintmax_t.m4.
104439         (Depends-on): Add stdint.
104440         * modules/unlink-busy: New module.
104441         * modules/utimecmp (Depends-on): Add stdint.
104442         * modules/uptime: New module.
104443         * modules/winsz-ioctl: New module.
104444         * modules/winsz-termios: New module.
104445         * modules/xnanosleep (Depends-on): Add nanosleep.
104446         * modules/ullong_max: Remove.
104447         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
104448         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
104449         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
104450         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
104451         (Depends-on): Add inttypes.
104452         (lib_SOURCES): Add xstrtol.h.
104453         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
104454         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
104455         * MODULES.html.sh: Move 'assert' into the assert section.
104456         Move 'dummy' into the linking section.
104457         Remove ullong_max.
104458         Add section for compatibility checks for POSIX:2001 functions,
104459         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
104460         winsz-ioctl, and winsz-termios into it.
104461         Add lchmod.
104462         Add top-level Misc section and put host-os, perl, and uptime
104463         into it.
104465 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
104467         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
104468         now assume the stdint module.  Do not include inttypes.h.
104469         * lib/fsusage.h: Likewise.
104470         * lib/getndelim2.c: Likewise.
104471         * lib/human.h: Likewise.
104472         * lib/inttostr.h: Likewise.
104473         * lib/obstack.c: Likewise.
104474         * lib/regex_internal.h: Likewise.
104475         * lib/tempname.c: Likewise.
104476         * lib/utimecmp.c: Likewise.
104477         * lib/xstrtol.h: Likewise.
104479         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
104481         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
104482         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
104483         * lib/xtime.h: Likewise.
104485 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104487         * modules/openat (Files): Add lib/fchmodat.c.
104488         Fixes problem reported by Jay Youngman.
104490 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
104492         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
104493         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
104495 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
104496             Bruno Haible  <bruno@clisp.org>
104498         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
104499         and is a script that invokes bison. Tighten the code. Add comments.
104501 2006-08-18  Jim Meyering  <jim@meyering.net>
104503         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
104504         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
104505         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
104506         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
104508 2006-08-18  Bruno Haible  <bruno@clisp.org>
104510         * modules/bison-i18n: New file.
104511         * MODULES.html.sh (Internationalization functions): Add it.
104513 2006-08-18  Bruno Haible  <bruno@clisp.org>
104515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
104516         sys/statvfs.h. When getmntinfo was found, check its declaration and
104517         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
104519 2006-08-18  Bruno Haible  <bruno@clisp.org>
104521         * m4/bison-i18n.m4: New file, from bison.
104523 2006-08-18  Bruno Haible  <bruno@clisp.org>
104525         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
104526         (ME_DUMMY): Treat "kernfs" as a dummy.
104527         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
104529 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104531         Update from coreutils.
104533         2006-08-15  Jim Meyering  <jim@meyering.net>
104535         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
104537         2006-01-17  Jim Meyering  <jim@meyering.net>
104539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
104541         2006-01-11  Jim Meyering  <jim@meyering.net>
104543         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
104544         Check for the lchmod function.
104546 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
104548         Update from coreutils.
104550         * lib/__fpending.h: Add copyright notice.
104551         * lib/fprintftime.h: Likewise.
104552         * lib/savedir.c: Use (C) in copyright notice.
104553         * lib/savedir.h: Likewise.
104555         2006-08-15  Jim Meyering  <jim@meyering.net>
104557         * lib/at-func.c: New file, with the logic of all emulated at-functions.
104558         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
104559         in support of the EXPECTED_ERRNO macro.
104560         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
104561         definitions.  Instead, define the appropriate symbols and include
104562         "at-func.c".
104563         * lib/mkdirat.c (mkdirat): Likewise.
104564         * lib/fchmodat.c (fchmodat): Likewise.
104565         (ENOSYS): Remove definition.
104566         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
104567         it.  Don't include "unistd--.h" -- it wasn't ever used.
104569         2006-01-17  Jim Meyering  <jim@meyering.net>
104571         Rewrite fts.c not to change the current working directory,
104572         by using openat, fstatat, fdopendir, etc..
104574         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
104575         (HAVE_OPENAT_SUPPORT): Define.
104576         [_LIBC] (fchdir): Don't undef or define; no longer used.
104577         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
104578         Now, this `function' always succeeds, and consumes its file descriptor
104579         parameter -- so callers must not close such FDs.  Update callers.
104580         (diropen_fd, opendirat, cwd_advance_fd): New functions.
104581         (diropen): Add parameter, SP.  Adjust all callers.
104582         Implement using diropen_fd, rather than open.
104583         (fts_open): Initialize new member, fts_cwd_fd.
104584         Remove fts_rft-setting code.
104585         (fts_close): Close fts_cwd_fd, if necessary.
104586         (__opendir2): Define in terms of opendir or opendirat,
104587         depending on whether the FST_NOCHDIR flag is set.
104588         (fts_build): Since fts_safe_changedir consumes its FD, and since
104589         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
104590         and close the dup'd file descriptor upon failure.
104591         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
104592         (fts_safe_changedir): Tweak semantics to reflect that this function
104593         now calls cwd_advance_fd and hence consumes its FD argument.
104594         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
104595         [struct FTS] (fts_rft): Remove now-unused member.
104596         [struct FTS] (fts_cycle.state): Improve comment.
104598         * lib/openat.c (openat_needs_fchdir): New function.
104599         * lib/openat.h (openat_needs_fchdir): Declare it.
104601 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
104603         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
104604         Problem and fix reported by Pádraig Brady in
104605         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
104607 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104609         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
104611 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104613         * lib/memcoll.c (memcoll): Optimize for the common case where the
104614         arguments are bytewise equal.
104616 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
104618         * doc/regexprops-generic.texi: Add a copyright notice.
104620 2006-08-15  Bruno Haible  <bruno@clisp.org>
104622         * modules/tmpdir (License): Change to LGPL.
104624 2006-08-15  Bruno Haible  <bruno@clisp.org>
104626         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
104627         module.
104629 2006-08-14  Simon Josefsson  <jas@extundo.com>
104631         * config/srclist.txt: Add gnupload.
104633 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104635         Change copyright notice from LGPL 2 to GPL 2, since that's the
104636         standard form used in the gnulib repository.
104637         * tests/test-lock.c: Likewise.
104638         * tests/test-stdint.c: Likewise.
104639         * tests/test-tls.c: Likewise.
104641         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
104642         prelude-manager.  User shorter URLs for GNU projects, without '?'.
104643         Add copyright notice.
104645         * check-module: Add copyright notice.  Output a copyright
104646         notice if "--version" is specified.
104647         * modules/COPYING: New file.
104648         * tests/test-getaddrinfo.c: Add copyright notice.
104649         * tests/test-verify.c: Likewise.
104651 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104653         Change copyright notice from LGPL 2 to GPL 2, since that's the
104654         standard form used in the gnulib repository.
104655         * lib/lock.c: LGPL -> GPL.
104656         * lib/lock.h: Likewise.
104657         * lib/strnlen1.c: Likewise.
104658         * lib/strnlen1.h: Likewise.
104659         * lib/tls.c: Likewise.
104660         * lib/tls.h: Likewise.
104661         * lib/tmpdir.c: Likewise.
104663         * lib/TODO: Remove; this belongs only in coreutils.
104665 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104667         Add copyright notices to long-enough files that lack them, since
104668         otherwise the files aren't clearly free.  Use the same notice that
104669         getdate.texi already uses.
104670         * doc/alloca-opt.texi: Add copyright notice.
104671         * doc/alloca.texi: Likewise.
104672         * doc/ctime.texi: Likewise.
104673         * doc/functions.texi: Likewise.
104674         * doc/gcd.texi: Likewise.
104675         * doc/gnulib-tool.texi: Likewise.
104676         * doc/inet_ntoa.texi: Likewise.
104677         * doc/visibility.texi: Likewise.
104679         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
104680         * doc/quote.texi: Add copyright notice.
104682         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
104683         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
104684         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
104685         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
104686         is now obsolete, and give a pointer to the Sun list.
104687         Add copyright notice.
104689 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
104691         * config/srclistvars.sh: Add copyright notice.
104693 2006-08-14  Eric Blake  <ebb9@byu.net>
104695         Import the following change from libc:
104697         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
104699         Upstream bug 2997.
104700         * lib/misc/error.c: Add space between program name and message if file
104701         name is missing.
104703 2006-08-12  Karl Berry  <karl@gnu.org>
104705         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
104706         remove, these originate in gnulib now.
104708 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104710         * doc/Makefile (standards.info standards.html standards.dvi):
104711         Also depend on make-stds.texi.
104713 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
104715         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
104716         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
104718         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
104719         in wchar_t.  Problem reported by Eric Blake.
104721         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
104722         LEN is smaller than SIZE.  Suggested by Bruno Haible.
104723         Also, help the compiler to keep LEN in a register.
104725 2006-08-11  Eric Blake  <ebb9@byu.net>
104727         * users.txt: Sort.  Add tar.
104729 2006-08-11  Bruno Haible  <bruno@clisp.org>
104731         * users.txt: New file.
104733 2006-08-11  Bruno Haible  <bruno@clisp.org>
104735         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
104736         before <wchar.h>. Needed for OSF/1 and BSD/OS.
104738 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
104740         * modules/snprintf (Depends-on): Remove minmax.
104741         (Maintainer): Add self and Bruno.
104743 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
104745         * lib/.cppi-disable: Add snprintf.h, socket_.h.
104746         * lib/snprintf.c: Include <errno.h> and <limits.h>.
104747         (EOVERFLOW): Define if the system does not.
104748         Do not include "minmax.h"; it wasn't used.
104749         (snprintf): Don't assume size_t promotes to an unsigned type.
104750         Fix bug when generated string was too long for the buffer: the
104751         buffer's contents are supposed to be the initial prefix of the
104752         output.  Don't assume vasnprintf returns EOVERFLOW if the size
104753         exceeds INT_MAX; do the check ourselves.
104755         Import the following changes from libc:
104757         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
104759         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
104760         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
104761         set wc to the byte which couldn't be converted.
104762         (re_string_reconstruct): Don't clear valid_raw_len before calling
104763         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
104764         tip_context using re_string_context_at.
104766         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
104768         * lib/posix/regex.h: g++ still cannot handled [restrict].
104770         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
104772         * lib/posix/regex.h: Remove special handling for VMS.
104774 2006-08-10  Jim Meyering  <jim@meyering.net>
104776         * modules/same-inode: New module.
104777         * modules/dev-ino: New module.
104778         * modules/cycle-check: Depend on these modules, rather than simply
104779         including their .h files.
104780         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
104781         required via m4/cycle-check.m4.
104782         * modules/same: Depend on new same-inode module, rather than
104783         including same-inode.h.
104784         * modules/chdir-safer: New file.
104786         * modules/chown (Depends-on): Add stat-macros.
104788 2006-08-10  Jim Meyering  <jim@meyering.net>
104790         * m4/cycle-check.m4: New file.
104791         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
104792         * m4/dev-ino.m4, m4/same-inode.m4: New files.
104794 2006-08-10  Eric Blake  <ebb9@byu.net>
104796         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
104797         in from original proposal.
104799 2006-08-10  Eric Blake  <ebb9@byu.net>
104800         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
104802         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
104803         namespace.
104805 2006-08-10  Bruno Haible  <bruno@clisp.org>
104807         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
104808         as well.
104810 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104812         Sync from coreutils.
104814         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
104816         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
104817         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
104819 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104821         * modules/restrict: Remove; no longer needed now that we assume
104822         Autoconf 2.59 or later.
104823         * MODULES.html.sh: Remove 'restrict'.
104824         * modules/argp (Depends-on): Remove 'restrict'.
104825         * modules/base64 (Depends-on): Likewise.
104826         * modules/gc (Depends-on): Likewise.
104827         * modules/getaddrinfo (Depends-on): Likewise.
104828         * modules/glob (Depends-on): Likewise.
104829         * modules/inet_ntop (Depends-on): Likewise.
104830         * modules/inet_pton (Depends-on): Likewise.
104831         * modules/memxor (Depends-on): Likewise.
104832         * modules/regex (Depends-on): Likewise.
104833         * modules/strtok_r (Depends-on): Likewise.
104834         * modules/time_r (Depends-on): Likewise.
104836 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
104838         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
104839         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
104840         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
104841         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
104842         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
104843         * m4/memxor.m4 (gl_MEMXOR): Likewise.
104844         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
104845         gl_C_RESTRICT replaced by AC_C_RESTRICT.
104847         Merge from coreutils.
104848         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
104849         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
104850         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104851         * m4/time_r.m4 (gl_TIME_R): Likewise.
104853 2006-08-09  Karl Berry  <karl@gnu.org>
104855         * config/srclist.txt: no more gettext-tools, per Bruno.
104857 2006-08-08  Eric Blake  <ebb9@byu.net>
104859         * modules/verror: New module.
104860         * MODULES.html.sh: Document it.
104862 2006-08-08  Eric Blake  <ebb9@byu.net>
104864         * lib/verror.h, lib/verror.c: New files.
104866 2006-08-08  Eric Blake  <ebb9@byu.net>
104868         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
104869         verror_at_line output complies with GNU Coding Standards even when
104870         file is NULL.
104872 2006-08-07  Bruno Haible  <bruno@clisp.org>
104874         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
104875         versions of AIX.
104876         Reported by Ralf Wildenhues.
104878 2006-08-07  Bruno Haible  <bruno@clisp.org>
104880         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
104881         in an AC_DEFUN. Needed so that the autoconf snippets can use
104882         AC_REQUIRE.
104884 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104886         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104887         Initialize pkgdata_DATA.
104888         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
104889         overriding it.
104891 2006-08-06  Eric Blake  <ebb9@byu.net>
104893         * lib/error.h: Fold in some upstream changes from glibc.
104894         * lib/error.c: Likewise.
104896 2006-08-04  Bruno Haible  <bruno@clisp.org>
104898         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104899         Make the mostlyclean-local rule depend on mostlyclean-generic.
104900         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
104902 2006-07-31  Bruno Haible  <bruno@clisp.org>
104904         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
104905         <stdlib.h>, <string.h>.
104907 2006-07-30  Bruno Haible  <bruno@clisp.org>
104909         * modules/readlink (License): Change to LGPL.
104911 2006-07-30  Bruno Haible  <bruno@clisp.org>
104913         * modules/javaversion (Makefile.am): Distribute javaversion.java and
104914         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
104915         set PKGDATADIR to point to it.
104917 2006-07-30  Bruno Haible  <bruno@clisp.org>
104919         * modules/csharpexec (configure.ac): Comment out macro invocation.
104920         * modules/javaexec (configure.ac): Likewise.
104921         * modules/javacomp-script (configure.ac): Likewise.
104923         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
104925 2006-07-30  Bruno Haible  <bruno@clisp.org>
104927         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
104928         linked-list.
104930 2006-07-30  Bruno Haible  <bruno@clisp.org>
104932         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
104934 2006-07-30  Bruno Haible  <bruno@clisp.org>
104936         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
104937         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
104938         get removed.
104940 2006-07-29  Bruno Haible  <bruno@clisp.org>
104942         Make it possible for gnulib-tool to work with locally modified or
104943         augmented gnulib repositories.
104944         * gnulib-tool (func_usage): Document --local-dir option.
104945         (local_gnulib_dir): New variable.
104946         Handle --local-dir option.
104947         (func_lookup_file): New function.
104948         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
104949         (func_get_description, func_get_filelist, func_get_description,
104950         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
104951         func_get_automake_snippet, func_get_include_directive,
104952         func_get_license, func_get_maintainer): Use func_lookup_file.
104953         (func_import, func_create_testdir): Use func_lookup_file.
104955 2006-07-29  Bruno Haible  <bruno@clisp.org>
104957         * modules/setenv (Depends-on): Add unistd.
104959 2006-07-29  Bruno Haible  <bruno@clisp.org>
104961         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
104963 2006-07-29  Bruno Haible  <bruno@clisp.org>
104965         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
104967 2006-07-29  Bruno Haible  <bruno@clisp.org>
104969         * gnulib-tool (import, update): If there is no Makefile.am, look at
104970         aclocal.m4, instead of bailing out.
104972 2006-07-29  Bruno Haible  <bruno@clisp.org>
104974         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
104975         Categorize the options by when they are useful.
104977 2006-07-29  Bruno Haible  <bruno@clisp.org>
104979         * gnulib-tool (func_usage): Document option --no-libtool.
104980         Handle option --no-libtool.
104981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
104982         for changed semantics of $libtool variable.
104983         (func_import): Likewise. If libtool is not used, show this through
104984         an option --no-libtool.
104985         (func_create_testdir): Update.
104987 2006-07-29  Bruno Haible  <bruno@clisp.org>
104989         * gnulib-tool (func_import): Extend error message about missing
104990         --doc-base.
104992 2006-07-29  Bruno Haible  <bruno@clisp.org>
104994         * gnulib-tool (func_import): Don't create the $docbase directory if
104995         there is no file to store there.
104997 2006-07-29  Bruno Haible  <bruno@clisp.org>
104999         * gnulib-tool (autoconf_minversion): If a --dir option is given and
105000         relevant, look for configure.ac there, not in the current directory.
105001         Also use a simple search for AC_PREREQ, not "autoconf --trace".
105003 2006-07-29  Bruno Haible  <bruno@clisp.org>
105005         * gnulib-tool (SORT): New variable.
105006         (func_usage): Undocument --assume-autoconf option.
105007         Remove --assume-autoconf option handling.
105008         (autoconf_minversion): Determine from the contents of configure.ac.
105009         (func_import): Remove autoconf_minversion handling.
105010         Suggested by Eric Blake.
105012 2006-07-29  Bruno Haible  <bruno@clisp.org>
105014         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
105016 2006-07-29  Bruno Haible  <bruno@clisp.org>
105018         * config/srclist.txt (*setenv.[ch]): Remove rules.
105020 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105022         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
105024 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105026         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
105027         arpa/inet.h.
105029 2006-07-28  Simon Josefsson  <jas@extundo.com>
105031         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
105032         * modules/inet_pton (Depends-on): Likewise.
105034 2006-07-28  Simon Josefsson  <jas@extundo.com>
105036         * m4/netinet_in_h.m4: New file.
105038 2006-07-28  Simon Josefsson  <jas@extundo.com>
105040         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
105041         #include's.
105043 2006-07-28  Simon Josefsson  <jas@extundo.com>
105045         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
105046         #include's.
105048 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
105050         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
105051         setgid on directories only if they set these bits.
105052         * lib/modechange.h: Remove obsolete comment about masks.
105054 2006-07-28  Eric Blake  <ebb9@byu.net>
105056         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
105057         macro expansion.
105059 2006-07-28  Bruno Haible  <bruno@clisp.org>
105061         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
105063 2006-07-28  Bruno Haible  <bruno@clisp.org>
105065         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
105067 2006-07-28  Bruno Haible  <bruno@clisp.org>
105069         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
105070         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
105071         Define fallbacks.
105072         Avoids link error on FreeBSD 4.x.
105073         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
105075         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
105076         encoding.
105077         * lib/mbswidth.c (iswcntrl): Likewise.
105079 2006-07-27  Bruno Haible  <bruno@clisp.org>
105081         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
105082         test.
105084 2006-07-27  Bruno Haible  <bruno@clisp.org>
105086         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
105087         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
105088         defined.
105090 2006-07-26  Eric Blake  <ebb9@byu.net>
105092         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
105094 2006-07-26  Eric Blake  <ebb9@byu.net>
105096         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
105097         like mingw that lack mkstemp.
105098         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
105099         avoid compilation warning on mingw.
105101 2006-07-26  Bruno Haible  <bruno@clisp.org>
105103         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
105104         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
105105         INT_FAST*_MIN, INTPTR_MIN.
105107 2006-07-25  Bruno Haible  <bruno@clisp.org>
105109         * modules/version-etc (Depends-on): Add stdarg.
105111 2006-07-25  Bruno Haible  <bruno@clisp.org>
105113         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
105114         complex commands.
105116 2006-07-25  Bruno Haible  <bruno@clisp.org>
105118         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
105119         defined in <stdarg.h> or config.h.
105121 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
105123         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
105124         (gl_STDIO_SAFER): Remove.
105126 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
105128         * MODULES.html.sh (File stream based Input/Output):
105129         Add fopen-safer, tmpfile-safer; remove stdio-safer.
105130         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
105131         * modules/fopen-safer, modules/tmpfile-safer: New files.
105132         * modules/stdio-safer: Remove.
105134 2006-07-24  Bruno Haible  <bruno@clisp.org>
105136         * modules/tmpdir: New file.
105137         * MODULES.html.sh (File system functions): Add it.
105139 2006-07-24  Bruno Haible  <bruno@clisp.org>
105141         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
105142         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
105144 2006-07-24  Bruno Haible  <bruno@clisp.org>
105146         * modules/clean-temp: New file.
105148 2006-07-24  Bruno Haible  <bruno@clisp.org>
105150         * m4/tmpdir.m4: New file, from GNU gettext.
105152 2006-07-24  Bruno Haible  <bruno@clisp.org>
105154         * lib/tmpdir.h: New file, from GNU gettext.
105155         * lib/tmpdir.c: New file, from GNU gettext.
105157 2006-07-24  Bruno Haible  <bruno@clisp.org>
105159         * lib/clean-temp.h: New file, from GNU gettext.
105160         * lib/clean-temp.c: New file, from GNU gettext.
105162 2006-07-23  Eric Blake  <ebb9@byu.net>
105164         * modules/stdio-safer (Files): Add tmpfile-safer.c.
105165         (Depends-on): Add binary-io.
105167 2006-07-23  Eric Blake  <ebb9@byu.net>
105169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
105171 2006-07-23  Eric Blake  <ebb9@byu.net>
105173         * lib/tmpfile-safer.c: New file.
105174         * lib/stdio-safer.h (fopen_safer): Add prototype.
105175         * lib/stdio--.h (tmpfile): Make safer.
105177 2006-07-23  Bruno Haible  <bruno@clisp.org>
105179         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
105180         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
105181         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
105182         gl_linked_remove_at): Use it.
105184 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
105185         and Simon Josefsson <jas@extundo.com>
105187         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
105189         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
105191 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
105193         * modules/close-stream: New file.
105194         * modules/closeout (Description): Make it clear that it exits
105195         with a diagnostic on error.
105196         (Depends-on): Add close-stream.  Remove fpending, stdbool.
105197         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
105199 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
105201         * m4/close-stream.m4: New file.
105203 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
105205         * lib/close-stream.c, lib/close-stream.h: New files.
105207 2006-07-22  Bruno Haible  <bruno@clisp.org>
105209         Merge from GNU gettext 0.15.
105211         2006-05-01  Bruno Haible  <bruno@clisp.org>
105213                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
105215         2006-07-22  Bruno Haible  <bruno@clisp.org>
105217                 * modules/javaversion: New file.
105218                 * MODULES.html.sh (Java): Add javaversion.
105220         2006-03-12  Bruno Haible  <bruno@clisp.org>
105222                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
105224         2005-12-04  Bruno Haible  <bruno@clisp.org>
105226                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
105227                 (untested).
105229         2006-06-21  Bruno Haible  <bruno@clisp.org>
105231                 Avoid warnings from recent versions of mcs.
105232                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
105233                 -o, -L, -r any more. Use options documented since mcs-1.0
105234                 instead. Similarly for -g.
105236         2005-12-04  Bruno Haible  <bruno@clisp.org>
105238                 * build-aux/csharpcomp.sh.in: Suffix for resources is
105239                 .resources, not .resource.
105241         2005-07-09  Bruno Haible  <bruno@clisp.org>
105243                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
105244                 add a .dll suffix.
105245                 Reported by Mark Junker <mjscod@gmx.de>.
105247         2006-07-22  Bruno Haible  <bruno@clisp.org>
105249                 * modules/gettext: Upgrade to gettext-0.15.
105250                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
105251                 m4/visibility.m4.
105252                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
105254 2006-07-22  Bruno Haible  <bruno@clisp.org>
105256         Merge from GNU gettext 0.15.
105258         2006-03-25  Bruno Haible  <bruno@clisp.org>
105260                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
105262         2006-07-21  Bruno Haible  <bruno@clisp.org>
105264                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
105265                 "1.1".
105267         2006-05-09  Bruno Haible  <bruno@clisp.org>
105269                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
105270                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
105271                 for the conftestver execution.
105273         2006-05-01  Bruno Haible  <bruno@clisp.org>
105275                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
105276                 optional target-version argument. Verify that the compiler
105277                 groks source of the specified source-version, or add -source
105278                 option as necessary. Verify that the compiler produces
105279                 bytecode in the specified target-version, or add -target and
105280                 -source options as necessary. Make the result of the test
105281                 available as variable CONF_JAVAC. Also log error output in
105282                 config.log.
105284         2006-03-11  Bruno Haible  <bruno@clisp.org>
105286                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
105288         2006-05-09  Bruno Haible  <bruno@clisp.org>
105290                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
105291                 CLASSPATH_SEPARATOR to a semicolon.
105293         2006-03-12  Bruno Haible  <bruno@clisp.org>
105295                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
105296                 available as variable CONF_JAVA, for subsequent autoconf
105297                 tests. Also log error output in config.log.
105299         2006-07-19  Bruno Haible  <bruno@clisp.org>
105301                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
105302                 that getline works on glibc2 systems. Needed to avoid trouble
105303                 in relocatable.c.
105304                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
105306         2005-12-04  Bruno Haible  <bruno@clisp.org>
105308                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
105309                 launcher (untested).
105311         2005-12-04  Bruno Haible  <bruno@clisp.org>
105313                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
105315         2006-07-22  Bruno Haible  <bruno@clisp.org>
105317                 * gettext.m4: Update from GNU gettext-0.15.
105318                 * nls.m4: Likewise.
105319                 * po.m4: Likewise.
105320                 * inttypes-pri.m4: Likewise.
105321                 * inttypes-h.m4: Renamed from inttypes.m4.
105322                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
105324 2006-07-22  Bruno Haible  <bruno@clisp.org>
105326         Merge from GNU gettext 0.15.
105328         2005-07-05  Bruno Haible  <bruno@clisp.org>
105330                 * printf-args.c (printf_fetchargs): Work around broken
105331                 definition of wint_t on mingw.
105333         2005-02-12  Bruno Haible  <bruno@clisp.org>
105335                 * xallocsa.h: Add extern "C" for C++.
105337         2006-05-17  Bruno Haible  <bruno@clisp.org>
105339                 Cygwin portability.
105340                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
105342         2006-04-30  Bruno Haible  <bruno@clisp.org>
105344                 * progreloc.c: Include <mach-o/dyld.h> if available.
105345                 (find_executable): Use _NSGetExecutablePath when possible.
105347         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
105349                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
105350                 function.
105352         2005-12-29  Bruno Haible  <bruno@clisp.org>
105354                 * progreloc.c (set_program_name_and_installdir): Fix
105355                 compilation error.
105357         2005-12-04  Bruno Haible  <bruno@clisp.org>
105359                 Cygwin portability.
105360                 * progreloc.c: Include <windows.h> also on Cygwin.
105361                 (find_executable): Add support for Cygwin.
105362                 (set_program_name_and_installdir): Handle also platforms with
105363                 nonempty EXEEXT.
105365         2006-07-11  Bruno Haible  <bruno@clisp.org>
105367                 * javacomp.c: Fix a comment.
105368                 Reported by Jim Meyering.
105370         2006-04-30  Bruno Haible  <bruno@clisp.org>
105372                 * javacomp.h (compile_java_class): Add source_version,
105373                 target_version arguments.
105374                 * javacomp.c: Rewritten to choose only a compiler that
105375                 respects the specified source_version and target_version.
105377         2006-06-27  Bruno Haible  <bruno@clisp.org>
105379                 Assume correct S_ISDIR macro.
105380                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
105382         2006-07-22  Bruno Haible  <bruno@clisp.org>
105384                 * javaversion.h: New file, from GNU gettext.
105385                 * javaversion.c: New file, from GNU gettext.
105386                 * javaversion.java: New file, from GNU gettext.
105387                 * javaversion.class: New file, from GNU gettext.
105389         2006-05-17  Bruno Haible  <bruno@clisp.org>
105391                 Cygwin portability.
105392                 * javaexec.c (execute_java_class): Test for jview program
105393                 also on Cygwin.
105395         2006-04-09  Bruno Haible  <bruno@clisp.org>
105397                 * fatal-signal.c: Don't include string.h.
105398                 (at_fatal_signal): Use a copying loop instead of memcpy.
105400         2005-12-04  Bruno Haible  <bruno@clisp.org>
105402                 * csharpexec.c: Add support for 'clix' launcher (untested).
105403                 (execute_csharp_using_sscli): New function.
105404                 (execute_csharp_program): Call it.
105406         2006-06-21  Bruno Haible  <bruno@clisp.org>
105408                 Avoid warnings from recent versions of mcs.
105409                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
105410                 -o, -L, -r any more. Use options documented since mcs-1.0
105411                 instead. Similarly for -g.
105413         2005-07-09  Bruno Haible  <bruno@clisp.org>
105415                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
105416                 add a .dll suffix.
105417                 Reported by Mark Junker <mjscod@gmx.de>.
105419         2006-06-17  Bruno Haible  <bruno@clisp.org>
105421                 * config.charset: Update for NetBSD 3.0.
105423         2006-05-17  Bruno Haible  <bruno@clisp.org>
105425                 Cygwin portability.
105426                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
105428         2006-05-16  Bruno Haible  <bruno@clisp.org>
105430                 * localcharset.c [CYGWIN]: Include <windows.h>.
105431                 (get_charset_aliases): For Cygwin, return the same CPxxx
105432                 aliases list as under WIN32.
105433                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
105434                 the environment variables. Fall back to GetACP().
105436         2006-04-05  Bruno Haible  <bruno@clisp.org>
105438                 * config.charset: Update Juan Manuel Guerrero's address.
105440         2005-02-12  Bruno Haible  <bruno@clisp.org>
105442                 * allocsa.h: Add extern "C" for C++.
105444         2005-02-10  Bruno Haible  <bruno@clisp.org>
105446                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
105447                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
105449         2006-07-22  Bruno Haible  <bruno@clisp.org>
105451                 * gettext.h: Update to GNU gettext-0.15.
105453 2006-07-22  Bruno Haible  <bruno@clisp.org>
105455         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
105456         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
105457         lib-prefix.m4, longdouble.m4, ssize_t.m4.
105459 2006-07-21  Eric Blake  <ebb9@byu.net>
105461         * modules/stdlib-safer: New file.
105462         * MODULES.html.sh (File stream based Input/Output): Add
105463         stdlib-safer.
105465 2006-07-21  Eric Blake  <ebb9@byu.net>
105467         * lib/stdlib-safer.h: New file from coreutils, required by
105468         stdlib--.h.
105470 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
105472         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
105474 2006-07-20  Bruno Haible  <bruno@clisp.org>
105476         * gnulib-tool: Recognize new option --assume-autoconf.
105477         (autoconf_minversion): New variable.
105478         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
105480 2006-07-20  Bruno Haible  <bruno@clisp.org>
105482         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
105484 2006-07-19  Derek R. Price  <derek@ximbiot.com>
105486         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
105487         Reindent and repaginate.
105489 2006-07-19  Derek Price  <derek@ximbiot.com>
105491         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
105492         Correct grammar.
105494 2006-07-17  Bruno Haible  <bruno@clisp.org>
105496         * modules/list: New file.
105497         * modules/array-list: New file.
105498         * modules/carray-list, modules/carray-list-tests: New files.
105499         * modules/linked-list, modules/linked-list-tests: New files.
105500         * modules/avltree-list, modules/avltree-list-tests: New files.
105501         * modules/rbtree-list, modules/rbtree-list-tests: New files.
105502         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
105503         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
105504         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
105505         * modules/oset: New file.
105506         * modules/array-oset: New file.
105507         * modules/avltree-oset, modules/avltree-oset-tests: New files.
105508         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
105509         * tests/test-carray_list.c: New file.
105510         * tests/test-linked_list.c: New file.
105511         * tests/test-avltree_list.c: New file.
105512         * tests/test-rbtree_list.c: New file.
105513         * tests/test-linkedhash_list.c: New file.
105514         * tests/test-avltreehash_list.c: New file.
105515         * tests/test-rbtreehash_list.c: New file.
105516         * tests/test-avltree_oset.c: New file.
105517         * tests/test-rbtree_oset.c: New file.
105518         * MODULES.html.sh (Container data structures): New section.
105520 2006-07-17  Bruno Haible  <bruno@clisp.org>
105522         * m4/gl_list.m4: New file.
105524 2006-07-17  Bruno Haible  <bruno@clisp.org>
105526         * lib/gl_list.h: New file.
105527         * lib/gl_list.c: New file.
105528         * lib/gl_array_list.h: New file.
105529         * lib/gl_array_list.c: New file.
105530         * lib/gl_carray_list.h: New file.
105531         * lib/gl_carray_list.c: New file.
105532         * lib/gl_linked_list.h: New file.
105533         * lib/gl_linked_list.c: New file.
105534         * lib/gl_anylinked_list1.h: New file.
105535         * lib/gl_anylinked_list2.h: New file.
105536         * lib/gl_avltree_list.h: New file.
105537         * lib/gl_avltree_list.c: New file.
105538         * lib/gl_anyavltree_list1.h: New file.
105539         * lib/gl_anyavltree_list2.h: New file.
105540         * lib/gl_rbtree_list.h: New file.
105541         * lib/gl_rbtree_list.c: New file.
105542         * lib/gl_anyrbtree_list1.h: New file.
105543         * lib/gl_anyrbtree_list2.h: New file.
105544         * lib/gl_anytree_list1.h: New file.
105545         * lib/gl_anytree_list2.h: New file.
105546         * lib/gl_linkedhash_list.h: New file.
105547         * lib/gl_linkedhash_list.c: New file.
105548         * lib/gl_anyhash_list1.h: New file.
105549         * lib/gl_anyhash_list2.h: New file.
105550         * lib/gl_avltreehash_list.h: New file.
105551         * lib/gl_avltreehash_list.c: New file.
105552         * lib/gl_rbtreehash_list.h: New file.
105553         * lib/gl_rbtreehash_list.c: New file.
105554         * lib/gl_anytreehash_list1.h: New file.
105555         * lib/gl_anytreehash_list2.h: New file.
105557         * lib/gl_oset.h: New file.
105558         * lib/gl_oset.c: New file.
105559         * lib/gl_array_oset.h: New file.
105560         * lib/gl_array_oset.c: New file.
105561         * lib/gl_avltree_oset.h: New file.
105562         * lib/gl_avltree_oset.c: New file.
105563         * lib/gl_rbtree_oset.h: New file.
105564         * lib/gl_rbtree_oset.c: New file.
105565         * lib/gl_anytree_oset.h: New file.
105567 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105569         * m4/mkancesdirs.m4: New file.
105570         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
105571         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
105572         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
105573         it.
105575 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105577         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
105578         * lib/mkancesdirs.h: New files.
105579         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
105580         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
105581         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
105582         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
105583         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
105584         callers changed.  Revamp internals significantly, by not
105585         attempting to create directories that are temporarily more
105586         permissive than the final results.  Do not attempt to use
105587         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
105588         This removes some race conditions, fixes some bugs, and simplifies
105589         things.  Use new dirchownmod function to do owner and mode changes.
105590         * lib/mkdir-p.h: Likewise.
105591         * lib/modechange.c (octal_to_mode): New function.
105592         (struct mode_change): New member mentioned.
105593         (make_node_op_equals): New arg mentioned.  All callers changed.
105594         (mode_compile): Keep track of which mode bits the user has explicitly
105595         mentioned.
105596         (mode_adjust): New arg DIR, so that we implement the X op correctly.
105597         New arg PMODE_BITS, to keep track of which mode bits the user
105598         mentioned; it treats S_ISUID and S_ISGID speciall.
105599         All callers changed.
105600         * lib/modechange.h: Likewise.
105602 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
105604         * MODULES.html.sh: Add mkancestors.
105605         * modules/mkancesdirs: New module.
105606         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
105607         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
105608         The chdir-safer and afs files are now orphans; I'll remove them
105609         unless someone speaks up.
105610         Add lib/dirchownmod.c, lib/dirchownmod.h.
105611         (Depends-on): Remove alloca, chown, save-cwd, dirname.
105612         Add lchown, mkancesdirs.
105613         (Maintainer): Add self.
105615 2006-07-15  Karl Berry  <karl@gnu.org>
105617         * gnulib-tool: help message wording/arrangement.
105619 2006-07-14  Simon Josefsson  <jas@extundo.com>
105621         * doc/gnulib.texi (Libtool and Windows): New section.
105623 2006-07-12  Simon Josefsson  <jas@extundo.com>
105625         * modules/gendocs (License): Fix license, approved by Karl.
105627 2006-07-12  Eric Blake  <ebb9@byu.net>
105629         * MODULES.html.sh: Add gendocs.
105631 2006-07-11  Eric Blake  <ebb9@byu.net>
105633         * modules/fdl: New module, to install doc/fdl.texi.
105634         * MODULES.html.sh: Add new section for documentation modules.
105635         * gnulib-tool: Avoid space-tab.
105636         (--doc-base): New option, to manage files from doc.
105638 2006-07-11  Eric Blake  <ebb9@byu.net>
105640         * m4/absolute-header.m4: Fix comments to match recent change.
105642 2006-07-11  Eric Blake  <ebb9@byu.net>
105644         * gnulib-tool: List --doc-base before --tests-base.
105646 2006-07-11  Derek R. Price  <derek@ximbiot.com>
105648         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
105650 2006-07-11  Bruno Haible  <bruno@clisp.org>
105652         * README: Mention where to put documentation.
105654 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105656         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
105658 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
105660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
105661         to stdint.m4.
105663 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
105665         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
105666         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
105667         "no/such/file/stdint.h" when there is no such file, so that
105668         the resulting C code can be parsed by dodgy compilers.
105669         Problems reported by Bob Proulx.
105671 2006-07-10  Derek R. Price  <derek@ximbiot.com>
105673         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
105674         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
105675         macros into the GNU _D_EXACT_NAMLEN.
105676         * lib/savedir.c:  Likewise.
105677         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
105679 2006-07-10  Derek R. Price  <derek@ximbiot.com>
105680         and Paul Eggert  <eggert@cs.ucla.edu>
105682         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
105683         * m4/savedir.m4:
105684         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
105685         macros into the GNU _D_EXACT_NAMLEN.
105687 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105689         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
105690         around the absolute name, to work around a problem with the HP-UX
105691         11.23 native C compiler, reported by Bob Proulx.
105693 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105695         * doc/maintain.texi, make-stds.texi: Sync from
105696         <http://savannah.gnu.org/projects/gnustandards>.
105698 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
105700         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
105702 2006-07-09  Jim Meyering  <jim@meyering.net>
105704         * m4/glob.m4: Remove a doubled word in a comment.
105706 2006-07-09  Jim Meyering  <jim@meyering.net>
105708         * lib/argp-pv.c: Remove a doubled word in a comment.
105709         * lib/check-version.c (check_version): Likewise.
105710         * lib/javacomp.c (compile_java_class): Likewise.
105712 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105714         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
105715         for the benefit of people using Autoconf 2.60.  If you want to
105716         support older Autoconf versions you can copy m4/onceonly_2_57.m4
105717         (or m4/onceonly.m4, if pre-2.57) manually.
105719 2006-07-08  Jim Meyering  <jim@meyering.net>
105721         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
105722         comment.
105723         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
105724         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
105725         comment.
105727 2006-07-08  Jim Meyering  <jim@meyering.net>
105729         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
105731 2006-07-07  Simon Josefsson  <jas@extundo.com>
105733         * tests/test-crc.c: Change expected crc value, the test vector
105734         were probably computed using the old broken crc.c?
105736 2006-07-06  Simon Josefsson  <jas@extundo.com>
105738         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
105739         now the canonical place for the M4 file).
105741         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
105742         from the sys_socket dependency now.
105744         * modules/inet_pton (Files): Ditto.
105746         * modules/inet_ntop (Files): Ditto.
105748 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105750         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
105751         not gl_PREREQ_GETUSERSHELL.
105753 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105755         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
105756         with only one argument, for Autoconf 2.60.
105757         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
105758         expand to nothing, so add a shell command to avoid syntax error.
105759         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
105761 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105763         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
105765 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105767         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
105768         no longer needed.  Check for isblank decl.
105769         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
105770         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
105771         of existence.
105773 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105775         * lib/getloadavg.c: Use __VMS, not VMS.
105776         * lib/getopt.c: Likewise.
105777         * lib/getpagesize.h: Likewise.
105778         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
105779         and probably does not work.
105781 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105783         * lib/.cppi-disable: Add wcwidth.
105784         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
105785         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
105786         (ISGRAPH): Remove.  All uses changed to isgraph.
105787         (FOLD) [!defined _LIBC]: Remove special case.
105788         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
105789         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
105790         HAVE_ISBLANK.
105791         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
105792         case.
105794 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
105796         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
105797         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
105798         brackets.  Other minor changes to suppress some compiler
105799         warnings.
105801 2006-07-06  Derek R. Price  <derek@ximbiot.com>
105802         and Paul Eggert  <eggert@cs.ucla.edu>
105804         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
105805         of invoking obsolescent AC_HEADER_DIRENT macro.
105806         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
105807         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
105808         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
105809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
105810         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
105811         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
105812         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
105813         * m4/readdir.m4: Remove; no longer needed.
105815 2006-07-06  Derek R. Price  <derek@ximbiot.com>
105816         and Paul Eggert  <eggert@cs.ucla.edu>
105818         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
105819         Don't worry about this obsolete case any more.
105820         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
105821         directories.
105822         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
105823         worry about this obsolete case any more.
105824         * lib/fts.c: Likewise.
105825         * lib/getcwd.c: Likewise.
105826         * lib/glob.h: Likewise.
105827         * lib/savedir.c: Likewise.
105829 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
105832         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
105833         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
105834         needed.
105835         All uses removed.
105836         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105837         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
105838         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
105839         needed.
105840         * m4/getdate.m4 (gl_GETDATE): Likewise.
105841         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
105842         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
105843         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
105844         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105845         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
105846         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105847         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
105848         needed.
105850 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105852         * lib/memcasecmp.c: Include <limits.h>.
105853         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
105854         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
105855         Don't assume isdigit succeeds only on '0' through '9'.
105857 2006-07-05  Eric Blake  <ebb9@byu.net>
105859         * modules/getaddrinfo (Depends-on): Add snprintf.
105861 2006-07-05  Eric Blake  <ebb9@byu.net>
105863         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
105864         to avoid 'header present but could not be compiled' on cygwin.
105866 2006-07-05  Eric Blake  <ebb9@byu.net>
105868         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
105869         missing from netdb.h.
105870         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
105872 2006-07-05  Derek R. Price  <derek@ximbiot.com>
105874         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
105875         no longer needed.
105876         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
105877         * m4/getdate.m4 (gl_GETDATE): Likewise.
105878         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
105879         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
105880         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
105881         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
105882         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
105884 2006-07-05  Derek R. Price  <derek@ximbiot.com>
105886         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
105887         All uses of is_space replaced by isspace.
105888         * lib/exit.h: Don't talk about STDC_HEADERS.
105889         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
105890         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
105891         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
105892         replaced by isprint etc.
105893         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
105894         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
105895         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
105896         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
105897         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
105898         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
105900 2006-07-05  Bruno Haible  <bruno@clisp.org>
105902         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
105903         the function exists, before testing against AIX.
105904         Reported by Martin Lambers <marlam@marlam.de>.
105906 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
105908         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
105909         From Mark D. Baushke.
105911 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
105913         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
105914         to the absolute name, not just one, to bypass Sun C 5.8's
105915         "warning: #include of /usr/include/... may be non-portable".
105917 2006-07-04  Eric Blake  <ebb9@byu.net>
105919         * modules/dirname-tests: New test module.
105920         * tests/test-dirname.c: New file, replacing dirname.c
105921         TEST_DIRNAME section that was recently deleted.
105923 2006-07-04  Bruno Haible  <bruno@clisp.org>
105925         Assume ANSI C header files and <ctype.h> functions.
105926         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
105927         (mbsnwidth): Use isprint, iscntrl instead.
105929 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105931         Merge from coreutils.
105932         * MODULES.html.sh: Add xstrtold.
105933         * modules/xstrtold: New file.
105934         * modules/cycle-check (Files): Add lib/same-inode.h.
105935         * modules/dirname (Files): Add m4/double-slash-root.m4.
105936         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
105937         * modules/mkdir-p (Files): Add lib/same-inode.h.
105938         * modules/same (Files): Add lib/same-inode.h.
105940 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105942         * m4/absolute-header.m4: Renamed from full-header-path.m4.
105943         This is to keep the terminology clean; POSIX talks about
105944         "absolute pathnames", not "full pathnames", but the GNU
105945         Coding Standards say to use "path" for something else;
105946         so use "absolute" to keep both sides happy.
105947         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
105948         Set gl_absolute_header, not gl_full_header_path.
105949         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
105950         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
105951         All uses changed.
105953         Merge from coreutils.
105955         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
105957         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
105958         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
105959         want to require the building of c-strtod.o.
105960         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
105961         needs -lm directly.
105962         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
105964         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
105966         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
105967         --as-needed option if available.  Problem reported by Albert Chin in
105968         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
105969         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
105970         cc merely issues a bunch of annoying warnings for --as-needed
105971         (this problem was reported by Bob Proulx).  Also, try linking with
105972         -lm to detect a bug in binutils 2.16 (this problem was reported
105973         by Ralf Wildenhues).
105975         2006-06-18  Jim Meyering  <jim@meyering.net>
105977         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
105978         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
105979         macro.
105980         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
105981         also check for glibc-2.4's abort-inducing bug.
105983         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
105984         Low-probability clean-up should be to use rmdir to get rid of
105985         the just-created directory, not unlink.
105987         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
105988         configure fail, and request a bug report to inform us about it.
105989         Add a comment that, barring reports to the contrary, in 2007 we'll
105990         assume ftruncate is universally available.
105992         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
105994         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
105996         2006-03-12  Jim Meyering  <jim@meyering.net>
105998         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
105999         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
106000         * m4/same.m4 (gl_SAME): Likewise.
106001         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
106003         2006-03-11  Eric Blake  <ebb9@byu.net>
106005         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
106006         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
106007         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
106008         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
106010 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
106012         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
106013         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
106014         reported by Mark D. Baushke, one in
106015         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
106017         Merge from coreutils.
106019         * lib/.cppi-disable: Add stdint_.h.
106020         * lib/.cvsignore: Add stdint.h.
106022         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
106024         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
106025         both double and long double versions.
106026         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
106027         * lib/xstrtold.c: New file.
106028         * lib/xstrtod.h (xstrtold): New decl.
106030         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106032         * lib/filemode.c (setst): Remove.
106033         (strmode): Rewrite to avoid setst.  This makes the code shorter,
106034         (arguably) clearer, and the generated code is a bit smaller on my
106035         Debian GNU/Linux stable x86 host.
106037         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
106039         * lib/filemode.c: Include "filemode.h" first, to test the interface.
106040         Assume that filemode.h includes sys/types.h and sys/stat.h.
106041         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
106042         (ftypelet): Reorder to put common cases first, for efficiency.
106043         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
106044         to do 'M'.
106045         (strmode): Renamed from mode_string, and now stores 12 bytes instead
106046         of 10, for compatibility with FreeBSD.  All callers changed.
106047         (filemodestring): Now stores 12 bytes instead of 10, and sets file
106048         types that can't be deduced solely from st_mode.  First arg is now a
106049         const pointer.
106050         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
106051         (strmode): Renamed from mode_string.
106052         (filemodestring): New decl.
106053         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
106054         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
106055         needed.
106056         (S_ISPORT, S_ISWHT): New macros, if not already defined.
106058         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106060         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
106061         fsusage.h now does that.  Include fsusage.h first, to test interface.
106062         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
106063         at most one method (the old code could have generated decls that
106064         didn't conform to C89, not that this was ever exercised).
106065         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
106067         2006-03-19  Jim Meyering  <jim@meyering.net>
106069         Work even in a chroot where d_ino values for entries in "/"
106070         don't match the stat.st_ino values for the same names.
106071         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
106072         number, iterate through all entries again, using lstat instead.
106073         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
106074         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
106076         * lib/getcwd.c (__getcwd): Clarify a comment.
106077         Use memcpy in place of a call to strcpy.
106079         2006-03-12  Jim Meyering  <jim@meyering.net>
106081         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
106082         matches that of the current directory (which we're about to chdir ".."
106083         out of), then save the dev-ino of the parent, instead.
106085         * lib/same-inode.h (SAME_INODE): New file/macro.
106086         * lib/chdir-safer.c (SAME_INODE): Remove definition.
106087         Include "same-inode.h", instead.
106088         * lib/same.c: Likewise.
106089         * lib/cycle-check.h: Include "same-inode.h".
106090         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
106091         * lib/cycle-check.c (SAME_INODE): Remove definition.
106092         * lib/root-dev-ino.h: Include "same-inode.h".
106094         2006-03-11  Eric Blake  <ebb9@byu.net>
106096         * lib/same.c (same_name): s/base_name/last_component/
106097         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
106098         * lib/filenamecat.c (file_name_concat): Likewise.
106100         2006-03-11  Eric Blake  <ebb9@byu.net>,
106101                     Paul Eggert  <eggert@cs.ucla.edu>
106103         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
106104         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
106105         drive prefix.
106106         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
106107         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
106108         (last_component): New method.
106109         * lib/dirname.c (dir_len): Determine when drive letters need a
106110         subsequent slash.  Preserve // when it is special.
106111         (dir_name): Don't append dot when drive letter is absolute.
106112         [TEST_DIRNAME]: Move into a full-blown gnulib test.
106113         * lib/basename.c (base_name): New semantics - malloc the result.
106114         Preserve // when it is special.  Preserve relative files that look
106115         like drive letters.
106116         (base_len): Preserve // when it is special.
106117         (last_component): New method, similar to old base_name semantics.
106118         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
106119         base_name.  Strip redundant slashes from ///.
106121 2006-07-03  Jim Meyering  <jim@meyering.net>
106123         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
106124         macro is used before the first cycle_check call.
106126 2006-07-03  Eric Blake  <ebb9@byu.net>
106128         * modules/dirname (Depends-on): Add xstrndup.
106130 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
106132         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
106133         test cases, so that config.log is a bit easier to follow.
106135 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
106137         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
106138         both are 64 bits, since this seems to be the tradition, and this
106139         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
106140         we ever run into a host that prefers long long to long in this
106141         case, we'll need another configure-time test.  Problem reported by
106142         Jim Meyering.
106144 2006-07-02  Eric Blake  <ebb9@byu.net>
106146         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
106148 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
106150         * modules/inttypes (Depends-on): No longer depends on stdint.
106151         * modules/stdint (Description): Say more about assumptions.
106152         Say that the fast types might differ.  Say macros are used.
106153         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
106154         (Makefile.am): Revise list of substituted symbols to match
106155         new stdint.m4.
106156         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
106157         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
106158         * tests/test-stdint.c (verify_same_types)
106159         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
106160         the code conforms to C99/C89.
106161         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
106162         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
106164 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
106166         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
106167         but fix a bug, by requiring at least 64 bits.
106168         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
106169         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
106170         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
106171         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
106173         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
106174         changes.  Make 2.59 a prerequisite.  Check and substitute for
106175         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
106176         inttypes.h.  Do not use special include files; just use the
106177         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
106178         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
106179         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
106180         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
106181         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
106182         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
106183         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
106184         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
106185         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
106186         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
106187         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
106188         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
106189         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
106190         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
106191         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
106192         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
106193         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
106194         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
106195         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
106196         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
106197         WINT_MAX.  Check for C99 conformance more strictly, by detecting
106198         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
106199         not check for things that C99 does not require, e.g., int8_t.  If
106200         a test isn't needed unless <stdint.h> isn't working, and is
106201         unlikely to be needed for any other reason, then don't do it
106202         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
106203         size_t, since we assume C89 freestanding at least.  Do not check
106204         for sig_atomic_t, wchar_t, or wint_t, since the code now does
106205         the right thing even if the types are not defined.  Instead use:
106206         (gl_STDINT_TYPE_PROPERTIES): New macro.
106207         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
106208         testing whether <sys/types.h> clashes, as Autoconf does this for
106209         us now.  All uses removed.
106210         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
106211         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
106212         (gl_CHECK_TYPE_SAME):
106213         Remove; no longer needed.
106214         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
106215         exists, since we'll return 0 anyway in that case.
106216         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
106218 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
106220         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
106221         possible collision with system files.
106222         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
106223         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
106224         WCHAR_MIN and WCHAR_MAX in this case.
106225         (<stddef.h>): Do not include; no longer needed.
106226         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
106227         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
106228         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
106229         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
106230         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
106231         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
106232         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
106233         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
106234         !defined(__c99))]: Include in this case too, since it's harmless
106235         now.
106236         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
106237         dangerous to do so.
106238         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
106239         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
106240         (_STDINT_MIN, _STDINT_MAX): New macros.
106241         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
106242         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
106243         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
106244         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
106245         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
106246         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
106247         macros, not typedefs; this simplifies things quite a bit.
106248         Use long int for all types narrower than int64_t.
106249         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
106250         Define in terms of long long int or int64_t or long int,
106251         not int64_t or int32_t.  This saves some compile-time testing.
106252         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
106253         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
106254         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
106255         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
106256         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
106257         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
106258         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
106259         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
106260         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
106261         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
106262         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
106263         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
106264         undef any previous version and define our own version, for
106265         simplicity and consistency with the new macros for types.
106266         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
106267         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
106268         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
106269         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
106270         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
106271         @WINT_T_SUFFIX@ to keep things simple here.
106272         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
106273         Simplify by assuming typical 8/16/32/64 host, since we're
106274         already doing that elsewhere anyway.
106275         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
106276         and assume long long int is 64 bits if available.  This
106277         speeds up 'configure'.
106279 2006-07-01  Eric Blake  <ebb9@byu.net>
106281         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
106282         Reported by Andreas Buening.
106284 2006-07-01  Eric Blake  <ebb9@byu.net>
106286         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
106288 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
106290         * lib/getaddrinfo.c: fixed typo
106292 2006-06-29  Jim Meyering  <jim@meyering.net>
106294         * modules/strftime (Maintainer): Add my name, since with the
106295         FPRINTFTIME changes strftime.c has forked from glibc.
106297 2006-06-29  Eric Blake  <ebb9@byu.net>
106299         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
106301 2006-06-29  Eric Blake  <ebb9@byu.net>
106303         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
106305 2006-06-29  Eric Blake  <ebb9@byu.net>
106307         * lib/stat_.h: New file.
106309 2006-06-29  Eric Blake  <ebb9@byu.net>
106311         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
106312         unused static function.
106314 2006-06-29  Eric Blake  <ebb9@byu.net>
106316         * doc/functions.texi (Function Portability): Document missing lstat
106317         on mingw.
106319 2006-06-29  Eric Blake  <ebb9@byu.net>
106321         * MODULES.html.sh: Add sys_stat.
106322         * modules/sys_stat: New module.
106323         * modules/mkstemp (Depends-on): Add sys_stat.
106325 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106327         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
106329 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106331         * m4/c-bs-a.m4: Removed.
106333 2006-06-29  Derek R. Price  <derek@ximbiot.com>
106335         * lib/strftime.c: Assume strftime() exists.
106337 2006-06-29  Derek Price  <derek@ximbiot.com>
106339         * modules/c-bs-a: Removed - \a is C89.
106340         * MODULES.html.sh: Remove c-bs-a.
106342 2006-06-29  Bruno Haible  <bruno@clisp.org>
106344         * modules/wcwidth (License): Change to LGPL.
106346 2006-06-28  Simon Josefsson  <jas@extundo.com>
106348         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
106349         on _WIN32.
106351         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
106352         getnameinfo.
106354 2006-06-28  Simon Josefsson  <jas@extundo.com>
106356         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
106358 2006-06-28  Simon Josefsson  <jas@extundo.com>
106360         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
106361         functions there.  It will succeed on Windows XP, but on Windows
106362         2000 and (presumably) earlier, it will fail, and use the internal
106363         re-implementation.
106364         (use_win32_p): New function.
106365         (getaddrinfo): Use strtoul on servname, to support numeric ports.
106366         Support AI_NUMERICSERV to disable getservbyname.
106367         (getnameinfo): New function, only supports
106368         NI_NUMERICHOST|NI_NUMERICSERV for now.
106370         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
106371         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
106372         getnameinfo.
106374 2006-06-28  Eric Blake  <ebb9@byu.net>
106376         * modules/wcwidth: New file.
106377         * modules/mbchar (Depends-on): Add wcwidth.
106378         * modules/mbswidth (Depends-on): Add wcwidth.
106379         * MODULES.html.sh: Add wcwidth.
106381 2006-06-28  Eric Blake  <ebb9@byu.net>
106383         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
106384         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
106386 2006-06-28  Eric Blake  <ebb9@byu.net>
106388         * lib/xvasprintf.h: Fix comments.
106390 2006-06-28  Eric Blake  <ebb9@byu.net>
106392         * lib/mbchar.h (wcwidth): Include wcwidth.h.
106393         * lib/mbswidth.c (wcwidth): Move from here...
106394         * lib/wcwidth.h: ...to this new file.
106396 2006-06-28  Derek R. Price  <derek@ximbiot.com>
106398         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
106400         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
106401         it's obsolete.
106402         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
106404 2006-06-28  Derek R. Price  <derek@ximbiot.com>
106406         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
106407         Autoconf 2.60 says this stuff was obsolete.
106409 2006-06-28  Bruno Haible  <bruno@clisp.org>
106411         * modules/wcwidth (Files): Add m4/wchar_t.m4.
106413 2006-06-28  Bruno Haible  <bruno@clisp.org>
106415         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
106416         gt_TYPE_WCHAR_T.
106418 2006-06-28  Bruno Haible  <bruno@clisp.org>
106420         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
106421         declaration for wcwidth.
106422         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
106424 2006-06-28  Bruno Haible  <bruno@clisp.org>
106426         * lib/mkdtemp.c [MINGW]: Include <io.h>.
106427         (mkdir): Define using _mkdir.
106429 2006-06-28  Bruno Haible  <bruno@clisp.org>
106431         * lib/getaddrinfo.h: Fix POSIX URL.
106432         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
106433         _WIN32.
106434         (use_win32_p): Make static.
106435         (getaddrinfo): Reject service name if it is empty or does not consist
106436         solely of decimal digits, or if its value is > 65535.
106437         (getnameinfo): Remove useless casts.
106439 2006-06-27  Simon Josefsson  <jas@extundo.com>
106441         * modules/sys_select: New file, suggested by Bruno Haible, Paul
106442         Eggert and Martin Lambers.
106444 2006-06-27  Simon Josefsson  <jas@extundo.com>
106446         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
106447         Eggert and Martin Lambers.
106449 2006-06-27  Bruno Haible  <bruno@clisp.org>
106451         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
106452         result to 0, not to empty.
106453         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
106455 2006-06-27  Bruno Haible  <bruno@clisp.org>
106457         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
106459 2006-06-26  Simon Josefsson  <jas@extundo.com>
106461         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
106462         present.
106464 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
106466         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
106467         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
106468         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
106470 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
106472         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
106474 2006-06-26  Bruno Haible  <bruno@clisp.org>
106476         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
106478 2006-06-26  Bruno Haible  <bruno@clisp.org>
106480         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
106482 2006-06-26  Bruno Haible  <bruno@clisp.org>
106484         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
106485         SGI C compiler in pre-C99 mode.
106486         Suggested by Mark D. Baushke and Larry Jones.
106488 2006-06-26  Bruno Haible  <bruno@clisp.org>
106490         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
106491         WCHAR_MAX.
106492         Reported by Mark D. Baushke and Larry Jones.
106494 2006-06-26  Bruno Haible  <bruno@clisp.org>
106496         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
106497         in pre-C99 mode.
106498         Suggested by Mark D. Baushke and Larry Jones.
106500 2006-06-23  Simon Josefsson  <jas@extundo.com>
106501             Bruno Haible  <bruno@clisp.org>
106503         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
106504         Emit mostlyclean-local rule.
106505         (func_emit_tests_Makefile_am): Likewise.
106506         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
106508 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
106510         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
106512 2006-06-23  Bruno Haible  <bruno@clisp.org>
106514         * tests/test-stdint.c: Update to match ISO C 99 Technical
106515         Corrigendum 1.
106517 2006-06-23  Bruno Haible  <bruno@clisp.org>
106519         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
106521 2006-06-23  Bruno Haible  <bruno@clisp.org>
106523         * lib/stdint_.h: Treat IRIX like OpenBSD.
106525 2006-06-23  Bruno Haible  <bruno@clisp.org>
106527         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
106528         ISO C 99 Technical Corrigendum 1.
106530 2006-06-22  Simon Josefsson  <jas@extundo.com>
106532         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
106533         MinGW.
106535 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106537         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
106538         needed.  Some compiler complained about some of them.  Problem reported
106539         by Larry Jones in
106540         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
106542 2006-06-21  Simon Josefsson  <jas@extundo.com>
106544         * tests/test-getaddrinfo.c: New file.
106546         * modules/getaddrinfo-tests: New file.
106548         * MODULES.html.sh: Add inet_pton.
106550         * modules/inet_pton: New file.
106552 2006-06-21  Simon Josefsson  <jas@extundo.com>
106554         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
106555         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
106556         of using the (limited) gnulib implementation on Windows XP.
106558         * m4/inet_pton.m4: New file.
106560 2006-06-21  Simon Josefsson  <jas@extundo.com>
106562         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
106563         variable.
106565         * lib/socket_.h: Don't define WINVER.
106567         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
106568         slightly modified to work in gnulib.
106570 2006-06-21  Simon Josefsson  <jas@extundo.com>
106572         * doc/gnulib.texi (Windows sockets): Add.
106574 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
106576         * lib/read-file.c (fread_file): Start with buffer allocation of
106577         0 bytes rather than 1 byte; this simplifies the code.
106578         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
106579         code to free buffer and save/restore errno.
106580         (internal_read_file): Remove unused local.
106582 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
106584         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
106585         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
106586         Problem reported by Denis Excoffier in
106587         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
106589 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106591         * modules/sys_socket, modules/socklen: Include sys/types since
106592         FreeBSD 4.x's sys/socket.h needs it.
106594 2006-06-19  Simon Josefsson  <jas@extundo.com>
106596         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
106598 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
106600         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
106602 2006-06-19  Bruno Haible  <bruno@clisp.org>
106604         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
106605         and FULL_PATH_INTTYPES_H in angle brackets.
106606         Reported by Mark D. Baushke <mdb@gnu.org>.
106608 2006-06-17  Eric Blake  <ebb9@byu.net>
106610         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
106611         errno.
106613 2006-06-17  Bruno Haible  <bruno@clisp.org>
106615         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
106616         <sys/inttypes.h>.
106618 2006-06-17  Bruno Haible  <bruno@clisp.org>
106620         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
106621         whether errno is declared. Assume <errno.h> declares errno.
106623 2006-06-17  Bruno Haible  <bruno@clisp.org>
106625         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
106627 2006-06-17  Bruno Haible  <bruno@clisp.org>
106629         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
106630         problem on Solaris 2.5.1.
106632 2006-06-16  Eric Blake  <ebb9@byu.net>
106634         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
106635         * lib/unicodeio.c [!defined errno]: Likewise.
106636         * lib/strtol.c [!defined errno]: Likewise.
106637         * lib/strtod.c [!defined errno]: Likewise.
106639 2006-06-15  Eric Blake  <ebb9@byu.net>
106641         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
106643 2006-06-15  Eric Blake  <ebb9@byu.net>
106645         * config/srclist.txt (ssize_t.m4): Lose sync.
106647 2006-06-15  Bruno Haible  <bruno@clisp.org>
106649         * modules/stdint (Files): Include m4/full-header-path.m4,
106650         m4/size_max.m4, m4/wchar_t.m4.
106651         (Makefile.am): Many more substitutions.
106652         * modules/stdint-tests: New file.
106653         * tests/test-stdint.c: New file.
106655 2006-06-15  Bruno Haible  <bruno@clisp.org>
106657         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
106658         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
106659         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
106660         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
106661         gl_CHECK_TYPE_SAME): New macros.
106663 2006-06-15  Bruno Haible  <bruno@clisp.org>
106665         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
106667 2006-06-15  Bruno Haible  <bruno@clisp.org>
106669         * lib/stdint_.h: Rewritten to be fully auto-configured.
106670         Fixes bug on HP-UX/IA64.
106672 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
106674         * lib/getdate.y (__attribute__): Don't define if already defined.
106675         Problem reported by Larry Jones.
106676         * lib/utimens.c (__attribute__): Likewise.
106678 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
106680         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
106681         reported by Andreas Schwab.
106683 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106684             Bruno Haible  <bruno@clisp.org>
106686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
106687         check for the declaration of strnlen and a run test that exposes the
106688         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
106689         rpl_strndup.
106691 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106692             Bruno Haible  <bruno@clisp.org>
106694         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
106696 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
106698         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
106699         compile test, for Tru64 4.0D.
106701 2006-05-28  Karl Berry  <karl@gnu.org>
106703         * config/srclist.txt (printf-args.c): lose sync.
106705 2006-05-26  Martin Lambers  <marlam@marlam.de>
106707         * lib/getpass.c: Updates the test for the native W32 API, and adds
106708         missing includes, thus fixing compilation warnings.
106710 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
106712         * lib/exclude.c (exclude_fnmatch): New function.
106713         (excluded_file_name): Call exclude_fnmatch.
106714         * lib/exclude.h (excluded_file_name): New prototype
106716 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
106718         * lib/tempname.c (small_open, large_open): New macros.
106719         (__open, __open64) [!_LIBC]: Remove.
106720         (__gen_tempname): Use small_open and large_open instead of __open
106721         and __open64.  This fixes a portability bug on HP-UX 11.11i
106722         reported by Simon Wing-Tang in
106723         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
106725 2006-05-24  Bruno Haible  <bruno@clisp.org>
106727         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
106728         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
106729         Reported by Thorsten Maerz <torte@netztorte.de> via
106730         Aaron Stone <aaron@serendipity.cx>.
106732 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106734         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
106735         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
106736         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
106737         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
106738         not really conditional on the cache.
106739         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
106741 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
106743         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
106744         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
106745         (my_usleep): Don't mishandle maximum value.
106747 2006-05-19  Jim Meyering  <jim@meyering.net>
106749         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
106751 2006-05-17  Bruno Haible  <bruno@clisp.org>
106753         Cygwin portability.
106754         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
106756 2006-05-17  Bruno Haible  <bruno@clisp.org>
106758         * lib/stdint_.h: Fix recognition of Cygwin.
106760 2006-05-15  Bruno Haible  <bruno@clisp.org>
106762         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
106763         on libtool patch by Ralf Wildenhues.
106765 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106767         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
106768         test for C99 conformance; (bool) 0.5 is an integer constant
106769         expression, but (bool) -0.5 is not.  Problem reported by Fedor
106770         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
106772 2006-05-11  Simon Josefsson  <jas@extundo.com>
106774         * m4/xvasprintf.m4: Fix obvious typo.
106776 2006-05-11  Jim Meyering  <jim@meyering.net>
106778         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
106779         James Lemley.
106781 2006-05-10  Simon Josefsson  <jas@extundo.com>
106783         * lib/md4.c: Typo fix, update copyright years.
106784         (K1, K2): Don't use L because it turn computations into 64-bit on
106785         64-bit platforms.
106787 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
106789         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
106790         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
106791         unwanted sign propagation, e.g., on hosts with 64-bit int.
106792         There still are some problems with reeelly weird theoretical hosts
106793         (e.g., 33-bit int) but it's not worth worrying about now.
106794         * lib/sha1.c (rol): Likewise.
106795         (K1, K2, K3, K4): Remove unnecessary L suffix.
106797 2006-05-10  Bruno Haible  <bruno@clisp.org>
106799         * lib/des.c: Cast to avoid warnings.
106801 2006-05-09  Bruno Haible  <bruno@clisp.org>
106803         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
106804         (Depends-on): Depend also on xsize, stdarg.
106805         (configure.ac): Add gl_XVASPRINTF.
106807 2006-05-09  Bruno Haible  <bruno@clisp.org>
106809         * m4/xvasprintf.m4: New file.
106811 2006-05-09  Bruno Haible  <bruno@clisp.org>
106813         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
106814         (EOVERFLOW): Define fallback value.
106815         (xstrcat): New function.
106816         (xvasprintf): Recognize the special case of a string concatenation.
106818 2006-05-08  Eric Blake  <ebb9@byu.net>
106820         * gnulib-tool (func_version): Base copyright year on CVS date.
106821         (func_emit_copyright_notice): New function.
106822         (func_emit_lib_Makefile_am): Use it.
106823         (func_emit_tests_Makefile_am): Likewise.
106824         (func_import): Likewise.
106826 2006-05-08  Bruno Haible  <bruno@clisp.org>
106828         * modules/stdarg: New file.
106829         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
106831 2006-05-08  Bruno Haible  <bruno@clisp.org>
106833         * m4/stdarg.m4: New file, from GNU gettext.
106835 2006-05-08  Bruno Haible  <bruno@clisp.org>
106837         * config/srclist.txt (build-aux/config.rpath): different from latest
106838         release.
106840 2006-05-08  Bruno Haible  <bruno@clisp.org>
106842         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
106844 2006-05-05  Jim Meyering  <jim@meyering.net>
106846         * m4/warning.m4: New file, derived from bison's file by the same name.
106848 2006-05-03  Bruno Haible  <bruno@clisp.org>
106850         * lib/stdint_.h: Shorter URL.
106851         * lib/inttypes.h: Likewise.
106853 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106855         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
106857 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106859         * lib/verify.h: Document the internals better.  Most of this change
106860         was written by Bruno Haible.
106862 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
106864         * doc/verify.texi: New file, partly based on a proposal by
106865         Bruno Haible.
106867 2006-05-02  Bruno Haible  <bruno@clisp.org>
106869         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
106870         test from here...
106871         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
106873 2006-04-29  Bruno Haible  <bruno@clisp.org>
106875         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
106876         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
106878 2006-04-29  Bruno Haible  <bruno@clisp.org>
106880         * gnulib-tool: Make --update option actually work.
106882 2006-04-29  Bruno Haible  <bruno@clisp.org>
106884         * doc/gcd.texi: New file.
106885         * doc/gnulib.texi: Include it.
106887 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
106889         * lib/getdate.y (get_date): When adding relative date, start with the
106890         initial time, not with the result of the first mktime call.
106892 2006-04-25  Bruno Haible  <bruno@clisp.org>
106894         * gnulib-tool (func_import): Output the include directives in three
106895         blocks, sorted separately.
106896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106898 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
106900         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
106901         to define main with arguments, for C++.  Reported by Eric Blake.
106902         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
106903         Prefer 'int main ()' to 'int main (void)', for C++.
106904         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
106905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
106906         for 'main', for C99 and C++.
106908 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
106910         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
106911         Don't assume that exit status -1 is valid.
106912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
106913         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
106914         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
106915         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
106916         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
106917         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
106918         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
106919         functions can be used without declaring them, or that you can
106920         exit with status -1.
106921         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
106923 2006-04-24  Karl Berry  <karl@gnu.org>
106925         * config/srclist.txt (longdouble.m4): sync lost.
106927 2006-04-24  Eric Blake  <ebb9@byu.net>
106929         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
106931 2006-04-24  Bruno Haible  <bruno@clisp.org>
106933         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
106934         poll() implementation in AIX.
106935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
106937 2006-04-24  Bruno Haible  <bruno@clisp.org>
106939         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
106940         assigned exactly once.
106942 2006-04-23  Claudio Fontana  <claudio@gnu.org>
106943             Bruno Haible  <bruno@clisp.org>
106945         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
106946         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
106947         for AM_CPPFLAGS.
106949 2006-04-23  Bruno Haible  <bruno@clisp.org>
106951         * modules/copy-file: Depend on unistd.
106952         * modules/execute: Likewise.
106953         * modules/fatal-signal: Likewise.
106954         * modules/findprog: Likewise.
106955         * modules/mkdtemp : Likewise.
106956         * modules/pipe: Likewise.
106957         * modules/wait-process: Likewise.
106959 2006-04-23  Bruno Haible  <bruno@clisp.org>
106961         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
106962         condition was already detected.
106963         Reported by Ben Pfaff <blp@cs.stanford.edu>.
106965 2006-04-23  Bruno Haible  <bruno@clisp.org>
106967         * lib/copy-file.c: Include <unistd.h> unconditionally.
106968         * lib/execute.c: Likewise.
106969         * lib/fatal-signal.c: Likewise.
106970         * lib/findprog.c: Likewise.
106971         * lib/mkdtemp.c: Likewise.
106972         * lib/pipe.h: Likewise.
106973         * lib/pipe.c: Likewise.
106974         * lib/wait-process.h: Likewise.
106976 2006-04-23  Bruno Haible  <bruno@clisp.org>
106978         * gnulib-tool (func_usage): Fix --import description. Document
106979         --update.
106980         (func_import): Create temporary file in a temporary directory, if
106981         --dry-run is specified. Silence errors from 'grep' when there are no
106982         m4 files in $m4dir.
106983         (func_create_testdir): Silence errors from 'grep' when there are no
106984         m4 files in $m4dir.
106985         Reported by Karl Berry <karl@freefriends.org>.
106987 2006-04-20  Bruno Haible  <bruno@clisp.org>
106989         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
106990         one argument, so that the code will be portable to Autoconf 2.60.
106991         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
106992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
106993         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
106995 2006-04-19  Derek Price  <derek@ximbiot.com>
106996             Eric Blake  <ebb9@byu.net>
106998         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
106999         rather than "/full/path.h".  Update comment to match.  Shorten &
107000         generalize m4_translit call via AS_TR_CPP.
107002 2006-04-19  Derek Price  <derek@ximbiot.com>
107003             Eric Blake  <ebb9@byu.net>
107005         * lib/inttypes.h: Correct grammar in comment.
107007 2006-04-18  Derek Price  <derek@ximbiot.com>
107008             Paul Eggert  <eggert@cs.ucla.edu>
107010         * modules/inttypes: New file.
107011         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
107013 2006-04-18  Derek Price  <derek@ximbiot.com>
107014             Paul Eggert  <eggert@cs.ucla.edu>
107016         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
107017         New files.
107019 2006-04-18  Derek Price  <derek@ximbiot.com>
107020             Paul Eggert  <eggert@cs.ucla.edu>
107022         * lib/inttypes.h: New file.
107023         * lib/strtoimax.c: Assume <inttypes.h>.
107025 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
107027         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
107028         isn't mounted.  Problem reported by Kir Kolyshkin.
107030 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
107032         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
107033         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
107034         Derek R. Price.
107035         * lib/regex.h (RE_DUP_MAX): Update comment to match current
107036         implementation.
107038 2006-04-12  Eric Blake  <ebb9@byu.net>
107040         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
107041         is now done automatically by the corresponding Autoconf macro.
107043 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
107045         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
107046         time_r.h.
107048 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
107050         Merge regex changes from libc, removing some of our
107051         POSIX-conformance changes that were rejected and redoing them in a
107052         less-intrusive way.
107054         * lib/regcomp.c (re_compile_internal, init_dfa):
107055         Length arg is now size_t, not Idx.  All uses changed.
107056         (peek_token): Forward decl now says internal_function.
107057         (__re_error_msgid, __re_error_msgid_idx):
107058         Now static rather than extern with attribute_hidden.
107059         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
107060         For some reason libc prefers K&R style defns for external functions.
107061         (regerror) [!defined _LIBC]: Likewise.
107062         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
107063         (seek_collating_symbol_entry, lookup_collation_sequence_value):
107064         (build_range_exp, build_collating_symbol):
107065         Use K&R-style defn.
107066         (re_compile_fastmap): Use '\0' to memset, not 0.
107067         (utf8_sb_map): Make the calculations more obvious.
107068         (init_dfa, parse_bracket_exp, build_charclass_op):
107069         Call calloc and cast result, as glibc does.
107070         (init_word_char, fetch_token, peek_token, peek_token_bracket):
107071         (build_range_exp, build_collating_symbol):
107072         Now internal functions.
107074         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
107076         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
107077         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
107078         Don't depend on VMS; depend on __VMS instead, for POSIX
107079         namespace cleanness.
107080         (regoff_t): Define to ssize_t, not long int.
107082         Remove the REG_ macros named below.  Instead, make the old names
107083         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
107084         __USE_GNU_REGEX.
107085         (REG_BACKSLASH_ESCAPE_IN_LISTS):
107086         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
107087         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
107088         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
107089         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
107090         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
107091         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
107092         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
107093         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
107094         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
107095         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
107096         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
107097         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
107098         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
107099         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
107100         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
107101         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
107102         (REG_NREGS):
107103         Remove.  All uses replaced by the old RE_* names.
107104         (RE_BACKSLASH_ESCAPE_IN_LISTS):
107105         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
107106         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
107107         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
107108         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
107109         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
107110         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
107111         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
107112         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
107113         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
107114         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
107115         Don't bother having these macros be independent of each others'
107116         values, since they no longer exist in the POSIX name space.
107118         Rename the following member names back to their old names,
107119         unless !__USE_GNU_REGEX.  All uses changed back.
107120         (buffer): Renamed from re_buffer.
107121         (allocated): Renamed from re_allocated.
107122         (used): Renamed from re_used.
107123         (syntax): Renamed from re_syntax.
107124         (fastmap): Renamed from re_fastmap.
107125         (translate): Renamed from re_translate.
107126         (can_be_null): Renamed from re_can_be_null.
107127         (regs_allocated): Renamed from re_regs_allocated.
107128         (fastmap_accurate): Renamed from re_fastmap_accurate.
107129         (no_sub): Renamed from re_no_sub.
107130         (not_bol): Renamed from re_not_bol.
107131         (not_eol): Renamed from re_not_eol.
107132         (newline_anchor): Renamed from re_newline_anchor.
107133         (num_regs): Renamed from rm_num_regs.
107134         (start): Renamed from rm_start.
107135         (end): Renamed from rm_end.
107137         (free_state): Move up a bit.
107139         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
107140         #define to be empty.
107141         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
107142         when that is what is intended.
107143         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
107144         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
107145         (MAX): New macro.
107146         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
107147         All uses changed back to re_malloc, etc.  It's now the caller's
107148         responsibility to check for overflow; all callers changed.
107149         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
107150         (re_x2nrealloc): Remove.
107151         (free_state): Remove decl.
107153         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
107154         (re_set_registers, re_exec):
107155         Use K&R-style defn.
107157         2006-01-31  Roland McGrath  <roland@redhat.com>
107159         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
107160         Reported by Mike Frysinger <vapier@gentoo.org>.
107162         2006-01-15  Andreas Jaeger  <aj@suse.de>
107164         [BZ #1950]
107165         * lib/regex_internal.c (re_string_reconstruct): Adjust for
107166         build_wcs_upper_buffer change.
107167         (build_wcs_upper_buffer): Change return type.
107169         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
107171         * lib/regex_internal.h: Include <stdint.h> if available.
107173         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
107175         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
107177         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
107179         * lib/regcomp.c: Adjust for changed secondary hash function.
107181         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
107183         * lib/regex.h: Pretty printing.
107184         Clean up namespace a bit.
107186         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
107188         * lib/regexec.c (update_cur_sifted_state, check_arrival,
107189         check_arrival_add_next_nodes): Avoid using uninitialized variable.
107191         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
107192                     Ulrich Drepper  <drepper@redhat.com>
107194         [BZ #1302]
107195         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
107196         changed.
107197         (bitset_word_t): Renamed from bitset_word.  All uses changed.
107199         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
107201         [BZ #281]
107202         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
107203         * lib/regcomp.c: Remove unnecessary uses of
107204         unsigned RE_TRANSLATE_TYPE.
107205         * lib/regex_internal.h: Likewise.
107206         * lib/regex_internal.c: Likewise.
107207         * lib/regexec.c: Likewise.
107208         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
107210         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
107212         * lib/regexec.c (find_recover_state): Remove unnecessary
107213         initialization.
107214         (transit_state_bkref): Make DFA a const pointer.
107215         (get_subexp): Likewise.
107216         (check_arrival): Likewise.
107217         (update_cur_sifted_state): Likewise.
107218         (re_search_internal): Likewise.
107219         (prune_impossible_nodes): Likewise.
107220         (acquire_init_state_context): Likewise.
107221         (proceed_next_node): Likewise.
107222         (set_regs): Likewise.
107223         (free_fail_stack_return): Likewise.
107224         (check_arrival_expand_ecl): Mark DFA parameter as const.
107225         (check_arrival_expand_ecl_sub): Likewise.
107226         (check_subexp_limits): Likewise.
107227         (sub_epsilon_src_nodes):  Likewise.
107228         (add_epsilon_src_nodes):  Likewise.
107229         (merge_state_array): Likewise.
107230         (update_regs): Likewise.
107231         (build_trtable): Likewise.
107232         (sift_states_backward): Mark MCTX parameter as const.
107233         (build_sifted_states): Likewise.
107234         (update_cur_sifted_state): Likewise.
107235         (sift_states_mkref): Likewise.
107236         (check_arrival_expand_ecl): Mark eclosure as const.
107237         (check_dst_limits_calc_pos_1): Likewise.
107238         * lib/regex_internal.h (re_match_context_t): Make dfa a const
107239         pointer.
107241         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
107243         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
107244         (transit_state_sb): Likewise.
107245         (transit_state_mb): Likewise.
107246         (sift_states_iter_mb): Likewise.
107247         (check_arrival_add_next_nodes): Likewise.
107248         (check_node_accept_bytes): Change first parameter to pointer-to-const.
107249         [_LIBC] (re_search_2_stub): Use mempcpy.
107251         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
107252         mbrtowc for very simple UTF-8 case.
107254         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
107255         a pointer-to-const.
107256         (re_acquire_state_context): Likewise.
107257         * lib/regex_internal.h: Adjust prototypes.
107259         * lib/regex.c: Prevent using C++ compilers.
107261         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
107262         (re_acquire_state_context): Likewise.
107264 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
107266         * modules/regex (Depends-on): Add ssize_t.
107268 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
107270         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
107271         translation table.
107273 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
107275         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
107277 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
107278             Bruno Haible  <bruno@clisp.org>
107280         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
107281         <sys/types.h> and <inttypes.h>.
107283 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107285         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
107286         `__error_t_defined', so argp.h will not typedef the former.
107288 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
107290         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
107291         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
107292         glibc names.  Even if glibc is changed to conform to POSIX, the
107293         traditional names will be available anyway, since regex depends on
107294         the extensions module.  Also, fix a longstanding typo in the
107295         implementation of Spencer ERE test #75 from grep 2.3.  Problems
107296         reported by Emanuele Giaquinta.  Also, change sense of cached
107297         variable, so that the message makes sense.
107299 2006-03-24  Simon Josefsson  <jas@extundo.com>
107301         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
107302         including some doc fixes.
107303         (base64_encode_alloc): Fix +1 bug on allocation failures.
107305 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107307         * lib/base64.c (base64_encode): Do not read past end of array with
107308         unsanitized input on systems with CHAR_BIT > 8.
107310 2006-03-24  Eric Blake  <ebb9@byu.net>
107312         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
107314 2006-03-22  Karl Berry  <karl@gnu.org>
107316         * config/srclist.txt (*setenv.[ch]): get from coreutils.
107317         * config/srclistvars.sh (COREUTILS): new var.
107319 2006-03-17  Jim Meyering  <jim@meyering.net>
107321         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
107322         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
107324 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
107326         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
107327         no longer needs it.  Instead, check that regoff_t is as least
107328         as wide as ptrdiff_t.
107330         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
107331         so that our regex.h stays compatible with the installed regex.
107332         This is helpful for installers who configure --without-included-regex.
107333         Problem reported by Emanuele Giaquinta.
107335 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
107337         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
107338         Typedef to long int, not to off_, as POSIX will likely change
107339         in that direction.
107341 2006-03-15  Eric Blake  <ebb9@byu.net>
107343         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
107345 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
107347         * lib/argp-help.c (validate_uparams): Fix typo
107348         * lib/argp-parse.c (argp_default_options): Consistently begin help
107349         messages with a lowercase letter.
107351 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
107353         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
107354         overrun buffers and shouldn't be used (much as gets shouldn't be
107355         used).
107356         * lib/time_r.c (asctime_r, ctime_r): Likewise.
107358 2006-03-08  Simon Josefsson  <jas@extundo.com>
107360         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
107361         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107363 2006-03-08  Simon Josefsson  <jas@extundo.com>
107365         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
107366         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107368 2006-03-08  Simon Josefsson  <jas@extundo.com>
107370         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
107371         signal that configure disabled the device.
107373 2006-03-08  Simon Josefsson  <jas@extundo.com>
107375         * build-aux/maint.mk: Fix refresh-po, to handle no translated
107376         languages.
107378 2006-03-07  Simon Josefsson  <jas@extundo.com>
107380         * modules/getopt (Depends-on): Add unistd.
107382         * modules/unistd: New file.
107384 2006-03-07  Simon Josefsson  <jas@extundo.com>
107386         * modules/gc-random: New file.
107388 2006-03-07  Simon Josefsson  <jas@extundo.com>
107390         * m4/unistd_h.m4: New file.
107392 2006-03-07  Simon Josefsson  <jas@extundo.com>
107394         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
107395         test to be side-effect free by storing the result in the cache
107396         variable gl_cv_lib_readline, and moving the assignment of
107397         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
107398         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
107400 2006-03-07  Simon Josefsson  <jas@extundo.com>
107402         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
107403         error on missing devices (the functions will return an error).
107405         * m4/gc.m4: Move random stuff to gc-random.m4
107407 2006-03-07  Simon Josefsson  <jas@extundo.com>
107409         * lib/unistd_.h: New file.
107411 2006-03-07  Simon Josefsson  <jas@extundo.com>
107413         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
107415 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107417         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
107418         Problem reported by Juan Manuel Guerrero.
107420 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107422         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
107423         the unistd module.
107424         * lib/getlogin_r.c: Likewise.
107425         * lib/getlogin_r.h: Likewise.
107426         * lib/glob.c: Likewise.
107427         * lib/pagealign_alloc.c: Likewise.
107428         * lib/unistd_.h: Remove; no longer needed.
107430 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
107432         * MODULES.html.sh (Support for systems lacking POSIX:2001):
107433         Add unistd.
107434         * modules/c-stack (Depends-on): Add unistd.
107435         * modules/getlogin_r: Likewise.
107436         * modules/glob: Likewise.
107437         * modules/pagealign_alloc: Likewise.
107438         * modules/unistd (Files): Remove lib/unistd_.h.
107439         (EXTRA_DIST): Remove.
107440         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
107441         need unistd_.h.
107442         (MOSTLYCLEANFILES): Remove unistd.h-t.
107444 2006-03-03  Simon Josefsson  <jas@extundo.com>
107446         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
107448 2006-03-03  Simon Josefsson  <jas@extundo.com>
107450         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
107451         libidn and bison.
107453 2006-03-03  Simon Josefsson  <jas@extundo.com>
107455         * build-aux/maint.mk: Add indent target.
107457 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
107459         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
107460         our replacement poll.h in any case, to avoid a differing
107461         declaration from a system header.  Seen on AIX.
107463 2006-03-01  Simon Josefsson  <jas@extundo.com>
107465         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
107466         <kasal@ucw.cz>.
107468 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107470         * modules/gettime (Depends-on): Add extensions module.
107471         * modules/nanosleep (Depends-on): Likewise.
107472         * modules/settime (Depends-on): Likewise.
107474 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107476         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
107477         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
107478         pedantically.
107479         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
107480         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
107482         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
107483         not "==".  Reported by Ralf Wildenhues.
107485 2006-03-01  Karl Berry  <karl@gnu.org>
107487         * doc/Copyright/request-*: new files, synced from gnuorg.
107489 2006-03-01  Karl Berry  <karl@gnu.org>
107491         * config/srclist.txt (Copyright/*): new entries.
107493 2006-02-28  Simon Josefsson  <jas@extundo.com>
107495         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
107497 2006-02-27  Simon Josefsson  <jas@extundo.com>
107499         * lib/base64.h: Indent #define's.  From Jim Meyering
107500         <jim@meyering.net>.
107502 2006-02-27  Jim Meyering  <jim@meyering.net>
107504         Revert the change of 2006-02-24, so these files can continue
107505         to be sync'd from gettext.
107506         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
107507         of `config.h'.
107509 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107511         * modules/intprops: New file.
107512         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
107513         Add intprops.
107514         * modules/getloadavg (Files): Remove lib/intprops.h.
107515         (Depends-on): Add intprops.
107516         * modules/human: Likewise.
107517         * modules/inttostr: Likewise.
107518         * modules/openat: Likewise.
107519         * modules/sig2str: Likewise.
107520         * modules/userspec: Likewise.
107521         * modules/utimecmp: Likewise.
107522         * modules/xnanosleep: Likewise.
107523         * modules/xstrtol: Likewise.
107525 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
107527         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
107528         * modules/lock-tests (TESTS): Use $(EXEEXT).
107529         * modules/tls-tests: Likewise.
107530         * modules/argp-tests: Likewise.
107531         (check_PROGRAMS): New var, replacing...
107532         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
107534 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107536         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
107537         `config.h'.
107539 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107541         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
107543 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
107545         Sync from coreutils.
107546         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
107547         gl_CHDIR_SAFER.
107549 2006-02-22  Jim Meyering  <jim@meyering.net>
107551         Sync from coreutils.
107552         * m4/chdir-safer.m4: New file.
107554 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107556         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
107557         AT_FDCWD exceeds INT_MAX.
107558         * lib/openat.h (AT_FDCWD): Likewise.
107560 2006-02-17  Eric Blake  <address@hidden>
107562         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
107564 2006-02-16  Simon Josefsson  <jas@extundo.com>
107566         * modules/getaddrinfo (Depends-on): Add sys_socket.
107568 2006-02-15  Simon Josefsson  <jas@extundo.com>
107570         * build-aux/maint.mk: Add dsyntax-check rule.
107572 2006-02-15  Eric Blake  <ebb9@byu.net>
107574         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
107575         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
107576         'present but cannot compile' warnings on cygwin.
107577         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
107578         use ws2tcpip.h if sys/socket.h works.
107579         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
107580         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
107582 2006-02-14  Simon Josefsson  <jas@extundo.com>
107584         * modules/maintainer-makefile (Files): Rename.
107586         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
107587         and (the local) Makefile.cfg to maint-cfg.mk.
107589         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
107590         to the latter.
107592         * modules/maintainer-makefile: New module.
107594         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
107595         severaly stripped to make it possible to build it up from scratch
107596         with reliable tests.
107598         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
107599         fixes to permit overriding the default actions when configure and
107600         makefile are not available.
107602 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
107604         Sync from coreutils.
107605         * modules/lstat (Depends-on): Don't depend on xalloc.
107606         (License): Change from GPL to LGPL, since this is now simply a
107607         replacement for a libc function.
107609 2006-02-14  Jim Meyering  <jim@meyering.net>
107611         Sync from coreutils.
107613         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
107614         failure on deficient systems, and simplify gnulib lgpl dependencies.
107615         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
107616         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
107618         * lib/xalloc-die.c: Remove unused definition of N_.
107620 2006-02-14  Jim Meyering  <jim@meyering.net>
107622         Sync from coreutils.
107623         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
107624         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
107625         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
107626         double-quote uses of that variable, to accommodate the rare case in
107627         which getmntent is available in none of the libraries checked.  This
107628         happens at least on FreeBSD 5.0.
107630 2006-02-13  Simon Josefsson  <jas@extundo.com>
107632         * gnulib-tool (Usage): Fix --import, from
107633         karl@freefriends.org (Karl Berry).
107635 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
107637         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
107639 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
107641         * lib/argp-namefrob.h: Restore changes accidentally lost during the
107642         "autoupdate" on 2005-12-12.
107644 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
107646         * modules/closeout (Depends-on): Remove atexit.
107648 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
107650         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
107651         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
107653 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
107655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
107656         __EXTENSIONS__ if this causes compilation to fail.  Problem
107657         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
107658         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
107660 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
107662         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
107663         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
107664         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
107665         All uses changed.
107667 2006-01-26  Simon Josefsson  <jas@extundo.com>
107669         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
107670         prototype is visible on mingw32.
107672         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
107673         for mingw32.
107675         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
107676         mingw32).
107678 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
107680         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
107681         attempt to open for write; this always fails, at least on POSIX
107682         hosts.  This reinstates the 2006-01-09 change, which was
107683         inadvertently removed.
107685 2006-01-26  Bruno Haible  <bruno@clisp.org>
107687         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
107688         Reported by Paul Eggert.
107690 2006-01-26  Bruno Haible  <bruno@clisp.org>
107691             Paul Eggert  <eggert@cs.ucla.edu>
107693         * lib/stdbool_.h (_Bool)
107694         [(! (defined __cplusplus || defined __BEOS__)
107695           && !defined __GNUC__
107696           && !(defined __HP_cc || defined __xlc__
107697                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
107698                || defined __sgi))]:
107699         #define to signed char in these cases too; this simplifies
107700         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
107701         etc., separately) and makes it more conservative.
107703 2006-01-25  Simon Josefsson  <jas@extundo.com>
107705         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
107706         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
107707         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
107709 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
107711         * lib/argp-namefrob.h: Bugfix. Remove stray #
107713 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
107715         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
107716         so that we test the test.
107717         Check for yet another HP-UX cc bug involving *bool |= bool.
107719 2006-01-25  Karl Berry  <karl@gnu.org>
107721         * config/srclist.txt (vasnprintf.c): sync lost.
107723 2006-01-25  Jim Meyering  <jim@meyering.net>
107725         Sync from the stable (b5) branch of coreutils:
107727         * lib/fts.c (fts_children): Don't let close() clobber errno from
107728         failed fchdir().
107730         * lib/fts.c (fts_stat): When following a symlink-to-directory,
107731         don't necessarily interpret stat-fails+lstat-succeeds as indicating
107732         a dangling symlink.  That can also happen at least for ELOOP.
107733         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
107734         FYI, this bug predates the inclusion of fts.c in coreutils.
107736         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
107737         in their own block, so pre-c99 compilers don't object.
107739         Avoid the double-free (first in fts_read, second in fts_close) that
107740         would occur when an `active' directory is made inaccessible (e.g.,
107741         via chmod a-x) during a traversal.
107742         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
107743         before returning.  Reproduce this failure by
107744         mkdir -p a/b; cd a; chmod a-x . b
107745         Reported by Stavros Passas.
107747 2006-01-25  Jim Meyering  <jim@meyering.net>
107749         * lib/fileblocks.c: Remove more useless parentheses.
107750         * lib/readutmp.h: Likewise.
107752 2006-01-25  Bruno Haible  <bruno@clisp.org>
107754         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
107755         warnings.
107756         Reported by Paul Eggert.
107758 2006-01-25  Bruno Haible  <bruno@clisp.org>
107760         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
107761         rid of a trap command. For Solaris sh.
107762         Reported by Mark D. Baushke <mdb@gnu.org>.
107764 2006-01-24  Simon Josefsson  <jas@extundo.com>
107766         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
107767         Bruno.
107769 2006-01-24  Karl Berry  <karl@gnu.org>
107771         * config/srclist.txt (argp-namefrob.h): sync lost.
107773 2006-01-24  Jim Meyering  <jim@meyering.net>
107775         * modules/openat (Files): Add lib/intprops.h.
107776         From Mark D. Baushke.
107778 2006-01-24  Jim Meyering  <jim@meyering.net>
107780         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
107781         Reported by Mark D. Baushke.
107783 2006-01-24  Jim Meyering  <jim@meyering.net>
107785         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
107787 2006-01-24  Bruno Haible  <bruno@clisp.org>
107789         * modules/strnlen (Maintainer): Change from glibc to all.
107791 2006-01-24  Bruno Haible  <bruno@clisp.org>
107793         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
107794         Patch by Paul Eggert.
107796 2006-01-24  Bruno Haible  <bruno@clisp.org>
107798         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
107799         already has it.
107800         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
107801         2005-11-26.
107803         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
107804         'signed char' to avoid problems with the built-in _Bool type.
107805         Reported by Paul Eggert on 2005-11-26.
107807 2006-01-24  Bruno Haible  <bruno@clisp.org>
107809         * gnulib-tool (func_import): Avoid constructing complicated sed
107810         expressions inside backquote.
107811         Report and solution by Mark D. Baushke <mdb@gnu.org>.
107813 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
107815         These changes imported from libc.
107816         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
107817         test and two separate function calls.
107818         * lib/strndup.c (__strndup): Add libc_hidden_def.
107820 2006-01-23  Simon Josefsson  <jas@extundo.com>
107822         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
107823         Remove the test_*_SOURCES variable: automake infers it by default.
107824         * modules/tls-tests: Likewise.
107826 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107828         Work around porting bugs reported by Dieter in
107829         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
107830         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
107831         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
107832         Include "getopt.h" first, to check interface.
107833         (getenv): Declare only if defined HAVE_DECL_GETENV &&
107834         !HAVE_DECL_GETENV.
107835         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
107836         (__strndup): Revert to K&R-style function dfns, the glibc style.
107837         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
107838         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
107839         Include strnlen.h first, to get prototype properly.
107840         (strnlen): Renamed from __strnlen.
107841         Remove weak alias.
107843 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107845         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
107847 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107849         * config/srclist.txt: Adjust to reflect glibc reorganization.
107850         This affects only comments.
107852 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
107854          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
107855          Reported by Bruce Korb <bkorb@gnu.org>.
107857 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
107859         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
107860         to pacify gcc -Wswitch-default.
107862 2006-01-22  Bruno Haible  <bruno@clisp.org>
107864         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
107865         temporary buffer for sprintf, take into account the precision also
107866         for 'd', 'i', 'u', 'o', 'x', 'X'.
107868 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
107870         * modules/argp-tests: New module
107871         * tests/test-argp.c: New file
107872         * tests/test-argp-2.sh: New file
107874 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
107876         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
107877         (__argp_base_name): Removed
107878         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
107879         typo.
107880         (__argp_base_name): Provide macro definition or extern declaration
107881         depending on the configuration
107883 2006-01-20  Simon Josefsson  <jas@extundo.com>
107885         * modules/inet_ntop (Depends-on): Depend on sys_socket.
107887 2006-01-20  Simon Josefsson  <jas@extundo.com>
107889         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
107891 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107893         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
107894         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
107895         Suggested by Bruno Haible.
107897 2006-01-20  Karl Berry  <karl@gnu.org>
107899         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
107900         until changes propagate, I guess.
107902 2006-01-19  Simon Josefsson  <jas@extundo.com>
107904         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
107906 2006-01-19  Simon Josefsson  <jas@extundo.com>
107908         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
107910 2006-01-19  Simon Josefsson  <jas@extundo.com>
107912         * gnulib-tool: Set check_PROGRAMS.
107914         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
107915         modules/des-tests, modules/gc-arcfour-tests,
107916         modules/gc-arctwo-tests, modules/gc-des-tests,
107917         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
107918         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
107919         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
107920         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
107921         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
107922         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
107923         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
107924         test_*_SOURCES.
107926 2006-01-18  Simon Josefsson  <jas@extundo.com>
107928         * modules/socklen (Depends-on): Depend on sys_socket.
107930 2006-01-18  Simon Josefsson  <jas@extundo.com>
107932         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
107933         modules/des-tests, modules/gc-arcfour-tests,
107934         modules/gc-arctwo-tests, modules/gc-des-tests,
107935         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
107936         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
107937         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
107938         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
107939         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
107940         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
107941         $(EXEEXT) to automake TESTS variable, for mingw32.
107943 2006-01-17  Simon Josefsson  <jas@extundo.com>
107945         * modules/socklen (Include): Need sys/socket.h.
107947 2006-01-17  Bruno Haible  <bruno@clisp.org>
107949         * modules/ssize_t (Include): Add <sys/types.h>.
107951 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
107953         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
107954         it's not portable and it doesn't work with cross-compiles.
107955         Problem reported by Bruno Haible.  Fix missing-$ typo in
107956         'test "gl_cv_ignore_unused_libraries" ...' that prevented
107957         -zignore from being used with Sun's C compiler.
107959 2006-01-12  Simon Josefsson  <jas@extundo.com>
107961         * lib/base64.c: Fix warning, reported by Bruno Haible
107962         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
107964 2006-01-12  Bruno Haible  <bruno@clisp.org>
107966         * modules/ldd: New file.
107967         * build-aux/ldd.sh.in: New file.
107968         * MODULES.html.sh (Support for building libraries and executables): Add
107969         ldd.
107971 2006-01-12  Bruno Haible  <bruno@clisp.org>
107973         * m4/ldd.m4: New file.
107975 2006-01-12  Bruno Haible  <bruno@clisp.org>
107977         * gnulib-tool (func_import, func_create_testdir): Don't go into an
107978         endless loop while replacing $auxdir with build-aux.
107980 2006-01-11  Simon Josefsson  <jas@extundo.com>
107982         * lib/stdint_.h (SIZE_MAX): Add missing (.
107984 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
107986         Sync from coreutils.
107987         * lib/md5.c: Fix commentary typos.
107988         (alignof, UNALIGNED_P): No need for a GCC-specific version.
107989         * lib/md5.h (__attribute__): Remove; unused.
107990         * lib/sha1.c: Fix commentary to match md5 better.
107991         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
107992         so that we don't need to worry about alignment.  All uses changed.
107993         This merges the 2005-10-28 md5 change into sha1.
107995 2006-01-11  Jim Meyering  <jim@meyering.net>
107997         Sync from coreutils.
107998         * lib/md5.c (OP): Fix spacing.
108000 2006-01-11  Bruno Haible  <bruno@clisp.org>
108002         Ensure automatic ordering between gl_LOCK and gl_ARGP.
108003         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
108004         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
108006 2006-01-11  Bruno Haible  <bruno@clisp.org>
108008         Ensure automatic ordering between gl_LOCK and gl_ARGP.
108009         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
108010         the "early" section as well.
108012 2006-01-11  Bruno Haible  <bruno@clisp.org>
108014         Avoid "ar: no archive members specified" error on MacOS X.
108015         * gnulib-tool (func_modules_add_dummy): New function.
108016         (func_import, func_create_testdir): Invoke it.
108018 2006-01-11  Bruno Haible  <bruno@clisp.org>
108020         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
108021         with $auxdir in AC_CONFIG_FILES statements.
108023 2006-01-11  Bruno Haible  <bruno@clisp.org>
108025         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
108026         Initialize also noinst_HEADERS to empty.
108028 2006-01-11  Bruno Haible  <bruno@clisp.org>
108030         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
108031         variables.
108032         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
108033         autoreconf.
108035 2006-01-11  Bruno Haible  <bruno@clisp.org>
108037         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
108038         overridable by the user.
108039         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108041 2006-01-10  Simon Josefsson  <jas@extundo.com>
108043         * modules/sys_socket: New file.
108045 2006-01-10  Simon Josefsson  <jas@extundo.com>
108047         * m4/sys_socket_h.m4: New file.
108049 2006-01-10  Simon Josefsson  <jas@extundo.com>
108051         * lib/socket_.h: New file.
108053 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108055         * modules/readutmp (Maintainer): Add myself.
108057 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108059         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
108060         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
108061         People who are still concerned with buggy memcmp implementations
108062         can invoke gl_FUNC_MEMCMP themselves.
108064 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
108066         * lib/regex_internal.h (BITSET_WORD_BITS):
108067         Work around a bug in 64-bit PGC (before version 6.1-2), where the
108068         preprocessor mishandles large unsigned values as if they were signed.
108069         Problem reported by Claudio Fontana in
108070         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
108072 2006-01-10  Jim Meyering  <jim@meyering.net>
108074         Avoid the double-free (first in fts_read, second in fts_close) that
108075         would occur when an `active' directory is made inaccessible (e.g.,
108076         via chmod a-x) during a traversal.
108077         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
108078         before returning.  Reproduce this failure by
108079         mkdir -p a/b; cd a; chmod a-x . b
108080         Reported by Stavros Passas.
108082         Sync from coreutils.
108083         * lib/sha1.c: Tweak grammar in a comment.
108085 2006-01-10  Jim Meyering  <jim@meyering.net>
108087         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
108088         Patch by Joerg Sonnenberger.
108090 2006-01-10  Bruno Haible  <bruno@clisp.org>
108092         * modules/readutmp: Depend on module free.
108093         * modules/strtok_r: Depend on module restrict.
108095 2006-01-10  Bruno Haible  <bruno@clisp.org>
108097         * modules/gettext (configure.ac): Add an invocation of
108098         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
108100 2006-01-10  Bruno Haible  <bruno@clisp.org>
108102         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
108103         Reported by Werner Lemberg <wl@gnu.org>.
108105 2006-01-10  Bruno Haible  <bruno@clisp.org>
108107         * lib/localcharset.c: Update from GNU gettext.
108109 2006-01-10  Bruno Haible  <bruno@clisp.org>
108111         * lib/argp.h (__const): Remove macro. Use const instead.
108112         * lib/argp-fmtstream.h (__const): Likewise.
108113         * lib/glob_.h (__const): Remove macro.
108114         * lib/glob-libc.h: Use const instead of __const.
108116 2006-01-10  Bruno Haible  <bruno@clisp.org>
108118         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
108119         variable.
108120         Needed to avoid an automake error regarding the 'gettext' module.
108122 2006-01-09  Simon Josefsson  <jas@extundo.com>
108124         * modules/inet_ntop (Depends-on): Add restrict.
108126 2006-01-09  Simon Josefsson  <jas@extundo.com>
108128         * modules/gc-rijndael-tests (License): Put under LGPL.
108130         * modules/gc-des-tests (License): Likewise.
108132         * modules/gc-arcfour-tests (License): Likewise.
108134         * modules/gc-arctwo-tests (License): Likewise.
108136         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
108138         * modules/gc-hmac-sha1-tests (Files): Likewise.
108140         * modules/gc-hmac-md5-tests (License): Likewise.
108142         * modules/gc-sha1-tests (License): Likewise.
108144         * modules/gc-md5-tests (License): Likewise.
108146         * modules/gc-md4-tests (License): Likewise.
108148         * modules/gc-md2-tests (License): Likewise.
108150         * modules/gc-tests (License): Likewise.
108152         * modules/des-tests (License): Likewise.
108154         * modules/md4-tests (License): Likewise.
108156         * modules/md2-tests (License): Likewise.
108158 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
108160         Sync from coreutils:
108162         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
108163         * modules/lib-ignore: New file.
108164         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
108165         chdir-safer.m4, lchmod.m4.
108166         * modules/openat: Add mkdirat.c, openat-priv.h.
108168 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
108170         Sync from coreutils.
108171         * m4/lib-ignore.m4: New file.
108172         * m4/lchmod.m4: New file.
108174 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
108176         Sync from coreutils.
108177         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
108178         for write access: POSIX says that must fail.
108179         * lib/fts.c (diropen): Likewise.
108180         * lib/save-cwd.c (save_cwd): Likewise.
108181         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
108182         well, for minor improvements on hosts that lack O_DIRECTORY.
108183         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
108184         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
108185         Fall back on chown if open failed with EACCES.
108187         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
108188         Report an error at compile-time if only a 1-second nominal clock
108189         resolution is found.
108191         * lib/lchmod.h: New file.
108192         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
108193         (make_dir_parents): Use lchown rather than chown, and
108194         lchmod rather than chmod.
108196         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
108197         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
108198         "proc" reported by n0dalus.
108200         * lib/mountlist.c: Include <limits.h>.
108201         (dev_from_mount_options)
108202         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
108203         New function.  It no longer assumes "dev=" has the System V meaning
108204         on Linux (since it doesn't).  It also parses "dev=" more carefully.
108205         (read_file_system_list)
108206         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
108207         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
108208         dev= in that case.
108210         * lib/posixtm.h (PDS_PRE_2000): New macro.
108211         * lib/posixtm.c (year): Arg is now syntax_bits rather than
108212         allow_century.  All usages changed.  Reject dates outside the range
108213         1969-1999 if PDS_PRE_2000 is used.
108215 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
108217         Sync from coreutils.
108218         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
108219         (Time of day items): Mention the possibility of leap seconds.
108220         Problem reported by Dr. David Alan Gilbert.
108222 2006-01-09  Jim Meyering  <jim@meyering.net>
108224         Sync from coreutils.
108226         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
108228         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
108230         * lib/modechange.c (mode_compile): Reject an invalid mode string
108231         that starts with an octal digit.  From Andreas Gruenbacher.
108233         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
108234         and dup to open_safer and dup_safer, respectively.
108235         (openat_permissive): Fix typo in comment.
108237         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
108238         "gettext.h"; either no longer needed or are guaranteed by openat.h.
108239         (_): Remove; no longer needed.
108240         (openat): Renamed from rpl_openat; no need for rpl_openat
108241         since openat.h renames openat for us.
108242         Replace most of the body with a call to openat_permissive,
108243         to avoid duplicate code.
108244         Port to (probably hypothetical) environments were mode_t is
108245         wider than int.
108246         (openat_permissive): Require mode arg, so that we can check
108247         types better.  Put it just after flags.  Change cwd failure
108248         indicator from pointer-to-bool to pointer-to-errno-value.
108249         All callers changed.
108250         Invoke openat_save_fail and/or openat_restore_fail if
108251         cwd_errno is null, so that openat can call us.
108252         (openat_permissive, fdopendir, fstatat, unlinkat):
108253         Simplify errno handling to avoid some duplicate code,
108254         as it's OK to set errno on success.
108255         * lib/openat.h: Revamp code so that function macros depend on
108256         __OPENAT_PREFIX only, not also on AT_FDCWD.
108257         (openat_ro): Remove.  Caller changed to use openat_permissive.
108258         (openat_permissive): Now a macro, if not a function.
108259         (openat_restore_fail, openat_save_fail): Now always functions,
108260         since mkdirat needs them even if __OPENAT_PREFIX is defined.
108262         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
108263         and openat.c.
108264         * lib/mkdirat.c: Include openat-priv.h.
108265         Remove definitions of macros defined therein.
108266         * lib/openat.c: Likewise.
108268         * lib/mkdirat.c (mkdirat): New file and function.
108269         * lib/openat.h (mkdirat): Declare.
108271         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
108273         * lib/openat.h (openat_permissive): Declare.
108274         (openat_ro): Define.
108276         * lib/openat.c (EXPECTED_ERRNO): New macro.
108277         (openat_permissive): New function -- used in remove.c rewrite.
108278         (all functions): Set errno just before returning, only if there
108279         was an actual failure.
108280         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
108282         Emulate openat-family functions using Linux's procfs, if possible.
108283         Idea and some code based on Ulrich Drepper's glibc changes.
108285         * lib/openat.c: (BUILD_PROC_NAME): New macro.
108286         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
108287         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
108288         before falling back on save_cwd and restore_cwd.
108289         (fdopendir, fstatat, unlinkat): Likewise.
108291         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
108292         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
108294         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
108295         as second argument to va_arg.  Otherwise, some versions of gcc
108296         warn that `if this code is reached, the program will abort'.
108298 2006-01-09  Jim Meyering  <jim@meyering.net>
108300         Sync from coreutils.
108301         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
108302         Require openat-priv.h.
108304 2006-01-09  Bruno Haible  <bruno@clisp.org>
108306         * modules/strnlen (Include): Use strnlen.h.
108308 2006-01-09  Bruno Haible  <bruno@clisp.org>
108310         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
108312 2006-01-09  Bruno Haible  <bruno@clisp.org>
108314         * lib/sysexit_.h (EX_OK): New macro.
108315         Suggested by Martin Lambers <marlam@marlam.de>.
108317 2006-01-09  Bruno Haible  <bruno@clisp.org>
108319         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
108320         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
108322 2006-01-09  Bruno Haible  <bruno@clisp.org>
108324         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
108325         numbers.
108327 2006-01-09  Bruno Haible  <bruno@clisp.org>
108329         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
108330         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
108331         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
108332         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
108334 2006-01-09  Bruno Haible  <bruno@clisp.org>
108336         * build-aux/javacomp.sh.in: New file, moved from lib/.
108337         * modules/javacomp-script (Files): Update.
108338         (configure.ac): Add AC_CONFIG_FILES invocation.
108339         (EXTRA_DIST): Remove variable.
108341         * build-aux/javaexec.sh.in: New file, moved from lib/.
108342         * modules/javaexec (Files): Update.
108343         (configure.ac): Add AC_CONFIG_FILES invocation.
108344         (EXTRA_DIST): Remove javaexec.sh.in.
108346         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
108347         * modules/csharpcomp-script (Files): Update.
108348         (configure.ac): Add AC_CONFIG_FILES invocation.
108349         (EXTRA_DIST): Remove variable.
108351         * build-aux/csharpexec.sh.in: New file, moved from lib/.
108352         * modules/csharpexec (Files): Update.
108353         (configure.ac): Add AC_CONFIG_FILES invocation.
108354         (EXTRA_DIST): Remove csharpexec.sh.in.
108356 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
108358         Sync from coreutils.
108360         Add POSIX ACL support
108361         * lib/acl.h (copy_acl, set_acl): Add declarations.
108362         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
108363         systems other than Linux.
108364         (chmod_or_fchmod): New function: use fchmod when possible,
108365         and chmod otherwise.
108366         (file_has_acl): Add a POSIX ACL implementation, with a
108367         Linux-specific subcase.
108368         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
108369         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
108370         acls are unsupported.
108371         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
108372         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
108373         are unsupported.
108375 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
108377         Sync from coreutils.
108378         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
108380 2006-01-07  Bruno Haible  <bruno@clisp.org>
108382         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
108383         gl_EARLY.
108385 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108387         * lib/strftime.c (tzname): Don't declare if it is already #defined.
108388         Problem reported for Mingw by Mark Junker.
108390 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
108392         * README: Gnulib normally doesn't generate a tarball.
108394 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
108396         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
108397         long int, not int, for nanosecond counts, so that people who are
108398         used to POSIX struct timespec won't be surprised.  Reported by Jim
108399         Meyering.
108401 2005-12-28  Bruno Haible  <bruno@clisp.org>
108403         * build-aux/config.rpath: Update from GNU gettext.
108405 2005-12-16  Jim Meyering  <jim@meyering.net>
108407         * modules/fprintftime: New module.
108408         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
108410 2005-12-16  Jim Meyering  <jim@meyering.net>
108412         * m4/fprintftime.m4: New file.
108414 2005-12-16  Jim Meyering  <jim@meyering.net>
108416         * lib/fprintftime.c, lib/fprintftime.h: New files.
108418 2005-12-15  Simon Josefsson  <jas@extundo.com>
108420         * modules/socklen (configure.ac): Fix M4 macro name, to align with
108421         new m4/socklen.m4.
108423 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108425         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
108426         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
108428 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
108430         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
108431         * lib/argp-help.c (fill_in_uparams): Check if the constructed
108432         struct uparams is valid. Fall back to the default values if it is
108433         not.
108435 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108437         * modules/argp (Files): Add argp-pin.c
108438         (Depends-on): dirname
108439         (lib_SOURCES): Add argp-pin.c
108441 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108443         * m4/argp.m4:  Check if program_invocation_name and
108444         program_invocation_short_name are declared and define appropriate
108445         macros if they are not.
108447 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
108449         * lib/argp-help.c (__argp_base_name): New function
108450         (__argp_short_program_name): Rewrite using __argp_base_name
108451         * lib/argp-namefrob.h: Define program_invocation_name and
108452         program_invocation_short_name if requested
108453         (__argp_base_name): Add prototype
108454         * lib/argp-parse.c (argp_def): Use gettext wrappers
108455         (argp_default_parser): Use __argp_base_name
108456         * lib/argp-pin.c: New file. Defines program_invocation_name and
108457         program_invocation_short_name on systems that lack them.
108459 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
108461         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
108462         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
108463         porting problem reported by Georg Schwarz in
108464         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
108466 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
108468         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
108469         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
108470         porting problem reported by Georg Schwarz in
108471         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
108473 2005-12-05  Bruno Haible  <bruno@clisp.org>
108475         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
108476         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
108477         Reported by Mark Junker <mjscod@gmx.de>.
108479 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
108481         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
108482         Use implementation from Albert Chin, with some
108483         comments/corrections by Stepan Kasal and myself.
108485 2005-12-02  Bruno Haible  <bruno@clisp.org>
108487         * gnulib-tool (func_import): Accept GPLed build tool modules when
108488         --lgpl is given.
108489         * modules/csharpcomp-script: New file.
108490         * modules/csharpcomp: Depend on it.
108491         * modules/javacomp-script: New file.
108492         * modules/javacomp: Depend on it.
108493         Suggested by Simon Josefsson.
108495 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
108497         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
108498         statement, to work around an HP-UX 10.20 compiler bug reported by
108499         Peter O'Gorman.
108501 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
108503         * modules/savedir (Depends-on): Add openat.
108505 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
108507         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
108508         (uintmax_t) [defined uintmax_t]: Do not declare.
108509         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
108510         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
108511         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
108512         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
108513         sake of portability to weird hosts that C allows (though we don't
108514         know of any practical examples).
108516         * lib/savedir.h (fdsavedir): New decl.
108517         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
108518         contains most of the former guts of savedir.
108519         (savedir): Use savedirstream.
108520         Include "openat.h".
108522 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
108524         * modules/obstack (Files): Add m4/ulonglong.m4.
108525         Problem reported by Davide Angelocola.
108527 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
108529         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
108530         coreutils no longer futzes with rounding modes.
108532 2005-11-14  Jim Meyering  <jim@meyering.net>
108534         * lib/mkstemp-safer.c: Include <config.h>, required for possible
108535         replacement of mkstemp.
108537 2005-11-10  Simon Josefsson  <jas@extundo.com>
108539         * lib/readline.c: Remove EOL.
108541 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108543         * modules/gethrxtime (Depends-on): Add gettime.
108545 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108547         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
108548         or gettimeofday; no longer needed.
108550 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108552         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
108553         time business.
108554         (gethrxtime) [! (HAVE_NANOUPTIME
108555         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
108556         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
108557         our own approximation.
108559 2005-11-08  Eric Blake  <ebb9@byu.net>
108561         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
108563 2005-11-08  Eric Blake  <ebb9@byu.net>
108565         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
108567 2005-11-04  Bruno Haible  <bruno@clisp.org>
108569         * gnulib-tool: Implement --update mode.
108571 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108573         Fix porting problem reported by Theodoros V. Kalamatianos.
108574         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
108575         Don't assume that futimes failing means we must fail.
108577 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
108579         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
108580         variables to suggest the intended function of the PATH_MAX check.
108582 2005-10-30  Kean Johnston  <jkj@sco.com>
108584         Trivial changes to support SCO systems.
108585         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
108586         as PATH_MAX.
108587         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
108588         where __ptr is null when no I/O is pending.
108590 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108592         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
108593         leave errno alone.  Problem reported by Dmitry V. Levin.
108595 2005-10-28  Simon Josefsson  <jas@extundo.com>
108597         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
108598         Test more.
108600         * tests/test-gc-md2.c, tests/test-md2.c: New files.
108602         * modules/md2, modules/md2-tests: New files.
108604 2005-10-28  Simon Josefsson  <jas@extundo.com>
108606         * m4/inet_ntop.m4: More tests.
108608         * m4/gc-md2.m4, md2.m4: New file.
108610 2005-10-28  Simon Josefsson  <jas@extundo.com>
108612         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
108613         "restrict" keywords, as per POSIX.  Protect the function
108614         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
108615         Don't use K&R prototypes.  Check the sprintf return values.
108616         Re-define EAFNOSUPPORT if not present.  Indent.
108618         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
108619         suggested by Bruno Haible <bruno@clisp.org>.
108621         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
108623         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
108625         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
108626         libgcrypt).
108628         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
108630         * lib/md2.h, lib/md2.c: New files.
108632 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
108634         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
108635         errno alone.  Problem reported by Frederic Jolliton.
108637 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
108639         * modules/verify (License): Change from GPL to LGPL.  This is a
108640         tiny module and there are apparently near-equivalents that are
108641         under the BSD license.
108643 2005-10-24  Simon Josefsson  <jas@extundo.com>
108645         * modules/sha1: Relicense to LGPL.
108647 2005-10-24  Simon Josefsson  <jas@extundo.com>
108649         * lib/md4.h: Shrink buffer size, now that we changed the type.
108651 2005-10-23  Simon Josefsson  <jas@extundo.com>
108653         * gnulib-tool (func_import): Fix --tests-base.
108655 2005-10-22  Simon Josefsson  <jas@extundo.com>
108657         * modules/arcfour (Depends-on): Need stdint.
108659 2005-10-22  Simon Josefsson  <jas@extundo.com>
108661         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
108662         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
108664 2005-10-22  Simon Josefsson  <jas@extundo.com>
108666         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
108667         suggested by Bruno Haible <bruno@clisp.org>.
108669 2005-10-22  Simon Josefsson  <jas@extundo.com>
108671         * lib/crc.h: Include stddef.h, for size_t.
108673 2005-10-22  Simon Josefsson  <jas@extundo.com>
108675         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
108676         arcfour_context struct (simplify test vector testing in GNU
108677         Shishi).
108679 2005-10-21  Simon Josefsson  <jas@extundo.com>
108681         * modules/des, modules/des-tests: New files.
108683         * modules/gc-des, modules/gc-des-tests: New files.
108685         * tests/test-des.c, tests/test-gc-des.c: New file.
108687 2005-10-21  Simon Josefsson  <jas@extundo.com>
108689         * modules/arctwo, modules/arctwo-tests: New files.
108691         * tests/test-arctwo.c: New file.
108693         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
108695         * tests/test-gc-arctwo.c: New file.
108697 2005-10-21  Simon Josefsson  <jas@extundo.com>
108699         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
108700         Bruno Haible <bruno@clisp.org>.
108702         * m4/gc-des.m4: New file.
108704 2005-10-21  Simon Josefsson  <jas@extundo.com>
108706         * m4/arctwo.m4: New file.
108708         * m4/gc-arctwo.m4: New file.
108710 2005-10-21  Simon Josefsson  <jas@extundo.com>
108712         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
108713         block.
108715 2005-10-21  Simon Josefsson  <jas@extundo.com>
108717         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
108718         <bruno@clisp.org>.
108720         * lib/hmac-sha1.c (hmac_sha1): Likewise.
108722         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
108723         Bruno Haible <bruno@clisp.org>.
108725         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
108726         <bruno@clisp.org>.
108728 2005-10-21  Simon Josefsson  <jas@extundo.com>
108730         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
108732 2005-10-21  Simon Josefsson  <jas@extundo.com>
108734         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
108736 2005-10-21  Simon Josefsson  <jas@extundo.com>
108738         * lib/des.h, lib/des.c: New files.
108740         * lib/gc-gnulib.c: Support DES.c
108742 2005-10-21  Simon Josefsson  <jas@extundo.com>
108744         * lib/arctwo.h, lib/arctwo.c: New files.
108746         * lib/gc-gnulib.c: Support ARCTWO.
108748 2005-10-21  Simon Josefsson  <jas@extundo.com>
108750         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
108751         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108753 2005-10-21  Simon Josefsson  <jas@extundo.com>
108755         * gnulib-tool (func_import, func_create_testdir): Define automake
108756         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
108757         Makefile.am snippet),
108758         suggested by Bruno Haible <bruno@clisp.org>.
108760         * modules/gc (Makefile.am): Use it.
108762 2005-10-21  Bruno Haible  <bruno@clisp.org>
108764         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
108765         patch.
108767 2005-10-19  Simon Josefsson  <jas@extundo.com>
108769         * tests/test-gc-rijndael.c: New file.
108771         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
108773 2005-10-19  Simon Josefsson  <jas@extundo.com>
108775         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
108776         interface too.
108778 2005-10-19  Simon Josefsson  <jas@extundo.com>
108780         * tests/test-gc-arcfour.c: New file.
108782         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
108784 2005-10-19  Simon Josefsson  <jas@extundo.com>
108786         * modules/gc-md4, modules/gc-md4-tests: New file.
108788         * tests/test-gc-md4.c: New file.
108790 2005-10-19  Simon Josefsson  <jas@extundo.com>
108792         * m4/gc-md4.m4: New file.
108794 2005-10-19  Simon Josefsson  <jas@extundo.com>
108796         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
108797         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
108798         <kasal@ucw.cz>.
108800 2005-10-19  Simon Josefsson  <jas@extundo.com>
108802         * m4/gc-arcfour.m4: New file.
108804         * m4/gc-rijndael.m4: New file.
108806 2005-10-19  Simon Josefsson  <jas@extundo.com>
108808         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
108810 2005-10-19  Simon Josefsson  <jas@extundo.com>
108812         * lib/gc-gnulib.c: Support ARCFOUR.
108814 2005-10-19  Simon Josefsson  <jas@extundo.com>
108816         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
108817         support.
108819         * lib/gc.h: Add ECB enum type.
108821         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
108823 2005-10-18  Simon Josefsson  <jas@extundo.com>
108825         * tests/test-md5.c: New file.
108827         * modules/md5-tests: New file.
108829 2005-10-18  Simon Josefsson  <jas@extundo.com>
108831         * tests/test-md4.c: New file.
108833         * modules/md4, modules/md4-tests: New files.
108835 2005-10-18  Simon Josefsson  <jas@extundo.com>
108837         * m4/md4.m4: New file.
108839 2005-10-18  Simon Josefsson  <jas@extundo.com>
108841         * lib/md4.h, lib/md4.c: New files, based on md5.?.
108843 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
108845         * gnulib-tool (func_create_testdir): Omit the second check whether
108846         BUILT_SOURCES in nonempty.
108848 2005-10-17  Simon Josefsson  <jas@extundo.com>
108850         * tests/test-rijndael.c: New file.
108852 2005-10-17  Simon Josefsson  <jas@extundo.com>
108854         * modules/sha1: Depend on stdint instead of md5.
108856         * modules/md5: Depend on stdint, remove uint32_t.
108858 2005-10-17  Simon Josefsson  <jas@extundo.com>
108860         * modules/gc-sha1-tests: New file.
108862         * tests/test-gc-sha1.c: New file.
108864 2005-10-17  Simon Josefsson  <jas@extundo.com>
108866         * m4/md5.m4: Remove call to uint32_t.m4.
108868 2005-10-17  Simon Josefsson  <jas@extundo.com>
108870         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
108872         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
108873         md5.h.
108875         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
108877         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
108879 2005-10-17  Simon Josefsson  <jas@extundo.com>
108881         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
108883 2005-10-17  Simon Josefsson  <jas@extundo.com>
108885         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
108887 2005-10-17  Simon Josefsson  <jas@extundo.com>
108889         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
108891         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
108893 2005-10-17  Bruno Haible  <bruno@clisp.org>
108895         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
108896         that it can also be used in a test.
108898 2005-10-16  Bruno Haible  <bruno@clisp.org>
108900         * gnulib-tool (func_emit_tests_Makefile_am): Also define
108901         TESTS_ENVIRONMENT, so that individual tests can augment it.
108903         * gnulib-tool (func_create_testdir): Use an intermediate target for
108904         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
108905         macros, like $(ALLOCA_H), which cannot be passed through the command
108906         line.
108908 2005-10-15  Simon Josefsson  <jas@extundo.com>
108910         * modules/rijndael-tests: New file.
108912         * modules/rijndael: New file.
108914 2005-10-15  Simon Josefsson  <jas@extundo.com>
108916         * m4/rijndael.m4: New file.
108918 2005-10-15  Simon Josefsson  <jas@extundo.com>
108920         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
108922         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
108924 2005-10-14  Simon Josefsson  <jas@extundo.com>
108926         * tests/test-arcfour.c: New file.
108928         * modules/arcfour, modules/arcfour-tests: New files.
108930 2005-10-14  Simon Josefsson  <jas@extundo.com>
108932         * m4/arcfour.m4: New file.
108934 2005-10-14  Simon Josefsson  <jas@extundo.com>
108936         * lib/arcfour.h, lib/arcfour.c: New files.
108938 2005-10-14  Roland McGrath  <roland@redhat.com>
108940         Import from libc.  [BZ #1331]
108941         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
108942         macro argument.
108943         Reported by Matej Vela <vela@debian.org>.
108945 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108947         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
108948         include <wchar.h>; no longer needed.
108950 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
108952         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
108954 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
108955         and  Ulrich Drepper  <drepper@redhat.com>
108957         Import from libc.
108958         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
108959         instead of inline stream orientation test and two separate
108960         function calls.  Pay no attention to USE_IN_LIBIO.
108962 2005-10-13  Simon Josefsson  <jas@extundo.com>
108964         * modules/gc-hmac-md5-tests: New file.
108966         * tests/test-gc-hmac-sha1.c: New file.
108968         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
108970         * modules/gc-hmac-md5-tests: New file.
108972         * tests/test-gc-md5.c: New file.
108974         * modules/gc-md5-tests: New file.
108976 2005-10-13  Simon Josefsson  <jas@extundo.com>
108978         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
108979         Move memory allocation outside of loop.
108981 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
108983         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
108984         intermediate directory is in a read-only file system.  Problem
108985         reported by Eric Blake.
108987 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
108989         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
108991 2005-10-12  Simon Josefsson  <jas@extundo.com>
108993         * tests/test-hmac-sha1.c: New file.
108995         * modules/hmac-sha1-tests: New file.
108997         * modules/hmac-sha1: New file.
108999 2005-10-12  Simon Josefsson  <jas@extundo.com>
109001         * modules/gc-sha1: New file.
109003 2005-10-12  Simon Josefsson  <jas@extundo.com>
109005         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
109007         * tests/test-gc-pbkdf2-sha1.c: New file.
109009 2005-10-12  Simon Josefsson  <jas@extundo.com>
109011         * modules/gc-md5, modules/gc-hmac-md5: New files.
109013         * modules/gc (Files): Remove md5, memxor and hmac files.
109015 2005-10-12  Simon Josefsson  <jas@extundo.com>
109017         * m4/gc-pbkdf2-sha1.m4: New file.
109019         * m4/gc-hmac-sha1.m4: New file.
109021         * m4/gc-sha1: New file.
109023         * m4/hmac-sha1.m4: New file.
109025 2005-10-12  Simon Josefsson  <jas@extundo.com>
109027         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
109029         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
109031 2005-10-12  Simon Josefsson  <jas@extundo.com>
109033         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
109034         suggested by Bruno Haible <bruno@clisp.org>.
109036 2005-10-12  Simon Josefsson  <jas@extundo.com>
109038         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
109040 2005-10-12  Simon Josefsson  <jas@extundo.com>
109042         * lib/gc-pbkdf2-sha1.c: New file.
109044         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
109046 2005-10-12  Simon Josefsson  <jas@extundo.com>
109048         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
109050         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
109052 2005-10-12  Simon Josefsson  <jas@extundo.com>
109054         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
109055         GC_USE_HMAC_MD5, respectively.
109057         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
109058         (gc_md5): Fix typo.
109060         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
109062         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
109064         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
109066 2005-10-12  Bruno Haible  <bruno@clisp.org>
109068         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
109069         Reported by Stepan Kasal <kasal@ucw.cz>.
109071 2005-10-11  Simon Josefsson  <jas@extundo.com>
109073         * tests/test-crc.c: New file.
109075         * modules/crc, modules/crc-tests: New files.
109077 2005-10-11  Simon Josefsson  <jas@extundo.com>
109079         * m4/crc.m4: New file.
109081 2005-10-11  Simon Josefsson  <jas@extundo.com>
109083         * lib/gc.h: Add gc_hash and gc_hash_buffer.
109085         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
109087         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
109089 2005-10-11  Simon Josefsson  <jas@extundo.com>
109091         * lib/crc.h, lib/crc.c: New files.
109093         * lib/gc.h (gc_hash_buffer): Add doc.
109095 2005-10-11  Bruno Haible  <bruno@clisp.org>
109097         * modules/c-strcasestr: New file.
109098         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
109100 2005-10-11  Bruno Haible  <bruno@clisp.org>
109102         * modules/c-strcase: New file.
109103         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
109105 2005-10-11  Bruno Haible  <bruno@clisp.org>
109107         * lib/strcasecmp.c: Include limits.h.
109108         (strcasecmp): Avoid integer overflow on exotic platforms.
109109         * lib/strncasecmp.c: Include limits.h.
109110         (strncasecmp): Avoid integer overflow on exotic platforms.
109111         Reported by Paul Eggert.
109113 2005-10-11  Bruno Haible  <bruno@clisp.org>
109115         * lib/c-strcasestr.h: New file, from GNU gettext.
109116         * lib/c-strcasestr.c: New file, from GNU gettext.
109118 2005-10-11  Bruno Haible  <bruno@clisp.org>
109120         * lib/c-strcase.h: New file, from GNU gettext.
109121         * lib/c-strcasecmp.c: New file, from GNU gettext.
109122         * lib/c-strncasecmp.c: New file, from GNU gettext.
109124 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
109126         * modules/mempcpy (License): GPL -> LGPL.
109127         * modules/strchrnul (License): Likewise.
109128         * modules/sysexits (License): Likewise.
109130 2005-10-08  Simon Josefsson  <jas@extundo.com>
109132         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
109134 2005-10-07  Simon Josefsson  <jas@extundo.com>
109136         * m4/memxor.m4: Remove gl_C_RESTRICT call.
109138 2005-10-06  Simon Josefsson  <jas@extundo.com>
109140         * tests/test-hmac-md5.c: New file.
109142         * modules/hmac-md5-tests: New file.
109144         * modules/hmac-md5: New file.
109146 2005-10-06  Simon Josefsson  <jas@extundo.com>
109148         * m4/hmac-md5.m4: New file.
109150         * m4/memxor.m4: Require gl_C_RESTRICT.
109152 2005-10-06  Simon Josefsson  <jas@extundo.com>
109154         * lib/memxor.c (memxor): Avoid casts and warnings.
109156 2005-10-06  Simon Josefsson  <jas@extundo.com>
109158         * lib/hmac-md5.c: New file.
109160         * lib/hmac.h: New file.
109162 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
109164         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
109165         promotes to int, not unsigned int, to catch the AIX 5.3
109166         compiler bug.
109168 2005-10-05  Simon Josefsson  <jas@extundo.com>
109170         * modules/memxor: New file.
109172         * modules/iconv (Files): Move config.rpath to havelib, it is used
109173         there.
109175         * modules/havelib (Files): Add config.rpath.
109177 2005-10-05  Simon Josefsson  <jas@extundo.com>
109179         * m4/memxor.m4: New file.
109181 2005-10-05  Simon Josefsson  <jas@extundo.com>
109183         * lib/memxor.c (memxor): Fix compiler error.
109185         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
109186         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
109188         * lib/memxor.h, lib/memxor.c: New files.
109190         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
109191         we assume all systems have it, suggested by Jim Meyering
109192         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
109193         any systems lack sys/socket.h; mingw32 is known to lack it, but we
109194         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
109195         same reasons.
109197 2005-10-05  Simon Josefsson  <jas@extundo.com>
109199         * config/srclist.txt: Add glibc bug 1423 for md5.h.
109201 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
109203         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
109204         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
109205         needed, since the source code now assumes these .h files.
109207 2005-10-05  Derek Price  <derek@ximbiot.com>
109209         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
109211 2005-10-05  Bruno Haible  <bruno@clisp.org>
109213         * modules/stdint (License): Change to LGPL.
109215 2005-10-04  Simon Josefsson  <jas@extundo.com>
109217         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
109218         D. Baushke" <mdb@gnu.org>.
109220 2005-10-04  Bruno Haible  <bruno@clisp.org>
109222         * lib/verify.h (verify_true): Provide alternative definition for C++.
109224 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
109226         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
109227         (SSIZE_MAX): New macro, if not already defined.
109228         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
109229         than 2 GiB.
109231 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
109233         Sync from coreutils.
109234         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
109235         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
109236         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
109237         ULLONG_MAX doesn't work with 2.7.2.1.
109239 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
109241         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
109242         From Ben Pfaff.
109244         * modules/exclude (Depends-on): Depend on verify.
109245         * modules/strtoimax (Depends-on): Likewise.
109246         * modules/utimecmp (Depends-on): Likewise.
109248 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
109250         * lib/exclude.c: Include verify.h.
109251         (verify): Remove.  All callers changed to use verify.h's version.
109252         * lib/strtoimax.c: Likewise.
109253         * lib/utimecmp.c: Likewis.e
109255         Sync from coreutils.
109256         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
109257         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
109258         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
109259         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
109260         bother returning ENOSYS if settimeofday or stime fails; just let
109261         them return whatever errno they want to return.
109262         * lib/utimens.c: Include unistd.h, for dup2.
109263         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
109264         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
109266 2005-10-02  Jim Meyering  <jim@meyering.net>
109268         Sync from coreutils.
109269         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
109270         from glibc-2.2.5 that fails for read-only files.
109272 2005-10-02  Jim Meyering  <jim@meyering.net>
109274         Sync from coreutils.
109275         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
109276         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
109277         `#if HAVE_CONFIG_H'.
109278         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
109279         Remove AT_FDCWD test.
109280         Do not consume the fd unless successful.
109281         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
109282         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
109283         block, so that we don't even try to compile it if settimeofday is
109284         available.  This works around a compilation failure on OSF1 V5.1,
109285         due to stime requiring a `long int*' while tv_sec is `int'.
109287 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
109289         Sync from coreutils.
109290         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
109291         against `yes', rather than just testing for nonempty.
109293 2005-10-01  Simon Josefsson  <jas@extundo.com>
109295         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
109296         and Darwin.
109298         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
109299         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
109300         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
109301         freeaddrinfo and gai_strerror are declared by the POSIX headers.
109302         Check if struct addrinfo is declared.
109304 2005-10-01  Simon Josefsson  <jas@extundo.com>
109306         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
109307         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
109308         AI_* and EAI_* definitions.  Protect function declarations.
109310 2005-10-01  Jim Meyering  <jim@meyering.net>
109312         Sync from coreutils.
109314         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
109315         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
109316         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
109317         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
109318         in the inet and nsl libraries.  Required on Solaris 5.7.
109320 2005-10-01  Jim Meyering  <jim@meyering.net>
109322         Sync from coreutils.
109323         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
109324         in the inet and nsl libraries.  Required on Solaris 5.7.
109326 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
109328         * lib/getdelim.c (getdelim): Remove unused variables.
109330 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
109332         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
109333         so that the code works even with ancient cpp.  Portability problem
109334         with GCC 2.7.2.1 reported by Thomas M.Ott.
109336 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
109338         * modules/regex (Depends-on): Add strcase.
109340         * modules/gethostname (Licence): Change from GPL to LGPL, since
109341         gethostname.c is a trivial implementation of a standard library
109342         function.
109343         * modules/poll (License): Change from GPL to LGPL, since it's
109344         derived from LGPL code.
109346 2005-09-27  Jim Meyering  <jim@meyering.net>
109348         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
109349         HAVE_CONFIG_H.
109351         * lib/intprops.h (signed_type_or_expr__): Define.
109352         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
109353         for unsigned types.
109355 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
109357         * lib/verify.h (verify_expr): Remove, replacing with:
109358         (verify_true): New macro that returns true instead of void.
109359         (verify_type__): Remove.
109360         (verify): Use verify_true rather than verify_type__.
109362 2005-09-26  Bruno Haible  <bruno@clisp.org>
109364         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
109365         is necessary.
109366         (lib_SOURCES): Remove mbchar.c.
109367         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
109368         (Files): Add m4/mbrtowc.m4.
109369         * modules/mbiter: Likewise.
109370         * modules/mbuiter: Likewise.
109372 2005-09-26  Bruno Haible  <bruno@clisp.org>
109374         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
109375         compile mbchar.c if they are not both present.
109376         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
109377         * m4/mbiter.m4 (gl_MBITER): Likewise.
109378         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
109379         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
109380         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
109382 2005-09-25  Jim Meyering  <jim@meyering.net>
109384         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
109385         also uses socklen_t.
109387 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
109389         * lib/utimens.c (ENOSYS): Define if not already defined.
109390         (futimens): Support having a null PATH if the file descriptor
109391         is nonnegative.
109393         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
109394         Remove.
109395         (__attribute): Define to empty unless GCC 3.1 or later.
109396         This works around a core dump on OpenBSD 3.4, which has GCC
109397         2.95.3, which dumps core when given __attribute__(()).  It also
109398         simplifies other tests, since we really don't want to bother with
109399         worrying about which ancient version of GCC supported what.
109400         Original problem reported by Yoann Vandoorselaere, with part of
109401         the fix suggested by Derek Price.
109403 2005-09-24  Jim Meyering  <jim@meyering.net>
109405         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
109406         so we can once again use a positive bitfield width of 1 -- now we
109407         don't have to explain why we were using a bitfield width of 2.
109409 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
109411         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
109412         and similarly for the other external symbols.  Problem reported
109413         by James Gallager.
109415         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
109416         bug reported by Jim Meyering.
109418         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
109419         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
109420         not needed, since socklen is a prerequisite module.
109422 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
109424         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
109425         Problem reported by Eric Blake.
109426         (getaddrinfo): Initialize se so that it's not garbage.
109427         Redo internal storage allocation so that it doesn't make unportable
109428         assumptions about alignment.
109429         Fix a memory leak.
109431         * lib/utimens.c (futimens): Use futimesat if available.
109432         Prefer it to futimes since it doesn't have the futimes bug.
109434         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
109435         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
109436         Instead, declare a function that returns a pointer to an array,
109437         and use verify_type__ to declare the size of the array.
109438         Problem and germ of a solution reported by Bruno Haible.
109439         (verify_type__): Use 2, not 1, for bitfield size, to avoid
109440         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
109442 2005-09-23  Jim Meyering  <jim@meyering.net>
109444         Sync from coreutils.
109445         Correct build failure (socklen_t not defined) on at least
109446         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
109447         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
109449 2005-09-23  Jim Meyering  <jim@meyering.net>
109451         * modules/getaddrinfo (Depends-on): Add socklen.
109453 2005-09-23  Bruno Haible  <bruno@clisp.org>
109455         * tests/test-verify.c: New file.
109457 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109459         Sync from coreutils.
109461         * modules/argmatch (Depends-on): Add verify.
109462         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
109463         unistd-safer.
109464         * modules/save-cwd (Depends-on): Likewise.
109466         * modules/openat (Files): Add lib/openat-die.c.
109467         (Depends-on): Remove error, exitfail.
109468         Add dirname.
109470         * modules/verify: New file.
109471         * MODULES.html.sh (Diagnostics <assert.h>): New section,
109472         with "verify" module.
109474 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109476         Sync from coreutils.
109478         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
109479         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
109480         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
109481         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
109482         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
109483         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
109484         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
109485         Don't bother checking for string.h, stdlib.h, unistd.h.
109486         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
109487         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
109488         module's job.
109489         * m4/jm-macros.m4 (gl_MACROS): Likewise.
109490         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
109492         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
109493         (gl_GETDATE): Use it.
109495         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
109497 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109499         Sync from coreutils.
109501         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
109502         stat-time.h.
109503         * lib/argmatch.h: Include verify.h
109504         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
109505         (ARGMATCH_ASSERT): Remove; unused.
109506         * lib/canonicalize.c: Assume STDC_HEADERS.
109507         * lib/exclude.c: Include "strcase.h".
109508         * lib/regex_internal.h [!defined _LIBC]: Likewise.
109509         * lib/getusershell.c: Include stdio--.h rather than stdio.h
109510         and stdio-safer.h.
109511         (getusershell): Call fopen, not fopen_safer.
109512         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
109513         Do not include unistd-safer.h.
109514         (save_cwd): Don't call fd_safer; no longer needed
109515         now that we include fcntl--.h.
109517         * lib/getdate.y (relative_time): New type.
109518         (RELATIVE_TIME_0): New constant.
109519         (parser_control): Use relative_time instead of doing it ourselves.
109520         (%union): Add new relative_time rel member.
109521         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
109522         Now typeless.
109523         (relunit, relunit_snumber): Now of type rel.
109524         (zone, rel, relunit, get_date): Adjust to above changes.
109526         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
109527         Do not include unistd-safer.h.
109528         (getloadavg): Don't call fd_safer; no longer needed
109529         now that we include fcntl--.h.
109531         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
109532         (make_dir_parents): Treat ENOSYS like EEXIST.
109534         Improve quality of diagnostics on restore_cwd failure.
109535         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
109536         (make_dir_parents): Last arg is now int * (for errno), not bool *.
109537         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
109538         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
109539         each time through the loop.  Do not diagnose restore_cwd failure;
109540         that is the caller's job (and perhaps the caller does not care).
109542         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
109543         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
109544         If the file already exists but is not a directory, don't bother
109545         to try to make its parents.
109546         Close potential file descriptor leak if we can't chdir("/") (!).
109547         Don't always return true if chdir($PWD) fails; return true only
109548         if the requested action was done successfully (except for the
109549         chdir($PWD)).
109550         Don't log final directory unless we actually made it.
109551         Refactor to avoid duplicate code to fix up permissions.
109552         Don't attempt to fix up parent permissions if chdir($PWD) fails.
109554         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
109555         to make it a bit faster and (I hope) clearer.
109556         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
109557         Fix bug in formats like %2N.
109559         * lib/verify.h: New file.
109561 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
109563         Sync from coreutils.
109564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
109566 2005-09-22  Jim Meyering  <jim@meyering.net>
109568         Sync from coreutils.
109570         * m4/lstat.m4 (gl_FUNC_LSTAT):
109571         Use AC_LIBSOURCES to require lstat.c and lstat.h.
109572         Remove obsolete comment.
109573         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
109574         * m4/xstrtod.m4: Likewise.
109576         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
109578 2005-09-22  Jim Meyering  <jim@meyering.net>
109580         Sync from coreutils.
109582         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
109584         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
109585         the .tm_year member, since otherwise gcc-4.0 would now warn about
109586         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
109588         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
109589         order to avoid an unsuppressible warning from gcc on 64-bit systems.
109591         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
109592         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
109593         when run in a time zone for which daylight savings time is in effect
109594         for the starting date.
109596         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
109597         stop us from restricting permissions of just-created absolute-named
109598         directories.
109599         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
109600         to restore initial working directory.
109601         * lib/mkdir-p.c (make_dir_parents): New parameter:
109602         different_working_dir, to tell caller if/when we change the working
109603         directory and are unable to return to the initial one.
109604         * lib/mkdir-p.h (make_dir_parents): Update prototype.
109605         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
109606         `return false'.  This fixes a bug introduced on 2004-07-30.
109608         * lib/openat.c (fdopendir): Be sure to close the supplied
109609         file descriptor before returning.  This makes our replacement
109610         implementation a little closer to Solaris's, where fdopendir
109611         ties the file descriptor to the returned DIR* pointer.
109612         * lib/openat.c (unlinkat): New function.
109613         * lib/openat.h (unlinkat): Add prototype.
109614         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
109615         (openat_restore_fail): Rename from openat_restore_die.
109616         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
109618         Provide an alternative to exiting immediately upon save_cwd or
109619         restore_cwd failure.  Now, an application can arrange e.g.,
109620         to perform a longjump in that case.
109621         * lib/openat.c: Include dirname.h.
109622         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
109623         (rpl_openat, fdopendir, fstatat): Call openat_save_die
109624         and openat_restore_die rather than calling error directly.
109625         Don't include "error.h" or "exitfail.h"; they're no longer needed.
109627         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
109628         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
109629         define.
109631         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
109632         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
109633                             int utc, int nanoseconds);
109634         Background:
109635         date should not have to allocate a megabyte of virtual memory to
109636         handle a format argument like +%1048575T.  When implemented with
109637         strftime, it must allocate such a buffer, use strftime to fill it
109638         in, print it, then free it.
109639         With fprintftime, it simply prints everything and exits.
109640         With no need for memory allocation, that's one fewer way to fail.
109641         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
109642         optional field width, not before, so we accept %9:z, not %:9z.
109643         (my_strftime): Be sure to use L_('x') for literals.
109645         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
109646         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
109647         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
109648         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
109649         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
109650         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
109651         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
109652         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
109653         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
109654         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
109655         * lib/xgethostname.c, lib/xreadlink.c:
109656         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
109658         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
109659         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
109660         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
109661         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
109662         and don't include <sys/file.h>).
109664 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
109666         Sync from coreutils.
109668         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
109669         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
109670         [!LDAV_DONE]: Avoid unused variable warning.
109672 2005-09-21  Bruno Haible  <bruno@clisp.org>
109674         * lib/unicodeio.h (unicode_to_mb): New declaration.
109676 2005-09-20  Derek Price  <derek@ximbiot.com>
109678         * lib/getaddrinfo.c: Don't include <netdb.h> included from
109679         getaddrinfo.h.
109681 2005-09-20  Bruno Haible  <bruno@clisp.org>
109683         * gnulib-tool: Remove trailing slashes from the values specified for
109684         --source-base, --m4-base, --tests-base, --aux-dir.
109685         Suggested by Simon Josefsson <jas@extundo.com>.
109687 2005-09-20  Bruno Haible  <bruno@clisp.org>
109689         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
109690         func_modules_to_filelist, func_import, func_create_testdir): Make all
109691         sorting results locale-independent, so that gnulib-cache.m4 doesn't
109692         change when gnulib-tool is invoked in a different locale.
109694 2005-09-19  Simon Josefsson  <jas@extundo.com>
109696         * m4/socklen.m4: Fix typo.
109698 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109700         Use a consistent style for including <config.h>.
109701         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
109702         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
109703         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
109704         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
109705         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
109706         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
109707         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
109708         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
109709         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
109710         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
109711         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
109712         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
109713         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
109714         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
109715         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
109716         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
109717         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
109718         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
109719         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
109720         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
109721         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
109722         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
109723         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
109724         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
109725         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
109726         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
109727         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
109728         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
109729         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
109730         lib/xstrtoumax.c, lib/yesno.c:
109731         Standardize inclusion of config.h.
109732         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
109733         lib/inttostr.h:  Removed inclusion of config.h from header files.
109734         * lib/inttostr.c:  Adjusted in-tree users.
109735         * lib/timespec.h: Remove superfluous warning to include config.h.
109736         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
109737         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
109738         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
109739         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
109740         config.h with HAVE_CONFIG_H.
109742 2005-09-19  Jim Meyering  <jim@meyering.net>
109744         * modules/pathmax (License): Change to LGPL.
109746 2005-09-19  Derek Price  <derek@ximbiot.com>
109748         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
109750 2005-09-19  Bruno Haible  <bruno@clisp.org>
109752         * gnulib-tool (import): Provide default for --tests-base.
109754 2005-09-19  Bruno Haible  <bruno@clisp.org>
109756         * doc/quote.texi: New file, extracted from gnulib.texi.
109757         * doc/ctime.texi: New file, extracted from gnulib.texi.
109758         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
109759         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
109760         * doc/gnulib.texi: Include them.
109762 2005-09-18  Bruno Haible  <bruno@clisp.org>
109764         Portability fix.
109765         * gnulib-tool (func_readlink): New function.
109766         (func_ln_if_changed): Use it.
109768 2005-09-18  Bruno Haible  <bruno@clisp.org>
109770         * gnulib-tool: Support --with-tests also with --import.
109771         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
109772         (func_import): Use variables $testsbase and $inctests. Emit a
109773         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
109774         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
109775         SUBDIRS += $testsdir.
109776         (func_create_testdir): Update.
109778 2005-09-18  Bruno Haible  <bruno@clisp.org>
109780         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
109781         instead of $dry_run.
109782         (func_cp_if_changed, func_mv_if_changed): Remove functions.
109783         (func_ln_if_changed): Don't handle dry-run here.
109784         (func_import): In dry-run mode, detect more precisely which actions
109785         would be performed, and don't use "...ing" verbs.
109787 2005-09-18  Bruno Haible  <bruno@clisp.org>
109789         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
109790         (func_import): Use join on two temporary files instead of three nested
109791         loops, in order to determine which files are new or old.
109793 2005-09-18  Bruno Haible  <bruno@clisp.org>
109795         * gnulib-tool (func_import): Comment out code that spits out the
109796         new files with --dry-run.
109798 2005-09-18  Bruno Haible  <bruno@clisp.org>
109800         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
109802 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109804         * lib/stat-time.h: New file.
109805         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
109806         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
109807         in a different way.
109808         (timespec_cmp): New function.
109809         * lib/utimecmp.c: Include stat-time.h.
109810         (SYSCALL_RESOLUTION): Depend on whether various struct stat
109811         members exist, not on the obsolescent ST_MTIM_NSEC.
109812         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
109814 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109816         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
109818 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
109820         * MODULES.html.sh (File system functions): Add stat-time.
109821         * modules/stat-time: New file.
109822         * modules/timespec (Files): Remove m4/st_mtim.m4; this
109823         is now done in a different way, by the stat-time module.
109824         * modules/utimecmp (Depends-on): Add stat-time.
109826 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
109828         * m4/st_mtim.m4: Remove.  Superseded by...
109829         * m4/stat-time.m4: New file.
109830         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
109831         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
109833 2005-09-15  Derek Price  <derek@ximbiot.com>
109835         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
109837 2005-09-15  Derek Price  <derek@ximbiot.com>
109839         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
109840         * lib/regex_internal.c: Ditto, using this...
109841         (__GNUC_PREREQ): ...new macro.
109842         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
109843         using...
109844         (__GNUC_PREREQ): ...this new macro.
109846         * lib/strstr.h: Include string.h. Define strstr as a macro here.
109848 2005-09-15  Derek Price  <derek@ximbiot.com>
109849             Paul Eggert  <eggert@cs.ucla.edu>
109851         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
109852         changes, consolidating in...
109853         * lib/regex_internal.h: ...this file.
109855 2005-09-13  Jim Meyering  <jim@meyering.net>
109857         * lib/canon-host.c: Filter through gnu indent and reword comments
109858         slightly.
109859         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
109861 2005-09-13  Derek Price  <derek@ximbiot.com>
109863         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
109864         failure.
109865         Reported by Jim Meyering  <jim@meyering.net>.
109867 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
109869         * lib/base64.c: Typo.
109870         (base64_encode): Put b64str in initialized data section.
109872 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
109874         Merge glibc and coreutils changes into gnulib, plus a few
109875         extra fixes.
109876         * lib/md5.c: Use #error rather than a string.
109877         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
109878         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
109879         (__attribute__): Define to empty for non recent-GCC.
109880         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
109881         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
109882         Renamed from their non-__ counterparts, with new macros replacing
109883         them if not _LIBC.  Add __THROW attribute.
109884         (rol): Remove.
109885         (struct md5_ctx): Align buffer if using GCC.
109886         * lib/sha1.h (struct sha1_ctx): Likewise.
109887         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
109888         The old name was backwards.
109889         (NOTSWAP): Remove; not used.
109890         (rol): New macro, moved here from md5.h.
109891         (sha1_process_block): Remove a FIXME that doesn't make sense.
109893 2005-09-12  Derek Price  <derek@ximbiot.com>
109895         Return usable errors from canon-host.
109896         * lib/canon-host.h: New file.
109897         * lib/canon-host.c (canon_host): Wrap...
109898         (canon_host_r): ...this new function, which now relies exclusively on
109899         getaddrinfo.
109900         (ch_strerror): New function.
109901         (last_cherror): New global.
109902         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
109903         interface.
109904         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
109905         void *.
109906         (freeaddrinfo): Free ai->ai_canonname when set.
109908 2005-09-12  Derek Price  <derek@ximbiot.com>
109910         Make canon-host require getaddrinfo.
109911         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
109912         AC_LIBSOURCE canon-host.h.  Call...
109913         (gl_PREREQ_CANON_HOST): ...this new function, which requires
109914         gl_GETADDRINFO.
109915         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
109917 2005-09-12  Derek Price  <derek@ximbiot.com>
109919         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
109920         LGPL.
109921         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
109923 2005-09-12  Derek Price  <derek@ximbiot.com>
109925         * lib/gai_strerror.c: Include config.h when available.  Include
109926         getaddrinfo.h before other headers to test interface.
109927         Reported by Larry Jones <lawrence.jones@ugs.com>.
109929 2005-09-12  Derek Price  <derek@ximbiot.com>
109930             Paul Eggert  <eggert@cs.ucla.edu>
109932         * modules/glob (Files): Add glob-libc.h.
109934 2005-09-12  Derek Price  <derek@ximbiot.com>
109935             Paul Eggert  <eggert@cs.ucla.edu>
109937         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
109938         glob_.h, glob-libc.h.
109939         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
109941 2005-09-12  Derek Price  <derek@ximbiot.com>
109942             Paul Eggert  <eggert@cs.ucla.edu>
109944         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
109945         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
109946         protecting things that should be done only in gnulib contexts.
109947         * lib/glob_.h: New file, containing only the glob things needed for
109948         gnulib.
109949         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
109950         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
109951         (glob, globfree, glob_pattern_p): Now defined simply in terms of
109952         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
109953         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
109954         and to respect the namespace rules better.
109956 2005-09-08  Simon Josefsson  <jas@extundo.com>
109958         * modules/socklen: New file.
109960 2005-09-08  Simon Josefsson  <jas@extundo.com>
109962         * m4/socklen.m4: New file.
109964 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109966         * modules/utimens (Files): Add m4/utimbuf.m4, since
109967         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
109968         Reported by Sergey Poznyakoff.
109970 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109972         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
109973         definitions, since that's the preferred style in glibc.
109974         Fix a minor spacing issue, and update copyright notice to match
109975         glibc's.
109977 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
109979         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
109981 2005-09-06  Simon Josefsson  <jas@extundo.com>
109983         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
109984         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
109986 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109988         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
109989         warning.
109991 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
109993         * config/srclist.txt: Add glibc bug 1302.
109995 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
109997         Change bitset word type from unsigned int to unsigned long int,
109998         as this has better performance on typical 64-bit hosts.
109999         Port bitset code to hosts with unusual word sizes.
110000         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
110001         (build_collating_symbol):
110002         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
110003         argument is a bitset.  This is merely a style issue, but it makes
110004         it clearer that an entire array is expected.
110005         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
110006         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
110007         Port to the case where bitset_word is not the same as unsigned int.
110008         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
110009         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
110010         Likewise.
110011         * lib/regexec.c (check_dst_limits_calc_pos_1,
110012         check_subexp_matching_top):
110013         (build_trtable, group_nodes_into_DFAstates):
110014         Likewise.
110015         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
110016         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
110017         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
110018         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
110019         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
110020         * lib/regcomp.c (optimize_subexps, lower_subexp):
110021         Work even if bitset_word has holes in its bitwise representation.
110022         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
110023         * lib/regexec.c (check_dst_limits_calc_pos_1,
110024         check_subexp_matching_top):
110025         Likewise.
110026         * lib/regex_internal.c (re_string_reconstruct):
110027         Don't assume UCHAR_MAX == 255.
110028         * lib/regex_internal.h (bitset_set_all): Likewise.
110029         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
110030         All uses changed.
110031         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
110032         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
110033         All uses changed.
110034         (BITSET_WORD_MAX): New macro.
110035         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
110036         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
110037         (bitset_empty, bitset_copy):
110038         Prefer sizeof (bitset) to multiplying it out ourselves.
110039         (bitset_not_merge): Remove; unused.
110040         (bitset_contain): Return bool, not unsigned int with one bit on.
110041         All callers changed.
110042         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
110043         alignment than re_node_set; do this by defining a new internal
110044         type struct dests_alloc and using it to allocate memory.
110046 2005-09-05  Bruno Haible  <bruno@clisp.org>
110048         * gnulib-tool (func_import): Fix comparison in handling of symbolic
110049         links.
110051 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
110053         * modules/size_max (Makefile.am): Add size_max.h
110055 2005-09-04  Derek Price  <derek@ximbiot.com>
110057         * gnulib-tool (func_import): Fix reversed $symbolic logic.
110059 2005-09-03  Simon Josefsson  <jas@extundo.com>
110061         * gnulib-tool: Fix typo.
110063 2005-09-03  Simon Josefsson  <jas@extundo.com>
110065         * config/srclist.txt: Add glibc bug 1293.
110067 2005-09-03  Derek Price  <derek@ximbiot.com>
110069         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
110070         From Larry Jones <lawrence.jones@ugs.com>.
110072 2005-09-02  Simon Josefsson  <jas@extundo.com>
110074         * modules/socklen: New file.
110076 2005-09-02  Simon Josefsson  <jas@extundo.com>
110078         * modules/havelib: New module.
110080         * modules/gettext, modules/iconv, modules/lock, modules/readline:
110081         Use havelib.
110083 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
110085         Check for arithmetic overflow when calculating sizes, to prevent
110086         some buffer-overflow issues.  These patches are conservative, in the
110087         sense that when I couldn't determine whether an overflow was possible,
110088         I inserted a run-time check.
110089         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
110090         macros.
110091         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
110092         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
110093         (re_xnrealloc, re_x2nrealloc): New inline functions.
110094         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
110095         parse_bracket_exp):
110096         (build_equiv_class, build_charclass): Check for arithmetic overflow
110097         in size expression calculations.
110098         * lib/regex_internal.c (re_string_realloc_buffers):
110099         (build_wcs_upper_buffer, re_node_set_add_intersect):
110100         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
110101         (re_dfa_add_node, register_state): Likewise.
110102         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
110103         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
110104         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
110105         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
110107 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
110109         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
110110         m4/ulonglong.m4.  Problem reported by Martin Lambers.
110112 2005-09-02  Bruno Haible  <bruno@clisp.org>
110114         Support for lib vs. lib64 distinction on biarch platforms.
110115         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
110116         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
110117         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
110119 2005-09-02  Bruno Haible  <bruno@clisp.org>
110121         * gnulib-tool (import): In the other first-use case, provide defaults
110122         as well.
110124 2005-09-02  Bruno Haible  <bruno@clisp.org>
110126         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
110127         patches not yet found in the latest gettext release.
110129 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110131         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
110132         to avoid a collision with bits/local_lim.h in glibc.
110133         All uses changed.  Problem reported by Dmitry V. Levin in
110134         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
110136         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
110137         bugs in int versus size_t comparisons.
110138         (re_string_context_at): Fix bug where the code assumed that
110139         Idx is signed.
110141         Use bool where appropriate.
110142         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
110143         All callers changed.
110144         (calc_eclosure_iter): Likewise, for ROOT arg.
110145         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
110146         (build_charclass_op): Likewise, for NON_MATCH arg.
110147         * lib/regex_internal.c (re_string_allocate, re_string_construct):
110148         (re_string_construct_common): Likewise, for ICASE arg.
110149         * lib/regexec.c (re_search_2_stub, re_search_stub):
110150         Likewise, for RET_LEN arg.
110151         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
110152         (set_regs): Likewise, for FL_BACKTRACK arg.
110153         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
110154         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
110155         (calc_eclosure_iter, parse_bracket_exp):
110156         Use bool for internal variables that are booleans.
110157         * lib/regexec.c (re_search_internal, check_matching,
110158         proceed_next_node):
110159         (set_regs, build_sifted_states, sift_states_bkref):
110160         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
110161         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
110162         (find_collation_sequence_value):
110163         Likewise.
110164         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
110165         (re_node_set_compare):
110166         Return bool, not int. All callers changed.
110167         * lib/regexec.c (check_halt_node_context, check_dst_limits):
110168         (build_trtable, check_node_accept): Likewise.
110169         * lib/regex_internal.h: Include stdbool.h.
110171         Fix bugs uncovered when converting to bool.
110172         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
110173         failure instead of charging ahead blindly.
110174         * lib/regex_internal.c (register_state): Likewise.
110175         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
110176         for freeing internal storage.
110177         (group_nodes_into_DFA_states): Use unsigned int, not int, for
110178         bitset pieces used as boolean, to avoid undefined behavior
110179         on hosts that do int overflow checking.
110181 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
110183         * config/srclist.txt: Add glibc bugs 1285-1287.
110185 2005-09-01  Jim Meyering  <jim@meyering.net>
110187         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
110188         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
110189         Require gl_STAT_MACROS, too.
110191 2005-09-01  Bruno Haible  <bruno@clisp.org>
110193         * gnulib-tool (import): In the first-use case, provide defaults.
110195 2005-09-01  Bruno Haible  <bruno@clisp.org>
110197         * gnulib-tool (func_import): Remove the .tmp files.
110199 2005-09-01  Bruno Haible  <bruno@clisp.org>
110201         * gnulib-tool (func_import): Fix handling of symbolic links.
110203 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110205         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
110206         old glibc regex code mishandles strings longer than 2**31 bytes.
110207         This patch fixes this when the regex code is used in gnulib
110208         (i.e., outside glibc).
110210         This patch should not affect the use of the regex code inside
110211         glibc.  No doubt this problem also needs to be handled for glibc
110212         as well, but the result will be an incompatible change to the
110213         glibc ABI, and the old ABI will have to be supported too.  That
110214         can be the subject for another patch.
110216         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
110217         governing whether the rest of this patch is active.  By default,
110218         the macro is disabled and the patch has no effect.
110219         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
110220         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
110221         (struct re_pattern_buffer, re_search, re_search_2, re_match):
110222         (re_match_2, re_set_registers): Use the new types.
110223         * lib/regex_internal.h (Idx, re_hashval_t): New types.
110224         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
110225         New macros.
110226         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
110227         (re_string_context_at, bin_tree_t, re_dfastate_t):
110228         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
110229         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
110230         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
110231         (re_string_char_size_at, re_string_wchar_at):
110232         (re_string_elem_size_at):
110233         Use the new types and macros to port to 64-bit hosts.
110234         Use unsigned types for internal values, so that the code
110235         mostly works even for arrays larger than SSIZE_MAX.
110236         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
110237         (search_duplicated_node, calc_eclosure_iter, fetch_number):
110238         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
110239         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
110240         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
110241         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
110242         (calc_inveclosure, parse_dup_op, build_range_exp):
110243         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
110244         (fetch_number, create_token_tree, mark_opt_subexp):
110245         Likewise.
110246         * lib/regex_internal.c (re_string_construct_common,
110247         create_ci_newstate):
110248         (create_cd_newstate, re_string_allocate, re_string_construct):
110249         (re_string_realloc_buffers, build_wcs_upper_buffer):
110250         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
110251         (re_string_reconstruct, re_string_peek_byte_case):
110252         (re_string_fetch_byte_case, re_string_context_at):
110253         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
110254         (re_node_set_init_copy, re_node_set_add_intersect):
110255         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
110256         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
110257         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
110258         (re_acquire_state, re_acquire_state_context, register_state):
110259         Likewise.
110260         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
110261         search_cur_bkref_entry):
110262         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
110263         (re_search_internal, re_search_2_stub, re_search_stub)
110264         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
110265         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
110266         (update_cur_sifted_state, check_dst_limits):
110267         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
110268         (check_subexp_limits, sift_states_bkref, merge_state_array):
110269         (check_subexp_matching_top, get_subexp, get_subexp_sub):
110270         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
110271         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
110272         (expand_bkref_cache, check_node_accept_bytes):
110273         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
110274         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
110275         (acquire_init_state_context, check_halt_node_context):
110276         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
110277         (sift_states_backward, clean_state_log_if_needed):
110278         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
110279         (find_recover_state, transit_state_sb, transit_state_mb):
110280         (transit_state_bkref, build_trtable, match_ctx_clean):
110281         Likewise.
110282         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
110283         to work around an assumption that REG_MISSING is negative.
110285         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
110286         (seek_collating_symbol_entry) [defined _LIBC]:
110287         (lookup_collation_sequence_value) [defined _LIBC]:
110288         (build_range_exp, build_collating_symbol) [defined _LIBC]:
110289         Use prototypes rather than old-style function definitions.
110290         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
110291         (transit_state_sb) [0]:
110292         (find_collation_sequence_value) [defined _LIBC]: Likewise.
110294         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
110295         rm_eo.
110297         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
110298         (optimize_subexps, lower_subexp):
110299         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
110300         since the signed shift might overflow.  Use 1u<<31 instead.
110301         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
110302         Likewise.
110303         * lib/regexec.c (check_dst_limits_calc_pos_1,
110304         check_subexp_matching_top): Likewise.
110306         * lib/regcomp.c (optimize_subexps, lower_subexp):
110307         Use CHAR_BIT rather than 8, for clarity.
110308         * lib/regexec.c (check_dst_limits_calc_pos_1):
110309         (check_subexp_matching_top): Likewise.
110310         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
110311         have to worry about portability issues when shifting it left.
110312         Remove no-longer-needed test for table_size > 0.
110313         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
110314         in a word, as the resulting behavior is undefined.
110315         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
110316         in one case, a <= should have been an <, and in another case the
110317         whole test was missing.
110318         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
110319         the standard name CHAR_BIT.
110320         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
110321         this is not true on one's complement and signed-magnitude hosts.
110323         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
110324         next_last_offset.
110325         (struct re_dfa_t): Remove unused member states_alloc.
110326         * lib/regcomp.c (init_dfa): Don't initialize unused members.
110328 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110330         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
110331         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
110332         and large-file glibc and in 32-bit large-file Solaris.
110334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110336         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
110337         lengths fit in regoff_t; this isn't true if regoff_t is the same
110338         width as size_t.
110339         * lib/regex.c (re_search_internal): 5th arg is LAST_START
110340         (= START + RANGE) instead of RANGE.  This avoids overflow
110341         problems when regoff_t is the same width as size_t.
110342         All callers changed.
110343         (re_search_2_stub): Check for overflow when adding the
110344         sizes of the two strings.
110345         (re_search_stub): Check for overflow when adding START
110346         to RANGE; if it occurs, substitute the extreme value.
110348 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
110350         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
110352 2005-08-31  Jim Meyering  <jim@meyering.net>
110354         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
110355         a pointer-to-const.
110356         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
110357         (register_state): Likewise.
110358         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
110359         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
110360         (group_nodes_into_DFAstates): Likewise.
110362 2005-08-31  Jim Meyering  <jim@meyering.net>
110364         * check-module: Add a FIXME comment.
110366 2005-08-31  Eric Blake  <ebb9@byu.net>
110368         * modules/unistd-safer (Files): Add unistd--.h.
110369         * modules/stdio-safer (Files): Add stdio--.h.
110371 2005-08-31  Derek Price  <derek@ximbiot.com>
110373         * lib/getdelim.c (getdelim): Return EOF on EOF.
110374         Reported by Larry Jones <lawrence.jones@ugs.com>.
110376 2005-08-31  Bruno Haible  <bruno@clisp.org>
110378         Avoid unnecessary diffs in the generated lib/Makefile.am.
110379         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
110380         the generated files.
110381         (func_import): Don't set cmd.
110383 2005-08-31  Bruno Haible  <bruno@clisp.org>
110385         * lib/strstr.c: Include <stddef.h>, for NULL.
110386         * lib/strcasestr.c: Likewise.
110387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
110389 2005-08-31  Bruno Haible  <bruno@clisp.org>
110391         * gnulib-tool: New option --macro-prefix.
110392         (func_import): Use macro_prefix.
110393         (import): Handle option --macro-prefix.
110395 2005-08-31  Bruno Haible  <bruno@clisp.org>
110397         * gnulib-tool (import): Rename most ac_* variables to cached_*.
110398         Also use new variables cached_lgpl, cached_libtool.
110400 2005-08-31  Bruno Haible  <bruno@clisp.org>
110402         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
110403         always instantiating them.
110405 2005-08-31  Bruno Haible  <bruno@clisp.org>
110407         * gnulib-tool (func_import): Read the previous cached settings
110408         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
110409         earlier added by gnulib but are now dropped. Warn when a gnulib file
110410         overwrites a non-gnulib file.
110412 2005-08-31  Bruno Haible  <bruno@clisp.org>
110414         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
110415         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
110416         projects that don't keep autogenerated files in CVS. Put into
110417         actioncmd only the specified modules, not the transitive closure.
110419 2005-08-31  Bruno Haible  <bruno@clisp.org>
110421         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
110422         Create directories that shall be filled.
110423         (import): Don't look for gl_* macros in configure.ac. Recurse across
110424         all directories containing a gnulib-cache.m4 files, if meaningful.
110426 2005-08-31  Bruno Haible  <bruno@clisp.org>
110428         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
110429         (import): Set seen_libtool when we see gl_LIBTOOL.
110431 2005-08-31  Bruno Haible  <bruno@clisp.org>
110433         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
110434         declaration macro definitions from generated gnulib.m4.
110436 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
110438         * lib/iconvme.h: Add prototype for iconv_alloc.
110440 2005-08-29  Simon Josefsson  <jas@extundo.com>
110442         * lib/iconvme.c: Fix errno.
110444 2005-08-29  Bruno Haible  <bruno@clisp.org>
110446         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
110447         that it works when the directory contains spaces.
110449 2005-08-29  Bruno Haible  <bruno@clisp.org>
110451         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
110453 2005-08-29  Bruno Haible  <bruno@clisp.org>
110455         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
110456         Emit more advice.
110458 2005-08-29  Bruno Haible  <bruno@clisp.org>
110459         and Stepan Kasal  <kasal@ucw.cz>
110461         * check-module: If more parameters are given, check each of them
110462         separately; add more exceptions, as noted by Jim Meyering.
110463         (check_module): New procedure.
110464         (%exempt_header): Now contains all exceptions.
110466 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
110468         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
110470 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
110472         * lib/iconvme.c: Split iconv_string into iconv_alloc.
110474 2005-08-28  Bruno Haible  <bruno@clisp.org>
110476         * m4/gnulib-tool.m4: New file.
110478 2005-08-27  Jim Meyering  <jim@meyering.net>
110480         * modules/unistd-safer (Files): Add pipe-safer.c.
110481         * modules/fcntl-safer (Files): Add creat-safer.c.
110483 2005-08-27  Jim Meyering  <jim@meyering.net>
110485         * m4/stdlib-safer.m4: New file.  From coreutils.
110486         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
110487         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
110488         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
110489         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
110490         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
110492 2005-08-27  Jim Meyering  <jim@meyering.net>
110494         * lib/fopen-safer.c: Merge minor changes from coreutils.
110495         * lib/dup-safer.c: Likewise.
110496         * lib/fd-safer.c: Likewise.
110498         Merge from coreutils.
110499         * lib/stdio--.h: New file.
110500         * lib/stdlib--.h: New file.
110501         * lib/mkstemp-safer.c: New file.
110503         GNU tar needs these.
110504         * lib/pipe-safer.c: New file.
110505         * lib/creat-safer.c: New file.
110506         * lib/fcntl--.h (creat): Define to creat_safer.
110507         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
110508         * lib/unistd--.h (pipe): Define to pipe_safer.
110509         * lib/unistd-safer.h: Declare pipe_safer.
110511 2005-08-26  Simon Josefsson  <jas@extundo.com>
110513         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
110514         Haible <bruno@clisp.org>.
110516 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
110518         * lib/regex_internal.h: Remove all references to
110519         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
110520         or better.
110521         (bitset_not, bitset_merge, bitset_not_merge):
110522         (bitset_mask, re_string_allocate, re_string_construct):
110523         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
110524         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
110525         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
110526         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
110527         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
110528         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
110529         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
110530         (re_acquire_state_context):
110531         Remove unnecessary forward decls.
110532         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
110533         Put __attribute at function definition,
110534         now that the function decl has been removed.
110535         * lib/regex_internal.c (re_string_peek_byte_case):
110536         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
110537         Likewise.
110539 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
110541         * m4/regex.m4: Add AC_PREREQ(2.50).
110542         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
110544 2005-08-25  Simon Josefsson  <jas@extundo.com>
110546         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
110547         __fsetlocking.
110549 2005-08-25  Simon Josefsson  <jas@extundo.com>
110551         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
110552         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
110553         GLIBC specific code.
110555 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110557         Make regex safe for g++.  This fixes one real bug (an "err"
110558         that should have been "*err").  g++ problem reported by
110559         Sam Steingold.
110560         * lib/regex_internal.h (re_calloc): New macro, consistent with
110561         re_malloc etc.  All callers of calloc changed to use re_calloc.
110562         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
110563         not int.  All callers changed.
110564         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
110565         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
110566         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
110567         (find_recover_state): Change "err" to "*err"; this fixes what
110568         appears to be a real bug.
110569         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
110570         versus int.
110572 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110574         * modules/regex (Depends-on): Add malloc, since the code
110575         assumes that !malloc(0) means failure.
110577 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110579         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
110581         alloca modernization/simplification for regex.
110582         * lib/regex.c: Remove portability cruft for alloca.  This no longer
110583         needs to be at the start of the file, and can be moved into
110584         regex_internal.h and simplified.
110585         * lib/regex_internal.h: Include <alloca.h>.
110586         (__libc_use_alloca) [!defined _LIBC]: New macro.
110587         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
110588         now works outside glibc.
110590 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
110592         * config/srclist.txt: Add glibc bugs 1241, 1245.
110594 2005-08-25  Jim Meyering  <jim@meyering.net>
110596         * lib/open-safer.c: Include <config.h>.
110597         Otherwise, we'd lose LARGEFILE support in any file using
110598         e.g. "fcntl--.h"
110600 2005-08-25  Bruno Haible  <bruno@clisp.org>
110602         * m4/minmax.m4: Require autoconf 2.52.
110603         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
110604         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
110605         alternatives of translit over the alphabet.
110606         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
110608 2005-08-24  Simon Josefsson  <jas@extundo.com>
110610         * tests/test-getpass.c: New file.
110612 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110614         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
110615         for GNU regex features.
110617 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110619         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
110620         * lib/regex.h (regerror): Likewise.
110622         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
110623         requires this.  (The code never needed it.)
110625         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
110626         All uses of recently-renamed identifiers changed to use the new,
110627         POSIX-compliant names.  The code will build and run just fine
110628         without these changes, but it's better to eat our own dog food
110629         and use the standard-conforming names.
110631         * lib/regex.h: Fix a multitude of POSIX name space violations.
110632         These changes have an effect only for programs that define
110633         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
110634         do not change anything for programs compiled in the normal way.
110635         Also, there is no effect on the ABI.
110637         (_REGEX_SOURCE): New macro.
110638         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
110639         defined and _GNU_SOURCE is not; this fixes a name space violation.
110641         Rename the following macros to obey POSIX requirements.
110642         The old names are still visible as macros if _REGEX_SOURCE is defined.
110643         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
110644         RE_BACKSLASH_ESCAPE_IN_LISTS.
110645         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
110646         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
110647         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
110648         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
110649         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
110650         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
110651         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
110652         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
110653         (REG_INTERVALS): renamed from RE_INTERVALS.
110654         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
110655         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
110656         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
110657         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
110658         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
110659         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
110660         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
110661         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
110662         RE_UNMATCHED_RIGHT_PAREN_ORD.
110663         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
110664         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
110665         (REG_DEBUG): renamed from RE_DEBUG.
110666         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
110667         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
110668         unusual, since we can't clash with the POSIX REG_ICASE.
110669         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
110670         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
110671         (REG_NO_SUB): renamed from RE_NO_SUB.
110672         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
110673         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
110674         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
110675         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
110676         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
110677         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
110678         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
110679         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
110680         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
110681         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
110682         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
110683         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
110684         RE_SYNTAX_POSIX_MINIMAL_BASIC.
110685         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
110686         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
110687         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
110688         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
110689         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
110690         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
110691         (REG_FIXED): Renamed from REGS_FIXED.
110692         (REG_NREGS): Renamed from RE_NREGS.
110694         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
110695         of other REG_* macros, since POSIX says the user is allowed to
110696         #undef these macros selectively.
110698         (reg_errcode_t): Update comment stating what other tables need
110699         to be consistent.
110701         Rename the following enum values to obey POSIX requirements.
110702         The old names are still visible as macros.
110703         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
110704         is not defined, since GNU is supposed to be a superset of POSIX as
110705         much as possible, and since we want reg_errcode_t to be a signed
110706         type for implementation consistency.
110707         (_REG_NOERROR): Renamed from REG_NOERROR.
110708         (_REG_NOMATCH): Renamed from REG_NOMATCH.
110709         (_REG_BADPAT): Renamed from REG_BADPAT.
110710         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
110711         (_REG_ECTYPE): Renamed from REG_ECTYPE.
110712         (_REG_EESCAPE): Renamed from REG_EESCAPE.
110713         (_REG_ESUBREG): Renamed from REG_ESUBREG.
110714         (_REG_EBRACK): Renamed from REG_EBRACK.
110715         (_REG_EPAREN): Renamed from REG_EPAREN.
110716         (_REG_EBRACE): Renamed from REG_EBRACE.
110717         (_REG_BADBR): Renamed from REG_BADBR.
110718         (_REG_ERANGE): Renamed from REG_ERANGE.
110719         (_REG_ESPACE): Renamed from REG_ESPACE.
110720         (_REG_BADRPT): Renamed from REG_BADRPT.
110721         (_REG_EEND): Renamed from REG_EEND.
110722         (_REG_ESIZE): Renamed from REG_ESIZE.
110723         (_REG_ERPAREN): Renamed from REG_ERPAREN.
110724         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
110725         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
110726         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
110727         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
110729         (_REG_RE_NAME, _REG_RM_NAME): New macros.
110730         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
110731         changed.  But support the old name if the new one is not defined
110732         and if _REGEX_SOURCE.
110734         Change the following member names in struct re_pattern_buffer.
110735         The old names are still supported if !_REGEX_SOURCE.
110736         The new names are always supported, regardless of _REGEX_SOURCE.
110737         (re_buffer): Renamed from buffer.
110738         (re_allocated): Renamed from allocated.
110739         (re_used): Renamed from used.
110740         (re_syntax): Renamed from syntax.
110741         (re_fastmap): Renamed from fastmap.
110742         (re_translate): Renamed from translate.
110743         (re_can_be_null): Renamed from can_be_null.
110744         (re_regs_allocated): Renamed from regs_allocated.
110745         (re_fastmap_accurate): Renamed from fastmap_accurate.
110746         (re_no_sub): Renamed from no_sub.
110747         (re_not_bol): Renamed from not_bol.
110748         (re_not_eol): Renamed from not_eol.
110749         (re_newline_anchor): Renamed from newline_anchor.
110751         Change the following member names in struct re_registers.
110752         The old names are still supported if !_REGEX_SOURCE.
110753         The new names are always supported, regardless of _REGEX_SOURCE.
110754         (rm_num_regs): Renamed from num_regs.
110755         (rm_start): Renamed from start.
110756         (rm_end): Renamed from end.
110758         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
110759         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
110760         Prepend __ to parameter names.
110762         Undo yesterday's changes.
110764 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
110766         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
110767         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
110768         lib/regex.c.
110770 2005-08-24  Jim Meyering  <jim@meyering.net>
110772         Sync from coreutils.
110773         * m4/fcntl-safer.m4: New file.
110775         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
110776         and object files for this module.
110778 2005-08-24  Jim Meyering  <jim@meyering.net>
110780         Sync from coreutils.
110781         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
110783 2005-08-24  Jim Meyering  <jim@meyering.net>
110785         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
110786         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
110788 2005-08-24  Jim Meyering  <jim@meyering.net>
110790         * modules/fcntl-safer: New module.
110791         * modules/fts (Depends-on): Add fcntl-safer.
110792         * MODULES.html.sh (File descriptor based Input/Output):
110793         Add fcntl-safer.
110795 2005-08-24  Bruno Haible  <bruno@clisp.org>
110797         Support for unit test modules.
110798         * modules/README: Mention tests modules.
110799         * modules/TEMPLATE-TESTS: New file.
110800         * gnulib-tool: New options --extract-tests-module, --with-tests and
110801         --tests-base (unused for the moment).
110802         (testsbase, inctests): New variables.
110803         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
110804         (func_verify_module): Exclude TEMPLATE-TESTS.
110805         (func_verify_nontests_module, func_verify_tests_module): New functions.
110806         (func_get_dependencies): Add implicit dependency for tests modules.
110807         (func_get_tests_module): New function.
110808         (func_modules_transitive_closure): When --with-tests was specified,
110809         include the unit tests as well, unless explicitly avoided.
110810         (func_emit_lib_Makefile_am): Ignore the tests modules here.
110811         (func_emit_tests_Makefile_am): New function.
110812         (func_create_testdir): When --with-tests was specified, emit a
110813         tests/ directory.
110814         * MODULES.html.sh (Future developments): Update.
110816 2005-08-24  Bruno Haible  <bruno@clisp.org>
110818         * modules/tls-tests: New file.
110819         * tests/test-tls.c: New file, from GNU gettext.
110821 2005-08-24  Bruno Haible  <bruno@clisp.org>
110823         * modules/lock-tests: New file.
110824         * tests/test-lock.c: New file, from GNU gettext.
110826 2005-08-24  Bruno Haible  <bruno@clisp.org>
110828         * lib/lock.h: Add multiple inclusion guard.
110829         * lib/tls.h: Add multiple inclusion guard.
110831 2005-08-24  Bruno Haible  <bruno@clisp.org>
110833         * gnulib-tool: Add support for the --aux-dir option to
110834         --create-testdir, --create-megatestdir, --test, --megatest.
110835         (func_create_testdir, func_create_megatestdir): Optionally emit a
110836         AC_CONFIG_AUX_DIR directive.
110837         (create-testdir, create-megatestdir, test, megatest): Provide a
110838         default value for $auxdir.
110840 2005-08-24  Bruno Haible  <bruno@clisp.org>
110842         * gnulib-tool (import): Use compound statement instead of subshell
110843         where possible.
110845 2005-08-24  Bruno Haible  <bruno@clisp.org>
110847         * gnulib-tool (import): Change --aux-dir default to "build-aux".
110849 2005-08-24  Bruno Haible  <bruno@clisp.org>
110851         * gnulib-tool (func_version): Update.
110853 2005-08-24  Bruno Haible  <bruno@clisp.org>
110855         * gnulib-tool (func_import, func_create_testdir,
110856         func_create_megatestdir): Quote all autoconf macro arguments.
110858 2005-08-24  Bruno Haible  <bruno@clisp.org>
110860         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
110861         option --force, because --force causes the aclocal.m4 of each
110862         subdirectory to be newer than the corresponding config.h.in.
110864 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110866         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
110867         All contents moved to gl_REGEX.
110868         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
110869         assume that it does.
110871 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110873         * lib/regex.h (REG_NOSYS)
110874         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
110875         Define, since POSIX requires it as of 2001.
110876         (_REG_ENOSYS)
110877         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
110878         New private symbol, used to keep the enum signed in all cases.
110879         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
110880         Youngman in
110881         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
110883         * lib/regex_internal.c (re_string_skip_chars, register_state):
110884         (calc_state_hash):
110885         Remove forward decls; no longer needed now that we use prototypes.
110886         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
110887         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
110888         (clean_state_log_if_needed): Likewise.
110890 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
110892         * config/srclist.txt: Add glibc bugs 1231-1233.
110894 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110896         Fix problems reported by Sam Steingold in
110897         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
110898         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
110899         assumed that reg_errcode_t is a signed type, which is not
110900         necessarily true if _XOPEN_SOURCE is not defined.
110901         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
110902         since some compilers warn about it otherwise.
110904 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110906         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
110907         (init_word_char, create_initial_state, duplicate_node_closure):
110908         (fetch_token, peek_token_bracket, build_range_exp):
110909         (build_collating_symbol): Remove forward decls; no longer needed
110910         now that we use prototypes.
110912         * lib/regcomp.c:
110913         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
110914         (re_compile_fastmap_iter, regcomp, regerror, regfree):
110915         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
110916         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
110917         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
110918         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
110919         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
110920         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
110921         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
110922         (build_range_exp, build_collating_symbol, parse_bracket_exp):
110923         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
110924         (build_charclass, build_charclass_op, fetch_number, create_tree):
110925         (create_token_tree, mark_opt_subexp, duplicate_tree):
110926         Use prototypes rather than old-style definitions.
110928         * lib/regex_internal.c:
110929         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
110930         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
110931         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
110932         (re_string_reconstruct, re_string_peek_byte_case):
110933         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
110934         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
110935         (re_node_set_init_copy, re_node_set_add_intersect):
110936         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
110937         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
110938         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
110939         (re_acquire_state, re_acquire_state_context, register_state):
110940         (create_ci_newstate, create_cd_newstate, free_state):
110941         Likewise.
110942         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
110943         re_search_2):
110944         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
110945         (re_search_internal, prune_impossible_nodes):
110946         (acquire_init_state_context, check_matching, static):
110947         (check_halt_node_context, check_halt_state_context, proceed_next_node):
110948         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
110949         (update_regs, sift_states_backward, build_sifted_states):
110950         (clean_state_log_if_needed, merge_state_array):
110951         (update_cur_sifted_state, add_epsilon_src_nodes):
110952         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
110953         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
110954         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
110955         (find_recover_state, check_subexp_matching_top, transit_state_mb):
110956         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
110957         (check_arrival, check_arrival_add_next_nodes):
110958         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
110959         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
110960         (check_node_accept_bytes, check_node_accept, extend_buffers):
110961         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
110962         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
110963         (sift_ctx_init):
110964         Likewise.
110966         * lib/regex_internal.h:
110967         (re_string_allocate, re_string_construct, re_string_reconstruct):
110968         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
110969         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
110970         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
110971         (re_string_context_at, re_string_peek_byte_case):
110972         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
110973         is defined, since we now use prototypes always.
110975         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
110976         C89 or better.  All uses removed.
110978 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
110980         * config/srclist.txt: Add glibc bugs 1220-1227.
110982 2005-08-20  Jim Meyering  <jim@meyering.net>
110984         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
110985         of unused local, dfa.
110987 2005-08-20  Bruno Haible  <bruno@clisp.org>
110989         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
110991 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110993         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
110994         (re_node_set_insert_last, re_dfa_add_node):
110995         Rename local variables to avoid GCC shadowing warnings.
110997 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
110999         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
111000         [defined lint]: Suppress bogus uninitialized-variable warnings.
111002         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
111003         and let the caller return REG_ESPACE if out of space.  This
111004         removes an uninitialied-variable warning with GCC 4.0.1, and also
111005         avoids taking the address of a local variable.  All callers
111006         changed.
111008 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
111010         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
111011         $LIBCSRC/posix/regexec.c.
111012         Add glibc bug 1217 for regcomp.c.
111014 2005-08-19  Jim Meyering  <jim@meyering.net>
111016         * lib/regexec.c (proceed_next_node): Redo local variables to
111017         avoid GCC shadowing warnings.
111019 2005-08-18  Bruno Haible  <bruno@clisp.org>
111021         * lib/strstr.c (strstr): Fix return value in multibyte case.
111022         * lib/strcasestr.c (strcasestr): Likewise.
111024 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
111026         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
111028 2005-08-17  Jim Meyering  <jim@meyering.net>
111030         Make the %s format (seconds since the epoch) work for a negative
111031         number and when used with a zero-padded field width, e.g. %015s.
111033         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
111034         label so that it precedes the code to set `digits'.  Otherwise,
111035         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
111036         print `00-22'.  Now, it prints `-0022', as it should.
111038 2005-08-17  Bruno Haible  <bruno@clisp.org>
111040         * modules/strstr (Files): Add m4/mbrtowc.m4.
111041         (Depends-on): Add mbuiter.
111043 2005-08-17  Bruno Haible  <bruno@clisp.org>
111045         * modules/strcasestr: New file.
111046         * MODULES.html.sh (String handling, based on ANSI C 89): Add
111047         strcasestr.
111049 2005-08-17  Bruno Haible  <bruno@clisp.org>
111051         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
111053 2005-08-17  Bruno Haible  <bruno@clisp.org>
111055         * modules/mbuiter: New file.
111056         * MODULES.html.sh (Extended multibyte and wide character utilities):
111057         Add mbuiter.
111059 2005-08-17  Bruno Haible  <bruno@clisp.org>
111061         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
111062         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
111064 2005-08-17  Bruno Haible  <bruno@clisp.org>
111066         * m4/strcasestr.m4: New file.
111068 2005-08-17  Bruno Haible  <bruno@clisp.org>
111070         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
111071         * lib/strstr.c: Completely rewritten, with multibyte locale support.
111073 2005-08-17  Bruno Haible  <bruno@clisp.org>
111075         * lib/strcasestr.h: New file.
111076         * lib/strcasestr.c: New file.
111078 2005-08-17  Bruno Haible  <bruno@clisp.org>
111080         * lib/strcasecmp.c: Use mbuiter.h.
111082 2005-08-17  Bruno Haible  <bruno@clisp.org>
111084         * lib/mbuiter.h: New file.
111086 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
111088         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
111089         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
111090         and gl_GETOPT are both invoked via different paths (as happens
111091         with GNU tar CVS because it uses both argp and getopt), the former
111092         wins.
111094 2005-08-16  Bruno Haible  <bruno@clisp.org>
111096         * modules/tls: New file.
111097         * MODULES.html.sh (Multithreading): Add tls.
111099 2005-08-16  Bruno Haible  <bruno@clisp.org>
111101         * modules/strnlen1: New file.
111102         * MODULES.html.sh (String handling): Add strnlen1.
111104 2005-08-16  Bruno Haible  <bruno@clisp.org>
111106         * modules/strcase (Files): Add m4/mbrtowc.m4.
111107         (Depends-on): Add strnlen1, mbchar.
111109 2005-08-16  Bruno Haible  <bruno@clisp.org>
111111         * modules/mbiter: New file.
111112         * MODULES.html.sh (Extended multibyte and wide character utilities):
111113         Add mbiter.
111115 2005-08-16  Bruno Haible  <bruno@clisp.org>
111117         * modules/mbfile: New file.
111118         * MODULES.html.sh (Extended multibyte and wide character utilities):
111119         Add mbfile.
111121 2005-08-16  Bruno Haible  <bruno@clisp.org>
111123         * modules/mbchar: New file.
111124         * MODULES.html.sh (Extended multibyte and wide character utilities):
111125         New section.
111127 2005-08-16  Bruno Haible  <bruno@clisp.org>
111129         * m4/tls.m4: New file, from GNU gettext.
111131 2005-08-16  Bruno Haible  <bruno@clisp.org>
111133         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
111134         always.
111135         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
111137 2005-08-16  Bruno Haible  <bruno@clisp.org>
111139         * m4/mbiter.m4: New file.
111141 2005-08-16  Bruno Haible  <bruno@clisp.org>
111143         * m4/mbfile.m4: New file.
111145 2005-08-16  Bruno Haible  <bruno@clisp.org>
111147         * m4/mbchar.m4: New file.
111149 2005-08-16  Bruno Haible  <bruno@clisp.org>
111151         * lib/tls.h: New file, from GNU gettext.
111152         * lib/tls.c: New file, from GNU gettext.
111154 2005-08-16  Bruno Haible  <bruno@clisp.org>
111156         * lib/strnlen1.h: New file.
111157         * lib/strnlen1.c: New file.
111159 2005-08-16  Bruno Haible  <bruno@clisp.org>
111161         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
111162         (mbi_init): Update.
111163         (mbi_avail, mbi_advance): Let the iteration end before the terminating
111164         NUL byte, not after it.
111166 2005-08-16  Bruno Haible  <bruno@clisp.org>
111168         * lib/strcase.h (strcasecmp): Add note in comments.
111169         * lib/strncasecmp.c: Use code from strcasecmp.c.
111170         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
111171         (strcasecmp): Work correctly in multibyte locales.
111173 2005-08-16  Bruno Haible  <bruno@clisp.org>
111175         * lib/mbiter.h: New file.
111177 2005-08-16  Bruno Haible  <bruno@clisp.org>
111179         * lib/mbfile.h: New file.
111181 2005-08-16  Bruno Haible  <bruno@clisp.org>
111183         * lib/mbchar.h: New file.
111184         * lib/mbchar.c: New file.
111186 2005-08-16  Bruno Haible  <bruno@clisp.org>
111188         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
111189         the valid ones. Makes the comparison operations transitive:
111190         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
111191         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
111193 2005-08-15  Simon Josefsson  <jas@extundo.com>
111195         * modules/ssize_t (License): Change to 'unlimited'.
111197         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
111199 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
111201         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
111202         Add comments for each pending glibc patch.
111204 2005-08-15  Bruno Haible  <bruno@clisp.org>
111206         * lib/regex.h (__restrict_arr): Don't define to __restrict if
111207         __cplusplus is defined.
111209 2005-08-14  Jim Meyering  <jim@meyering.net>
111211         Sync from coreutils.
111213         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
111214         Use the hash-table-based cycle-detection code not just when
111215         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
111216         Reported by James Youngman in
111217         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
111218         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
111219         FTS_TIGHT_CYCLE_CHECK.
111220         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
111221         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
111222         once again.
111223         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
111224         * lib/fts.c (fd_safer): Remove decl.
111225         Include fcntl--.h rather than unistd-safer.h
111226         (fts_safe_changedir): Don't call fd_safer; no longer needed
111227         now that we include fcntl--.h.
111229 2005-08-12  Simon Josefsson  <jas@extundo.com>
111231         * modules/getndelim2: Use ssize_t module.
111232         * modules/getnline: Likewise.
111233         * modules/safe-read: Likewise.
111234         * modules/xreadlink: Likewise.
111236         * modules/ssize_t: New file.
111238 2005-08-12  Simon Josefsson  <jas@extundo.com>
111240         * m4/readline.m4: Look for termcap, curses or ncurses if required.
111242 2005-08-12  Simon Josefsson  <jas@extundo.com>
111244         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
111245         ssize_t.
111247 2005-08-12  Simon Josefsson  <jas@extundo.com>
111249         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
111250         readline, getdelim and check_version.
111251         (Support for systems lacking ISO C 99: Sizes of integer types):
111252         Add size_max.
111254 2005-08-12  Bruno Haible  <bruno@clisp.org>
111256         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
111258 2005-08-11  Simon Josefsson  <jas@extundo.com>
111260         * modules/readline: New file.
111262         * modules/strnlen (Files): Add strnlen.h.
111264 2005-08-11  Simon Josefsson  <jas@extundo.com>
111266         * m4/readline.m4: New file.
111268 2005-08-11  Simon Josefsson  <jas@extundo.com>
111270         * lib/readline.h, readline.c: New file.
111272 2005-08-11  Simon Josefsson  <jas@extundo.com>
111274         * doc/gnulib.texi (Initial import, Finishing touches): Mention
111275         gl_AVOID.
111277 2005-08-11  Bruno Haible  <bruno@clisp.org>
111279         * lib/strnlen.h (strnlen): Change parameter name to match comment.
111281 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
111283         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
111285 2005-08-10  Simon Josefsson  <jas@extundo.com>
111287         * tests/test-iconvme.c: New file.
111289 2005-08-10  Simon Josefsson  <jas@extundo.com>
111291         * m4/strnlen.m4: New file.
111293         * m4/strndup.m4: Don't check for strnlen declaration, done in
111294         strnlen.m4.
111296 2005-08-10  Simon Josefsson  <jas@extundo.com>
111298         * lib/strndup.c: Use strnlen.h.
111300         * lib/strnlen.h: New file.
111302 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
111304         * README: Typos.
111306 2005-08-02  Simon Josefsson  <jas@extundo.com>
111308         * modules/readline: New file.
111310 2005-08-02  Simon Josefsson  <jas@extundo.com>
111312         * modules/getdelim: New file.
111314         * modules/getline: Rewrite, don't use getndelim2.
111316 2005-08-02  Simon Josefsson  <jas@extundo.com>
111318         * m4/getline.m4: Separate out getdelim stuff into separate module.
111320         * m4/getdelim.m4: New file.
111322 2005-08-02  Simon Josefsson  <jas@extundo.com>
111324         * lib/getline.h, getline.c: Rewrite.
111326         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
111328 2005-07-31  Bruno Haible  <bruno@clisp.org>
111330         * lib/lock.h (gl_lock_initializer): New macro.
111331         (gl_lock_define_initialized): Use it.
111332         (gl_rwlock_initializer): New macro.
111333         (gl_rwlock_define_initialized): Use it.
111334         (gl_recursive_lock_initializer): New macro.
111335         (gl_recursive_lock_define_initialized): Use it.
111337 2005-07-30  Karl Berry  <karl@gnu.org>
111339         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
111340         Report from Ben Pfaff, regarding getopt.
111342 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
111344         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
111345         normal way.
111346         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
111347         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
111348         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
111349         (gl_GETOPT): Use the new macros.  Most of the implementation
111350         is moved to the new macros.  This is for programs like Emacs
111351         that don't want all the functionality of gl_GETOPT.
111353 2005-07-26  Bruno Haible  <bruno@clisp.org>
111355         * m4/lock.m4: Update from GNU gettext.
111357 2005-07-26  Bruno Haible  <bruno@clisp.org>
111359         * lib/lock.h: Update from GNU gettext.
111360         * lib/lock.c: Update from GNU gettext.
111362 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
111364         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
111365         obsolescent AC_TRY_RUN.  Include the default includes files, for
111366         'exit'.
111368 2005-07-24  Bruno Haible  <bruno@clisp.org>
111370         * modules/visibility: New file.
111371         * MODULES.html.sh (Misc): Add visibility.
111373 2005-07-24  Bruno Haible  <bruno@clisp.org>
111375         * m4/visibility.m4: New file.
111377 2005-07-24  Bruno Haible  <bruno@clisp.org>
111379         * doc/visibility.texi: New file.
111381 2005-07-22  Bruno Haible  <bruno@clisp.org>
111383         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
111384         $(ALLOCA_H), redundant through BUILT_SOURCES.
111385         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
111386         redundant through BUILT_SOURCES.
111387         * modules/byteswap (Makefile.am): Remove explicit dependency on
111388         $(BYTESWAP_H), redundant through BUILT_SOURCES.
111389         * modules/fnmatch (Makefile.am): Remove explicit dependency on
111390         $(FNMATCH_H), redundant through BUILT_SOURCES.
111391         * modules/getopt (Makefile.am): Remove explicit dependency on
111392         $(GETOPT_H), redundant through BUILT_SOURCES.
111393         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
111394         redundant through BUILT_SOURCES.
111395         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
111396         redundant through BUILT_SOURCES.
111397         * modules/stdbool (Makefile.am): Remove explicit dependency on
111398         $(STDBOOL_H), redundant through BUILT_SOURCES.
111399         * modules/stdint (Makefile.am): Remove explicit dependency on
111400         $(STDINT_H), redundant through BUILT_SOURCES.
111401         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
111402         Remove explicit dependency on $(SYSEXITS_H).
111403         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
111405 2005-07-18  Simon Josefsson  <jas@extundo.com>
111407         * lib/check-version.c (check_version): Accept identical versions too.
111409 2005-07-18  Bruno Haible  <bruno@clisp.org>
111411         * modules/lock: New file.
111412         * MODULES.html.sh (Multithreading): New section.
111414 2005-07-18  Bruno Haible  <bruno@clisp.org>
111416         * m4/lock.m4: New file, from GNU gettext.
111418 2005-07-18  Bruno Haible  <bruno@clisp.org>
111420         * lib/lock.h: New file, from GNU gettext.
111421         * lib/lock.c: New file, from GNU gettext.
111423 2005-07-18  Bruno Haible  <bruno@clisp.org>
111425         * lib/lock.h (gl_once_t): New type.
111426         (gl_once_define, gl_once): New macros.
111427         * lib/lock.c (fresh_once): New variable.
111428         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
111429         functions.
111431 2005-07-16  Simon Josefsson  <jas@extundo.com>
111433         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
111434         workaround, suggested by Bruno.
111436 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
111438         * modules/xalloc (Depends-on): Add xalloc-die.
111439         * modules/xvasprintf (Depends-on): Add xalloc-die.
111441 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
111443         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
111444         with a minor change.
111446 2005-07-15  Bruno Haible  <bruno@clisp.org>
111448         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
111449         When using lib/poll.c, define poll as rpl_poll.
111451 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
111453         * modules/argp (Depends-on): Remove unlocked-io.
111455 2005-07-14  Derek Price  <derek@ximbiot.com>
111457         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
111458         for glob symlink bug.
111460 2005-07-14  Bruno Haible  <bruno@clisp.org>
111462         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
111463         Instead, test for *_unlocked function declarations directly.
111465 2005-07-11  Simon Josefsson  <jas@extundo.com>
111467         * modules/size_max: New file.
111469         * modules/xsize: Depend on size_max module for size_max.m4.
111471 2005-07-11  Simon Josefsson  <jas@extundo.com>
111473         * lib/size_max.h: New file.
111475 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
111477         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
111478         copyright symbol and the year.
111479         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
111480         (version_etc_va): Use parameterized copyright notice.
111481         Reword to conform to the current GNU coding standards.
111483 2005-07-11  Karl Berry  <karl@gnu.org>
111485         * doc/gnulib.texi (Quoting): new node.
111486         (Initial import): more info, from Patrice.
111488 2005-07-11  Bruno Haible  <bruno@clisp.org>
111490         * gnulib-tool (func_usage): Document option --avoid.
111491         (Command line options): Handle --avoid.
111492         (func_acceptable): New function.
111493         (func_modules_transitive_closure): Use it.
111495 2005-07-11  Bruno Haible  <bruno@clisp.org>
111497         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
111498         Reported by Jim Meyering.
111500 2005-07-10  Bruno Haible  <bruno@clisp.org>
111502         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
111503         Needed when size_t is smaller than 'unsigned int'.
111504         Reported by Paul Eggert.
111506 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111508         * modules/argp (Depends-on): Add unlocked-io
111510 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
111512         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
111513         block of defines.
111515 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
111517         * config/srclist.txt: Comment out regcomp.c, since we have a porting
111518         fix now.
111520 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
111521         and Paul Eggert  <eggert@cs.ucla.edu>
111523         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
111524         in wint_t, not wchar_t.  Remove now-unnecessary cast.
111526 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111528         * modules/regex (Files): Add lib/regex_internal.c,
111529         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
111530         (Depends-on): Add extensions.
111531         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
111533 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111535         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
111536         pathconf.
111537         * m4/same.m4 (gl_SAME): Likewise.
111538         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
111540         * m4/regex.m4: Adjust to new libc regex implementation.
111541         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
111542         all the .c and .h parts of (the new) regex.
111543         Quote the m4 stuff better.
111544         Check for RE_ICASE bug of old gnulib.
111545         Check for REG_STARTEND of recent libc.
111546         Rename local variables from jm_* to gl_*.
111547         Quote operand of "test -f".
111548         Say "recent enough" version of libc, not "version 2".
111549         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
111550         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
111551         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
111552         Remove check for btowc, isascii.
111553         Require AM_LANGINFO_CODESET.
111555 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111557         * lib/regex.c, regex.h: Sync from libc.
111558         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
111559         * lib/regexec.c:
111560         New files, synced from libc, except that regex_internal.h
111561         currently has a small porting fix.
111563 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
111565         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
111566         regex_internal.c, regexec.c.
111567         Add regex_internal.h too, but as a comment, since the libc version
111568         is currently broken in gnulib mode.
111570 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
111572         Support programs like Emacs that use gnulib but not gettext.
111573         * MODULES.html.sh (Internationalization functions): Add gettext-h.
111574         * modules/gettext-h: New file.
111575         * modules/gettext (Files): Remove lib/gettext.h.
111576         (Depends-on): Add gettext-h.
111577         (Makefile.am): Remove lib_SOURCES.
111578         * modules/argmatch, modules/c-stack, modules/closeout:
111579         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
111580         * modules/execute, modules/file-type, modules/getaddrinfo:
111581         * modules/getopt, modules/human, modules/javacomp:
111582         * modules/javaexec, modules/mkdir-p, modules/obstack:
111583         * modules/openat, modules/pagealign_alloc, modules/pipe:
111584         * modules/quotearg, modules/regex, modules/rpmatch:
111585         * modules/unicodeio, modules/userspec, modules/version-etc:
111586         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
111587         * modules/xsetenv:
111588         Depend on gettext-h, not gettext.
111590 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
111592         * gnulib-tool (func_import): Add support for 'public domain' license.
111593         * modules/alloca, modules/atexit, modules/memmove:
111594         Now public domain, not GPL.
111595         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
111596         * modules/realloc, modules/strerror, modules/strtod:
111597         Now LGPL, not GPL.
111599 2005-07-05  Bruno Haible  <bruno@clisp.org>
111601         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
111602         autoconf CVS. Needed for mingw.
111604 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111606         Remove the dependency of the strftime module on the tzset module.
111607         * modules/strftime (Depends-on): Remove dependency on tzset.
111609 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111611         Remove the dependency of the strftime module on the tzset module.
111612         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
111613         gl_FUNC_TZSET_CLOBBER.
111615 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
111617         Remove the dependency of the strftime module on the tzset module.
111618         * lib/strftime.c (my_strftime)
111619         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
111620         Copy the input structure, to work around some of the bug with
111621         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
111622         Solaris releases, you should also use the tzset module, but we won't
111623         require it as a dependency any more since we don't want LGPLed code
111624         to depend on GPLed code.
111626 2005-07-02  Jim Meyering  <jim@meyering.net>
111628         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
111629         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
111630         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
111631         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
111633 2005-07-02  Jim Meyering  <jim@meyering.net>
111635         * lib/backupfile.c (backup_args): Change a `0' to NULL.
111637 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
111639         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
111640         declares only 'struct timespec;' (!).
111642 2005-07-01  Jim Meyering  <jim@meyering.net>
111644         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
111645         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
111646         * lib/save-cwd.c, tempname.c:
111647         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
111648         and don't include <sys/file.h>).
111650 2005-06-29  Jim Meyering  <jim@meyering.net>
111652         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
111653         type name.  Use the variable name instead.
111654         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
111655         Likewise.
111657 2005-06-28  Simon Josefsson  <jas@extundo.com>
111659         * modules/check-version (Files): Add check-version.m4.
111661 2005-06-28  Simon Josefsson  <jas@extundo.com>
111663         * m4/check-version.m4: New file, suggested by Jim Meyering
111664         <jim@meyering.net>.
111666 2005-06-28  Simon Josefsson  <jas@extundo.com>
111668         * lib/check-version.h, lib/check-version.c: New files.
111670 2005-06-28  Simon Josefsson  <jas@extundo.com>
111672         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
111673         collision with global variable.  Better indentation.  Don't
111674         increment buffer pointer beyond buffer end.  Based on comments
111675         from Paul Eggert <eggert@cs.ucla.edu>.
111677         * lib/base64.h: Indent.
111679 2005-06-28  Simon Josefsson  <jas@extundo.com>
111681         * doc/gnulib.texi (Library version handling): New section.
111683 2005-06-28  Jim Meyering  <jim@meyering.net>
111685         * check-module (find_included_lib_files): Hard-code another
111686         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
111687         but modules/fts-lgpl (correctly) does not list those files.
111689         * modules/canonicalize (Files): Add lib/pathmax.h.
111691 2005-06-25  Simon Josefsson  <jas@extundo.com>
111693         * modules/check-version: New file.
111695 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
111697         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
111698         initializer of struct addrinfo, as an indication that we don't
111699         care how many members the structure has.
111701 2005-06-24  Derek Price  <derek@ximbiot.com>
111702         and Bruno Haible  <bruno@clisp.org>
111704         Remove stat module & update lstat.
111705         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
111706         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
111707         * m4/stat.m4: Remove this file.
111709 2005-06-24  Derek Price  <derek@ximbiot.com>
111710         and Bruno Haible  <bruno@clisp.org>
111712         Remove stat module & update lstat.
111713         * lib/stat.c: Remove this file...
111714         (slash_aware_lstat): ...moving this content and its support...
111715         * lib/lstat.c (rpl_lstat): ...into here.
111716         * lib/lstat.h: New file.
111718 2005-06-24  Derek Price  <derek@ximbiot.com>
111719         and Bruno Haible  <bruno@clisp.org>
111721         Remove stat module & update lstat.
111722         * config/srclist.txt (libc sources): Remove stat.
111724 2005-06-24  Derek Price  <derek@ximbiot.com>
111725         and Bruno Haible  <bruno@clisp.org>
111727         Remove stat module & update lstat.
111728         * MODULES.html.sh (stat): Remove.
111729         * MODULES.html: Regenerated.
111730         * modules/lstat (Description): Correct function name.
111731         (Files): Add "lstat.h".
111732         (Depends-on): Remove stat, add xalloc, stat-macros.
111733         * modules/stat: Remove this file.
111734         (Include): Add "lstat.h", remove <sys/stat.h>.
111736 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
111738         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
111739         (ranged_convert): Don't save conversion in a temporary struct.
111740         This causes a warning with GCC 4.0.0, and anyway in the typical
111741         case it's not worth the extra 100 bytes or so of code.
111742         (ranged_convert, __mktime_internal): When calling a function via a
111743         pointer P, use P () rather than (*P) (), as we now assume C89 or
111744         better.
111746 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
111748         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
111749         "who -r" failed to give output.  Problem reported by Tim Waugh.
111751         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
111752         (xcalloc): Use it to avoid needless tests.
111753         Problem reported by Jim Meyering.
111755 2005-06-20  Derek Price  <derek@ximbiot.com>
111757         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
111758         unnecessary for Autoconfs > 2.59c.
111760 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
111762         * lib/argp.h (__option_is_short): Check upper limit of
111763         __key. Isprint() requires its argument to have the value
111764         of an unsigned char or EOF.
111766 2005-06-16  Jim Meyering  <jim@meyering.net>
111768         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
111769         when either N or S is zero.
111771 2005-06-16  Derek Price  <derek@ximbiot.com>
111773         * m4/bison.m4: Declare YACC & YFLAGS precious.
111775 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
111777         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
111778         multibyte string or pattern, fall back on unibyte matching.
111779         Problem reported by James Youngman.
111781 2005-06-08  Bruno Haible  <bruno@clisp.org>
111783         * modules/csharpcomp: New file.
111784         * MODULES.html.sh (C#): Add csharpcomp.
111786 2005-06-08  Bruno Haible  <bruno@clisp.org>
111788         * m4/csharpcomp.m4: New file, from GNU gettext.
111790 2005-06-08  Bruno Haible  <bruno@clisp.org>
111792         * lib/csharpcomp.h: New file, from GNU gettext.
111793         * lib/csharpcomp.c: New file, from GNU gettext.
111794         * lib/csharpcomp.sh.in: New file, from GNU gettext.
111796 2005-06-08  Bruno Haible  <bruno@clisp.org>
111798         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
111799         warning on mingw.
111801 2005-06-07  Derek Price  <derek@ximbiot.com>
111803         Sync from CVS.
111804         * lib/glob_.h: Indent nested #ifdef.
111806 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111808         Sync from coreutils.
111809         Use "file name" when talking about file names, instead of "filename"
111810         or "path", as per the GNU coding standards.
111811         * lib/mkdir-p.c: Renamed from makepath.c.
111812         (make_dir_parents): Renamed from make_path.  All callers changed.
111813         * lib/mkdir-p.h: Likewise.  All includers changed.
111814         * lib/filenamecat.c: Renamed from path-concat.c.
111815         (file_name_concat): Renamed from path_concat.  All callers changed.
111816         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
111817         * lib/filenamecat.h: Likewise.  All includers changed.
111818         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
111819         in comments or local variable names.
111820         * lib/basename.c: Likewise.
111821         * lib/canonicalize.c, canonicalize.h: Likewise.
111822         * lib/dirname.c, dirname.h: Likewise.
111823         * lib/euidaccess.c: Likewise.
111824         * lib/exclude.c: Likewise
111825         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
111826         * lib/fsusage.c, fsuage.h: Likewise.
111827         * lib/fts.c, fts_.h: Likewise.
111828         * lib/getcwd.c: Likewise.
111829         * lib/getloadavg.c: Likewise.
111830         * lib/mkstemp.c: Likewise.
111831         * lib/mountlist.c, mountlist.h: Likewise.
111832         * lib/openat.c, openat.h: Likewise.
111833         * lib/readlink-stub.c: Likewise.
111834         * lib/readutmp.c, readutmp.h: Likewise.
111835         * lib/rename.c: Likewise.
111836         * lib/rmdir.c: Likewise.
111837         * lib/same.c: Likewise.
111838         * lib/savedir.c: Likewise.
111839         * lib/stripslash.c: Likewise.
111840         * lib/tempname.c: Likewise.
111841         * lib/xreadlink.c: Likewise.
111842         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
111843         All uses changed.
111844         * lib/exclude.h: Likewise.
111846         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
111847         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111848         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
111849         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111850         * lib/pathmax.h: Include <limits.h> unconditionally, since other
111851         files have been getting away with it for years (MORE/BSD 4.3
111852         is extinct now).
111853         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
111854         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
111856         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
111857         Define to 256, not 255, as per modern POSIX.
111859 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111861         Sync from coreutils.
111862         Use "file name" when talking about file names, instead of "filename"
111863         or "path", as per the GNU coding standards.
111864         * MODULES.html.sh: mkdir-p renamed from makepath.
111865         filenamecat renamed from path-concat.
111866         * modules/filenamecat: Renamed from modules/path-concat.
111867         (Files): filenamecat.h and filenamecat.c renamed from
111868         path-concat.h and path-concat.c.
111869         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
111870         (Include): filenamecat.h, not path-concat.h.
111871         * modules/mkdir-p: Renamed from modules/makepath.
111872         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
111873         makepath.c.
111874         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
111875         (Include): mkdir-p.h, not makepath.h.
111877 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
111879         Sync from coreutils.
111880         * m4/mkdir-p.m4: Renamed from makepath.m4.
111881         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
111882         Rename files from makepath.c to mkdir-p.c, and from
111883         makepath.h to mkdir-p.h.
111884         * m4/filenamecat.m4: Renamed from path-concat.m4.
111885         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
111886         Rename files from path-concat.c to filenamecat.c,
111887         and from path-concat.h to filenamecat.h.
111888         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
111889         "file name" in local variables or comments.
111890         * m4/rename.m4: Likewise.
111892 2005-06-01  Bruno Haible  <bruno@clisp.org>
111894         * modules/csharpexec: New file.
111895         * MODULES.html.sh (C#): New section.
111897 2005-06-01  Bruno Haible  <bruno@clisp.org>
111899         * m4/csharp.m4: New file, from GNU gettext.
111900         * m4/csharpexec.m4: New file, from GNU gettext.
111902 2005-06-01  Bruno Haible  <bruno@clisp.org>
111904         * lib/csharpexec.h: New file, from GNU gettext.
111905         * lib/csharpexec.c: New file, from GNU gettext.
111906         * lib/csharpexec.sh.in: New file, from GNU gettext.
111908 2005-05-31  Derek Price  <derek@ximbiot.com>
111909             Paul Eggert  <eggert@cs.ucla.edu>
111911         Sync from cvs.
111912         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
111914 2005-05-31  Derek Price  <derek@ximbiot.com>
111915             Paul Eggert  <eggert@cs.ucla.edu>
111917         Sync from cvs.
111918         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
111920 2005-05-29  Derek Price  <derek@ximbiot.com>
111922         * config/srclist.txt (glob_.h, glob.c): Add these files.
111924 2005-05-29  Derek Price  <derek@ximbiot.com>
111926         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
111927         * modules/glob: New file.
111928         * modules/getlogin_r: Add link to POSIX spec in description.
111930 2005-05-29  Derek Price  <derek@ximbiot.com>
111931             Paul Eggert  <eggert@cs.ucla.edu>
111933         * m4/glob.m4: New file.
111935 2005-05-29  Derek Price  <derek@ximbiot.com>
111936             Paul Eggert  <eggert@cs.ucla.edu>
111938         * lib/glob_.h, lib/glob.c: New files.
111940 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111942         * modules/fts (Files): Remove m4/inttypes-pri.m4.
111943         * modules/fts-lgpl (Depends-on): Remove gettext.
111945 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111947         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
111948         and don't require gt_INTTYPES_PRI.
111950 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
111952         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
111954         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
111955         the configuration hassle isn't worth it.
111956         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
111957         (LONGEST_MODIFIER, PRIuMAX): Remove.
111959 2005-05-27  Bruno Haible  <bruno@clisp.org>
111961         * lib/getlogin_r.h: Remove second include of <stddef.h>.
111963 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
111965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
111966         _POSIX_PTHREAD_SEMANTICS for Solaris.
111968 2005-05-25  Derek Price  <derek@ximbiot.com>
111970         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
111972 2005-05-25  Derek Price  <derek@ximbiot.com>
111973             Paul Eggert  <eggert@cs.ucla.edu>
111975         * modules/getlogin_r, m4/getlogin_r.m4: New files.
111976         * lib/getlogin_r.c, getlogin_r.h: New files.
111978 2005-05-25  Bruno Haible  <bruno@clisp.org>
111979             Derek Price  <derek@ximbiot.com>
111981         * lib/getlogin_r.h: Simplify API documentation.
111983 2005-05-23  Derek Price  <derek@ximbiot.com>
111985         * modules/minmax (Files): Add m4/minmax.m4.
111986         (configure.ac): Add gl_MINMAX.
111988 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
111990         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
111991         so that unistd-safer.h (GPL'ed code) need not be included.
111993 2005-05-22  Bruno Haible  <bruno@clisp.org>
111995         * m4/minmax.m4: New file.
111996         Based on a patch by Derek Price <derek@ximbiot.com>.
111998 2005-05-22  Bruno Haible  <bruno@clisp.org>
112000         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
112001         (INT64_MIN): Fix definition.
112002         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
112004         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
112005         NEED_SIGNED_INT_TYPES.
112007         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
112008         HAVE_SYSTEM_INTTYPES.
112010 2005-05-22  Bruno Haible  <bruno@clisp.org>
112012         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
112013         Also include <sys/param.h> if it defines MIN, MAX.
112014         Based on a patch by Derek Price <derek@ximbiot.com>.
112016 2005-05-21  Jim Meyering  <jim@meyering.net>
112018         * modules/fts (Files): Add m4/inttypes-pri.m4.
112019         (Depends-on): Add lstat and remove gettext.  Alphabetize.
112021 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
112023         New fts module.
112024         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
112025         (setup_dir, free_dir): New functions.
112026         (enter_dir, leave_dir): Define trivial
112027         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
112028         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
112029         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
112030         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
112031         Move to fts-cycle.c.
112032         (fts_open): Use setup_dir.
112033         (fts_close): Use free_dir.
112034         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
112035         This adds a label and some gotos, but the alternatives were messier.
112036         Check for memory allocation failure when entering a dir.
112037         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
112038         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
112039         (FTS): New member fts_cycle, that is a union that contains the
112040         old active_dir_ht and cycle_state.  All uses changed to mention
112041         fts_cycle.ht and fts_cycle.state.
112042         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
112043         fts.c, with the following changes:
112044         (setup_dir, free_dir): New functions.
112045         (enter_dir): Now returns bool.  Return true if successful, false
112046         if memory exhausted.  All callers changed.
112047         Do not bother partly cleaning up on
112048         memory allocation failure; that is free_dir's job.
112049         However, free ad if hash_insert fails, to avoid memory leak.
112050         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
112051         fts->fts_options to see which union member to use.
112053 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
112055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
112056         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
112058 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
112060         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
112062 2005-05-20  Jim Meyering  <jim@meyering.net>
112064         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
112065         Now a macro, to pacify GCC.
112067 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
112069         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
112070         of -1.
112072 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
112074         * lib/chown.c (rpl_chown): Return -1 on failure.
112076 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
112078         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
112079         Don't check for stddef.h.
112080         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
112081         don't use its results.
112082         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
112083         since we include them unconditionally.  Don't require
112084         AM_STDBOOL_H, since stdbool is a prerequisite.
112085         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
112086         since we assume C89 or better.
112087         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
112088         as we don't use their results.
112089         Don't check for fchdir, memmove, memset, strrchr, as we use
112090         them unconditionally.
112091         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
112092         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
112094 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
112096         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
112097         Include <stddef.h> unconditionally, since we assume C89 now.
112098         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
112099         * lib/fts.c: Include fts_.h first, to check interface.
112100         Do not include intprops.h; no longer needed.
112101         Include cycle-check.h and hash.h, since fts_.h no longer does.
112102         Remove unnecessary casts of closedir to void.
112103         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
112104         decide whether to decrement nlinks.
112105         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
112106         (FTS): Use struct hash_table * instead of Hash_table, so that
112107         we no longer need to include hash.h here.
112109 2005-05-18  Jim Meyering  <jim@meyering.net>
112111         * modules/dirfd (License): Change to LGPL.  Most of the code
112112         is already in the public domain.
112114 2005-05-18  Jim Meyering  <jim@meyering.net>
112116         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
112117         Reported by Yoann Vandoorselaere.
112119 2005-05-17  Jim Meyering  <jim@meyering.net>
112121         * m4/fts.m4: New file, from coreutils.
112123 2005-05-17  Jim Meyering  <jim@meyering.net>
112125         * lib/fts.c, lib/fts_.h: New files, from coreutils.
112127 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112129         Sync from coreutils.
112130         * m4/unlinkdir.m4: New file.
112132 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112134         Sync from coreutils.
112135         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
112136         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
112137         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
112138         White space changes only.
112139         * lib/makepath.c (make_path): Port to hosts where leading "//" is
112140         special.
112141         * lib/yesno.c: Include getline.h, not ctype.h.
112142         (yesno): Don't remove leading white space; POSIX doesn't allow it.
112143         Use getline to remove arbitrary restriction on response length.
112145 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
112147         * config/srclist-update: Spell out "Street" in FSF postal
112148         mail address; this is the style the FSF seems to prefer.
112150         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
112151         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
112152         this updates FSF postal mail address.
112154         Sync from coreutils.
112155         * modules/unlinkdir: New file.
112156         * modules/yesno (Depends-on): Add getline.
112157         * MODULES.html.sh (File system functions): Add unlinkdir.
112159 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
112161         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
112162         lib/strsep.h:
112163         Change the initial comment to refer to GPL, not LGPL.
112164         gnulib-tool will change it to LGPL as needed.
112166         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
112167         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
112168         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
112169         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
112170         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
112171         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
112172         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
112173         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
112174         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
112175         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
112176         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
112177         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
112178         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
112179         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
112180         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
112181         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
112182         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
112183         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
112184         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
112185         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
112186         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
112187         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
112188         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
112189         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
112190         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
112191         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
112192         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
112193         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
112194         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
112195         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
112196         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
112197         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
112198         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
112199         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
112200         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
112201         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
112202         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
112203         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
112204         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
112205         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
112206         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
112207         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
112208         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
112209         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
112210         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
112211         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
112212         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
112213         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
112214         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
112215         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
112216         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
112217         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
112218         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
112219         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
112220         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
112221         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
112222         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
112223         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
112224         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
112225         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
112226         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
112227         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
112228         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
112229         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
112230         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
112231         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
112232         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
112233         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
112234         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
112235         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
112236         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
112237         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
112238         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
112239         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
112240         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
112241         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
112242         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
112243         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
112244         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
112245         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
112246         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
112247         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
112248         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
112249         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
112250         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
112251         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
112252         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
112253         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
112254         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
112255         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
112256         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
112257         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
112258         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
112259         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
112260         lib/yesno.c, lib/yesno.h:
112261         Update FSF postal mail address.
112263 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
112265         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
112266         tests/test-memmem.c, tests/test-stpncpy.c:
112267         Update FSF postal mail address.
112269 2005-05-13  Bruno Haible  <bruno@clisp.org>
112271         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
112272         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
112273         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
112274         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
112275         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
112276         Add support for 64-bit integers in the MSVC compiler.
112278 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
112280         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
112282 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
112284         * gnulib-tool (func_import): Sort and uniquify recommended includes.
112286 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
112288         * doc/getdate.texi (General date syntax): Don't say that date
112289         date --iso-8601=ns generates acceptable dates; it doesn't yet.
112290         Problem reported by Nic Ferrier.
112292 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112294         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
112295         specified in ai_socktype. Fix invalid ai_protocol
112296         check. ai_protocol is usually set to 0 or depending on
112297         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
112298         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
112299         ai_socktype / ai_protocol in the returned addrinfo structure.
112301 2005-05-10  Simon Josefsson  <jas@extundo.com>
112303         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
112304         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
112306 2005-05-10  Karl Berry  <karl@gnu.org>
112308         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
112309         (from http://www.gnu.org/licenses).
112310         * doc/COPYING.LIB: also rename to COPYING.LESSER.
112311         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
112312         fdl.texi suffices.
112314 2005-05-10  Karl Berry  <karl@gnu.org>
112316         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
112317         (COPYING.DOC): remove.
112319         * config/srclist-update: new FSF address.
112321 2005-05-10  Derek Price  <derek@ximbiot.com>
112323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
112324         possible.
112326 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112327             Bruno Haible  <bruno@clisp.org>
112329         * modules/inet_ntop: New file.
112330         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112331         inet_ntop.
112333 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112334             Bruno Haible  <bruno@clisp.org>
112336         * m4/inet_ntop.m4: New file.
112338 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
112339             Bruno Haible  <bruno@clisp.org>
112341         * lib/inet_ntop.h: New file.
112342         * lib/inet_ntop.c: New file, from glibc with modifications.
112344 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
112346         * modules/time_r (License): Change to LGPL.
112347         * modules/extensions (License): Change to LGPL.  Actually,
112348         the license is more permissive than that, but currently gnulib-tool
112349         doesn't know how to handle more-permissive licenses.
112351         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
112352         Problem reported by Dave Love.
112354 2005-05-08  Jim Meyering  <jim@meyering.net>
112356         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
112357         blank.
112359 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
112361         * modules/argmatch (Depends-on): Add stdbool.
112362         * modules/backupfile (Depends-on): Likewise.
112363         * modules/chdir-long (Depends-on): Likewise.
112364         * modules/closeout (Depends-on): Likewise.
112365         * modules/cycle-check (Depends-on): Likewise.
112366         * modules/dirname (Depends-on): Likewise.
112367         * modules/fnmatch (Depends-on): Likewise.
112368         * modules/fsusage (Depends-on): Likewise.
112369         * modules/fwriteerror (Depends-on): Likewise.
112370         * modules/getcwd (Depends-on): Likewise.
112371         * modules/getloadavg (Depends-on): Likewise.
112372         * modules/hard-locale (Depends-on): Likewise.
112373         * modules/makepath (Depends-on): Likewise.
112374         * modules/mountlist (Depends-on): Likewise.
112375         * modules/nanosleep (Depends-on): Likewise.
112376         * modules/posixtm (Depends-on): Likewise.
112377         * modules/quotearg (Depends-on): Likewise.
112378         * modules/readtokens (Depends-on): Likewise.
112379         * modules/readtokens0 (Depends-on): Likewise.
112380         * modules/readutmp (Depends-on): Likewise.
112381         * modules/save-cwd (Depends-on): Likewise.
112382         * modules/strftime (Depends-on): Likewise.
112383         * modules/userspec (Depends-on): Likewise.
112384         * modules/utimecmp (Depends-on): Likewise.
112385         * modules/xgetcwd (Depends-on): Likewise.
112386         * modules/xnanosleep (Depends-on): Likewise.
112387         * modules/xstrtod (Depends-on): Likewise.
112388         * modules/yesno (Depends-on): Likewise.
112390 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
112392         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
112393         needless checks.
112395 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112397         Merge from coreutils.  Among other things,
112398         add bulletproofing for cases where stdin, stdout, or stderr are closed.
112399         * lib/fd-safer.c: New file.
112400         * lib/fcntl-safer.h, open-safer.c: Remove.
112401         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
112402         * lib/dup-safer.c: Include unistd-safer.h first.
112403         Don't include errno.h.
112404         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
112405         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
112406         * lib/file-type.c: Rely on file-type.h change.
112407         * lib/getloadavg.c: Include unistd-safer.h.
112408         (getloadavg): Use safer open.
112409         * lib/getusershell.c: Include "stdio-safer.h".
112410         (getusershell): Use safer fopen.
112411         * lib/long-options.c (long_options): Use NULL rather than 0.
112412         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
112413         'free'.
112414         * lib/modechange.c: Likewise.
112415         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
112416         (MODE_DONE): New constant.
112417         (struct mode_change): Remove 'next' member.
112418         (make_node_op_equals): New function; like the old one of the
112419         same name, except it allocates an array.
112420         (mode_compile, mode_create_from_ref): Use it.
112421         (mode_compile): Allocate result as an array, not a linked list.
112422         Parse octal string ourself, so that we catch mistakes like "+0".
112423         (mode_adjust): Arg is an array, not a linked list.
112424         * lib/modechange.c: Include stat-macros.h, xalloc.h.
112425         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
112426         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
112427         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
112428         Remove.  This is now stat-macros.h's job.
112429         (talloc): Remove.  All callers replaced by xalloc, so that
112430         our invokers don't have to worry about reporting memory failures.
112431         (make_node_op_equals): Remove.
112432         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
112433         New constants.
112434         (struct mode_change): Moved here from modechange.h.
112435         (mode_append_entry): Remove.
112436         (mode_compile): Remove MASKED_OPS arg, since it encouraged
112437         apps to have incorrect behavior.  Use simpler algorithm for head
112438         and tail.  Don't futz with umask; that's now the job of mode_adjust.
112439         Detect more invalid usages rather than having somewhat-random behavior.
112440         Don't insert an "a=" action, as that leads to incorrect behavior.
112441         (mode_compile, mode_create_from_ref): Return NULL on error instead
112442         of an enum, since now there's only one way to have an error.  All
112443         callers changed.
112444         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
112445         at the correct time.  Simplify calculation of "+u" and its ilk.
112446         Don't mishandle "+X".
112447         (mode_free): Remove "register" and localize decls.
112448         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
112449         (struct mode_change): Move to modechange.c; callers don't
112450         need to see this stuff.
112451         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
112452         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
112453         (mode_change, mode_adjust): Reflect the new signatures noted above.
112454         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
112455         that might redefine system include files.
112456         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
112457         (my_usleep): Use NULL rather than (void *) 0.
112458         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
112459         Use siginterrupt to specify that system calls should be interrupted.
112460         (rpl_nanosleep): Move initialization of suspended closer to call of
112461         my_usleep.
112462         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
112463         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
112464         (desirable_utmp_entry): New function.
112465         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
112466         using x2nrealloc, to simplify logic.
112467         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
112468         size calculation.  Do not assume utmp file is a regular file.
112469         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
112470         (READ_UTMP_CHECK_PIDS): New constant.
112471         * lib/save-cwd.c: Include unistd-safer.h.
112472         (save_cwd): Use fd_safer.
112473         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
112474         [!_LIBC] Include "stat-macros.h" instead.
112475         * lib/unistd-safer.h (fd_safer): New decl.
112477 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112479         * modules/getloadavg (Depends-on): Add unistd-safer.
112480         * modules/getusershell (Depends-on): Add stdio-safer.
112481         * modules/lstat (Depends-on): Remove xalloc.
112482         * modules/mkstemp (Depends-on): Add stat-macros.
112483         * modules/modechange (Depends-on): Remove xstrtol.
112484         Add stat-macros, xalloc.
112485         * modules/save-cwd (Depends-on): Add unistd-safer.
112486         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
112487         * modules/unistd-safer (Files): Add lib/fd-safer.c
112488         (Makefile.am): Remove lib_SOURCES.
112490         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
112491         Remove fcntl-safer; unistd-safer supersedes it.
112493 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112495         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
112496         AC_HEADER_STAT.
112497         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
112498         (gl_PREREQ_CHOWN): Remove.
112499         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
112500         it.  Don't require AC_HEADER_STAT.
112501         (gl_PREREQ_LSTAT): Remove.
112502         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
112503         Don't require AC_HEADER_STAT.
112504         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
112505         (gl_PREREQ_RMDIR): Remove.
112506         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
112507         mention stat-macros.h or AC_HEADER_STAT, since we'll make
112508         the stat-macros module a prerequisite.
112509         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
112510         * m4/filemode.m4 (gl_FILEMODE): Likewise.
112511         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
112512         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
112513         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
112514         variable names.
112515         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
112516         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
112517         variable prefixes.
112518         * m4/fcntl-safer.m4: Remove.
112519         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
112520         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
112521         Invoke gl_PREREQ_FD_SAFER.
112522         (gl_PREREQ_FD_SAFER): New macro.
112523         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
112524         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
112525         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
112526         Remove duplicate call to AC_LIBOBJ(readutmp).
112527         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
112529         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
112530         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
112532 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
112534         * MODULES.html.sh (Misc): Add byteswap.
112536 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112538         * modules/getcwd (Depends-on): Add extensions.
112539         * modules/openat (Depends-on): Likewise.
112541 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112543         * modules/byteswap: New file.
112545 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112547         * m4/byteswap.m4: New file.
112549 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
112551         * lib/byteswap_.h: New file.
112553 2005-04-25  Karl Berry  <karl@gnu.org>
112555         * m4/gettext.m4: Update from GNU gettext 0.14.4.
112557 2005-04-25  Albert Chin  <china@thewrittenword.com>
112559         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
112560         Toolkit C bug.
112562 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
112564         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
112565         (func_ln_if_changed): Remove forcibly for no error message
112566         in case file does not exist.
112568 2005-04-19  Simon Josefsson  <jas@extundo.com>
112570         * gnulib-tool (Options): Make --symlink mean --symbolic.
112572 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
112574         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
112576 2005-04-16  Simon Josefsson  <jas@extundo.com>
112578         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
112580 2005-04-15  Simon Josefsson  <jas@extundo.com>
112582         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
112584 2005-04-15  Simon Josefsson  <jas@extundo.com>
112586         * gnulib-tool: Rename --symlink to --symbolic.
112588 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
112590         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
112591         symbolic links to files instead of copying/moving.  Add --aux-dir,
112592         specifying directory relative --dir where auxiliary build tools
112593         are placed.
112595 2005-04-14  Bruno Haible  <bruno@clisp.org>
112597         * modules/allocsa (License): Change to LGPL.
112598         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
112600 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
112602         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
112603         that "UTC +1 second" continues to work.  Problem reported
112604         by Dmitry V. Levin.
112605         (relunit_snumber): New rule.
112606         (relunit): Use it.
112608 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
112610         * lib/getdate.y (universal_time_zone_table): New constant.
112611         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
112612         universal_time_zone_table.
112613         (lookup_zone): Prefer universal_time_zone_table to
112614         local_time_zone_table, so that "GMT" time stamps are allowed in
112615         London during the summer.  Problem reported by Ian Abbott.
112617 2005-04-12  Jim Meyering  <jim@meyering.net>
112619         * lib/human.c (humblock): Set *options even when returning due to
112620         xstrtoumax conversion failure.  Thanks to a used-uninitialized
112621         warning from gcc-4.
112623 2005-04-09  Jim Meyering  <jim@meyering.net>
112625         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
112626         -Wuninitialized: initialize tm0.tm_year.
112628 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
112630         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
112631         count, since there's no maximum.  All uses changed.
112632         Add member dsts_seen.
112633         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
112634         not being INT_MAX.
112635         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
112636         Use pc_rels_seen to decide whether a date is absolute.
112638         * lib/getdate.y (number): Don't overwrite year.
112639         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
112640         check.
112642 2005-04-02  Simon Josefsson  <jas@extundo.com>
112644         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
112645         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
112647 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
112649         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
112650         where no absolute path name can be longer than PATH_MAX.
112652 2005-03-27  Jim Meyering  <jim@meyering.net>
112654         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
112656 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
112658         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
112659         "one's complement" -> "ones' complement" in comment, as per Knuth.
112660         "value of type" -> "type or expression" in comment.
112661         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
112663 2005-03-26  Jim Meyering  <jim@meyering.net>
112665         Comment nits.
112666         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
112667         Correct typos: s/or/of/.
112669 2005-03-26  Jim Meyering  <jim@meyering.net>
112671         * modules/check-include-files: Move to ../ and rename to...
112672         * check-module: ...this.
112674 2005-03-25  Jim Meyering  <jim@meyering.net>
112676         * modules/xvasprintf (Files): Add xalloc.h.
112678 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
112680         * modules/gettext (Files): config/config.rpath ->
112681         build-aux/config.rpath
112682         * modules/iconv (Files): Likewise.
112683         Problem reported by Oskar Liljeblad.
112685 2005-03-23  Jim Meyering  <jim@meyering.net>
112687         * modules/check-include-files: New script to check for
112688         missing dependencies, multiple includes, etc.
112690         * modules/c-strtold (Depends-on): Add xalloc.
112691         * modules/c-strtod (Depends-on): Add xalloc.
112692         * modules/hash (Depends-on): Add xalloc.
112693         (Files): Remove lib/xalloc.h.
112695         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
112696         * modules/userspec (Files): Add lib/inttostr.h.
112698 2005-03-23  Jim Meyering  <jim@meyering.net>
112700         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
112702 2005-03-22  Jim Meyering  <jim@meyering.net>
112704         * modules/stat-macros: New module.
112705         * modules/canonicalize, modules/euidaccess, modules/file-type,
112706         * modules/filemode, modules/lchown, modules/makepath,
112707         * modules/rmdir, modules/stat: Depend on new stat-macros module
112708         rather than listing lib/stat-macros.h manually.
112709         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
112711 2005-03-22  Jim Meyering  <jim@meyering.net>
112713         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
112715 2005-03-22  Bruno Haible  <bruno@clisp.org>
112717         * config/srclist.txt: Replace target directory 'config' with
112718         'build-aux'.
112719         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
112720         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
112721         ../build-aux/.
112723 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
112725         * modules/chdir-long (Depends-on): Add mempcpy.
112727         * modules/acl, modules/backupfile, modules/c-strtod,
112728         modules/c-strtold, modules/canon-host, modules/canonicalize,
112729         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
112730         modules/exclude, modules/exitfail, modules/file-type,
112731         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
112732         modules/getdate, modules/getline, modules/getpagesize,
112733         modules/getpass, modules/getugroups, modules/group-member,
112734         modules/hard-locale, modules/hash, modules/human, modules/idcache,
112735         modules/inttostr, modules/long-options, modules/makepath,
112736         modules/md5, modules/memcasecmp, modules/memcoll,
112737         modules/modechange, modules/mountlist, modules/path-concat,
112738         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
112739         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
112740         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
112741         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
112742         modules/strftime, modules/strndup, modules/strverscmp,
112743         modules/timespec, modules/unlocked-io, modules/userspec,
112744         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
112745         modules/yesno:
112746         Remove lib_SOURCES line from Makefile.am section, as this is now
112747         done automatically by the corresponding Autoconf macro.
112749 2005-03-21  Jim Meyering  <jim@meyering.net>
112751         Changes imported from coreutils.
112753         * lib/cycle-check.c: Don't include xalloc.h.
112755         * lib/path-concat.c: Don't include assert.h.
112756         (path_concat): Remove assertion that would have triggered
112757         for ABASE starting with more than one slash.
112758         Reported by Andreas Schwab.
112760         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
112761         properly when ABASE is an absolute file name.
112762         Correct the description of this function.
112763         Include <assert.h>.
112764         Add an assertion and a test driver.
112765         This fixes a bug introduced on 2004-07-02.
112766         Andreas Schwab reported the resulting failure of cp --parents:
112767         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
112769 2005-03-21  Jim Meyering  <jim@meyering.net>
112771         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
112772         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
112774 2005-03-21  Jim Meyering  <jim@meyering.net>
112775         and  Paul Eggert  <eggert@cs.ucla.edu>
112777         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
112778         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
112779         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
112780         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
112781         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
112782         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
112783         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
112784         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
112785         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
112786         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
112787         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
112788         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
112789         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
112790         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
112791         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
112792         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
112793         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
112794         for these modules.
112796 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
112798         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
112799         (which shouldn't happen), generate nothing instead of returning 0
112800         immediately, so that nstrftime (NULL, ...) doesn't return 0.
112802 2005-03-16  Bruno Haible  <bruno@clisp.org>
112804         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
112805         HAVE_LONGLONG_64BIT.
112807 2005-03-16  Bruno Haible  <bruno@clisp.org>
112809         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
112810         HAVE_LONGLONG_64BIT.
112812 2005-03-16  Bruno Haible  <bruno@clisp.org>
112814         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
112815         HAVE_LONGLONG_64BIT.
112817 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
112819         * lib/strftime.c (my_strftime): Prepend space to format so that we can
112820         reliably distinguish strftime failure from empty output on POSIX
112821         hosts.
112823 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
112825         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
112826         (iconv_string): Don't guess a size-zero buffer, as that might cause
112827         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
112828         result would be 'too large', where 'too large' is (heuristically)
112829         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
112830         overflow concerns.  This will prevent some unwanted malloc failures
112831         when the inputs are very large.
112833 2005-03-15  Karl Berry  <karl@gnu.org>
112835         * config/srclist.txt (config.rpath): from gettext.
112836         * config/config.rpath: update.
112838 2005-03-15  Bruno Haible  <bruno@clisp.org>
112840         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
112841         to 'negate'.
112843         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
112844         variable.
112846         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
112847         results.
112849 2005-03-14  Simon Josefsson  <jas@extundo.com>
112851         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
112852         <fx@gnu.org>.
112854 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
112856         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
112857         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
112858         intprops.h.
112859         * lib/strtol.c: Likewise.
112861 2005-03-14  Jim Meyering  <jim@meyering.net>
112863         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
112864         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
112865         to be nonzero so that we (and caller) can detect the difference
112866         between a valid zero-length expansion and an error return, even
112867         when the underlying strftime fails before writing anything into
112868         that location.
112870 2005-03-14  Bruno Haible  <bruno@clisp.org>
112872         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
112873         Update from GNU gettext 0.14.3.
112875 2005-03-10  Jim Meyering  <jim@meyering.net>
112877         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
112879 2005-03-10  Jim Meyering  <jim@meyering.net>
112881         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
112882         so that this module works on systems without fchdir.
112884 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
112886         Factor int-properties macros into a single file, except for
112887         glibc-related files.
112888         * lib/intprops.h: New file.
112889         * lib/getloadavg.c: Include it instead of limits.h.
112890         (INT_STRLEN_BOUND): Remove.
112891         * lib/human.c: Include intprops.h.
112892         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
112893         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
112894         302/1000.
112895         * lib/inttostr.h: Include intprops.h instead of limits.h.
112896         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
112897         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
112898         for consistency with intprops.h.
112899         (time_t_is_integer, twos_complement_arithmetic): Use them.
112900         * lib/sig2str.h: Include <signal.h>, intprops.h.
112901         (INT_STRLEN_BOUND): Remove.
112902         * lib/strftime.c (TYPE_SIGNED): Remove.
112903         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
112904         * lib/strtol.c: Adjust comments to match intprops.h.
112905         * lib/userspec.c: Include intprops.h.
112906         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
112907         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
112908         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
112909         instead of rolling our own expressions.
112910         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
112912         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
112913         instead of int.
112914         (my_strftime): Do not mishandle years close to INT_MAX, by doing
112915         the right thing even if adding 1900 would overflow.  Similarly
112916         for tm_mon + 1 and tm_yday + 1.
112917         Make %Y always equivalent to %C%y, and similarly for %G and %g.
112918         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
112919         (DO_SIGNED_NUMBER): New macro.
112920         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
112922 2005-03-07  Bruno Haible  <bruno@clisp.org>
112924         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
112926 2005-03-07  Bruno Haible  <bruno@clisp.org>
112928         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
112930 2005-03-04  Derek R. Price  <derek@ximbiot.com>
112932         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
112933         (func_import): Only replace files via --import when they have actually
112934         changed.
112936 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112938         * m4/mmap-anon.m4: New file.
112939         * m4/pagealign_alloc.m4: New file.
112941 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112942             Bruno Haible  <bruno@clisp.org>
112944         * modules/pagealign_alloc: New file.
112945         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
112947 2005-03-03  Derek R. Price  <derek@ximbiot.com>
112948             Bruno Haible  <bruno@clisp.org>
112950         * lib/pagealign_alloc.h: New file.
112951         * lib/pagealign_alloc.c: New file.
112953 2005-03-03  Bruno Haible  <bruno@clisp.org>
112955         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
112956         Use an all-permissive copyright notice, recommended by RMS.
112958 2005-03-02  Bruno Haible  <bruno@clisp.org>
112960         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
112961         of AIX, the replacement has to be done only after <string.h> is
112962         included, therefore not in config.h. stpncpy.h does the replacement,
112963         and stpncpy.c uses it.
112965 2005-03-02  Bruno Haible  <bruno@clisp.org>
112967         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
112968         stpncpy.c uses it.
112970 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112972         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
112973         The workaround isn't strictly needed for POSIX conformance, and
112974         it's too much of a pain to configure and maintain.  We'll ask
112975         people to fix their kernels instead.
112976         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
112977         (NANOSLEEP_BUG_WORKAROUND): Remove.
112978         (xnanosleep): Remove the workaround.
112980 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112982         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
112983         Reported by Derek Price.
112984         (Include): Add "timespec.h".
112986         * modules/xnanosleep (Depends-on): Remove gethrxtime.
112988 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
112990         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
112991         to detect nanosleep bug.
112993 2005-03-01  Bruno Haible  <bruno@clisp.org>
112995         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
112997 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
112999         * modules/gethrxtime: New file.
113000         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
113001         (Depends-on): Add gethrxtime.
113002         (configure.ac): Add gl_XNANOSLEEP.
113003         (Makefile.am): Remove lib_SOURCES line.
113005 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
113007         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
113008         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
113010 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
113012         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
113013         * lib/timespec.h (gettime): Return void, since it always
113014         succeeds now.  All uses changed.
113015         * lib/gettime.c (gettime): Likewise.
113016         [HAVE_NANOTIME]: Prefer nanotime.
113017         Assume gettimeofday succeeds, as POSIX requires.
113018         Assime time () succeeds, since other code already does.
113019         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
113020         (timespec_subtract): Remove.
113021         (NANOSLEEP_BUG_WORKAROUND): New constant.
113022         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
113023         things considerably.  Use it only on GNU/Linux hosts, since the
113024         workaround shouldn't be needed elsewhere.
113026 2005-02-24  Bruno Haible  <bruno@clisp.org>
113028         * modules/gettext (Files): Add m4/glibc2.m4.
113030 2005-02-24  Bruno Haible  <bruno@clisp.org>
113032         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
113033         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
113034         * m4/progtest.m4:
113035         Update from GNU gettext 0.14.2.
113036         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
113038 2005-02-24  Bruno Haible  <bruno@clisp.org>
113040         * lib/localcharset.c: Update from GNU gettext 0.14.2.
113041         * lib/config.charset: Update from GNU gettext 0.14.2.
113043 2005-02-24  Bruno Haible  <bruno@clisp.org>
113045         * lib/gettext.h: Update from GNU gettext 0.14.2.
113047 2005-02-23  Simon Josefsson  <jas@extundo.com>
113049         * m4/iconvme.m4: New file.
113051 2005-02-23  Jim Meyering  <jim@meyering.net>
113053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
113054         change.
113055         Thanks to Bruno Haible for catching it.
113057 2005-02-22  Simon Josefsson  <jas@extundo.com>
113059         * modules/iconvme: New file.
113061         * MODULES.html.sh: Add iconvme.
113063 2005-02-22  Simon Josefsson  <jas@extundo.com>
113065         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
113067 2005-02-22  Simon Josefsson  <jas@extundo.com>
113069         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
113071 2005-02-22  Jim Meyering  <jim@meyering.net>
113073         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
113074         s/ifndef/ifdef/.
113076 2005-02-20  Neil Conway  <neilc@samurai.com>
113078         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
113079         returned by OSX/Darwin if the specified buffer is not large
113080         enough for the hostname.
113082 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113084         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
113085         pass it to _help, otherwise the latter coredumps trying to
113086         dereference state.root_argp.
113088 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
113090         * modules/chdir-long (Depends-on): Add memrchr.
113091         * modules/memrchr (Files): Add lib/memrchr.h.
113092         (Include): "memrchr.h".
113094 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
113096         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
113098 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
113100         * lib/memrchr.h: New file.
113101         * lib/chdir-long.c: Include it.
113102         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
113103         Don't bother including stddef.h.
113105 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
113107         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
113108         inclusion.
113109         Include <sys/types.h>, for dev_t.
113110         (ME_DUMMY, ME_REMOTE): Move from here....
113111         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
113112         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
113113         Dmitry V. Levin.
113114         Include mountlist.h first, to test the interface.
113116 2005-01-29  Bruno Haible  <bruno@clisp.org>
113118         * lib/progname.c (program_name): Initialize.
113119         Needed when linking statically on MacOS X.
113121 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
113123         Sync from coreutils.
113124         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
113125         (Depends-on): Add c-strtod.
113126         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
113128 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
113130         Sync from coreutils.
113131         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
113133         Remove files that are specific to coreutils.
113134         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
113136 2005-01-28  Bruno Haible  <bruno@clisp.org>
113138         * modules/javacomp: New file.
113139         * MODULES.html.sh (Java): Add javacomp.
113141 2005-01-28  Bruno Haible  <bruno@clisp.org>
113143         * m4/javacomp.m4: New file, from GNU gettext.
113145 2005-01-28  Bruno Haible  <bruno@clisp.org>
113147         * lib/javacomp.sh.in: New file, from GNU gettext.
113148         * lib/javacomp.h: New file, from GNU gettext.
113149         * lib/javacomp.c: New file, from GNU gettext.
113151 2005-01-26  Simon Josefsson  <jas@extundo.com>
113153         * lib/gai_strerror.c: Use GPL in header.
113155 2005-01-26  Bruno Haible  <bruno@clisp.org>
113157         * modules/javaexec: New file.
113158         * MODULES.html.sh (Java): Add javaexec.
113160 2005-01-26  Bruno Haible  <bruno@clisp.org>
113162         * m4/javaexec.m4: New file, from GNU gettext.
113164 2005-01-26  Bruno Haible  <bruno@clisp.org>
113166         * lib/javaexec.sh.in: New file, from GNU gettext.
113167         * lib/javaexec.h: New file, from GNU gettext.
113168         * lib/javaexec.c: New file, from GNU gettext.
113170 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113172         * modules/lchown (Depends-on): Remove lchown.h
113174 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113176         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
113177         must be defined if the header file was not found, in order
113178         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
113180 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113182         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
113183         initializers for struct pentry_state.
113184         (__argp_error): Check return value of __asprintf
113185         (__argp_failure): Translate error message
113187         * lib/argp-parse.c: Removed braces around the expansion of N_()
113189 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
113191         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
113192         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
113193         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
113194         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
113195         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
113196         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
113197         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
113198         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
113199         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
113200         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
113201         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
113202         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
113203         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
113204         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
113205         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
113206         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
113207         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
113208         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
113209         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
113210         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
113211         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
113212         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
113213         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
113214         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
113215         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
113216         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
113217         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
113218         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
113219         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
113220         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
113221         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
113222         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
113223         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
113224         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
113225         xstrtol.m4, xstrtoumax.m4, yesno.m4:
113226         Use an all-permissive copyright notice, recommended by RMS.
113228 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
113230         * modules/chdir-long (Depends-on): Remove mempcpy.
113232 2005-01-21  Jim Meyering  <jim@meyering.net>
113234         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
113235         same value as for Solaris 9.
113237         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
113238         component length.  This included changing the parameter to be
113239         of type `char *' rather than `char const *'.
113240         * lib/chdir-long.h (chdir_long): Update prototype.
113242         * lib/openat.c (fdopendir, fstatat): New functions.
113243         * lib/openat.h: Include headers required for use of DIR and struct
113244         stat.
113245         [AT_SYMLINK_NOFOLLOW]: Define.
113246         (fdopendir, fstatat): Add prototypes.
113248 2005-01-21  Bruno Haible  <bruno@clisp.org>
113250         * modules/classpath: New file.
113251         * MODULES.html.sh (Java): Add classpath.
113253 2005-01-21  Bruno Haible  <bruno@clisp.org>
113255         * lib/classpath.h: New file, from GNU gettext.
113256         * lib/classpath.c: New file, from GNU gettext.
113258 2005-01-20  Simon Josefsson  <jas@extundo.com>
113260         * modules/version-etc-fsf: New file.
113262 2005-01-20  Simon Josefsson  <jas@extundo.com>
113264         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
113265         * lib/version-etc.c: Remove version_etc_copyright.
113266         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
113267         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
113269 2005-01-20  Simon Josefsson  <jas@extundo.com>
113271         * lib/base64.h (isbase64): Add.
113273         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
113274         using a unsigned prototype, don't inline.
113275         (base64_decode): Use it.
113277 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113279         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
113280         it.
113282 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113284         * lib/save-cwd.c (save_cwd): Remove code to support the case
113285         where fchdir is missing or flaky.
113287 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
113289         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
113291 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
113293         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
113294         AC_LIBSOURCES now does this.
113295         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
113296         with new ullong_max module.
113298 2005-01-19  Bruno Haible  <bruno@clisp.org>
113300         * modules/sh-quote: New file.
113301         * MODULES.html.sh (Executing programs): Add sh-quote.
113303 2005-01-19  Bruno Haible  <bruno@clisp.org>
113305         * lib/sh-quote.h: New file, from GNU gettext.
113306         * lib/sh-quote.c: New file, from GNU gettext.
113308 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113310         Merge from coreutils.
113311         * m4/ullong_max.m4: New file.
113312         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
113313         (gl_MACROS): Assume localeconv exists.
113315 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113317         Merge changes from coreutils, as described below in several
113318         changelogs dated today.
113320         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
113321         (O_DIRECTORY): Remove; not needed here, since "." must be
113322         a directory.  All uses removed.
113323         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
113324         universal on Suns, and we also need to test for IRIX.
113325         Revamp code to use 'if' rather than '#if'.
113326         Avoid unnecessary comparison of cwd->desc to 0.
113328         * lib/utimens.c (futimens): Robustify the previous patch, by checking
113329         for known valid error numbers rather than observed invalid ones.
113331 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
113333         * modules/ullong_max: New file.
113335         * modules/chdir-long, modules/openat: New files.
113336         * modules/save-cwd (Depends-on): Depend on chdir-long.
113337         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
113339 2005-01-18  Jim Meyering  <jim@meyering.net>
113341         Merge from coreutils.
113342         * m4/chdir-long.m4, m4/openat.m4: New files.
113343         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
113344         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
113345         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
113346         is sane and DOES follow symlinks.  Besides, testing 20 different
113347         systems found no broken chown implementations.
113348         Prompted by a change in rsync's copy of this macro.
113349         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
113351         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
113353         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
113354         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
113355         NULL-means-set-to-current-time semantics.
113356         Remove temporary file immediately, rather than waiting
113357         for configure's at-exit trap code to do it.
113359 2005-01-18  Jim Meyering  <jim@meyering.net>
113361         * lib/version-etc.c (version_etc_copyright): Update copyright date.
113363         * lib/utimens.c (futimens): Account for the fact that futimes
113364         can also fail with errno == ENOSYS or errno == ENOENT.
113365         Patch from Dmitry V. Levin.
113367         Change the name of the robust chdir function from chdir to chdir_long.
113368         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
113369         (restore_cwd): Use chdir_long, not chdir.
113370         * lib/chdir-long.c: Renamed from chdir.c.
113371         * lib/chdir-long.h: Renamed from chdir.h.
113372         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
113373         Hurd.
113375 2005-01-18  Bruno Haible  <bruno@clisp.org>
113377         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
113378         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
113379         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
113380         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
113381         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
113382         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
113383         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
113384         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
113385         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
113386         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
113387         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
113388         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
113389         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
113390         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
113391         Use an all-permissive copyright notice, recommended by RMS.
113393 2005-01-18  Bob Proulx  <bob@proulx.com>
113395         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
113396         simplify offsetof() macro construct to avoid compile failure with
113397         native HP-UX 11.0 ANSI C compiler.
113399 2005-01-17  Bruno Haible  <bruno@clisp.org>
113401         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
113402         redundant because stpncpy.m4 takes care of it.
113404 2005-01-17  Bruno Haible  <bruno@clisp.org>
113406         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
113408 2005-01-17  Bruno Haible  <bruno@clisp.org>
113410         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
113411         used.
113413 2005-01-17  Bruno Haible  <bruno@clisp.org>
113415         * lib/fwriteerror.h (fwriteerror): Change specification to include
113416         fclose.
113417         * lib/fwriteerror.c: Include <stdbool.h>.
113418         (fwriteerror): At the end, close the file stream. Record whether
113419         stdout was already closed.
113421 2005-01-17  Bruno Haible  <bruno@clisp.org>
113423         * lib/execute.c (environ): Declare if needed.
113424         * lib/pipe.c (environ): Likewise.
113425         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
113427 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113429         * modules/argp: Depend on vsnprintf
113431 2005-01-10  Jim Meyering  <jim@meyering.net>
113433         * modules/closeout (Depends-on): Add atexit.
113435 2005-01-06  Bruno Haible  <bruno@clisp.org>
113437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
113439 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
113441         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
113442         definitions to be after all include files, to avoid collisions.
113443         Problem reported by Bob Proulx.
113445 2005-01-04  Jim Meyering  <jim@meyering.net>
113447         Changes imported from coreutils.
113448         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
113449         as the mkstemp template, use a temporary directory and an
113450         8.3-friendly template to avoid trouble on systems like DJGPP.
113451         Reported by Juan M. Guerrero via Stepan Kasal.
113452         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
113453         close. Remove the temporary directory right away, rather than waiting
113454         for configure's at-exit trap code to do it.
113455         Suggestion from Stepan Kasal.
113457 2005-01-01  Simon Josefsson  <jas@extundo.com>
113459         * gnulib-tool: Print #include directives when --import'ing.
113461 2004-12-28  Simon Josefsson  <jas@extundo.com>
113463         * tests/test-base64.c: Include required header files.  Remove
113464         unused variables.
113466 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
113468         * modules/error (Depends-on): Remove gettext.
113470 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
113472         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
113473         not needed.  This removes a dependency on the gettext module.
113474         [defined _LIBC]: Do not include <libintl.h>; not needed.
113476 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
113478         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
113479         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
113481 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
113483         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
113484         HAVE_DECL_STRTOLD.
113486 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113488         * modules/getdate (Depends-on): Remove alloca-opt.
113490 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113492         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
113494 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
113496         * lib/argp-parse.c: Include <stddef.h>.
113497         (alignof, alignto): New macros.
113498         (parser_init): Don't assume that void * is aligned sufficiently
113499         for struct option.
113501         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
113502         need to extend the stack.
113503         (YYINITDEPTH): New macro, so that the initial stack isn't overly
113504         large.
113506 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113508         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
113510 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
113512         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
113513         (2004-10-24) change.  Apparently this was a false alarm.
113515         * modules/getdate: Depend on alloca-opt, not alloca.
113517 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
113519         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
113520         Remove now-obsolete comment about AIX.
113521         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
113522         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
113523         (YYMAXDEPTH): New macro.
113525 2004-12-18  Simon Josefsson  <jas@extundo.com>
113527         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
113529 2004-12-18  Bruno Haible  <bruno@clisp.org>
113531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
113533 2004-12-18  Bruno Haible  <bruno@clisp.org>
113535         * lib/fatal-signal.c (fatal_signals): Make non-const.
113536         (init_fatal_signals): New function.
113537         (uninstall_handlers, install_handlers): Ignore signals that were set to
113538         SIG_IGN.
113539         (at_fatal_signal): Call init_fatal_signals.
113540         (init_fatal_signal_set): Likewise. Ignore signals that were set to
113541         SIG_IGN.
113542         Reported by Paul Eggert.
113544 2004-12-18  Bruno Haible  <bruno@clisp.org>
113546         * doc/alloca.texi: New file.
113547         * doc/alloca-opt.texi: New file.
113549 2004-12-17  Jim Meyering  <jim@meyering.net>
113551         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
113552         Otherwise, install-sh could exit with improper exit status when
113553         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
113555 2004-12-16  Simon Josefsson  <jas@extundo.com>
113557         * tests/test-base64.c: Add license.
113559 2004-12-15  Stepan Kasal  <address@hidden>
113561         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
113563 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
113565         * modules/getcwd (Files): Add m4/d-ino.m4.
113566         Suggested by Mark D. Baushke.
113568 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
113570         * lib/getdate.y (textint): New member "negative".
113571         (time_zone_hhmm): New function.
113572         Expect 14 shift-reduce conflicts, not 13.
113573         (o_colon_minutes): New rule.
113574         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
113575         (yylex): Set the "negative" member of signed numbers.
113577 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
113579         * doc/getdate.texi (Time of day items, Time zone items):
113580         Describe new formats +00:00, UTC+00:00.
113582 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
113584         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
113585         spurious "-l"s.  Problem reported by Stepan Kasal.
113587 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
113589         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
113590         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
113592 2004-12-04  Simon Josefsson  <jas@extundo.com>
113594         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
113595         Vandoorselaere <yoann@prelude-ids.org>.
113597 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113599         Changes imported from coreutils.
113600         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
113601         exist.
113602         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
113604 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113606         Changes imported from coreutils.
113607         * lib/hard-locale.c: Assume <locale.h> exists.
113608         Include "strdup.h".
113609         (GLIBC_VERSION): New macro.
113610         (hard_locale): Assume setlocale exists.
113611         Rewrite to avoid #ifdef.
113612         Use strdup rather than malloc + strcpy.
113613         * lib/human.c: Assume <locale.h> exists.
113614         (human_readable): Assume localeconv exists.
113616 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
113618         * modules/hard-locale (Depends-on): Add strdup.
113620 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
113622         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
113623         convert T2, not T.  (Imported from libc.)
113625 2004-11-30  Simon Josefsson  <jas@extundo.com>
113627         * modules/restrict (License): Change to LGPL.
113629 2004-11-30  Simon Josefsson  <jas@extundo.com>
113631         * m4/restrict.m4: Add copyright and copying conditions.
113633 2004-11-30  Simon Josefsson  <jas@extundo.com>
113635         * m4/base64.m4: New file.
113637 2004-11-30  Simon Josefsson  <jas@extundo.com>
113639         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
113640         base64.
113642         * tests/test-base64.c: New file.
113644         * modules/base64: New file.
113646 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
113648         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
113649         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
113651         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
113653 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
113655         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
113656         (__getcwd.c): Don't restore errno; glibc doesn't.
113657         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
113658         first, falling back to our code only if its results look suspicious.
113659         Ensure that the resulting buffer is only as large as necessary.
113661         * lib/readutmp.c: Include readutmp.h first.
113662         Include <errno.h>, since readutmp.h no longer does that.
113663         * lib/readutmp.h: Don't include <errno.h>,
113664         <sys/param.h>, <time.h>; not needed to establish interface.
113665         (errno): Remove decl.
113666         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
113667         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
113668         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
113670 2004-11-28  Simon Josefsson  <jas@extundo.com>
113672         * lib/base64.h, base64.c: New file.
113674 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
113676         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
113678 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
113680         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
113681         (Depends-on): Remove pathmax, same.  Add mempcpy.
113682         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
113683         (Makefile.am): Append getcwd.h to lib_SOURCES.
113684         (Include): Add getcwd.h.
113685         (Maintainer): Change from Jim Meyering to "all, glibc",
113686         since getdate now uses intended-for-glibc code.
113687         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
113688         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
113690 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
113692         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
113693         HP's ANSI C compiler.
113694         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
113695         Declaring int functions causes warnings on some modern systems and
113696         shouldn't be needed to compile on ancient ones.
113697         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
113698         defined.
113700         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
113701         with the following changes.
113702         (__set_errno): Parenthesize properly.
113703         Include <stdbool.h>.
113704         (MIN, MAX, MATCHING_INO): New macros.
113705         (__getcwd): Define with prototype, not K&R form.
113706         Use heuristics to allocate default buffer on stack if possible.
113707         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
113708         behavior, and to avoid the PATH_MAX limit when computing
113709         ../../../../...
113710         Use MATCHING_INO to compare inode number to file.
113711         Check for arithmetic overflow in size calculations.
113712         Fix bug in reallocation of dot array that caused getcwd to fail
113713         on directories nested deeper than 75.
113714         Be more careful about saving errno on error.
113715         Do not use realloc; use only free+malloc, as this is a bit
113716         more flexible and avoids a needless copy operation.
113717         Do not inspect st_dev and st_ino for symbolic links; POSIX
113718         doesn't specify the latter.
113719         Check for closedir errors.
113720         Avoid needless casts.
113721         Use "#ifdef weak_alias" around weak_alias, to be like other
113722         glibc code.
113723         The following changes to getcwd.c have effect only when used in
113724         gnulib; they have no effect inside glibc proper.
113725         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
113726         as alloca isn't used.
113727         (alloca, __alloca): Likewise.
113728         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
113729         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
113730         unconditionally, as gnulib assumes C89 or better.
113731         Do not include <sys/param.h>.
113732         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
113733         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
113734         better.
113735         (NULL) [!defined NULL]: Remove; we assume C89 or better.
113736         Include <dirent.h> in a way that is compatible with modern Autoconf.
113737         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
113738         New macros, if not already defined.
113739         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
113740         Use "_LIBC", not "defined _LIBC", for consistency.
113741         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
113742         a mempcpy module.
113743         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
113744         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
113745         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
113746         credit only to Jim Meyering and adjust the copyright dates.
113747         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
113748         <stdlib.h>, <unistd.h>, "pathmax.h".
113749         Instead, include "xgetcwd.h" (first) and "getcwd.h".
113750         (INITIAL_BUFFER_SIZE): Remove.
113751         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
113753 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
113755         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
113756         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
113757         Use the _ONCE methods, for efficiency.
113758         Check for fcntl.h.  In test program, include <errno.h>
113759         and <fcntl.h> if available.  Remove old K&R cruft from
113760         test program.  Check for common errors in GNU/Linux,
113761         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
113762         don't do AC_LIBOBJ, as that's getcwd.m4's job.
113763         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
113764         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
113765         name accordingly.
113766         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
113767         accommodate new getcwd.c.
113768         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
113769         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
113770         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
113771         that's all we need now.
113773 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113775         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
113776         argp-parse.c depends on getopt internals, that means we should
113777         always use our getopt, to be on the safe side.
113778         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
113779         order not to spoil the result of an eventual previous invocation
113780         of gl_GETOPT_SUBSTITUTE.
113782 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
113784         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
113785         redefinition warnings. To avoid them, include the defines
113786         in `#if !defined __need_getopt ... #endif'. The only place
113787         where __getopt_argv_const is used is in definitions
113788         of getopt_long and getopt_long_only below, which are as well
113789         protected by `#ifndef __need_getopt'.
113790         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
113791         __need_getopt after including <stdio.h> and <unistd.h> These
113792         headers might have defined it.
113794 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
113796         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
113798 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
113800         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
113801         (futimens): New function, which uses futimes if available.
113802         (futimens, utimens): Support timespec==NULL, with same semantics
113803         as utime and utimens.
113804         * lib/utimens.h (futimens): New decl.
113806 2004-11-23  Jim Meyering  <jim@meyering.net>
113808         * lib/getopt_.h: Remove trailing blanks.
113810 2004-11-23  Jim Meyering  <jim@meyering.net>
113812         * lib/__fpending.c: Add comment.
113814 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
113816         * modules/canonicalize (Depends-on): Add xreadlink.
113817         Problem reported by James Youngman.
113819 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
113821         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
113822         New macros.
113823         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
113824         optopt): Use them instead of invoking ## directly; otherwise, the
113825         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
113827 2004-11-19  Bruno Haible  <bruno@clisp.org>
113829         * lib/strtok_r.c: Move comments from here...
113830         * lib/strtok_r.h: ... to here.
113832 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
113834         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
113835         implementations that mishandle size_t overflow.
113837 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
113839         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
113840         might fail.  Problem reported by Yoann Vandoorselaere.
113841         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
113842         implementations that mishandle size_t overflow.
113844 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113846         * modules/canon-host (Depends-on): Add strdup.
113848 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113850         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
113852 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113854         * lib/canon-host.c: Include "strdup.h".
113855         (canon_host): Use getaddrinfo if available, so that IPv6 works.
113856         Use strdup instead of malloc/strcpy to duplicate strings.
113858         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
113859         (human_space_before_unit): New constant.
113860         * lib/human.c (human_readable): Support it.
113862         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
113863         (xgetcwd): Set errno correctly when failing.
113864         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
113865         the failure is actually due to a PATH_MAX problem.
113867         Further getopt changes to make it more likely that glibc will
113868         buy the changes back.
113869         * lib/getopt.c (POSIXLY_CORRECT): New constant.
113870         (getopt): Use it, so to preserve glibc semantic
113871         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
113872         when compiling for libc.
113873         * lib/getopt_.h (__getopt_argv_const): Bring it back.
113874         (getopt_long, getopt_long_only): Use it.
113876         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
113877         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
113878         (getopt): Argv is now char * const *, as per standard.
113879         (_getopt_internal_r, _getopt_internal): Argv is now char **,
113880         not char *__getopt_argv_const *.
113881         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
113882         _getopt_long_only_r): Likewise.
113883         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
113884         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
113885         _getopt_long_r, _getopt_long_only_r): Likewise.
113886         * lib/getopt_.h (__getopt_argv_const): Remove.
113887         (getopt): Argv is now char * const *, as per standard.
113889         * lib/getdate.y (tORDINAL): New token.
113890         (day, relunit): Allow it for relative times.
113891         (relative_time_table): Use tORDINAL for ordinals.
113893 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
113895         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
113896         Document that "second" isn't allowed as an ordinal number.
113898 2004-11-16  Jim Meyering  <jim@meyering.net>
113900         * modules/closeout (Depends-on): Add fpending.
113902 2004-11-15  Jim Meyering  <jim@meyering.net>
113904         * lib/closeout.c: Include "__fpending.h" once again.
113905         Include <stdbool.h>.
113906         (close_stdout): Don't fail just because stdout was closed initially,
113907         since some programs don't write to stdout in the normal course of
113908         operation (other than --version and --help), and we don't want this
113909         function to make e.g. `touch file >&-' fail.
113910         But do fail if it was closed and someone has tried to write to it.
113911         E.g., `printf foo >&-' must fail.
113913 2004-11-13  Jim Meyering  <jim@meyering.net>
113915         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
113917 2004-11-12  Simon Josefsson  <jas@extundo.com>
113919         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
113920         small doc fix is still pending.
113922 2004-11-11  Simon Josefsson  <jas@extundo.com>
113924         * modules/strtok_r: New file.
113926         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113927         strtok_r.
113929 2004-11-11  Simon Josefsson  <jas@extundo.com>
113931         * m4/strtok_r.m4: New file.
113933         * m4/getopt.m4: Replace opterr.
113935 2004-11-11  Simon Josefsson  <jas@extundo.com>
113937         * lib/strtok_r.h, strtok_r.c: New file.
113939 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
113941         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
113942         of replacing opterr, getopt, etc.  This should handle the
113943         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
113945 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
113947         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
113948         we can stop lying to compilers about the constness of argv when we
113949         are compiled outside glibc.
113950         (getopt, getopt_long, getopt_long_only): Use it.
113951         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
113952         _getopt_internal, getopt): Likewise.
113953         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
113954         _getopt_long_only_r): Likewise.
113955         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
113956         _getopt_long_r, _getopt_long_only_r): Likewise.
113958         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
113959         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
113960         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
113961         the other external symbols.
113962         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
113963         declaration, since the above renaming now works around collisions.
113965 2004-11-11  Jim Meyering  <jim@meyering.net>
113967         * lib/linebreak.c: Remove trailing blanks.
113968         * lib/alloca_.h: Likewise.
113969         * lib/acosl.c: Likewise.
113970         * lib/euidaccess.c: Likewise.
113971         * lib/allocsa.h: Likewise.
113973 2004-11-10  Simon Josefsson  <jas@extundo.com>
113975         * m4/getaddrinfo.m4: New file.
113977 2004-11-10  Simon Josefsson  <jas@extundo.com>
113979         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
113981 2004-11-10  Simon Josefsson  <jas@extundo.com>
113983         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
113984         getaddrinfo.
113986         * modules/getaddrinfo: New file.
113988 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
113990         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
113992 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
113994         * lib/mktime.c (SHR): New macro, which is a portable
113995         substitute for >> that should work even on Crays.
113996         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
113997         Problem reported by Mark D. Baushke in
113998         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
113999         * lib/getdate.y (SHR): Likewise.
114000         (tm_diff): Use it.
114001         * lib/strftime.c (SHR): Likewise.
114002         (tm_diff): Use it.
114003         * lib/quotearg.c (struct quoting_options): Use unsigned int for
114004         quote_these_too, so that right shifts are well defined.  All uses
114005         changed.
114007 2004-11-10  Jim Meyering  <jim@meyering.net>
114009         Ensure that no close failure goes unreported.
114010         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
114011         return early when it seems there's nothing to flush.
114012         Don't include __fpending.h.
114014 2004-11-10  Jim Meyering  <jim@meyering.net>
114016         * modules/closeout (Depends-on): Remove fpending.
114018 2004-11-10  Jim Meyering  <jim@meyering.net>
114020         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
114022 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
114024         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
114025         gl_FUNC_STRFTIME.
114026         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
114027         and AC_REQUIRE when possible, to avoid duplicate checks.
114028         Check for <wchar.h>.
114030 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
114032         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
114034 2004-11-09  Bruno Haible  <bruno@clisp.org>
114036         * m4/sockpfaf.m4: New file.
114038 2004-11-05  Bruno Haible  <bruno@clisp.org>
114040         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
114041         Reported by Mark D. Baushke <mdb@cvshome.org>.
114043 2004-11-04  Bruno Haible  <bruno@clisp.org>
114045         2004-09-11  Bruno Haible  <bruno@clisp.org>
114046                 * allocsa.valgrind: New file.
114047         2004-02-06  Bruno Haible  <bruno@clisp.org>
114048                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
114049                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
114050                 Reported by Christopher Seip <chris.seip@hp.com>.
114052 2004-11-04  Bruno Haible  <bruno@clisp.org>
114054         * modules/allocsa (Files): Add lib/allocsa.valgrind.
114055         (Makefile.am): Distribute it.
114057 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
114059         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
114060         with errno == ERANGE if the buffer is too small.
114061         Problem reported by Mark D. Baushke.
114063 2004-11-03  Albert Chin  <china@thewrittenword.com>
114064             Paul Eggert  <eggert@cs.ucla.edu>
114066         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
114067         equivalent, substitute $ac_type for equivalent type rather than
114068         blindly using uint32_t *always* which won't work if uint32_t is not
114069         available.  Define _UINT32_T to work around typedef of uint32_t if
114070         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
114071         2.5.1.
114073 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
114075         * m4/jm-macros.m4: Sync from coreutils.
114076         (gl_MACROS): Check for mbrlen, for pathchk.
114077         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
114079 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
114081         * lib/xreadlink.c (MAXSIZE): New macro.
114082         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
114083         size does not exceed MAXSIZE.  Avoid cast.
114084         As suggested by Mark D. Baushke in
114085         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
114086         if readlink fails with buffer size just under MAXSIZE, try again
114087         with MAXSIZE.
114089 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
114091         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
114093 2004-11-02  Derek R. Price  <derek@ximbiot.com>
114094         and  Paul Eggert  <eggert@cs.ucla.edu>
114096         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
114097         (get_date): Overparenthesize to avoid GCC warning.
114099 2004-11-02  Bruno Haible  <bruno@clisp.org>
114101         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
114102         returns void.
114104 2004-11-02  Bruno Haible  <bruno@clisp.org>
114106         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
114107         function returns void.
114109 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
114111         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
114112         fflush_unlocked, flockfile, funlockfile, funlockfile,
114113         fputs_unlocked, putc_unlocked.
114115 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
114117         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
114118         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
114119         already declared.
114121 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114123         * modules/getdate (Files): Add doc/getdate.texi.
114124         (Depends-on): Add setenv, xalloc.
114126 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114128         * lib/getdate.y: Add support for TZ="foo" within a date string.
114129         Fix some bugs near time_t boundaries.  Reject dates with
114130         out-of-range components, e.g., "Sept 31".
114131         Include <stdlib.h>, "setenv.h", "xalloc.h".
114132         (ISDIGIT_LOCALE): Remove; unused.
114133         Note that the TZ and time functions used here are not reentrant.
114134         (mktime_ok, get_tz): New functions.
114135         (TZBUFSIZE): New constant.
114136         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
114137         This requires that we sometimes generate our own TZ="XXX..." setting.
114139 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
114141         * doc/getdate.texi: New file, from coreutils with modifications for
114142         the new TZ parsing.
114144 2004-10-27  Derek R. Price  <derek@ximbiot.com>
114146         * lib/mktime.c (not_equal_tm): Remove redundant check.
114148 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
114150         * modules/regex (lib_SOURCES): Add regex.c.
114151         Reported by James Youngman in
114152         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
114154 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
114156         * lib/getdate.y: Use Bison 1.875 features, and some minor
114157         code cleanups.  This change does not affect semantics.
114158         Don't include <stdlib.h>; no longer needed.
114159         Don't include unlocked-io.h; only the "#if TEST" code uses
114160         stdio, and performance isn't crucial there.
114161         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
114162         Bison 1.875 features as described below.
114163         All uses of "PC." replaced by "pc->".
114164         (YYSTYPE): Add a forward declaration.
114165         (yylex, yyerror): Use full prototypes in forward decls.
114166         Use "%pure-parser" rather than obsolescent "%pure_parser".
114167         Use %parse-param and %lex-param instead of obsolescent
114168         YYPARSE_PARAM and YYLEX_PARAM.
114169         (meridian_table, month_and_day_table, time_units_table,
114170         relative_time_table, time_zone_table, military_table,
114171         lookup_zone, lookup_word, get_date):
114172         Use NULL instead of 0 where appropriate.
114173         (to_hour): Avoid abort (), to avoid a dependency on
114174         stdlib.h.
114175         (yyerror, yylex): Now accepts parser_control * arg.
114176         (main) [TEST]: Use '\0' rather than 0 for char.
114178 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
114180         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
114182 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
114184         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
114185         It's now the caller's responsibility to handle the case where
114186         !HAVE_GETPAGESIZE && !defined getpagesize.
114188         * lib/mktime.c (leapyear): Arg is long int, not int.
114190 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
114192         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
114194 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
114196         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
114197         missing.  Problem reported by James Youngman.
114199 2004-10-16  Simon Josefsson  <jas@extundo.com>
114201         * gnulib-tool: Fix comments.  Fix parse problem.
114202         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
114204 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
114206         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
114207         implementation of getopt_long.  Problem reported by Alexander Taler in:
114208         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
114210 2004-10-15  Bruno Haible  <bruno@clisp.org>
114212         * gnulib-tool: Untabify. Initialize supplied_libname.
114213         (func_usage): More homogenous output.
114214         (func_modules_transitive_closure, func_modules_to_filelist,
114215         func_emit_lib_Makefile_am): New functions.
114216         (func_import): New function, extracted from big case statement. Use
114217         func_get_license, func_modules_transitive_closure,
114218         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
114219         opt_lgpl. Don't use test -a, as it's not portable.
114220         (func_create_testdir): Use func_modules_transitive_closure,
114221         func_modules_to_filelist, func_emit_lib_Makefile_am.
114223 2004-10-15  Bruno Haible  <bruno@clisp.org>
114225         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
114227 2004-10-15  Bruno Haible  <bruno@clisp.org>
114229         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
114230         the portions belonging to each module.
114231         Suggested by Derek Robert Price <derek@ximbiot.com>.
114233 2004-10-12  Simon Josefsson  <jas@extundo.com>
114235         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
114236         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
114237         to real functions.
114239 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114241         * modules/vsnprintf: New file.
114243 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114245         * m4/vsnprintf.m4: New file.
114247 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114249         * lib/vsnprintf.h: New file.
114250         * lib/vsnprintf.c: New file.
114252 2004-10-11  Bruno Haible  <bruno@clisp.org>
114254         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
114255         vsnprintf.
114257 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
114259         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
114261 2004-10-07  Bruno Haible  <bruno@clisp.org>
114263         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
114264         fits into the provided buffer.
114266 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
114268         * lib/diacrit.c, diacrit.h: Add GPL notice.
114270         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
114271         notice.
114272         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
114273         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
114274         This avoids a potential constant-folding bug.
114276 2004-10-05  Bruno Haible  <bruno@clisp.org>
114278         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
114279         for the declaration of strsep.
114281 2004-10-05  Bruno Haible  <bruno@clisp.org>
114283         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
114285 2004-10-04  Simon Josefsson  <jas@extundo.com>
114287         * modules/memmem: New file.
114288         * tests/test-memmem.c: New file.
114289         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
114291 2004-10-04  Simon Josefsson  <jas@extundo.com>
114293         * m4/memmem.m4: New file.
114295 2004-10-04  Simon Josefsson  <jas@extundo.com>
114297         * lib/memmem.h: New file.
114298         * lib/memmem.c: New file, taken from glibc.
114300 2004-10-04  Simon Josefsson  <jas@extundo.com>
114302         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
114303         '#ifdef USE_UNLOCKED_IO'.
114305 2004-10-04  Simon Josefsson  <jas@extundo.com>
114307         * config/srclist.txt: Add memmem from glibc.
114309 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114311         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
114313         * modules/argmatch, modules/argp, modules/closeout, modules/error,
114314         modules/exclude, modules/getdate, modules/getline,
114315         modules/getndelim2, modules/getpass, modules/getpass-gnu,
114316         modules/getusershell, modules/linebuffer, modules/md5,
114317         modules/mountlist, modules/posixtm, modules/readtokens,
114318         modules/readutmp, modules/regex, modules/sha1,
114319         modules/version-etc, modules/yesno:
114320         Remove dependency on unlocked-io.
114322 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114324         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
114326         * m4/unlocked-io.m4: Add copyright notice.
114327         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
114329 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114331         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
114332         * lib/xmalloc.c (xmemdup): Likewise.
114333         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
114334         XFREE): Remove these long-obsolescent macros.
114335         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
114336         * lib/xstrdup.c: Remove.
114338         * lib/regex.c (re_comp): Cast gettext return value to char *,
114339         Problem reported by Martin Neitzel via Mark D. Baushke.
114341 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
114343         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
114344         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
114345         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
114346         regex.c, sha1.c, version-etc.c, yesno.c:
114347         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
114348         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
114349         the includer's responsibility.
114351         Sync from coreutils.
114353         * lib/modechange.c (mode_compile): Don't decrement a pointer that
114354         points to the start of a string, as the C Standard says the
114355         resulting behavior is undefined.
114357         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
114358         simple -> simple_backups, numbered_existing ->
114359         numbered_existing_backups, numbered -> numbered_backups
114360         to avoid shadowing problems.  All uses changed.
114361         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
114362         * lib/backupfile.c (check_extension, numbered_backup):
114363         Rename locals to avoid shadowing 'basename'.
114364         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
114365         once.
114367         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
114368         * lib/.cvsignore: Add getopt.h.
114370 2004-10-04  Bruno Haible  <bruno@clisp.org>
114372         * modules/README: New file.
114373         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
114374         not a module.
114376 2004-10-02  Jim Meyering  <jim@meyering.net>
114378         * lib/dirfd.h, getpagesize.h: Add copyright notice.
114380 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114382         * modules/strsep: New file.
114384 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114386         * m4/strsep.m4: New file.
114388 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
114390         * lib/strsep.h: New file.
114391         * lib/strsep.c: New file.
114393 2004-10-01  Simon Josefsson  <jas@extundo.com>
114395         * lib/snprintf.c (snprintf): Handle size==0.
114397 2004-10-01  Simon Josefsson  <jas@extundo.com>
114398             Bruno Haible  <bruno@clisp.org>
114400         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
114401         (snprintf): Declare 'args'.
114403 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
114405         * lib/snprintf.c: Remove comments as to why each header is needed.
114407 2004-10-01  Bruno Haible  <bruno@clisp.org>
114409         * MODULES.html.sh: Add strsep.
114411 2004-09-30  Simon Josefsson  <jas@extundo.com>
114413         * modules/snprintf: New file.
114415 2004-09-30  Simon Josefsson  <jas@extundo.com>
114417         * m4/snprintf.m4: New file.
114419 2004-09-30  Simon Josefsson  <jas@extundo.com>
114421         * lib/snprintf.h, lib/snprintf.c: New files.
114423 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
114425         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
114426         (hol_entry_help): Never translate an empty string.
114427         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
114428         * lib/argp.h (OPTION_NO_TRANS): New option.
114430 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114432         * modules/argp (Maintainer): Replace Simon Josefsson
114433         by Sergey Poznyakoff.
114435 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114437         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
114438         changes merged back into glibc.
114440 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
114442         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
114444 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
114446         * lib/xvasprintf.c: Include xalloc.h.
114447         (xvasprintf): Use xalloc_die, not xmalloc_die.
114449 2004-09-29  Bruno Haible  <bruno@clisp.org>
114451         * modules/alloca-opt: New file, derived from modules/alloca.
114452         * modules/allocsa: Depend on alloca-opt instead of alloca.
114453         * modules/setenv: Likewise.
114454         * modules/vasnprintf: Likewise.
114455         * MODULES.html.sh: Add alloca-opt.
114457 2004-09-28  Simon Josefsson  <jas@extundo.com>
114459         * gnulib-tool: New parameter --lgpl, to asseert that modules are
114460         LGPL, and to replace license template from GPL to LGPL.
114462 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
114464         * modules/dummy: Change license to LGPL.
114466 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
114468         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
114470 2004-09-24  Simon Josefsson  <jas@extundo.com>
114472         * modules/minmax (License): Change from GPL to LGPL.
114474 2004-09-23  Simon Josefsson  <jas@extundo.com>
114476         * gnulib-tool (--import): Typo.
114478 2004-09-23  Simon Josefsson  <jas@extundo.com>
114480         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
114482 2004-09-22  Bruno Haible  <bruno@clisp.org>
114484         * modules/*: Add 'License' field.
114485         * gnulib-tool: Accept --extract-license option.
114486         (func_get_license): New function.
114488 2004-09-21  Bruno Haible  <bruno@clisp.org>
114490         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
114491         Reported by Simon Josefsson.
114493 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
114495         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
114496         gl_AC_TYPE_LONG_LONG.
114498 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
114500         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
114502 2004-09-18  Simon Josefsson  <jas@extundo.com>
114503         and  Paul Eggert  <eggert@cs.ucla.edu>
114505         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
114506         calls with autoreconf.  Define GL_LIB.
114508 2004-09-14  Karl Berry  <karl@gnu.org>
114510         * config/srclist.txt: unsync setenv.c, sigh.
114512 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114514         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
114515         Problem reported by Bruno Haible in:
114516         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
114518 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
114520         * config/srclist.txt: Comment out argp-pvh.c.
114522 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
114524         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
114525         in case some system header has #define'd it.  Problem reported by
114526         Soeren D. Schulze in
114527         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
114529 2004-09-09  Karl Berry  <karl@gnu.org>
114531         * regex.[ch]: delete from the root.  These were supposed to be
114532                 synced with emacs cvs, but this has not happened for about
114533                 a year, and anyway nothing else uses emacs regex.[ch].
114534                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
114535                 lib/regex[.ch] is untouched.
114537 2004-09-09  Bruno Haible  <bruno@clisp.org>
114539         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
114541 2004-09-09  Bruno Haible  <bruno@clisp.org>
114543         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
114544         modifications.
114545         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
114547 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
114549         * modules/xvasprintf: New file.
114550         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
114552 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
114554         * lib/xvasprintf.h: New file.
114555         * lib/xvasprintf.c: New file.
114556         * lib/xasprintf.c: New file.
114558 2004-09-08  Bruno Haible  <bruno@clisp.org>
114560         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
114562 2004-09-08  Bruno Haible  <bruno@clisp.org>
114564         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
114565         length is > INT_MAX.
114566         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
114567         more.
114569 2004-09-08  Bruno Haible  <bruno@clisp.org>
114571         * lib/stdint_.h: New file, taken from GNU clisp.
114573 2004-09-08  Bruno Haible  <bruno@clisp.org>
114574             Oskar Liljeblad  <oskar@osk.mine.nu>
114576         * modules/stdint: New file.
114577         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
114579 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114581         Import from coreutils.
114582         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
114583         strings on unbounded length.  alloca's performance benefits aren't
114584         that important here.
114585         (V_STRDUP): Remove.
114586         (parse_with_separator): New function, with most of the internals
114587         of the old parse_user_spec.  Allow user to omit both user and group,
114588         for compatibility with FreeBSD.
114589         Clone only the user name, not the entire spec.
114590         Do not set *uid, *gid unless entirely successful.
114591         Avoid memory leak in some failing cases.
114592         Fix regression for USER.GROUP reported by Dmitry V. Levin in
114593         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
114594         (parse_user_spec): Rewrite to use parse_with_separator.
114596 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114598         * modules/userspec: Don't depend on alloca.
114600 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114602         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
114604 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114606         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
114607         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
114608         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
114610 2004-08-16  Simon Josefsson  <jas@extundo.com>
114612         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
114613         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
114614         Add --dry-run for --import.
114615         Let user provided command line parameters override configure.ac
114616         settings.
114618 2004-08-12  Simon Josefsson  <jas@extundo.com>
114620         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
114621         as discussed with Paul Eggert in threads rooted at
114622         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
114623         and
114624         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
114625         Before, the test was empty, and relied on ELIDE_CODE in source
114626         code.)
114627         (gl_PREREQ_GETOPT): New macro.
114628         (gl_GETOPT): Use them.
114630 2004-08-12  Simon Josefsson  <jas@extundo.com>
114632         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
114633         * lib/getopt_.h: Renamed from getopt.h.
114635 2004-08-12  Simon Josefsson  <jas@extundo.com>
114637         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
114638         Change default library name from libfoo to libgnu.
114639         Now, if you have a configure.ac that says:
114640                 gl_SOURCE_BASE(gl)
114641                 gl_M4_BASE(gl/m4)
114642                 gl_MODULES(error getopt etcetera)
114643                 gl_INIT
114644         you can import all you need by running:
114645                 ../gnulib/gnulib-tool --import
114647         * modules/getopt (Files): Rename getopt.h to getopt_.h.
114648         (Makefile.am): Rewrite, use logic from argz.
114649         (Include): Use <getopt.h> instead of "getopt.h".
114651 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114653         * modules/argp (Files): Add m4/unlocked-io.m4.
114654         (Depends-on): Add extensions.
114656 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114658         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
114659         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
114660         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
114661         Check for program_invocation_name, program_invocation_short_name,
114662         flockfile, funlockfile, features.h, _getopt_long_only_r.
114664 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114666         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
114667         its complicated substitute.
114668         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
114669         and program_invocation_name.
114670         (__argp_basename) [!_LIBC]: Remove; the only use was
114671         replaced by its body.
114672         (__argp_short_program_name): Change condition from
114673         !defined __argp_short_program_name to
114674         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
114675         to match argp-namefrob.h.
114676         (__argp_failure): Don't assume strerror_r returns char *.
114677         * lib/argp-parse.c (N_): Define unconditionally.
114678         (argp_default_options): Fill out initializers with 0 to avoid
114679         gcc warnings.
114681 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
114683         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
114684         getopt1.c.
114686 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114688         Merge from coreutils.
114690         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
114692         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
114693         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
114695 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114697         Merge from coreutils.
114699         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
114700         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
114701         for Reliant Unix 5.43.
114703         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
114704         (union fooround): Use uintmax_t, not long int.
114705         The rest is a merge from libc:
114706         [defined _LIBC]: Include <shlib-compat.h>.
114707         (_obstack) [defined _LIBC]: Remove after 2.3.4.
114709         * lib/settime.c (settime): Recode to avoid warning with
114710         Sun Forte C 6U2.
114712         * lib/strverscmp.c: Convert to UTF-8.
114714 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114716         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
114717         m4/uintmax_t.m4.
114719 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114721         * modules/xalloc-die: New file.
114722         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
114724         * modules/md5 (Files): Add m4/uint32_t.m4.
114725         * modules/sha1: Renamed from modules/sha.
114726         (Files):
114727         Rename lib/sha.h to lib/sha1.h.
114728         Rename lib/sha.c to lib/sha1.c.
114729         Rename m4/sha.m4 to m4/sha1.m4.
114730         (lib_SOURCES): Likewise.
114731         (configure.ac): Rename gl_SHA to gl_SHA1.
114732         (Include): sha.h -> sha1.h.
114734 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114736         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
114737         * m4/sha1.m4: Renamed from sha.m4.
114738         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
114740 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
114742         * lib/obstack.h (obstack_empty_p):
114743         Don't assume that chunk->contents is suitably aligned.
114744         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
114745         Likewise. Problem reported by Benno in
114746         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
114748         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
114749         readable.  This could be improved further but it'd take some work.
114751 2004-08-08  Simon Josefsson  <jas@extundo.com>
114753         * modules/xgethostname (Depends-on): Remove exit and error (not
114754         used).
114756         * modules/getpass-gnu: Add getpass.h.
114757         (Depends-on): Add stdbool.
114758         * modules/getpass: Add getpass.h.
114760 2004-08-08  Simon Josefsson  <jas@extundo.com>
114762         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
114763         Check getpass declaration.
114765 2004-08-08  Simon Josefsson  <jas@extundo.com>
114767         * lib/xgethostname.c: Don't include error.h (not used).
114769         * lib/getpass.h: Add.
114770         * lib/getpass.c: Include getpass.h first.
114772 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
114774         * lib/xalloc-die.c: New file.
114775         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
114776         All uses removed.
114777         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
114778         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
114779         xalloc-die.c.
114780         (_, N_, xalloc_die): Move to xalloc-die.c.
114781         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
114782         so that we needn't mess with xalloc_msg_memory_exhausted.
114784         * lib/sha1.h: Renamed from sha.h.
114785         (SHA1_H): Renamed from _SHA_H.
114786         (sha1_ctx): Renamed from sha_ctx.
114787         (sha1_init_ctx): Renamed from sha_init_ctx.
114788         (sha1_process_block): Renamed from sha_process_block.
114789         (sha1_process_bytes): Renamed from sha_process_bytes.
114790         (sha1_finish_ctx): Renamed from sha_finish_ctx.
114791         (sha1_read_ctx): Renamed from sha_read_ctx.
114792         (sha1_stream): Renamed from sha_stream.
114793         (sha1_buffer): Renamed from sha_buffer.
114794         * lib/sha1.c: Likewise; renamed from sha.c.
114795         Do not include <sys/types.h>.
114796         Include <stddef.h> rather than <stdlib.h>.
114798 2004-08-08  Bruno Haible  <bruno@clisp.org>
114800         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
114801         FILESYSTEM_PREFIX_LEN.
114802         * lib/progreloc.c: Likewise.
114803         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
114805 2004-08-06  Simon Josefsson  <jas@extundo.com>
114807         * modules/progname (Depends-on): Don't depend on stdbool.
114809 2004-08-06  Simon Josefsson  <jas@extundo.com>
114811         * modules/getsubopt: New file.
114812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
114813         getsubopt.
114815 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114817         More merge from coreutils.
114819         * m4/utimens.m4, m4/utimecmp.m4: New files.
114820         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
114821         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
114822         prereq.m4, sha.m4: Import changes from coreutils.
114824 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114826         More merge from coreutils.
114827         * modules/raise, modules/readtokens0, modules/utimens:
114828         * modules/utimecmp, module/xnanosleep: New files.
114829         * modules/strftime: Add lib/strftime.h.
114830         Change include from <time.h> to "strftime.h".
114831         * modules/yesno: Add lib/yesno.h.
114832         * modules/backupfile: Remove lib/addext.c.
114833         * modules/euidaccess: Add stat-macros.h.
114834         * modules/canonicalize, modules/euidaccess,
114835         modules/filemode, modules/lchown, modules/makepath,
114836         modules/rmdir, modules/stat: Likewise.
114838 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
114840         Merge from tar.
114841         * lib/argp-help.c (make_hol, hol_append): Don't assume that
114842         SIZE_MAX is a valid preprocessor constant.
114843         (__argp_basename): Change from "#ifndef _LIBC"
114844         to "#ifndef __argp_short_program_name", so that
114845         we don't compile these functions for tar.
114847         More merges from coreutils.
114848         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
114849         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
114850         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
114851         * lib/addext.c: Remove; no longer needed.
114852         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
114853         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
114854         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
114855         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
114856         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
114857         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
114858         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
114859         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
114860         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
114861         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
114862         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
114863         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
114864         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
114865         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
114866         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
114867         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
114868         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
114869         Import changes from coreutils.
114871 2004-08-05  Simon Josefsson  <jas@extundo.com>
114873         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
114875 2004-08-05  Simon Josefsson  <jas@extundo.com>
114877         * m4/getsubopt.m4: New file.
114879 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114881         Merge from coreutils.
114883         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
114884         * m4/getcwd-path-max.m4: New files.
114886         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
114887         FILESYSTEM_PREFIX_LEN ->
114888         FILE_SYSTEM_PREFIX_LEN.
114889         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
114890         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
114891         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
114892         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
114894         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
114895         prerequisite modules now handle the DOS stuff.
114896         Don't check for unistd.h.
114898 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114900         Merge from coreutils.
114902         * lib/.gdb-history: Remove; this doesn't belong here.
114904         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
114905         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
114906         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
114907         * lib/getcwd.c: New files.
114909         * lib/dirname.h: Include <stdbool.h>.
114910         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
114911         for consistency with POSIX terminology.  All uses changed.
114912         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
114913         (strip_trailing_slashes): Use bool for booleans.
114914         * lib/stripslash.c (strip_trailing_slashes): Likewise.
114916         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
114917         sometimes returns a positive errno value even when it succeeds.
114918         (print_errno_message) [!LIBC]: Fall back on strerror if
114919         __strerror_r fails.
114921         * lib/path-concat.c (mempcpy): Don't define if a system header defines
114922         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
114923         (longest_relative_suffix): New function.
114924         (path_concat): Use it.  Assume first argument is not NULL.
114925         Port to DOS.  Omit redundant separators.
114926         Report an error instead of returning NULL.
114927         Use mempcpy instead of memcpy.
114928         (xpath_concat): Remove: not declared or used.
114930         * lib/same.h: Include <stdbool.h>
114931         (same_name): Return bool, not int.
114932         * lib/same.c (same_name): Likewise.
114933         (errno): Don't declare; we assume C89 or better now.
114935         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
114936         if not already defined.
114938         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
114939         * lib/dup-safer.c (errno): Likewise.
114941 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
114943         Merge from coreutils.
114944         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
114945         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
114946         * modules/path-concat: Don't depend on strdup.
114948 2004-08-03  Simon Josefsson  <jas@extundo.com>
114950         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
114951         * lib/progname.h: Don't include stdbool.h.
114953 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114955         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
114956         * MODULES.html.sh (func_all_modules): Remove fatal.
114958 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114960         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
114962 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
114964         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
114965         working.
114967 2004-08-02  Simon Josefsson  <jas@extundo.com>
114969         * lib/getsubopt.h: New file, with comments from Bruno Haible.
114970         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
114971         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
114973 2004-08-01  Simon Josefsson  <jas@extundo.com>
114975         * lib/xgetdomainname.c: Include stdlib.h, for free().
114977 2004-07-19  Bruno Haible  <bruno@clisp.org>
114979         * MODULES.html.sh (func_all_modules): Add dummy.
114981 2004-07-16  Simon Josefsson  <jas@extundo.com>
114983         * modules/dummy: New file.
114985 2004-07-16  Simon Josefsson  <jas@extundo.com>
114987         * lib/dummy.c: New file.
114989 2004-07-16  Bruno Haible  <bruno@clisp.org>
114991         * lib/backupfile.h: Add extern "C" for C++.
114992         * lib/closeout.h: Likewise.
114993         * lib/copy-file.h: Likewise.
114994         * lib/findprog.h: Likewise.
114995         * lib/full-write.h: Likewise.
114996         * lib/pathname.h: Likewise.
114997         * lib/progname.h: Likewise.
114998         * lib/stpcpy.h: Likewise.
114999         * lib/stpncpy.h: Likewise.
115000         * lib/strcase.h: Likewise.
115001         * lib/strstr.h: Likewise.
115002         * lib/xalloc.h: Likewise.
115004         * lib/mbswidth.h: Add extern "C" for C++.
115005         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
115007 2004-07-13  Robert Millan  <robertmh@gnu.org>
115009         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
115011 2004-07-09  Simon Josefsson  <jas@extundo.com>
115013         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
115014         failed without this.)
115016 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115018         * modules/chown (Files): Add lib/fchown-stub.c, since
115019         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
115021 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115023         * lib/fchown-stub.c: New file.
115025 2004-06-24  Jim Meyering  <jim@meyering.net>
115027         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
115029 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115031         * modules/argz: Omit "#include".
115033         * MODULES.html.sh (func_all_modules): Add calloc, to match
115034         2004-06-01 addition of calloc module.
115036 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115038         * m4/argz.m4: New file, which is autoupdated from libtool.
115040 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115042         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
115043         libtool.
115045 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
115047         * config/srclist-update: Don't insist on "USA." before the
115048         close-comment, as libtool omits the period and puts the */ on a
115049         separate line.
115050         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
115051         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
115053 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
115055         * modules/argz: New file.
115056         * MODULES.html.sh (func_all_modules): Add argz.
115058 2004-06-12  Jim Meyering  <jim@meyering.net>
115059         and  Paul Eggert  <eggert@cs.ucla.edu>
115061         * modules/hash (Files): Add lib/xalloc.h.
115062         * modules/pipe (Depends-on): Add wait-process.
115063         * modules/stat (Depends-on): Add xalloc.
115064         * modules/userspec (Files): Add lib/userspec.h.
115065         * modules/xstrto
115067         Upgrade from gettext-0.13.
115068         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
115069         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
115070         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
115072 2004-06-10  Jim Meyering  <jim@meyering.net>
115074         * lib/calloc.c: New file.
115076 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
115078         * lib/getdate.y (yylex): Allow space between sign and number.
115079         Problem reported by Dan Jacobson.
115081 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
115083         Merge from coreutils CVS.
115085         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
115086         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
115087         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
115088         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
115089         xstrtol.m4: Fix copyright date and/or serial number.
115091         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
115092         See if we need an fchown replacement.
115093         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
115094         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
115095         and use the replacement function if we detect either defect.
115097         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
115098         gl_UTIMECMP.
115100 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
115101         and  Jim Meyering  <jim@meyering.net>
115103         Merge from coreutils CVS.
115105         * lib/stat-macros.h: New file, with contents from file-type.h
115106         and coreutils' system.h.
115107         * lib/file-type.c: Include "stat-macros.h".
115108         * lib/file-type.h (file_type): Move all macro definitions to new file,
115109         stat-macros.h.
115111         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
115112         Wrap old code with this conditional.
115113         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
115114         function that does not dereference symlinks.
115115         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
115117         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
115118         dependency problems.
115119         (xreadlink): Accept new arg SIZE, for efficiency.
115120         All decls and uses changed.
115121         * lib/xreadlink.h: Include <stddef.h>, for size_t.
115123         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
115124         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
115126         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
115127         sysexits.h.
115129 2004-06-01  Jim Meyering  <jim@meyering.net>
115131         * m4/calloc.m4: New file.
115133 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
115135         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
115136         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
115137         Also, fix a typo in a diagnostic.
115139 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
115141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
115142         or AC_FUNC_REALLOC.
115144 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
115146         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
115147         macros to be defined.
115148         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
115149         the allocator returns NULL because the requested size is zero.
115151 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
115153         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
115154         var.  Add comment explaining why libc still defines it.  This
115155         merges the following patch from glibc:
115156         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
115158 2004-05-20  Andreas Schwab  <schwab@suse.de>
115160         * m4/free.m4: Replace free if it not known to work, not the other
115161         way round.
115163 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
115165         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
115166         present in glibc since revision 1.1 of this file.
115167         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
115168         obstack_alignment_mask, obstack_alloc, obstack_base,
115169         obstack_blank, obstack_blank_fast, obstack_chunk_size,
115170         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
115171         obstack_grow0, obstack_init, obstack_int_grow,
115172         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
115173         obstack_next_free, obstack_object_size, obstack_ptr_grow,
115174         obstack_ptr_grow_fast, obstack_room): Remove declarations of
115175         nonexistent functions.
115177 2004-05-18  Karl Berry  <karl@gnu.org>
115179         * config/srclist.txt: break link for vasnprintf.c.
115181 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
115183         Port obstack to the AS/400, where pointers are 16 bytes wide and
115184         you cannot cast an integer to a valid pointer.  This patch is
115185         currently waiting to be integrated into glibc; see
115186         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
115188         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
115189         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
115190         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
115191         (struct obstack): temp member is now a union of a pointer and
115192         an integer, instead of an integer.  All integer uses changed.
115193         This does not affect the physical layout of struct obstack,
115194         except on hosts (like the AS/400) where the size or alignment of
115195         void * is greater than that of ptrdiff_t.
115196         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
115197         __STDC__)]: Store temporary in pointer member of union, not
115198         integer member.
115199         * lib/obstack.c: Include <stddef.h>, for offsetof.
115200         (struct fooalign): Remove; it doesn't need a name.
115201         (union fooround): Change double to long double, and add void *.
115202         (DEFAULT_ALIGNMENT): Use offsetof to compute.
115203         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
115204         not a macro.  Hence the values are always int; so remove all
115205         casts-to-int in uses.
115207 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
115209         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
115210         we can get this patch merged into glibc.
115212 2004-05-17  Derek R. Price  <derek@ximbiot.com>
115213             Paul Eggert  <eggert@cs.ucla.edu>
115215         * m4/argp: Depend on alloca.
115217 2004-05-17  Derek R. Price  <derek@ximbiot.com>
115218             Paul Eggert  <eggert@cs.ucla.edu>
115220         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
115221         freecoding.
115223 2004-05-17  Bruno Haible  <bruno@clisp.org>
115225         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
115226         precision that consists of a '.' followed by an empty digit string.
115227         Patch by Tor Lillqvist <tml@iki.fi>.
115229 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
115231         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
115232         for backward compatibility with older code.  We need our own
115233         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
115234         it under some other name, and our alloca.h will define it.
115236 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
115237             Derek Price  <derek@ximbiot.com>
115239         * lib/alloca.c: Include <alloca.h>, to get our interface.
115240         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
115241         include <alloca.h> first.  Use C89 prototype for alloca; this
115242         requires including <stddef.h> for size_t.  Use extern "C" if C++.
115243         Use #elif for simplicity, since we can assume C89 now.
115244         Don't try to source the system alloca.h since it will not be found
115245         and to prevent recursively including its replacement.
115246         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
115247         * lib/regex.c: Likewise.
115249 2004-05-16  Derek Price  <derek@ximbiot.com>
115250             Paul Eggert  <eggert@cs.ucla.edu>
115252         getline cleanup.  This changes the getndelim2 API: both order of
115253         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
115254         no delimiter).
115256         * lib/getline.c: Don't include stddef.h or stdio.h, since our
115257         interface does that.
115258         (getline): Always use getdelim, so that we don't have two
115259         copies of this code.
115260         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
115261         if available.
115262         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
115263         (GETNDELIM2_MAXIMUM): New macro.
115264         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
115265         instead of the old practice of delim2==0.  All callers changed.
115266         Return -1 on overflow, instead of returning junk.
115267         Do not set *linesize unless allocation succeeds.
115268         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
115269         that we include sys/types.h.
115270         * lib/getnline.h: Likewise.
115271         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
115272         (getndelim2): Reorder arguments.
115273         * lib/getnline.c (getnline, getndelim):
115274         Don't discard the NMAX argument.
115275         (getnline): Invoke getndelim, to avoid code duplication.
115276         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
115277         of (size_t) -1 by callers of the getnline family.
115279 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
115281         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
115282         Check for gettimeofday.
115283         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
115284         Check for settimeofday, stime.
115286 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
115288         * lib/nanosleep.c (suspended): Change its type from int to
115289         sig_atomic_t volatile.
115290         (first_call): Make it private to rpl_nanosleep, and have it
115291         be zero initially as that's a bit faster.
115292         (my_usleep): Round up fractional times instead of truncating them,
115293         as this is the usual meaning for 'sleep'.
115295         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
115296         doesn't work.
115297         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
115298         (ENOSYS): Define if not defined.
115299         (settime): Fall back on stime if it exists and settimeofday fails.
115300         But don't bother with fallbacks if a method fails with errno == EPERM.
115302 2004-05-11  Jim Meyering  <jim@meyering.net>
115304         Prior to this change, the save_cwd caller required read access to the
115305         current directory on most systems (ones with the fchdir function).
115307         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
115308         fails, try write-only, and finally, resort to using xgetcwd.
115310 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
115312         * lib/obstack.c, obstack.h: Import changes from libc.
115314 2004-04-28  Bruno Haible  <bruno@clisp.org>
115316         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
115317         also implicitly appends .exe to executables.
115318         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
115319         accepts Windows pathnames.
115320         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
115321         Treat Cygwin like Windows, since it now accepts Windows pathnames.
115322         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
115323         Treat Cygwin like Windows, since it now accepts Windows pathnames.
115324         Reported by Derek Robert Price <derek@ximbiot.com>.
115326 2004-04-21  Karl Berry  <karl@gnu.org>
115328         * config/srclist.txt (localcharset.c): break sync.
115330 2004-04-20  Paul Eggert  <eggert@twinsun.com>
115332         * m4/host-os.m4: Add a copyright notice.
115334 2004-04-20  Jim Meyering  <jim@meyering.net>
115336         Change UTILS_ to gl_ in AC_DEFINE'd names.
115337         Change utils_- and jm_-prefixed variables, too.
115338         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
115339         UTILS_FUNC_MKDIR_TRAILING_SLASH.
115340         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
115342         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
115343         Don't emit trailing blanks.
115344         Also rename jm_-prefixed variables to have gl_ prefix.
115346         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
115347         Also rename jm_-prefixed variables to have gl_ prefix.
115349         * m4/jm-macros.m4: Reflect the renamings.
115350         * m4/prereq.m4: Likewise.
115352 2004-04-20  Jim Meyering  <jim@meyering.net>
115354         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
115355         memory.
115357 2004-04-20  Jim Meyering  <jim@meyering.net>
115358             Bruno Haible  <bruno@clisp.org>
115360         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
115361         memory when realloc fails.
115363 2004-04-19  Jim Meyering  <jim@meyering.net>
115365         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
115366         now that readutmp.c may call `free (0)'.
115368 2004-04-19  Bruno Haible  <bruno@clisp.org>
115370         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
115371         * m4/inttypes_h.m4: Likewise.
115372         * m4/stdint_h.m4: Likewise.
115373         * m4/intmax_t.m4: Likewise.
115374         * m4/uintmax_t.m4: Likewise.
115376 2004-04-18  Jim Meyering  <jim@meyering.net>
115378         * m4/prereq.m4: Don't forbid jm_ prefix.
115380         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
115381         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
115382         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
115383         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
115384         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
115385         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
115386         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
115387         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
115388         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
115389         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
115390         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
115391         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
115392         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
115393         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
115394         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
115395         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
115396         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
115397         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
115398         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
115400 2004-04-18  Jim Meyering  <jim@meyering.net>
115402         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
115403         failure, don't leak memory and do call END_UTMP_ENT.
115405 2004-04-16  Jim Meyering  <jim@meyering.net>
115407         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
115408         coreutils' stat program.
115409         (gl_PREREQ): Don't require jm_PREREQ_STAT.
115411 2004-04-11  Paul Eggert  <eggert@twinsun.com>
115413         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
115414         C89.
115415         (CHAR_BIT): Remove, since we assume C89.
115416         Include <stdint.h> if available, as per current Autoconf CVS advice.
115418 2004-03-31  Jim Meyering  <jim@meyering.net>
115420         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
115421         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
115422         * m4/xalloc.m4: Likewise.
115424 2004-03-30  Paul Eggert  <eggert@twinsun.com>
115426         Merge from coreutils.
115428         * m4/inttostr.m4: New file.
115429         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
115430         Require AM_STDBOOL_H and gl_TIMESPEC instead.
115431         Require gl_CLOCK_TIME.
115432         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
115434 2004-03-30  Paul Eggert  <eggert@twinsun.com>
115436         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
115437         not bool, to be more consistent with Unix conventions.
115438         Suggested by Bruno Haible.
115440         Merge from coreutils.
115442         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
115443         * lib/umaxtostr.c: New files.
115445         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
115446         the usual <time.h> dance.
115447         (get_date): Change signature to support fractional time stamps.
115448         All callers changed.
115449         * lib/getdate.y: Include "getdate.h" first, as we can now
115450         assume C89 and don't need to worry about 'const'.
115451         Similarly, include "unlocked-io.h" near start, not in middle.
115452         Include <limits.h>.
115453         (textint.value): Use long int rather than int.
115454         (textint.digits): Use size_t rather than int.
115455         (BILLION, LOG10_BILLION): New constants.
115456         (parser_control): New member rel_ns.  Members day_ordinal,
115457         time_zone, month, day, hour, minutes, rel_year, rel_month,
115458         rel_day, rel_hour, rel_minutes, rel_seconds
115459         are now long int, not int.  Member seconds is now struct timespec,
115460         not int.  New member timespec_seen.  Members dates_seen, days_seen,
115461         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
115462         not int.
115463         (%union.intval): Now long int, not int.
115464         New member timespec.
115465         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
115466         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
115467         (spec): Now is a timespec or an item list.
115468         (timespec, items): New nonterminals.
115469         (time, rel, relunit, number, get_date):
115470         Add support for fractional seconds.
115471         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
115472         (gmtime, localtime, mktime): Remove decls; not needed with C89.
115473         (to_hour): First arg is now long int, not int.
115474         (to_year): Returns long int, not int.
115475         Don't treat year -70 like 70.
115476         (tm_diff): Returns long int, not int.
115477         (lookup_word): Use bool instead of int when appropriate.
115478         (yylex): Use size_t for count, not int.
115479         Detect overflow when parsing large integer constants.
115480         Add support for fractions.
115481         (get_date): Make pointers 'const' if possible.
115482         Use more-portable code to detect integer overflow.
115483         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
115484         Don't use ctime; it's not reliable if the year has >4 digits.
115486         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
115487         This is for compatibility with BSD.
115489         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
115490         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
115491         From coreutils' system.h.
115493         * lib/userspec.c: Don't include "posixver.h".
115494         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
115495         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
115496         compatible extension.  Simplify code by removing a boolean int
115497         that was always nonzero if a string was nonnull.
115499 2004-03-30  Jim Meyering  <jim@meyering.net>
115501         Merge from coreutils.
115503         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
115504         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
115505         on some systems one must include <grp.h> before it.
115506         Reported by Christian Krackowizer.
115508 2004-03-30  Jim Meyering  <jim@meyering.net>
115510         Merge from coreutils.
115512         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
115514         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
115515         an empty input stream.
115517         * lib/readtokens.c: Include <stdbool.h>.
115518         (readtoken): Use `size_t' rather than int/long.
115519         All callers adjusted.
115520         Use `bool' rather than `int' where appropriate.
115521         Use memset rather than an explicit loop.
115522         Use x2nrealloc rather than xrealloc.
115523         Allow the use of `\0' as a delimiter.
115524         (readtokens): Likewise.
115525         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
115527 2004-03-30  Jim Meyering  <jim@meyering.net>
115529         * m4/realloc.m4: Remove file, since now it does no more than
115530         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
115531         the `configure.ac' section of module/realloc.
115532         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
115534 2004-03-30  Bruno Haible  <bruno@clisp.org>
115536         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
115537         nonnull.
115539 2004-03-29  Paul Eggert  <eggert@twinsun.com>
115541         Merge changes to getloadavg.c from coreutils and Emacs.
115543         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
115544         Define to an expression, not to the empty string.
115545         Include cloexec.h and xalloc.h.
115546         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
115547         Use set_cloexec_flag rather than rolling our own.
115548         * lib/cloexec.c, lib/cloexec.h: New files.
115550 2004-03-29  Paul Eggert  <eggert@twinsun.com>
115552         * m4/cloexec.m4: New file.
115554 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115556         * lib/getopt.h: Sync with libc CVS.
115558 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115559             Bruno Haible  <bruno@clisp.org>
115561         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
115562         mbswidth.
115564 2004-03-18  Paul Eggert  <eggert@twinsun.com>
115565             Bruno Haible  <bruno@clisp.org>
115567         * lib/mbswidth.h: Include <wchar.h> only if
115568         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
115569         <wchar.h>.
115570         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
115572 2004-03-09  Paul Eggert  <eggert@twinsun.com>
115574         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
115575         Sync with libc CVS.
115576         * lib/getopt_int.h: New file, also synced from libc.
115578 2004-03-09  Paul Eggert  <eggert@twinsun.com>
115580         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
115581         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
115582         Bring back getopt.c, getopt.h, getopt1.c.
115584 2004-03-07  Paul Eggert  <eggert@twinsun.com>
115586         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
115587         All uses changed.  Check for sa_sigaction member; this fixes
115588         a bug first reported by Jason Andrade in
115589         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
115591 2004-03-07  Paul Eggert  <eggert@twinsun.com>
115593         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
115594         '#if' expressions.  Unlike the code it replaces, it does not
115595         depend on (defined _SC_PAGESIZE).  However, it does depend on
115596         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
115597         first reported by Jason Andrade in
115598         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
115600 2004-02-25  Simon Josefsson  <jas@extundo.com>
115602         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
115604 2004-02-25  Simon Josefsson  <jas@extundo.com>
115606         * lib/strdup.h: New file.
115607         * lib/strdup.c: Include it.
115608         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
115609         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
115611 2004-02-23  Karl Berry  <karl@gnu.org>
115613         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
115614         (from fencepost.gnu.org:/gd/gnuorg).
115616 2004-02-23  Karl Berry  <karl@gnu.org>
115618         * config/srclistvars.sh (GNUORG) [karl]: redefine.
115619         * config/srclist.txt: add maintain/standards documents.
115621 2004-02-18  Bruno Haible  <bruno@clisp.org>
115623         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
115624         Reported by Derek Robert Price <derek@ximbiot.com>.
115626 2004-02-16  Karl Berry  <karl@gnu.org>
115628         * config/mkinstalldirs, install-sh: update from automake.
115630 2004-02-06  Karl Berry  <karl@gnu.org>
115632         * m4/po.m4: update from gettext 0.14.1.
115634 2004-02-06  Karl Berry  <karl@gnu.org>
115636         * lib/config.charset: update from gettext 0.14.1.
115638 2004-02-05  Paul Eggert  <eggert@twinsun.com>
115640         Add comments and code, prompted by suggestions from Bruno Haible
115641         for sh-quote.
115642         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
115643         describing the enum quoting_style values.
115644         * lib/quotearg.c (quotearg_alloc): New function.
115645         (quotearg_buffer_restyled): Treat lone { and } as special.
115646         Treat = as special.  Work around bug with older shells
115647         that "see" a '\' that is really the 2nd byte of a multibyte char.
115648         Quote empty string with shell_quoting_style.
115650 2004-02-03  Bruno Haible  <bruno@clisp.org>
115652         * m4/pipe.m4: New file, from GNU gettext.
115654 2004-02-03  Bruno Haible  <bruno@clisp.org>
115656         * lib/pipe.h: New file, from GNU gettext.
115657         * lib/pipe.c: New file, from GNU gettext.
115659 2004-01-27  Bruno Haible  <bruno@clisp.org>
115661         * m4/execute.m4: New file, from GNU gettext.
115663 2004-01-27  Bruno Haible  <bruno@clisp.org>
115665         * lib/execute.h: New file, from GNU gettext.
115666         * lib/execute.c: New file, from GNU gettext.
115667         * lib/w32spawn.h: New file, from GNU gettext.
115669 2004-01-24  Paul Eggert  <eggert@twinsun.com>
115671         Merge from diffutils.
115673         * lib/file-type.c (file_type): Add typed memory objects.
115674         * lib/file-type.h (S_TYPEISTMO): New macro.
115676         * lib/c-stack.h (c_stack_action): Remove argv argument.
115677         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
115678         (die): Don't calculate message unless segv_action returns.
115679         (get_stack_location, min_address_from_argv, max_address_from_argv,
115680         volatile stack_base, volatile_stack_size): Remove.
115681         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
115682         that every segmentation violation is a stack overflow.  (Ouch!)
115683         See Debian bug 136249 (still outstanding) for more info about why
115684         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
115686 2004-01-24  Paul Eggert  <eggert@twinsun.com>
115688         Exit-status fix from coreutils.
115690         Use exit_failure consistently in place of EXIT_FAILURE,
115691         so that program exit statuses are consistent on failure.
115693         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
115694         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
115695         * lib/argmatch.h: Comment fix to match the above.
115696         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
115697         Now a macro referring to exit_failure, instead of a separate
115698         variable.  Include "exitfail.h" to get it.
115699         * lib/xstrtol.h: Include "exitfail.h".
115700         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
115702         * lib/long-options.c (parse_long_options): Use prototype
115703         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
115704         for clarity.
115706 2004-01-21  Jim Meyering  <jim@meyering.net>
115708         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
115709         so as not to conflict with a different-sized __mktime_internal
115710         function in GNU libc.
115711         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
115712         Problem building statically-linked `ls' reported by Michael Brunnbauer.
115714 2004-01-20  Karl Berry  <karl@gnu.org>
115716         * config/config.guess: update from config.
115718         * config/srclistvars.sh: GNUWWWLICENSES for karl.
115720 2004-01-20  Bruno Haible  <bruno@clisp.org>
115722         Safer stack allocation.
115723         * lib/setenv.c: Include allocsa.h.
115724         (alloca): Remove fallback definition.
115725         (freea): Remove macro.
115726         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
115727         instead of freea.
115729 2004-01-20  Bruno Haible  <bruno@clisp.org>
115731         * m4/eealloc.m4: New file, from GNU gettext.
115733 2004-01-20  Bruno Haible  <bruno@clisp.org>
115735         * m4/allocsa.m4: New file, from GNU gettext.
115737 2004-01-20  Bruno Haible  <bruno@clisp.org>
115739         * lib/xallocsa.h: New file, from GNU gettext.
115740         * lib/xallocsa.c: New file, from GNU gettext.
115742 2004-01-20  Bruno Haible  <bruno@clisp.org>
115744         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
115746 2004-01-20  Bruno Haible  <bruno@clisp.org>
115748         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
115749         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
115750         specially.
115752 2004-01-20  Bruno Haible  <bruno@clisp.org>
115754         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
115755         patch.
115757 2004-01-20  Bruno Haible  <bruno@clisp.org>
115759         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
115761 2004-01-20  Bruno Haible  <bruno@clisp.org>
115763         * lib/eealloc.h: New file.
115765 2004-01-20  Bruno Haible  <bruno@clisp.org>
115767         * lib/binary-io.h: Avoid warnings on Cygwin.
115769 2004-01-20  Bruno Haible  <bruno@clisp.org>
115771         * lib/allocsa.h: New file, from GNU gettext.
115772         * lib/allocsa.c: New file, from GNU gettext.
115774 2004-01-18  Karl Berry  <karl@gnu.org>
115776         * doc/gpl.texi, doc/lgpl.texi: new files.
115778 2004-01-18  Karl Berry  <karl@gnu.org>
115780         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
115781         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
115783 2004-01-15  Paul Eggert  <eggert@twinsun.com>
115785         Merge from coreutils.
115787         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
115788         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
115789         (gl_DEFAULT_POSIX2_VERSION): Move
115790         the documentation from 'configure' into 'config.hin',
115791         so that 'configure --help' isn't burdened by it and
115792         we don't have to worry about its formatting there.
115793         Reword the documentation so that it's more succinct
115794         and can be run together into a single paragraph.
115795         * m4/same.m4 (gl_SAME): Check for pathconf.
115797 2004-01-15  Paul Eggert  <eggert@twinsun.com>
115799         Merge from coreutils.
115801         * lib/posixver.c: Include posixver.h.
115803         * lib/same.c: Include <stdbool.h>, <limits.h>.
115804         (_POSIX_NAME_MAX): Define if not defined.
115805         (MIN): New macro.
115806         (same_name): If file names are silently truncated, report
115807         that the file names are the same if they are the same after
115808         the silent truncation.
115810         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
115811         conversion function.
115812         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
115813         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
115814         longer needed.
115816 2004-01-15  Jim Meyering  <jim@meyering.net>
115818         Merge from coreutils.
115820         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
115821         if no library is required.
115822         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
115823         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
115824         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
115825         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
115826         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
115827         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
115828         value, $ac_cv_search_crypt, if it's "none required".
115829         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
115830         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
115831         not gl_FUNC_GETLOADAVG.
115832         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
115833         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
115835 2004-01-15  Jim Meyering  <jim@meyering.net>
115837         Merge from coreutils.
115839         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
115840         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
115841         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
115843         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
115844         optional configure-time default.
115846         * lib/version-etc.c (version_etc_copyright): Update copyright date.
115848         * lib/xreadlink.c (xreadlink): Correct outdated comment.
115850 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
115852         Merge from coreutils.
115854         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
115855         value, $ac_cv_search_nanosleep, if it's "none required".
115857 2004-01-14  Paul Eggert  <eggert@twinsun.com>
115859         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
115860         with like-named macro in fnmatch.c.
115861         (EXT): Use an internal constant instead.
115863         Merge fnmatch patches from glibc.
115864         * lib/fnmatch.c (mbsinit): Remove define.
115865         Add libc_hidden_ver (__fnmatch, fnmatch).
115866         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
115867         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
115869 2004-01-14  Karl Berry  <karl@gnu.org>
115871         * config/install-sh: update from automake.
115873 2004-01-13  Karl Berry  <karl@gnu.org>
115875         * config/install-sh: update from automake.
115877 2004-01-09  Karl Berry  <karl@gnu.org>
115879         * config/install-sh: update from automake.
115881 2004-01-05  Karl Berry  <karl@gnu.org>
115883         * config/config.{sub,guess}: update from config.
115885 2003-12-31  Karl Berry  <karl@gnu.org>
115887         * config/depcomp: update from automake.
115889 2003-12-14  Karl Berry  <karl@gnu.org>
115891         * lib/config.charset: update from gettext-runtime.
115893 2003-12-03  Paul Eggert  <eggert@twinsun.com>
115895         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
115896         Bug reported by Alfred M. Szmidt.
115898 2003-12-03  Bruno Haible  <bruno@clisp.org>
115900         * m4/gettext.m4: Upgrade from gettext-0.13.
115901         * m4/po.m4: Upgrade from gettext-0.13.
115902         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
115903         * m4/intmax.m4: New file, from gettext-0.13.
115904         * m4/printf-posix.m4: New file, from gettext-0.13.
115906 2003-11-29  Karl Berry  <karl@gnu.org>
115908         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
115910 2003-11-25  Paul Eggert  <eggert@twinsun.com>
115911             Bruno Haible  <bruno@clisp.org>
115913         * lib/printf-parse.h: Don't include sys/types.h.
115914         (ARG_NONE): New macro.
115915         (char_directive): Change type of *arg_index fields to size_t.
115916         * lib/printf-parse.c: Don't include sys/types.h.
115917         (SSIZE_MAX): Remove macro.
115918         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
115919         Remove unnecessary overflow check.
115920         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
115921         fields.
115923 2003-11-25  Bruno Haible  <bruno@clisp.org>
115925         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
115927 2003-11-25  Bruno Haible  <bruno@clisp.org>
115929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
115930         gt_TYPE_SSIZE_T.
115932 2003-11-24  Paul Eggert  <eggert@twinsun.com>
115934         * modules/alloca: Remove dependency on xalloc.
115936 2003-11-24  Paul Eggert  <eggert@twinsun.com>
115938         * lib/alloca.c: Remove dependency on xalloc module.
115939         (xalloc_die): Remove.
115940         (memory_full) [!defined emacs]: New macro.
115941         [!defined emacs]: Don't include xalloc.h.
115942         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
115943         address arithmetic overflows.  Change datatypes a bit to avoid
115944         unnecessary casts.
115946 2003-11-22  Jim Meyering  <jim@meyering.net>
115948         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
115949         s/size/size_t/.
115951 2003-11-21  Karl Berry  <karl@gnu.org>
115953         * config/config.{sub,guess}: update from config.
115955 2003-11-18  Karl Berry  <karl@gnu.org>
115957         * config/config.{sub,guess}: update from config.
115959         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
115961 2003-11-17  Paul Eggert  <eggert@twinsun.com>
115963         * README: Mention that S+T cannot overflow if S is the size of
115964         an existing object and T is sufficiently small.
115966 2003-11-17  Jim Meyering  <jim@meyering.net>
115968         On systems without utime and without a utimes function capable of
115969         dealing with a NULL struct utimbuf* argument, this utime replacement
115970         could -- in unusual circumstances -- leak a file descriptor.
115971         * lib/utime.c: Include <unistd.h> and <errno.h>.
115972         (utime_null): Be sure to close `fd' and to preserve errno.
115973         Reported by Geoff Collyer via Arnold Robbins.
115975 2003-11-17  Bruno Haible  <bruno@clisp.org>
115977         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
115978         (Depends-on): Add xsize.
115980 2003-11-17  Bruno Haible  <bruno@clisp.org>
115982         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
115984 2003-11-17  Bruno Haible  <bruno@clisp.org>
115986         * lib/vasnprintf.c (alloca): Remove fallback definition.
115987         (freea): Remove definition.
115988         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
115989         Reported by Paul Eggert.
115991 2003-11-16  Paul Eggert  <eggert@twinsun.com>
115992             Bruno Haible  <bruno@clisp.org>
115994         Protect against address arithmetic overflow.
115995         * lib/printf-args.h: Include stddef.h.
115996         (arguments): Change type of field 'count' to size_t.
115997         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
115998         'unsigned int' where appropriate.
115999         * lib/printf-parse.h: Include sys/types.h.
116000         (char_directive): Change type of *arg_index fields to ssize_t.
116001         (char_directives): Change type of fields 'count', max_*_length to
116002         size_t.
116003         * lib/printf-parse.c: Include sys/types.h and xsize.h.
116004         (SSIZE_MAX): Define fallback value.
116005         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
116006         instead of 'int' where appropriate. Check a_allocated, d_allocated
116007         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
116008         * lib/vasnprintf.c: Include xsize.h.
116009         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
116010         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
116011         overflow. Avoid wraparound when converting a width or precision from
116012         decimal to binary.
116014 2003-11-16  Bruno Haible  <bruno@clisp.org>
116016         Update from GNU gettext.
116017         * lib/printf-parse.c: Generalize to it can be compiled for wide
116018         strings.
116019         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
116020         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
116021         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
116022         SNPRINTF): New macros.
116023         Don't include <alloca.h> if the file is used inside libintl.
116024         (local_wcslen): New function, for Solaris 2.5.1.
116025         (VASNPRINTF): Use it instead of wcslen.
116027 2003-11-16  Bruno Haible  <bruno@clisp.org>
116029         * lib/xsize.h (xmax): New function.
116030         (xsum, xsum3, xsum4): Declare as "pure" functions.
116032 2003-11-12  Paul Eggert  <eggert@twinsun.com>
116034         * modules/xalloc (Files): Undo latest change, since xalloc.h
116035         no longer needs SIZE_MAX or PTRDIFF_MAX.
116037 2003-11-12  Paul Eggert  <eggert@twinsun.com>
116039         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
116040         gl_PTRDIFF_MAX.
116042 2003-11-12  Paul Eggert  <eggert@twinsun.com>
116044         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
116045         "return", to pacify some unknown compiler.  Problem reported
116046         by Joerg Schilling.
116048 2003-11-12  Paul Eggert  <eggert@twinsun.com>
116050         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
116051         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
116052         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
116053         heuristic is just as accurate as far as we know, and it removes a
116054         dependency on size_max.m4 and ptrdiff_max.m4.
116056 2003-11-11  Bruno Haible  <bruno@clisp.org>
116058         * modules/xsize (Files): Add m4/size_max.m4.
116059         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
116061 2003-11-11  Bruno Haible  <bruno@clisp.org>
116063         * m4/size_max.m4: New file.
116064         * m4/ptrdiff_max.m4: New file.
116065         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
116066         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
116067         (gl_XALLOC): Invoke it.
116069 2003-11-11  Bruno Haible  <bruno@clisp.org>
116071         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
116072         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
116073         defined.
116075 2003-11-10  Paul Eggert  <eggert@twinsun.com>
116077         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
116078         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
116079         rejected some allocations of exactly SIZE_MAX - 2 bytes.
116080         From Bruno Haible.
116081         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
116082         not (size_t) -1, since it's defined here.
116084 2003-11-09  Karl Berry  <karl@gnu.org>
116086         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
116088 2003-11-06  Paul Eggert  <eggert@twinsun.com>
116090         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
116091         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
116092         Reject sizes of exactly SIZE_MAX bytes.
116093         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
116094         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
116096 2003-11-05  Bruno Haible  <bruno@clisp.org>
116098         * lib/xsize.h: Include limits.h, to avoid a possible collision with
116099         SIZE_MAX defined in <limits.h> on Solaris.
116101 2003-11-04  Jim Meyering  <jim@meyering.net>
116103         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
116104         variable names, rather than @VAR@.
116105         * modules/poll: Likewise.
116107 2003-11-04  Bruno Haible  <bruno@clisp.org>
116109         * modules/xsize: New file.
116110         * modules/linebreak: Depend on xsize.
116111         * MODULES.html.sh (func_all_modules): Add xsize.
116113 2003-11-04  Bruno Haible  <bruno@clisp.org>
116115         * m4/xsize.m4: New file.
116117 2003-11-04  Bruno Haible  <bruno@clisp.org>
116119         * lib/xsize.h: New file.
116120         * lib/linebreak.c: Include xsize.h.
116121         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
116122         argument for overflow.
116123         Suggested by Paul Eggert.
116125 2003-11-03  Karl Berry  <karl@gnu.org>
116127         * config/config.{guess,sub}: update from config.
116129 2003-11-03  Jim Meyering  <jim@meyering.net>
116131         * modules/userspec (lib_SOURCES): Add userspec.h.
116132         (Include): Add "userspec.h".
116133         Improve description.
116135 2003-11-03  Jim Meyering  <jim@meyering.net>
116137         * lib/userspec.c: Include "userspec.h".
116138         * lib/userspec.h: New file.
116140 2003-11-03  Bruno Haible  <bruno@clisp.org>
116142         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
116144 2003-11-03  Bruno Haible  <bruno@clisp.org>
116146         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
116147         available, to avoid (extremely rare) race condition.
116148         Suggested by Paul Eggert.
116150 2003-11-02  Karl Berry  <karl@gnu.org>
116152         * config/srclist.txt (vasprintf.c): sync broken, sigh.
116154 2003-10-31  Paul Eggert  <eggert@twinsun.com>
116156         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
116157         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
116158         (read_filesystem_list): Set and use me_type_malloced.
116159         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
116160         whatever the type happens to be), for brevity and consistency.
116161         Check for size calculation overflow on Alphas running OSF/1.
116163 2003-10-31  Jim Meyering  <jim@meyering.net>
116165         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
116167         * lib/linebuffer.c: Include <string.h> for declaration of memset.
116169 2003-10-30  Paul Eggert  <eggert@twinsun.com>
116170             Bruno Haible  <bruno@clisp.org>
116172         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
116173         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
116175 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
116177         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
116178         netbsd*-gnu*.  Suggested by Robert Millan.
116180 2003-10-29  Paul Eggert  <eggert@twinsun.com>
116182         * modules/group-member: Depend on stdbool.
116184 2003-10-29  Paul Eggert  <eggert@twinsun.com>
116186         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
116188 2003-10-29  Paul Eggert  <eggert@twinsun.com>
116190         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
116191         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
116192         after the 'gnu' in these cases.  This fixes some bugs in the
116193         previous change, and is based on suggestions by Robert Millan.
116195 2003-10-29  Paul Eggert  <eggert@twinsun.com>
116197         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
116198         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
116199         no longer needed.
116200         * lib/quotearg.c (quotearg_n_options): Use it.
116201         * lib/group-member.c: Include <stdbool.h>.
116202         (free_group_info): Arg is now const *; don't free arg.
116203         (get_group_info): Now returns bool and accepts struct group_info *,
116204         rather than returning a malloc'ed struct group_info *.
116205         All uses changed.  Check for overflow in internal size calculation.
116207         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
116208         rather than xmalloc/xrealloc.
116209         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
116210         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
116211         conformance bug: the old code used a pointer after freeing the
116212         storage that it addressed.
116213         * lib/hash.c (hash_initialize): Simplify the code by using
116214         xalloc_oversized rather than doing it by hand.
116215         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
116216         the buffer preserved.  Use free and xmalloc instead.
116217         * lib/quotearg.c (quotearg_n_options): Likewise.
116218         Use a simpler test for size overflow.  Don't use xalloc_oversized
116219         because unsigned int might be wider than size_t (!); this suggests
116220         that we should switch from unsigned int to size_t for slot numbers.
116222 2003-10-28  Paul Eggert  <eggert@twinsun.com>
116224         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
116225         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
116226         NetBSD kernels.  Requested by Richard Stallman.
116228 2003-10-27  Paul Eggert  <eggert@twinsun.com>
116230         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
116231         to allocate the returned structure.  Do not allocate a subarray,
116232         as x2nrealloc will do that.
116233         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
116234         instead of xnrealloc.
116235         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
116237 2003-10-27  Bruno Haible  <bruno@clisp.org>
116239         * lib/stdbool_.h: Better support for BeOS.
116241 2003-10-26  Paul Eggert  <eggert@twinsun.com>
116243         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
116244         now uses inline.
116246 2003-10-26  Paul Eggert  <eggert@twinsun.com>
116248         * lib/xalloc.h (xalloc_oversized): New static inline function, for
116249         callers that want to do their own size-overflow checking.  Include
116250         <stdbool.h>, since xalloc_oversized returns bool.
116251         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
116252         to use xalloc_oversized.
116254         Add two functions x2realloc, x2nrealloc, for programs that grow
116255         arrays dynamically by doubling their sizes.
116256         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
116257         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
116258         New functions.
116260         Port to C99 semantics for 'inline' of external functions.
116261         Bug reported by Bruno Haible.
116262         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
116263         with the old contents of xnmalloc.
116264         (xnmalloc, xmalloc): Use it.
116265         (xnrealloc_inline): New static inline function,
116266         with the old contents of xnrealloc.
116267         (xnrealloc, xrealloc): Use it.
116269         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
116270         that.
116272 2003-10-26  Karl Berry  <karl@gnu.org>
116274         * config/srclist.txt (COPYING.DOC): no longer available from
116275         /gd/gnuorg; don't know where the ultimate source is.
116277 2003-10-25  Paul Eggert  <eggert@twinsun.com>
116279         Fix several address-calculation bugs in the hash modules,
116280         plus some minor code cleanup.
116282         * lib/hash.h: Include <stdbool.h>, for bool.
116283         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
116284         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
116285         hash_get_n_entries, hash_get_max_bucket_length,
116286         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
116287         hash_rehash): Use size_t rather than unsigned.
116288         * lib/hash.c (struct hash_table, hash_get_n_buckets,
116289         hash_get_n_buckets_used, hash_get_n_entries,
116290         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
116291         hash_get_entries, hash_do_for_each, hash_string, is_prime,
116292         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
116293         Likewise.
116294         (SIZE_MAX): Define if not defined.
116295         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
116296         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
116297         hash_print):
116298         Use const * when possible.
116299         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
116300         (check_tuning): Fix bug: if tuning parameters were very close to
116301         0 or 1, rounding errors could have caused subscript violations.
116302         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
116303         (hash_initialize): Add 'fail:' label
116304         to free table and return NULL, and use it to simplify code.
116305         Use calloc rather than clearing the storage ourself.
116306         (hash_initialize, hash_rehash): Check for arithmetic overflow in
116307         buffer size calculations.
116308         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
116309         Include <stddef.h>, for size_t.
116310         * lib/hash-pjw.c (hash_pjw): Likewise.
116311         Switch to method described by Bruno Haible.
116312         Include <limits.h>, for CHAR_BIT.
116313         (SIZE_BITS): New macro.
116315 2003-10-23  Paul Eggert  <eggert@twinsun.com>
116317         * m4/getline.m4 (AM_FUNC_GETLINE):
116318         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
116319         hosts.  Problem reported by Derek Robert Price in
116320         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
116321         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
116322         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
116324 2003-10-21  Paul Eggert  <eggert@twinsun.com>
116326         * lib/getndelim2.c (getndelim2): When size calculation overflows,
116327         ceiling the allocation at NMAX bytes rather than silently
116328         discarding input bytes before NMAX is reached.  This makes
116329         a difference only if NMAX exceeds SIZE_MAX / 2.
116331         * lib/obstack.c: Merge from glibc.
116332         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
116333         Add libc_hidden_def (_obstack_newchunk).
116334         (_obstack_free) [! defined _LIBC]: Remove.
116335         [defined _LIBC]: Make a strong alias from obstack_free, rather than
116336         a clone of the function body.
116337         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
116338         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
116340         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
116341         glibc.
116342         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
116343         arg to memcpy.
116345         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
116346         (obstack_ptr_grow_fast, obstack_int_grow_fast):
116347         Don't use lvalue casts, as GCC plans to remove support for them
116348         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
116349         was also present in the non-GCC version, indicating that this
116350         code had always been buggy and had never been widely used.
116351         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
116352         Use the fast variant of each macro, rather than copying the
116353         definiens of the fast variant; that way, we'll be more likely to
116354         catch future bugs in the fast variants.
116356 2003-10-20  Bruno Haible  <bruno@clisp.org>
116358         * modules/wait-process: New file.
116359         * MODULES.html.sh (func_all_modules): Add wait-process.
116361 2003-10-20  Bruno Haible  <bruno@clisp.org>
116363         * m4/wait-process.m4: New file.
116365 2003-10-20  Bruno Haible  <bruno@clisp.org>
116367         * lib/wait-process.h: New file, from GNU gettext.
116368         * lib/wait-process.c: New file, from GNU gettext.
116370 2003-10-19  Jim Meyering  <jim@meyering.net>
116372         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
116373         HPUX 10.20.
116375 2003-10-18  Karl Berry  <karl@gnu.org>
116377         * config/config.guess: update from config.
116379 2003-10-16  Paul Eggert  <eggert@twinsun.com>
116381         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
116382         (getgroups): First arg is int, not size_t.
116383         Don't let 'free' mangle errno.
116385 2003-10-16  Paul Eggert  <eggert@twinsun.com>
116387         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
116389 2003-10-16  Karl Berry  <karl@gnu.org>
116391         * config/config.{guess,sub}: update from config.
116393 2003-10-16  Jim Meyering  <jim@meyering.net>
116395         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
116396         memcpy.
116398 2003-10-15  Paul Eggert  <eggert@twinsun.com>
116400         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
116401         (SIZE_MAX): Remove.
116402         (new_exclude, add_exclude_file): Initial size no longer needs to
116403         be a power of 2.
116404         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
116405         our own address arithmetic overflow checking.
116407         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
116408         (fnmatch): Do not alloca more than 2000 wide characters;
116409         instead, use malloc for large buffers.
116410         Check for address arithmetic overflow, and return -1
116411         with errno set to ENOMEM in that case.
116412         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
116413         (NEW_PATTERN): Do not alloca more than 8000 bytes;
116414         instead, return -1.  Check for address arithmetic overflow.
116416 2003-10-14  Paul Eggert  <eggert@twinsun.com>
116418         Handle invalid suffixes and overflow independently, so that
116419         callers can treat them independently as needed.  Fix some bugs in
116420         suffix handling, e.g., "100k@" was not diagnosed as an invalid
116421         suffix for a human-readable blocksize.  The major caller-visible
116422         change is the addition of a new
116423         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
116424         that both overflow and suffix chars were found.
116426         * lib/human.c (humblock): Don't check separately for invalid suffix
116427         char; that is xstrtoumax's job (now that its bug is fixed).
116428         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
116429         INTMAX_MAX]: New macros.
116430         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
116431         TYPE_MAXIMUM): New macros.
116432         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
116433         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
116434         if overflow occurs, as it's what __strtol does and it's more useful
116435         in practice.
116436         (__xstrtol): If __strtol reports some error other than ERANGE,
116437         reflect it to the caller as LONGINT_INVALID.  If it reports
116438         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
116439         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
116440         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
116441         value.
116442         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
116443         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
116444         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
116445         [defined UINTMAX_MAX]: New macros.
116447 2003-10-14  Bruno Haible  <bruno@clisp.org>
116449         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
116451 2003-10-14  Bruno Haible  <bruno@clisp.org>
116453         * m4/sig_atomic_t: New file, from GNU gettext.
116454         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
116456 2003-10-14  Bruno Haible  <bruno@clisp.org>
116458         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
116459         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
116460         Also use volatile where needed.
116462 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116464         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
116465         Change maintainer from Bruno Haible to 'all'.
116467 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116469         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
116471 2003-10-12  Paul Eggert  <eggert@twinsun.com>
116473         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
116474         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
116475         and define in terms of the other primitives.
116476         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
116477         (SIZE_MAX): Define if not already defined.
116478         (array_size_overflow): New function.
116479         (xalloc_die): Abort instead of exiting if 'error' returns.
116480         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
116481         (xmalloc, xrealloc): Use them.
116482         (xcalloc): Check for address arithmetic overflow.
116483         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
116484         a bit faster than strcpy.
116486 2003-10-10  Simon Josefsson  <jas@extundo.com>
116488         * modules/argp (Depends-on): Add restrict and strcase.
116490 2003-10-10  Simon Josefsson  <jas@extundo.com>
116492         * m4/argp.m4: Add AC_C_INLINE.
116494 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116496         Merge getpass from libc, plus a few fixes.
116498         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
116499         Include <stdbool.h>.
116500         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
116501         __fsetlocking to empty.
116502         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
116503         do include <bits/libc-lock.h>.
116504         Do not include <fcntl.h>; not needed.
116505         [_LIBC]: Include <wchar.h>.
116506         (NOTCANCEL_MODE): New macro.
116507         (flockfile, funlockfile) [_LIBC]: New macros.
116508         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
116509         [!_LIBC]: New macros.
116510         (call_fclose): New function.
116511         (getpass): Use it.  Save tty stream separately; this simplifies the
116512         code and makes it more reliable if stdin happens to equal stdout.
116513         Invoke __fsetlocking on tty.
116514         Handle thread cancellation if needed.
116515         Namespace cleanup (use __tcgetattr, __getline).
116516         Use bool for Booleans.
116517         [USE_IN_LIBIO]: Handle wide streams.
116518         [!_LIBC]: Unconditionally do the fseek, since we don't know what
116519         stream might go where.
116521         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
116522         doesn't have to include <stdio.h> before us.
116523         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
116524         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
116525         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
116526         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
116527         if not declared, so that we can use getpass.c code from libc without
116528         rewriting it.
116529         (flockfile, ftrylockfile, funlockfile): New macros.
116531 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116533         * modules/getpass: Depend on stdbool.
116535 2003-10-08  Paul Eggert  <eggert@twinsun.com>
116537         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
116539 2003-10-07  Karl Berry  <karl@gnu.org>
116541         * config/config.{guess,sub}: update from config.
116543 2003-10-06  Jim Meyering  <jim@meyering.net>
116544             Bruno Haible  <bruno@clisp.org>
116546         This lets translators provide better translations for the
116547         "Written by ..." part of --version output.
116548         * lib/version-etc.h: Include stdarg.h.
116549         (version_etc_copyright): Declare as readonly.
116550         (version_etc): Make this function variadic with a NULL-terminated list
116551         of author name strings.
116552         (version_etc_va): New declaration.
116553         * lib/version-etc.c: Include stdarg.h, stdlib.h.
116554         (version_etc_copyright): Declare as readonly.
116555         (version_etc_va): New function. Provide a different translatable string
116556         for each possible number of authors < 10. Abbreviate when there are 10
116557         authors or more.
116558         (version_etc): Make this function variadic. Call version_etc_va.
116559         Suggestion from Gary V. Vaughan.
116561         * lib/long-options.h (parse_long_options): Change prototype: the
116562         authors string is moved to the end and becomes variadic.
116563         * lib/long-options.c: Include stdarg.h.
116564         (parse_long_options): Make this function variadic, too.
116565         Call version_etc_va, not version_etc.
116567 2003-10-06  Bruno Haible  <bruno@clisp.org>
116569         * modules/version-etc-2: Remove file.
116570         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
116572 2003-10-06  Bruno Haible  <bruno@clisp.org>
116574         * modules/fatal-signal: New file.
116575         * MODULES.html.sh (func_all_modules): Add fatal-signal.
116577 2003-10-06  Bruno Haible  <bruno@clisp.org>
116579         * m4/fatal-signal.m4: New file.
116580         * m4/signalblocking.m4: New file, from GNU gettext.
116582 2003-10-06  Bruno Haible  <bruno@clisp.org>
116584         * lib/version-etc-2.h: Remove file.
116585         * lib/version-etc-2.c: Remove file.
116587 2003-10-06  Bruno Haible  <bruno@clisp.org>
116589         * lib/fatal-signal.h: New file, from GNU gettext.
116590         * lib/fatal-signal.c: New file, from GNU gettext.
116592 2003-10-05  Paul Eggert  <eggert@twinsun.com>
116594         * README: Rework advice for preventing empty .o files.
116595         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
116596         not <sys/types.h>.
116598 2003-10-04  Karl Berry  <karl@gnu.org>
116600         * lib/argp*: update from libc.
116602 2003-10-04  Karl Berry  <karl@gnu.org>
116604         * config/config.{guess,sub}: update from config.
116606 2003-10-02  Bruno Haible  <bruno@clisp.org>
116608         * modules/lchown (Include): Add lchown.h.
116609         * modules/time_r (Include): Use "..." syntax.
116610         * modules/xgetdomainname (Include): Add xgetdomainname.h.
116612 2003-10-01  Simon Josefsson  <jas@extundo.com>
116614         * MODULES.html.sh (func_all_modules): Move gethostname from section
116615         'based on' to section 'lacking' POSIX:2001.
116617 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
116619         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
116620         to output mode on the same stream.
116622 2003-09-29  Paul Eggert  <eggert@twinsun.com>
116624         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
116625         Fix arg typo in previous patch.
116627 2003-09-28  Jim Meyering  <jim@meyering.net>
116629         * lib/error.c: Correct cpp indentation.
116631 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116633         * modules/free: New file.
116635 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116637         * m4/free.m4: New file.
116639 2003-09-27  Paul Eggert  <eggert@twinsun.com>
116641         * lib/minmax.h (MIN, MAX)
116642         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
116643         Omit the special code that used __typeof__, since we worry that
116644         it could be more trouble than it's worth.  See:
116645         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
116646         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
116648         * lib/free.c: New file.
116650 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
116652         Trivial fixes to Makefile.am parts of module listings.
116653         * modules/strstr: Append strstr.h to lib_SOURCES.
116654         * modules/strcase: Likewise, for strcase.h.
116656 2003-09-27  Karl Berry  <karl@gnu.org>
116658         * config/mkinstalldirs: update from automake.
116660 2003-09-26  Paul Eggert  <eggert@twinsun.com>
116662         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
116663         (error_tail): Do not loop, reallocating temporary buffer, since
116664         the output cannot contain more wide characters than the input
116665         contains bytes, the size must be big enough already.  This avoids
116666         one potential size overflow calculation.  Check for size overflow
116667         when calculating temporary buffer size.  Free temporary buffer
116668         when done, if it was allocated with malloc; this plugs a memory
116669         leak.  Remove casts from void * to pointers, that are no longer
116670         needed now that we're assuming C89 or better.
116672         Merge error changes from glibc.
116674         * lib/error.c, error.h: Update copyright notice header to match glibc.
116675         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
116676         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
116677         Disable cancellation while printing error.
116678         * lib/error.h: Prepend __ to parameter names.
116680 2003-09-26  Jim Meyering  <jim@meyering.net>
116682         * lib/error.c (error_tail): Move some declarations
116683         into inner scope where the local variables are used.
116685 2003-09-26  Bruno Haible  <bruno@clisp.org>
116687         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
116688         stpncpy().
116689         Don't define stpncpy through config.h; it's now done through stpncpy.h.
116691 2003-09-26  Bruno Haible  <bruno@clisp.org>
116693         * lib/stpncpy.h (gnu_stpncpy): New declaration.
116694         (stpncpy): Define as alias for gnu_stpncpy.
116695         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
116697 2003-09-25  Simon Josefsson  <jas@extundo.com>
116699         * lib/xgetdomainname.h: New file.
116700         * lib/xgetdomainname.c: New file.
116702 2003-09-25  Simon Josefsson  <jas@extundo.com>
116703             Bruno Haible  <bruno@clisp.org>
116705         * modules/getdomainname: New file.
116706         * modules/xgetdomainname: New file.
116707         * MODULES.html.sh (func_all_modules): Add getdomainname,
116708         xgetdomainname.
116710 2003-09-25  Simon Josefsson  <jas@extundo.com>
116711             Bruno Haible  <bruno@clisp.org>
116713         * m4/getdomainname.m4: New file.
116715 2003-09-25  Simon Josefsson  <jas@extundo.com>
116716             Bruno Haible  <bruno@clisp.org>
116718         * lib/getdomainname.h: New file.
116719         * lib/getdomainname.c: New file.
116721 2003-09-25  Karl Berry  <karl@gnu.org>
116723         * lib/argp-fmtstream.c, argp-help.c: update from libc.
116725 2003-09-25  Karl Berry  <karl@gnu.org>
116727         * config/install-sh: update from automake.
116729 2003-09-25  Bruno Haible  <bruno@clisp.org>
116731         * modules/version-etc-2: New file, from modules/version-etc with
116732         modifications.
116733         * MODULES.html.sh (func_all_modules): Add version-etc-2.
116735 2003-09-25  Bruno Haible  <bruno@clisp.org>
116737         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
116738         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
116740 2003-09-24  Simon Josefsson  <jas@extundo.com>
116742         * modules/xgethostname: Add xgethostname.h.
116744 2003-09-24  Paul Eggert  <eggert@twinsun.com>
116746         * lib/linebuffer.c (freebuffer): Don't free the argument, just
116747         the buffer associated with the argument.  Bug reported by
116748         Simon Josefsson.
116750 2003-09-24  Paul Eggert  <eggert@twinsun.com>
116752         * README: Document assumptions that 'int' is at least 32 bits
116753         wide, that integer arithmetic is 2's complement without overflow,
116754         that there are no holes in integer values, that adding sizes of
116755         two nonoverlapping objects can't overflow, and that all-bits-zero
116756         yields scalar zero.  Fix spelling and capitalization typos.
116758 2003-09-19  Karl Berry  <karl@gnu.org>
116760         * lib/argp.h: update from libc.
116762 2003-09-17  Paul Eggert  <eggert@twinsun.com>
116764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
116765         to avoid spurious warnings like "AC_RUN_IFELSE was called before
116766         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
116768 2003-09-17  Paul Eggert  <eggert@twinsun.com>
116770         * gnulib-tool: Use "test -h", not "test -L", for portability
116771         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
116772         (tags_regexp): Remove, since \| doesn't conform to POSIX.
116773         (sed_extract_prog): Issue s commands one-by-one, rather than
116774         using \| in one s command.
116776 2003-09-16  Paul Eggert  <eggert@twinsun.com>
116778         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
116779         input error, instead of returning NULL the next time we are called
116780         (and therefore losing track of errno).
116782 2003-09-16  Bruno Haible  <bruno@clisp.org>
116784         * gnulib-tool (func_create_testdir): Warn about duplicated
116785         dependencies.
116787 2003-09-15  Paul Eggert  <eggert@twinsun.com>
116789         * modules/argmatch, modules/fatal, modules/obstack,
116790         modules/xalloc, modules/xgethostname: Sort dependencies by
116791         importance, not alphabetically.
116793 2003-09-15  Paul Eggert  <eggert@twinsun.com>
116795         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
116796         fails, so that the caller gets the proper errno.
116798         * lib/readutmp.c (read_utmp): Likewise.
116799         Check for fstat error.  Close stream and free storage
116800         when failing.
116802 2003-09-14  Karl Berry  <karl@gnu.org>
116804         * config/srclist.txt (strdup.c): disable for c89 changes.
116806 2003-09-14  Jim Meyering  <jim@meyering.net>
116808         * lib/getloadavg.c: Correct cpp indentation.
116809         * lib/strdup.c: Likewise.
116810         * lib/vasnprintf.c: Likewise.
116812 2003-09-14  Bruno Haible  <bruno@clisp.org>
116814         * modules/fwriteerror: New file.
116815         * MODULES.html.sh (func_all_modules): Add fwriteerror.
116817 2003-09-14  Bruno Haible  <bruno@clisp.org>
116819         * lib/fwriteerror.h: New file.
116820         * lib/fwriteerror.c: New file.
116822 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116824         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
116825         modules/xgethostname, modules/xalloc: Depend on exit.
116827 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116829         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
116831         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
116832         and AC_MINIX, too, so that their extensions are available.
116834         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
116835         This macro has been superseded by gl_BACKUPFILE.
116837         More patches to assume C89 or better.
116839         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
116841         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
116842         unconditionally.
116843         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
116844         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
116845         Include <string.h>, <stdlib.h> unconditionally.
116846         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
116847         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
116848         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
116849         headers or for string.h.
116850         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
116851         or strtoul.
116853         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
116854         headers.
116855         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
116856         * m4/userspec.m4 (gl_USERSPEC): Likewise.
116857         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
116858         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
116859         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116860         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
116861         memcpy, memset.
116862         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
116863         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
116864         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
116865         strtol.
116866         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
116867         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
116868         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
116869         strtoul.
116871 2003-09-12  Paul Eggert  <eggert@twinsun.com>
116873         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
116874         * lib/obstack.c [!defined _LIBC]: Likewise.
116875         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
116876         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
116877         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
116879         More changes to assume C89 or better.
116881         * lib/error.c (error_tail): Assume vprintf.
116883         * lib/argmatch.c (getenv): Remove decl.
116884         * lib/progreloc.c (get_full_program_name): Define via prototype.
116885         * lib/setenv.c (clearenv): Likewise.
116886         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
116887         needed.
116888         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
116889         (malloc, memcpy): Remove decls.
116890         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
116891         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
116892         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
116893         (memcpy): Remove macro.
116894         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
116895         (__P): Remove.  All uses removed.
116896         (PTR): Remove.  All uses changed to void *.
116897         (CHAR_BIT, NULL): Remove.
116898         (spaces, zeros, memset_space, memset_zero)
116899         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
116900         Remove.
116901         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
116902         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
116903         Define with prototype.
116904         Remove now-unnecessary prototype decl.
116905         (extra_args_spec): Assume ANSI C.  All uses changed.
116906         (extra_args_spec_iso): Remove.
116907         (my_strftime, emacs_strftimeu): Define via prototype.
116908         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
116909         unconditionally.
116910         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
116911         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
116912         (strtoul, strtol): Remove decls.
116913         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
116914         LONG_MAX): Remove.
116915         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
116916         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
116917         (LOCALE_PARAM_PROTO): New macro.
116918         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
116919         (INTERNAL (strtol), strtol): Define with a prototype.
116920         (PARAMS): Remove.  All uses removed.
116921         * lib/tempname.c: Include <string.h> unconditionally.
116922         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
116923         * lib/xgethostname.c (main): Define with a prototype.
116924         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
116925         Include <stdlib.h> unconditionally.
116926         (calloc, malloc, realloc, free): Remove decls.
116927         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
116928         Include <stdlib.h> unconditionally.  Sort include file names.
116929         (strtod): Remove.
116930         (xstrtod): Define with a prototype.
116931         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
116932         (strtol, strtoul): Remove decls.
116934 2003-09-11  Paul Eggert  <eggert@twinsun.com>
116936         More patches to assume C89 or better.
116937         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
116938         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
116939         string.h, memchr, STDC_HEADERS.
116941 2003-09-11  Paul Eggert  <eggert@twinsun.com>
116943         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
116944         Include <stdlib.h>, <string.h> unconditionally.
116945         Remove now-unnecessary cast to char *.
116946         * lib/strnlen.c: Include <string.h> unconditionally.
116947         * lib/yesno.c (yesno): Define with a prototype.
116949 2003-09-11  Bruno Haible  <bruno@clisp.org>
116951         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
116953 2003-09-10  Jim Meyering  <jim@meyering.net>
116955         * lib/error.c: Correct indentation of cpp directives.
116957 2003-09-10  Bruno Haible  <bruno@clisp.org>
116959         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
116960         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
116961         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
116962         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
116963         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
116964         <stdlib.h> and <string.h> checks.
116965         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
116966         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
116968 2003-09-10  Bruno Haible  <bruno@clisp.org>
116970         * lib/strcspn.c: Include <string.h> unconditionally.
116971         * lib/strpbrk.c: Include <string.h> unconditionally.
116972         * lib/strstr.c: Include <string.h> unconditionally.
116973         * lib/unicodeio.c: Include <string.h> unconditionally.
116974         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
116975         * lib/unsetenv.c: Likewise.
116976         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
116977         * lib/yesno.c: Include <stdlib.h> unconditionally.
116978         (rpmatch): Add prototype.
116980 2003-09-09  Paul Eggert  <eggert@twinsun.com>
116982         More patches to assume C89 or better.
116983         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
116984         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
116985         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
116986         or for string.h.
116987         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
116988         stdlib.h.
116989         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
116990         C headers.
116991         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
116992         string.h.
116993         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
116994         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
116995         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
116996         or for string.h.
116997         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
116998         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
116999         C headers.
117000         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
117001         memcpy.
117002         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
117003         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
117004         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
117005         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
117006         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
117007         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
117008         string.h, free.
117009         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
117010         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
117011         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
117012         C headers, or for string.h.
117013         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
117014         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
117015         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
117016         headers, memory.h, stdlib.h, string.h, strings.h.
117017         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
117018         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
117019         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
117020         strchr.
117021         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
117022         headers, memory.h, string.h.
117023         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
117024         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
117025         free.
117026         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
117027         headers.
117028         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
117029         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
117030         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
117031         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
117032         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
117034 2003-09-09  Paul Eggert  <eggert@twinsun.com>
117036         More K&R removal.
117038         * lib/acosl.c (main): Use a prototype.
117039         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
117040         tanl.c: Likewise.
117042         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
117044         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
117045         (getopt, etopt_long, getopt_long_only, _getopt_internal)
117046         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
117047         with a prototype.
117048         * lib/getopt.c (const): Remove macro.
117049         Include <string.h> unconditionally.
117050         (my_index): Remove; all uses changed to strchr.
117051         (strlen): Remove decl.
117052         (exchange): Remove forward decl; no longer needed.
117053         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
117054         Define with prototype.
117055         * lib/getopt1.c (const): Remove macro.
117056         (getopt_long, getopt_long_only, main): Define with prototype.
117058         * lib/getugroups.c: Include <string.h> unconditionally.
117060         * lib/getusershell.c: Include <stdlib.h> unconditionally.
117061         (getusershell, setusershell, endusershell, readname, main):
117062         Define with prototypes.
117064         * lib/group-member.c: Include group-member.h first.
117065         Include <stdlib.h> unconditionally.
117067         * lib/hard-locale.c: Include hard-locale.h first.
117068         Include <stdlib.h>, <string.h> unconditionally.
117070         * lib/hash.c (free, malloc): Remove decls.
117071         Include <stdlib.h> unconditionally.
117073         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
117074         (getenv): Do not declare.
117076         * lib/idcache.c: Include <string.h> unconditionally.
117078         * lib/long-options.c: Include long-options.h first, to test interface.
117079         Include <stdlib.h> unconditionally.
117081         * lib/makepath.c: Include makepath.h first, to test interface.
117082         Include <stdlib.h> and <string.h> unconditionally.
117084         * lib/linebuffer.c: Include <stdlib.h>.
117085         (free): Remove decl.
117087         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
117088         stddef.h. rpl_malloc returns void *, not char *.
117089         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
117090         prototype.
117092         * lib/md5.h: Include <limits.h> unconditionally.
117093         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
117094         (__P): Remove; all uses removed.
117095         * lib/md5.c: Include "md5.h" first.
117096         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
117097         md5_buffer, md5_process_bytes, md5_process_block):
117098         Define with prototypes.
117099         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
117100         * lib/sha.c: Include "sha.h" first.
117101         Include <stdlib.h>, <string.h> unconditionally.
117103         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
117104         * lib/memcmp.c (__ptr_t): Likewise.
117105         * lib/memrchr.c (__ptr_t): Likewise.
117106         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
117107         Include <string.h> unconditionally.
117108         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
117109         * lib/memchr.c: Include <stdlib.h> unconditionally.
117110         * lib/memchr.c (LONG_MAX): Remove.
117111         * lib/memrchr.c (LONG_MAX): Likewise.
117112         * lib/memchr.c (__memchr): Define via a prototype.
117113         * lib/memrchr.c (__memrchr): Likewise.
117114         * lib/memcmp.c (__P): Remove, and remove all uses.
117115         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
117116         Remove forward decls; no longer needed.
117117         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
117118         Use types required by C89 in prototype.
117120         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
117121         * lib/savedir.c: Likewise.
117122         * lib/mkdir.c (free): Remove decl.
117123         * lib/rmdir.c (rmdir): Define with a prototype.
117124         * lib/savedir.c: Include savedir.h first, to test interface.
117126         * lib/mktime.c (STDC_HEADERS): Remove.
117127         Include <stdlib.h>, <string.h> unconditionally.
117129         * lib/modechange.c: Include <stdlib.h> unconditionally.
117130         (malloc): Remove decl.
117132         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
117133         (free): Remove decl.
117135         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
117136         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
117137         (This type really should be intptr_t, but that's a C99ism.)
117138         (_obstack_memcpy): Remove: all uses changed to memcpy.
117139         Include <string.h> unconditionally.
117140         (struct obstack): Assume __STDC__ for types of members
117141         chunkfun, freefun, extra_arg.
117142         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
117143         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
117144         obstack_begin, obstack_specify_allocation,
117145         obstack_specify_allocation_with_arg, obstack_chunkfun,
117146         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
117147         Remove unprototyped decls and the macros that use them.
117148         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
117149         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
117150         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
117151         (defined __STDC__ && __STDC__)]:
117152         Remove nonprototyped code.
117153         Include <stdlib.h> unconditionally.
117154         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
117155         _obstack_allocated_p, _obstack_free, obstack_free,
117156         _obstack_memory_used, print_and_abort):
117157         Define using prototypes.
117158         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
117159         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
117160         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
117161         obstack_next_free, obstack_object_size, obstack_room) [0]:
117162         Remove unused, unprototyped code.
117164         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
117166         * lib/physmem.c (physmem_total, physmem_available, main): Define
117167         with prototypes.
117169         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
117170         (main): Define with a prototype.
117172         * lib/posixver.c (getenv): Remove decl.
117174         * lib/putenv.c (malloc): Returns void *, not char *.
117175         Include <string.h> unconditionally.
117176         (strchr, memcpy, NULL): Do not define.
117178         * lib/readtokens.c: Include readtokens.h first, to test interface.
117179         Include <stdlib.h>, <string.h> unconditionally.
117180         (init_tokenbuffer): Define with a prototype.
117182         * lib/regex.c (PARAMS): Remove.  All uses removed.
117183         All uses of _RE_ARGS removed, too.
117184         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
117185         unconditionally.
117186         (bzero): Assume memset exists.
117187         (memcmp, memcpy, NULL): Remove.
117188         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
117189         char, or assignments to local vars of type signed char.
117190         (init_syntax_once, PREFIX(extract_number_and_incr),
117191         PREFIX(print_partial_compiled_pattern),
117192         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
117193         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
117194         PREFIX(regex_grow_registers), PREFIX(regex_compile),
117195         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
117196         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
117197         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
117198         wcs_compile_range, byte_compile_range, truncate_wchar,
117199         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
117200         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
117201         count_mbs_length, wcs_re_match_2_internal,
117202         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
117203         PREFIX(alt_match_null_string_p),
117204         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
117205         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
117206         regfree, PREFIX(extract_number)): Define with prototype.  Remove
117207         now-unnecessary declaration, if any.
117208         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
117209         regcomp, regexec):
117210         Remove now-unnecessary casts among pointer types.
117211         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
117213         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
117214         (free): Remove decl.
117216         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
117218         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
117219         (free): Remove decl.
117221         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
117222         * lib/xgetcwd.c: Likewise.
117224         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
117225         (free): Remove decl.
117227         * lib/strchrnul.c (strchrnul): Define with a prototype.
117228         Fix bug: c_in was not converted to char before searching.
117230         The following changes are not K&R related:
117232         * lib/group-member.h: Include <sys/types.h>, so that this file is
117233         self-contained.
117234         * lib/makepath.h: Likewise.
117236         * lib/getusershell.c (readname, default_index, line_size, readname):
117237         Use size_t, not int, for sizes.
117238         (readname): If the size overflows, report an error instead of
117239         looping forever.
117241 2003-09-09  Paul Eggert  <eggert@twinsun.com>
117243         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
117244         libc.
117246 2003-09-09  Paul Eggert  <eggert@twinsun.com>
117248         * README: New section: portability guidelines.
117250 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
117252         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
117253         C89 spec.
117255 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
117257         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
117259 2003-09-08  Paul Eggert  <eggert@twinsun.com>
117261         Assume C89 or better; remove K&R cruft.
117262         A few of these changes were first proposed by Derek Robert Price
117263         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
117265         * lib/addext.c: Include <string.h> unconditionally.
117266         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
117267         Don't declare getenv or malloc.
117269         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
117270         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
117271         (NULL): Remove.
117272         (find_stack_direction, alloca): Use prototypes.
117274         * lib/atexit.c (atexit): Define using a prototype.
117276         * lib/basename.c, dirname.c, stripslash.c:
117277         Include <string.h> unconditionally.
117279         * lib/bcopy.c: Include <stddef.h>.
117280         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
117282         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
117284         * lib/error.h (error, error_at_line, error_print_progname)
117285         [! (defined (__STDC__) && __STDC__)]: Remove decls.
117286         * lib/error.c: Include error.h first, to check interface.
117287         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
117288         (VA_START): Remove; all uses changeed to va_start.
117289         (exit, strerror): Remove decls.
117290         (error_print_progname): Prototype uncondionally.
117291         Don't include <errno.h>; no longer needed.
117292         (private_strerror): Remove.
117293         (error_tail): Always define.
117294         (error, error_at_line): Assume C89 or better; always use prototypes.
117295         * lib/fatal.c: Include "fatal.h" first, to test interface.
117296         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
117297         (VA_START): Remove; all uses changed to va_start.
117298         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
117299         this case.
117300         (exit): Remove decl.
117301         (fatal): Prototype unconditionally.  Assume va_start works.
117302         Abort at end, to pacify gcc.
117304         * lib/euidaccess.c (main): Define with a prototype.
117306         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
117308         * lib/exitfail.c: Include <stdlib.h> unconditionally.
117310         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
117311         prototypes.
117312         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
117313         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
117314         (getenv): Remove decl.
117315         (fnmatch): Define using a prototype.
117316         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
117317         (FCT): Define using a prototype.
117319         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
117321         * lib/gethostname.c: Include <stddef.h>.
117322         (gethostname): Define with prototype.  Length is size_t, not int.
117324 2003-09-08  Paul Eggert  <eggert@twinsun.com>
117326         Assume C89 or better; remove K&R cruft.
117327         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
117328         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
117329         string.h, getenv, malloc.
117330         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
117331         headers.
117332         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
117333         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
117334         do not check for strerror.
117335         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
117336         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
117337         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
117338         do not check for doprnt or vprintf.
117339         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
117340         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
117342 2003-09-08  Paul Eggert  <eggert@twinsun.com>
117344         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
117345         getversion.c should have been removed then, but was accidentally
117346         preserved.
117348         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
117349         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
117351 2003-09-08  Karl Berry  <karl@gnu.org>
117353         * config/config.sub, config.guess, srclistvars.sh: update from savannah
117354                 config, forget about prep.
117356         * config/depcomp, missing: update from automake.
117358 2003-09-07  Paul Eggert  <eggert@twinsun.com>
117360         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
117361         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
117363 2003-09-07  Paul Eggert  <eggert@twinsun.com>
117365         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
117366         copy_tm_result.  Bug reported by Simon Josefsson in
117367         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
117369 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117371         * m4/time_r.m4: New file.
117372         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
117373         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
117374         is. Check for timegm declaration.
117375         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
117376         Do not check for gmtime_r.
117377         Replace mktime if __mktime_internal does not exist and if mktime
117378         hasn't been replaced already.
117380 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117382         * lib/time_r.c, lib/time_r.h: New files.
117384         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
117385         __localtime_r.
117386         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
117387         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
117389         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
117390         __gmtime_r.
117391         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
117392         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
117393         Include <time_r.h>.
117395         * lib/timegm.c: Switch to glibc implementation, with the following
117396         changes:
117397         [defined HAVE_CONFIG_H]: Include <config.h>.
117398         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
117399         (__mktime_internal) [!defined _LIBC]: New decl.
117400         (__gmtime_r) [!defined _LIBC]: New macro and function.
117401         (timegm): Use a prototype, since gnulib assumes C89.
117402         Do not bother declaring tmp to be const, as it's not really usefu.
117403         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
117404         (timegm): Declare only if HAVE_DECL_TIMEGM.
117406 2003-09-06  Paul Eggert  <eggert@twinsun.com>
117408         * MODULES.html.sh (func_all_modules): Add time_r.
117409         * modules/time_r: New file.
117410         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
117411         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
117413 2003-09-03  Paul Eggert  <eggert@twinsun.com>
117415         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
117416         Bug reported by Lute Kamstra in
117417         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
117419         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
117420         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
117421         course with correspondingly smaller numbers for tomorrow and
117422         yesterday.  From Tadayoshi Funaba.  Originally installed into
117423         sh-utils on 1999-08-07, but the patch got lost (I guess during the
117424         coreutils merge?).
117426 2003-08-31  Simon Josefsson  <jas@extundo.com>
117428         * modules/timegm: New file.
117429         * MODULES.html.sh (func_all_modules): Add timegm.
117431 2003-08-31  Simon Josefsson  <jas@extundo.com>
117433         * m4/timegm.m4: New file.
117435 2003-08-31  Simon Josefsson  <jas@extundo.com>
117437         * lib/timegm.h: New file.
117438         * lib/timegm.c: New file.  Based on
117439         wget-1.8.2/src/http.c:mktime_from_utc.
117441 2003-08-31  Karl Berry  <karl@gnu.org>
117443         * lib/argp.h: update from libc.
117445 2003-08-28  Bruno Haible  <bruno@clisp.org>
117447         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
117448         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
117449         followed by '#define fnmatch fnmatch_posix' gives an error.
117451 2003-08-28  Bruno Haible  <bruno@clisp.org>
117453         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
117454         warning on QNX, which defines O_BINARY to 000000.
117456 2003-08-27  Jim Meyering  <jim@meyering.net>
117458         * m4/mkstemp.m4: Require that the system mkstemp be able to create
117459         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
117460         would fail after 32.  Reported by Danny Levinson.  Details here:
117461         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
117463 2003-08-24  Bruno Haible  <bruno@clisp.org>
117465         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
117466         MSVC7 <stdio.h> is included later.
117468 2003-08-22  Simon Josefsson  <jas@extundo.com>
117470         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
117472 2003-08-20  Karl Berry  <karl@gnu.org>
117474         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
117476 2003-08-20  Bruno Haible  <bruno@clisp.org>
117478         * modules/progname: New file.
117479         * MODULES.html.sh (func_all_modules): Add progname.
117481 2003-08-20  Bruno Haible  <bruno@clisp.org>
117483         * lib/progname.h: New file, from GNU gettext.
117484         * lib/progname.c: New file, from GNU gettext.
117485         * lib/progreloc.c: New file, from GNU gettext.
117487 2003-08-19  Jim Meyering  <jim@meyering.net>
117489         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
117490         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
117492 2003-08-19  Bruno Haible  <bruno@clisp.org>
117494         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
117495         more.
117497 2003-08-19  Bruno Haible  <bruno@clisp.org>
117499         * lib/xstrdup.c: Assume <string.h> exists.
117501 2003-08-18  Paul Eggert  <eggert@twinsun.com>
117503         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
117504         in makefile rules.
117506 2003-08-18  Jim Meyering  <jim@meyering.net>
117508         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
117509         * m4/lib-ld.m4: Likewise.
117511 2003-08-18  Jim Meyering  <jim@meyering.net>
117513         * lib/setenv.h: Indent nested cpp directive.
117514         * lib/vasnprintf.c: Remove trailing blanks.
117516 2003-08-17  Simon Josefsson  <jas@extundo.com>
117518         * modules/xstrndup: New file.
117519         * MODULES.html.sh (func_all_modules): Add xstrndup.
117521 2003-08-17  Simon Josefsson  <jas@extundo.com>
117523         * modules/argp: Fix autoconf macro name. Add more dependencies.
117525 2003-08-17  Simon Josefsson  <jas@extundo.com>
117527         * m4/xstrndup.m4: New file.
117529 2003-08-17  Simon Josefsson  <jas@extundo.com>
117531         * m4/argp.m4: New file.
117533 2003-08-17  Simon Josefsson  <jas@extundo.com>
117534             Bruno Haible  <bruno@clisp.org>
117536         * lib/xstrndup.h: New file.
117537         * lib/xstrndup.c: New file.
117539 2003-08-17  Bruno Haible  <bruno@clisp.org>
117541         * modules/strndup (Files, Include): Add lib/strndup.h.
117543 2003-08-17  Bruno Haible  <bruno@clisp.org>
117545         * modules/euidaccess (Files): Add lib/euidaccess.h.
117547 2003-08-17  Bruno Haible  <bruno@clisp.org>
117549         * lib/strndup.h: New file.
117551 2003-08-17  Bruno Haible  <bruno@clisp.org>
117553         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
117554         like AC_GNU_SOURCE.
117555         * modules/extensions (configure.ac): Comment out the invocation of
117556         gl_USE_SYSTEM_EXTENSIONS.
117558 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117560         Merges from coreutils, etc.
117561         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
117562         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
117563         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
117564         fixing a typo.
117565         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
117566         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
117568 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117570         Document merge from coreutils.
117571         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
117572         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
117573         * modules/utime: Add m4/utimes-null.m4.
117575 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117577         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
117578         space, undoing this 2003-08-12 change:
117579         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
117581 2003-08-16  Paul Eggert  <eggert@twinsun.com>
117583         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
117584         strtoul.c from libc, undoing this 2003-08-12 change:
117585         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
117587 2003-08-16  Jim Meyering  <jim@meyering.net>
117589         Merges from coreutils.
117590         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
117591         prefix.  Adjust cache variables similarly.  Create 500 rather than
117592         just 300 files, to exercise bug on Darwin6.5, too.
117593         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
117594         $missing_dir.
117595         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
117596         AM_SYS_POSIX_TERMIOS.
117597         Reported by mkc@mathdogs.com.
117598         Also change use of $am_cv_sys_posix_termios
117599         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
117600         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
117601         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
117602         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
117603         in /proc/mounts until it finds one with matching device number.  This
117604         is unnecessary when the FILE argument *is* a mount point.  No stat call
117605         is necessary in that case.  So, disable the statvfs-testing code on
117606         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
117607         as RedHat bug# 84846.
117608         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
117609         to 1MB, so as not to render systems with no stack size limit (e.g.,
117610         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
117611         Include <unistd.h>.  On some systems,
117612         it is required for the definition of _SC_PAGESIZE.
117614 2003-08-16  Jim Meyering  <jim@meyering.net>
117616         Merge from coreutils.
117617         * lib/xstrtoimax.c: #else #if -> #elif.
117618         * lib/xstrtoumax.c: Likewise.
117620 2003-08-16  Jim Meyering  <jim@meyering.net>
117622         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
117623         * m4/utimes.m4: Removed.
117624         * m4/utimes-null.m4: Renamed from utimes.m4.
117626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
117627         to 1MB, so as not to render systems with no stack size limit (e.g.,
117628         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
117629         Include <unistd.h>.  On some systems,
117630         it is required for the definition of _SC_PAGESIZE.
117632 2003-08-16  Jim Meyering  <jim@meyering.net>
117633         and Paul Eggert  <eggert@cs.ucla.edu>
117635         Merges from coreutils, etc.
117637         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
117638         using the latest version from cvs.  This avoids problems with #line
117639         directives using a vendor (Sun) compiler.
117640         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
117641         Don't set GETGROUPS_LIB here; now it's
117642         done via getgroups.m4's wrapper function.
117643         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
117644         rather than just in sh-util/configure.in, so that the
117645         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
117646         same.
117647         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
117648         AC_FUNC_GETLOADAVG where to find getloadavg.c.
117649         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
117650         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
117651         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
117652         Remove code that is now done by the newly-required macros.
117653         Append $(EXEEXT) to DF_PROG.
117654         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
117655         Do not invoke or require the following here,
117656         since prereq.m4 or some gnulib .m4 now does this for us:
117657         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
117658         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
117659         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
117660         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
117661         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
117662         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
117663         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
117664         AC_FUNC_OBSTACK.
117665         Do not replace the following functions, as this is now the job
117666         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
117667         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
117668         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
117669         atexit getpass, strdup, getpagesize.
117670         Replace 'raise'.
117671         Do not check for the following functions, as this is now the job
117672         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
117673         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
117674         setregid.
117675         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
117676         Check for sys/sysctl.h.
117677         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
117678         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
117679         of checking for ssize_t ourselves.
117681         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
117682         Require every macro that gnulib/modules/* suggests for us.
117683         (jm_PREREQ_ADDEXT): New macro.
117684         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
117685         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
117687         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
117688         (gl_PHYSMEM): Use it.
117689         Also check for `table' function.
117690         Check for new headers and functions.
117691         Add check for sys/sysmp.h.
117692         With suggestions from Kaveh Ghazi.
117693         Ignore headers that are present but cannot be compiled.  This
117694         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
117695         C 5.4.
117697 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117699         Document merge from coreutils.
117700         * modules/userspec: Depend on posixver.
117701         * modules/strftime: Depend on tzset.
117703 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117705         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
117706         rather than tab, after '#' in shell-script copyright notices.
117707         Suggested by Bruno Haible.
117709 2003-08-15  Paul Eggert  <eggert@twinsun.com>
117711         * config/srclist-update: Use three spaces, rather than tab, after '#'
117712         in shell-script copyright notices.  Suggested by Bruno Haible.
117713         Remove unnecessary parenthesization in regular expression.
117715 2003-08-15  Jim Meyering  <jim@meyering.net>
117717         Merge from coreutils.
117718         * lib/xgethostname.c: Include <stdlib.h>.
117719         (xghostname): Don't exit for anything other than memory-related
117720         failure; just return NULL.
117721         * lib/userspec.c: Include "posixver.h".
117722         (parse_user_spec): Accept `.' as a separator only
117723         in pre-POSIX-200112 mode.
117724         * lib/strtoimax.c: Use #elif rather than #else #if.
117725         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
117726         Remove function, now that we can rely on a working tzset function.
117727         [!_LIBC]: Ensure that the required autoconf test has been run.
117728         [!defined _NL_CURRENT && HAVE_STRFTIME]:
117729         Use underlying_strftime for %r.
117730         * lib/sha.c: Merge in some clean-up and optimization changes from
117731         glibc.
117732         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
117733         Ensure that it is a multiple of 64.
117734         Rearrange loop exit tests so as to avoid performing an
117735         additional fread after encountering an error or EOF.
117736         * lib/realloc.c: Update copyright date.
117738 2003-08-15  Jim Meyering  <jim@meyering.net>
117739         and Paul Eggert  <eggert@twinsun.com>
117741         Merge from coreutils.
117742         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
117743         member but strut utmpx does not.  Needed for AIX 4.3.3.
117744         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
117746 2003-08-15  Jim Meyering  <jim@meyering.net>
117747         and Paul Eggert  <eggert@cs.ucla.edu>
117749         Merges from coreutils, etc.
117750         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
117751         Require gl_FUNC_TZSET_CLOBBER.
117752         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
117753         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
117754         members.
117756 2003-08-14  Paul Eggert  <eggert@twinsun.com>
117758         Help the merge from coreutils.
117759         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
117760         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
117761         * m4/tzset.m4: Use it too.
117763 2003-08-14  Paul Eggert  <eggert@twinsun.com>
117765         * modules/tzset: New file.
117767 2003-08-14  Jim Meyering  <jim@meyering.net>
117769         Merges from coreutils.
117770         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
117771         variable names, rather than @FNMATCH_H@.
117772         * modules/alloca: Likewise for $(ALLOCA_H).
117774         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
117775         the three copies of the literal target, `fnmatch.h'.
117776         * modules/alloca (alloca.h): Likewise.
117778 2003-08-14  Jim Meyering  <jim@meyering.net>
117780         Merge from coreutils.
117781         * m4/tzset.m4: New file.
117782         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
117783         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
117784         otherwise, AIX 5.1 systems would end up using the latter.
117785         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
117786         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
117787         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
117788         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
117790 2003-08-14  Jim Meyering  <jim@meyering.net>
117792         Merge from coreutils.
117793         * lib/obstack.h: Whitespace changes.
117794         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
117795         and xcalloc return values.
117796         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
117797         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
117798         hang on OSF/1 5.1 for DIR on both local and remote file systems.
117799         Reported by (and fix confirmed by) Nelson H. F. Beebe.
117800         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
117801         error from mntctl.
117802         Use mntctl's return value to drive the entry-processing loop, since
117803         we can't rely on the value of the vmt_length member in the last
117804         entry.  On some systems doing so could result in exhausting
117805         virtual memory.  Based in part on a patch from Mike Jetzer.
117807 2003-08-14  Jim Meyering  <jim@meyering.net>
117808         and Paul Eggert  <eggert@twinsun.com>
117810         Merges from coreutils, plus other fixes.
117811         * lib/physmem.c: Merge in portability changes from gcc/libiberty
117812         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
117813         for credits and details.  Thanks to Kaveh Ghazi for helping
117814         to keep these files in sync.
117815         (ARRAY_SIZE): Define it.
117816         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
117817         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
117818         (memcasecmp): Don't assume size_t fits in unsigned int.
117819         Remove casts and duplicate code.
117820         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
117821         (memcpy): Remove definition.
117822         Merge in some clean-up and optimization changes from glibc.
117823         [BLOCKSIZE]: Move definition to top of file.
117824         Ensure that it is a multiple of 64.
117825         Rearrange loop exit tests so as to avoid performing an
117826         additional fread after encountering an error or EOF.
117827         * lib/md5.h (md5_uintptr): Define.
117828         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
117829         return to the initial working directory.  Preserve errno
117830         for caller.
117831         * lib/idcache.c: Include "xalloc.h".
117832         (xmalloc, xrealloc): Remove decls.
117833         (getuser): Remove casts no longer required in C89.
117834         * lib/human.c: Include stdio.h, for sprintf.
117835         * lib/group-member.c: Include "xalloc.h".
117836         (xmalloc, xrealloc): Remove decls.
117837         (get_group_info): Remove casts no longer required in C89.
117838         * lib/getusershell.c (readname): Remove casts no longer required in
117839         C89.
117840         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
117841         * lib/getline.c: Whitespace fix, from coreutils.
117843 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117845         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
117846         Check for isascii.
117848         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
117849         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
117850         Undo previous (whitespace-only) change.
117852 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117854         * lib/exclude.c: Include <ctype.h>
117855         (IN_CTYPE_DOMAIN): New macro.
117856         (is_space): New fn.
117857         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
117858         and empty lines.
117860         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
117861         Undo previous (whitespace-only) change.
117863 2003-08-13  Paul Eggert  <eggert@twinsun.com>
117865         * config/srclist-update: Change update back to the old behavior,
117866         leaving whitespace alone.  Use one 'sed' command rather than a
117867         pipeline.
117868         (fixlicense): Now a variable, not a function.
117869         (remove_trailing_blanks): Remove.
117870         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
117871         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
117872         Undo previous (whitespace-only) change.
117874 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117876         Merge from coreutils.
117877         * modules/euidaccess: Add lib_SOURCES, include for new
117878         file euidaccess.h
117880 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117882         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
117883         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
117884         Normalize leading white space and remove trailing white space.
117886         Merge from coreutils
117887         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
117889         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
117890         0.12.1.  These files are now being upgraded automatically by
117891         ../config/srclist-update.
117893 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117895         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
117896         Normalize leading white space and remove trailing white space.
117897         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
117898         notice, as per ../config/srclist-update.
117900         Merge from coreutils.
117901         * lib/euidaccess.h: New file.
117902         * lib/euidaccess.c: Include it.
117903         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
117904         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
117905         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
117907 2003-08-12  Paul Eggert  <eggert@twinsun.com>
117909         * config/srclist-update: Add copyright notice.
117910         (remove_id_lines, remove_trailing_blanks): New constants.
117911         (fixfile): Use them to normalize spacing a bit in copied files.
117912         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
117913         Normalize leading white space and remove trailing white space.
117915         * config/texinfo.tex: Sync with texinfo.
117917         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
117918         strtoul.c from libc, to merge coreutils whitespace changes.
117920         * config/srclist.txt: Get the following m4 files from gettext:
117921         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
117922         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
117923         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
117924         wint_t.m4.
117926 2003-08-12  Karl Berry  <karl@gnu.org>
117928         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
117929         been made.
117931 2003-08-11  Paul Eggert  <eggert@twinsun.com>
117933         * modules/gnu-source, m4/gnu-source.m4:
117934         Remove; we're assuming Autoconf 2.54 or later now.
117935         Suggested by Bruno Haible.
117936         * MODULES.html.sh (func_all_modules): Remove gnu-source.
117938 2003-08-11  Bruno Haible  <bruno@clisp.org>
117940         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
117942 2003-08-11  Bruno Haible  <bruno@clisp.org>
117944         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
117945         (vasnprintf): Use it instead of wcslen.
117947 2003-08-11  Bruno Haible  <bruno@clisp.org>
117949         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
117950         value to ensure that _Bool promotes to int. Use #define for _Bool when
117951         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
117953 2003-08-10  Karl Berry  <karl@gnu.org>
117955         * lib/regex.h: update from libc (whitespace fix).
117957 2003-08-09  Paul Eggert  <eggert@twinsun.com>
117959         Merge some files from coreutils.  These changes were
117960         originally made by Jim Meyering.
117961         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
117962         many older Unixes require this.
117963         * lib/alloca.c (alloca): Remove cast to argument of free;
117964         no longer needed in C89.
117965         * lib/alloca_.h, regex.h: Fix white space to match
117966         what GNU indent does.
117968 2003-08-09  Paul Eggert  <eggert@twinsun.com>
117970         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
117971         apparently Emacs's Unicode mode got confused before my 2003-08-05
117972         checkin.
117974 2003-08-08  Paul Eggert  <eggert@twinsun.com>
117976         * m4/extensions.m4: New file.
117977         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
117978         Require gl_USE_SYSTEM_EXTENSIONS.
117979         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
117980         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
117982 2003-08-08  Paul Eggert  <eggert@twinsun.com>
117984         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
117985         * modules/extensions, modules/gnu-source: New files.
117986         * modules/timespec, modules/unlocked-io: Depend on extensions.
117988 2003-08-07  Paul Eggert  <eggert@twinsun.com>
117990         * modules/restrict: New file.
117991         * MODULES.html.sh (func_all_modules): Add restrict.
117992         * modules/regex: Depend on restrict.
117994 2003-08-07  Paul Eggert  <eggert@twinsun.com>
117996         * m4/restrict.m4: New file.
117997         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
117999 2003-08-07  Bruno Haible  <bruno@clisp.org>
118001         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
118002         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
118004 2003-08-07  Bruno Haible  <bruno@clisp.org>
118006         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
118007         makes the module 'getndelim2' compatible with the module 'getline'.
118009 2003-08-05  Paul Eggert  <eggert@twinsun.com>
118011         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
118012         byte with "\201" to avoid glitches when editing that source file
118013         with multi-gnome-terminal.
118015 2003-08-05  Paul Eggert  <eggert@twinsun.com>
118017         * lib/bumpalloc.h: Remove.
118019 2003-08-05  Paul Eggert  <eggert@twinsun.com>
118021         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
118022         * modules/bumpalloc: Remove.
118024 2003-08-04  Paul Eggert  <eggert@twinsun.com>
118026         * lib/getloadavg.c: Change copyright notice and spacing to conform to
118027         GNU coding style.
118029         Merge from coreutils.
118030         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
118031         1. From glibc.
118032         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
118033         from Karl Berry, implemented by Jim Meyering.
118034         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
118035         from Dmitry V. Levin.
118036         Remove anachronistic cast of xrealloc.
118037         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
118038         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
118039         type. Otherwise, it wouldn't compile with at least /bin/cc on
118040         ymp-cray-unicos9.0.2.X.
118041         Combine two mostly-identical uses of alloca into one.
118042         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
118044 2003-08-04  Dave Love  <d.love@dl.ac.uk>
118046         [From Emacs.]
118048         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
118049         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
118050         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
118051         obsolete NLIST_NAME_UNION.
118052         [__GNU__]: Undef BSD and FSCALE.
118053         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
118055 2003-08-03  Paul Eggert  <eggert@twinsun.com>
118057         * lib/stdbool_.h (_Bool): Make it signed char, instead of
118058         an enum type, so that it's guaranteed to promote to int.  See:
118059         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
118061 2003-08-03  Karl Berry  <karl@gnu.org>
118063         * config/depcomp: update from automake.
118065 2003-07-31  Paul Eggert  <eggert@twinsun.com>
118067         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
118068         (strerror): Don't assume that a printable int fits in 14 bytes.
118070 2003-07-31  Bruno Haible  <bruno@clisp.org>
118072         * modules/getpass-gnu: New file.
118073         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
118075 2003-07-31  Bruno Haible  <bruno@clisp.org>
118077         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
118079 2003-07-24  Karl Berry  <karl@gnu.org>
118081         * config/missing: update from automake.
118083 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
118084             Bruno Haible  <bruno@clisp.org>
118086         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
118087         * lib/getline.c (getline, getdelim): Likewise.
118088         Remove _GNU_SOURCE define; now it's defined in config.h through
118089         m4/getline.m4.
118091 2003-07-23  Karl Berry  <karl@gnu.org>
118093         * config/config.sub: update from prep.
118095 2003-07-22  Paul Eggert  <eggert@twinsun.com>
118097         * modules/xalloc (Depends-on): Add exitfail.
118098         * modules/xmemcoll: Likewise.
118100 2003-07-22  Paul Eggert  <eggert@twinsun.com>
118102         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
118103         over-parenthesization in macros.
118105         Sync with coreutils.
118107         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
118108         required by C99.
118110         Use `exit_failure' for xalloc and xmemcoll instead of their own
118111         private exit-failure variables.
118112         * lib/xalloc.h (xalloc_exit_failure): Remove.
118113         * lib/xmalloc.c: Likewise.  Include exitfail.h.
118114         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
118115         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
118116         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
118117         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
118119 2003-07-20  Jim Meyering  <jim@meyering.net>
118121         * modules/closeout (Depends-on): Add exitfail.
118122         Suggestion from Bruno Haible.
118124 2003-07-19  Karl Berry  <karl@gnu.org>
118126         * config/config.sub: update from prep.
118128 2003-07-18  Paul Eggert  <eggert@twinsun.com>
118130         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
118131         Remove.
118132         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
118133         to test that it can stand by itself.  Include "exitfail.h".
118134         Clients should set exit_failure instead.
118135         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
118137 2003-07-18  Bruno Haible  <bruno@clisp.org>
118139         * modules/getndelim2: New file.
118140         * modules/getline: Share files with module getndelim2.
118141         * modules/getnline: Depend on getndelim2 instead of sharing files with
118142         it. Add getnline.c to lib_SOURCES.
118143         * MODULES.html.sh (func_all_modules): Add getndelim2.
118145 2003-07-18  Bruno Haible  <bruno@clisp.org>
118147         * m4/getndelim2.m4: New file.
118148         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
118149         invoke gl_PREREQ_GETNDELIM2.
118150         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
118151         gl_PREREQ_GETNDELIM2.
118152         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
118153         gl_GETNDELIM2.
118155 2003-07-18  Bruno Haible  <bruno@clisp.org>
118157         * lib/getndelim2.h: New file.
118158         * lib/getndelim2.c: Make into a module of its own. Include config.h,
118159         getndelim2.h.
118160         (getndelim2): Make non-static. Change return type to ssize_t.
118161         * lib/getline.h: Change argument names.
118162         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
118163         * lib/getnline.c: Include getndelim2.h.
118165 2003-07-18  Andreas Schwab  <schwab@suse.de>
118167         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
118169 2003-07-17  Karl Berry  <karl@gnu.org>
118171         * config/config.sub: update from prep.
118173 2003-07-17  Bruno Haible  <bruno@clisp.org>
118175         * modules/getnline: New file.
118176         * modules/getline: Add lib/getndelim2.c to source file list.
118177         * MODULES.html.sh (func_all_modules): Add getnline.
118179 2003-07-17  Bruno Haible  <bruno@clisp.org>
118181         * m4/getnline.m4: New file.
118183 2003-07-17  Bruno Haible  <bruno@clisp.org>
118185         * m4/Makefile.am.in: Remove file.
118186         * m4/Makefile.am: Remove file.
118187         * m4/Makefile.in: Remove file.
118189 2003-07-17  Bruno Haible  <bruno@clisp.org>
118191         * lib/getnline.h: New file.
118192         * lib/getnline.c: New file.
118193         * lib/getndelim2.c: New file, extracted from getline.c.
118194         (getndelim2): Renamed from getdelim2, with added nmax argument.
118195         * lib/getline.c: Include getndelim2.c.
118196         (getdelim2): Moved out to getndelim2.c.
118197         (getline, getdelim): Update.
118199 2003-07-17  Bruno Haible  <bruno@clisp.org>
118201         * lib/Makefile.am: Remove file.
118202         * lib/Makefile.in: Remove file.
118204 2003-07-17  Bruno Haible  <bruno@clisp.org>
118206         * configure.in: Remove file.
118207         * Makefile.in: Remove file.
118209 2003-07-17  Bruno Haible  <bruno@clisp.org>
118211         * MODULES.html.sh: Put the </BODY> right before </HTML>.
118213 2003-07-16  Karl Berry  <karl@gnu.org>
118215         * config/srclist-update: was running fixlicense twice, which caused
118216                 texinfo.tex to be nullified for some reason.  Simplify,
118217                 $gplsrc is no longer needed as far as I can see?
118219 2003-07-16  Jim Meyering  <jim@meyering.net>
118221         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
118223 2003-07-15  Paul Eggert  <eggert@twinsun.com>
118225         * config/srclist.txt: Get the following files from gettext-runtime/intl
118226         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
118227         ref-del.sin.  From Bruno Haible.
118228         * config/srclist-update (fixfile): Change grep pattern again, since the
118229         previous fix didn't work (there was another trailing $).  Use
118230         '[$]' to escape the $s.
118232 2003-07-15  Karl Berry  <karl@gnu.org>
118234         * lib/vasnprintf.c: update from gettext.
118236 2003-07-15  Karl Berry  <karl@gnu.org>
118238         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
118239         gets expanded when surrounded by '$'.
118241 2003-07-15  Jim Meyering  <jim@meyering.net>
118243         * modules/save-cwd: Don't depend on error.  From Derek Price.
118245 2003-07-15  Jim Meyering  <jim@meyering.net>
118247         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
118249 2003-07-14  Simon Josefsson  <jas@extundo.com>
118251         * modules/mempcpy: New file.
118252         * MODULES.html.sh (func_all_modules): Add mempcpy.
118254 2003-07-14  Simon Josefsson  <jas@extundo.com>
118256         * m4/mempcpy.m4: New file.
118258 2003-07-14  Simon Josefsson  <jas@extundo.com>
118260         * lib/mempcpy.h: New file.
118261         * lib/mempcpy.c: New file.
118263 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118265         * modules/getdate, modules/posixtm: Depend on mktime.
118267 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118269         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
118270         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
118271         unicodeio.c, unicodeio.h, unlocked-io.h:
118272         Switch from LGPL to GPL.
118274 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118276         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
118277         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
118278         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
118279         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
118280         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
118281         updated automatically by ../config/srclist-update.  This changes
118282         their license from LPGL to GPL.
118284 2003-07-14  Paul Eggert  <eggert@twinsun.com>
118286         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
118287         assumed to refer to the root of the most recent stable gettext version.
118288         * config/srclistvars.sh: Add defaults for eggert.
118289         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
118290         Match "This program" as well as "The program".  This is needed
118291         for gettext.
118293 2003-07-14  Jim Meyering  <jim@meyering.net>
118295         Don't emit diagnostics.  Let callers do that.
118296         * lib/save-cwd.c: Don't include "error.h".
118297         (save_cwd): Don't call error.  Ensure that errno is valid
118298         when returning nonzero.
118300         * lib/save-cwd.h (restore_cwd): Update prototype.
118301         * lib/save-cwd.c (restore_cwd): Remove two parameters.
118302         Simplify.  Don't call error upon failure.  Let callers do that.
118303         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
118304         when auditing is enabled.  But don't bother updating the #if.
118306 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
118308         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
118309         it breaks C++ compilation.
118310         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
118312 2003-07-10  Simon Josefsson  <jas@extundo.com>
118314         * modules/strchrnul (Makefile.am): Add strchrnul.h.
118316 2003-07-10  Jim Meyering  <jim@meyering.net>
118318         * m4/clock_time.m4: Remove trailing blank.
118319         * m4/intmax_t.m4: Likewise.
118321 2003-07-10  Jim Meyering  <jim@meyering.net>
118323         * lib/vasnprintf.c: Remove trailing blanks.
118324         Make cpp indentation consistent.
118326 2003-07-09  Paul Eggert  <eggert@twinsun.com>
118328         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
118329         posixver.c, strftime.c, strnlen.c, strverscmp.c:
118330         Switch from LGPL to GPL.
118332 2003-07-09  Paul Eggert  <eggert@twinsun.com>
118334         * config/srclist.txt: Sort sublists.  Add
118335         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
118336         that differ from gnulib for one reason or another; we'd like this list
118337         to be smaller but for now let's document what we have.
118339 2003-07-08  Paul Eggert  <eggert@twinsun.com>
118341         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
118342         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
118343         and sweeter "eval x=$x".
118344         * config/srclist.txt: Get lib/argp* from glibc.
118346 2003-07-07  Paul Eggert  <eggert@twinsun.com>
118348         * lib/mktime.c: Fix some boundary cases and remove need for floating
118349         point.
118351         Issue a compile-time diagnostic if time_t is floating point, or if
118352         two's complement arithmetic is not in effect, or if arithmetic
118353         right shift does not propagate the sign.  These assumptions were
118354         all in the original code but they weren't checked.
118356         (TIME_T_MIDPOINT, verify): New macros.
118357         (__isleap): Remove; it has integer overflow problems.
118358         (leapyear): New function, without those problems.
118359         (ydhms_tm_diff): Remove; splitting into two parts.
118360         (ydhms_diff): New function, containing the arithmetic part of
118361         the old ydhms_tm_diff function.  Issue a compile-time
118362         diagnostic if we are not using C99 integer division.
118363         Avoid casts when possible.
118364         (guess_time_tm): New function, containing the checking part of
118365         the old ydhms_tm_diff function.  Return the new value, rather than
118366         the difference between it and the old.  Accept a new argument T
118367         so that *T specifies the old value.  Check for overflow in the result.
118369         (__mktime_internal): Use a time_t offset, not a long int offset.
118370         This undoes the 2003-06-04 change, which is no longer needed now
118371         that we have better overflow checking.
118372         (localtime_offset): Likewise.
118374         (__mktime_internal): Avoid harmful overflow on hosts where time_t
118375         and long are 64-bit but int is only 32-bit.
118376         (ydhms_diff): Use long int to store year1 and yday1.
118377         Issue a compile-time diagnostic if long int is not wide enough.
118379         (__mktime_internal): Use long int to store adjusted year and yday.
118380         Use plain C rather than preprocessor commands, if that doesn't
118381         affect efficiency.
118382         Check for overflow (and try to repair) after each probe
118383         rather than checking only at the very end.  This avoids some bugs
118384         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
118385         does not equal GMT offset at maximum time).
118386         Use integer to check for overflow rather than floating point; this
118387         is more portable to non-IEEE hosts, and is a tad faster.
118388         When we detect that we are oscillating between two values,
118389         don't check whether tm_isdst has the requested value, since
118390         we already know the answer.  When tm_isdst has the wrong value,
118391         use a different heuristic to find the right one, based on the
118392         extreme values actually observed in practice in tz2003a,
118393         rather than the (overly optimistic) "previous 3 calendar quarters".
118395         (not_equal_tm, print_tm, check_result): Use "const T" rather than
118396         "T const" to accommodate glibc style.
118397         (check_result): Use less-confusing report format.  "long" -> "long int.
118398         (main): Likewise.
118399         Don't loop if the iteration overflows time_t.
118400         Allow a negative step in the iteration.
118402 2003-07-06  Karl Berry  <karl@gnu.org>
118404         * config/depcomp: update from automake.
118405         * config/config.sub: update from prep.
118407 2003-07-03  Karl Berry  <karl@gnu.org>
118409         * config/config.guess: update from prep.
118411 2003-07-01  Paul Eggert  <eggert@twinsun.com>
118413         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
118414         xreadlink.c now includes it unconditionally.
118416 2003-07-01  Paul Eggert  <eggert@twinsun.com>
118418         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
118419         having it depend on HAVE_SYS_TYPES_H.
118421 2003-07-01  Bruno Haible  <bruno@clisp.org>
118423         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
118424         <sys/types.h> should be sufficient.
118425         Reported by Paul Eggert.
118427 2003-06-26  Karl Berry  <karl@gnu.org>
118429         * config/depcomp: update from automake.
118431 2003-06-26  Bruno Haible  <bruno@clisp.org>
118433         * modules/human: Depend on module stdbool.
118435 2003-06-25  Bruno Haible  <bruno@clisp.org>
118437         * modules/readlink: New file.
118438         * modules/xreadlink: Depend on it.
118439         * MODULES.html.sh (func_all_modules): Add readlink.
118441 2003-06-25  Bruno Haible  <bruno@clisp.org>
118443         * m4/readlink.m4: New file.
118445 2003-06-25  Bruno Haible  <bruno@clisp.org>
118447         * lib/readlink.c: New file.
118449 2003-06-22  Karl Berry  <karl@gnu.org>
118451         * config/srclist.txt: update mkinstalldirs from automake.
118452         * config/mkinstalldirs: update.
118454 2003-06-22  Bruno Haible  <bruno@clisp.org>
118456         Portability to mingw32.
118457         * m4/ssize_t.m4: New file, from GNU gettext.
118458         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
118459         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
118461 2003-06-22  Bruno Haible  <bruno@clisp.org>
118463         * modules/safe-read: Add m4/ssize_t.m4.
118464         * modules/xreadlink: Add m4/ssize_t.m4.
118466 2003-06-20  Bruno Haible  <bruno@clisp.org>
118468         Assume C89, so PARAMS isn't needed.
118469         * lib/unicodeio.h (PARAMS): Remove.
118470         * lib/unicodeio.c: Don't use PARAMS.
118472 2003-06-18  Karl Berry  <karl@gnu.org>
118474         * config/config.{guess,sub}: update from prep.
118476 2003-06-18  Jim Meyering  <jim@meyering.net>
118478         Merge changes from coreutils.
118479         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
118480         Remove explicit declarations of xmalloc and realloc.
118481         Include xalloc.h.
118482         (read_utmp): Remove anachronistic cast of xmalloc.
118484 2003-06-17  Paul Eggert  <eggert@twinsun.com>
118486         Assume C89, so PARAMS isn't needed.
118487         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
118488         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
118489         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
118490         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
118491         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
118492         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
118493         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
118494         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
118495         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
118496         lib/xstrtod.h, lib/xstrtol.h: Likewise.
118497         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
118498         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
118499         no longer needed. Anyway, config.h should always be included before any
118500         other file.
118502 2003-06-11  Simon Josefsson  <jas@extundo.com>
118504         * modules/sysexits: New file.
118505         * MODULES.html.sh (func_all_modules): Add sysexits.
118507 2003-06-11  Simon Josefsson  <jas@extundo.com>
118509         * lib/sysexit_.h: New file.
118511 2003-06-11  Derek Price  <derek@ximbiot.com>
118513         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
118514         necessary.
118516 2003-06-11  Bruno Haible  <bruno@clisp.org>
118518         * m4/sysexits.m4: New file.
118520 2003-06-10  Simon Josefsson  <jas@extundo.com>
118522         * lib/argp.h: New file, from glibc.
118523         * lib/argp-ba.c: New file, from glibc.
118524         * lib/argp-eexst.c: New file, from glibc.
118525         * lib/argp-fmtstream.c: New file, from glibc.
118526         * lib/argp-fmtstream.h: New file, from glibc.
118527         * lib/argp-fs-xinl.c: New file, from glibc.
118528         * lib/argp-help.c: New file, from glibc.
118529         * lib/argp-namefrob.h: New file, from glibc.
118530         * lib/argp-parse.c: New file, from glibc.
118531         * lib/argp-pv.c: New file, from glibc.
118532         * lib/argp-pvh.c: New file, from glibc.
118533         * lib/argp-xinl.c: New file, from glibc.
118535 2003-06-10  Simon Josefsson  <jas@extundo.com>
118537         * modules/strchrnul: New file.
118539 2003-06-10  Simon Josefsson  <jas@extundo.com>
118541         * modules/argp: New file.
118543 2003-06-10  Simon Josefsson  <jas@extundo.com>
118545         * m4/strchrnul.m4: New file.
118547 2003-06-10  Simon Josefsson  <jas@extundo.com>
118549         * lib/strchrnul.h: New file.
118550         * lib/strchrnul.c: New file.
118552 2003-06-10  Bruno Haible  <bruno@clisp.org>
118554         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
118556 2003-06-07  Karl Berry  <karl@gnu.org>
118558         * config/config.{guess,sub}: update from prep.
118560 2003-06-07  Jim Meyering  <jim@meyering.net>
118562         * modules/strtod: Use $(...) notation, not @...@ for
118563         AC_REPLACE'd variables.
118564         * modules/localcharset: Likewise.
118566 2003-06-07  Jim Meyering  <jim@meyering.net>
118568         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
118569         in place of my name in the copyright comment.
118570         Remove definition and uses of __P.
118572         From coreutils.
118573         * lib/stat.c: Don't declare xmalloc explicitly.
118574         Instead, include "xalloc.h".
118575         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
118576         xrealloc, and xcalloc return values.
118577         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
118578         Improve comment.
118579         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
118581 2003-06-07  Bruno Haible  <bruno@clisp.org>
118583         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
118584         avoid AC_CONFIG_LINKS.
118585         * modules/fnmatch (Makefile.am): Use explicit creation rule for
118586         fnmatch.h, to avoid AC_CONFIG_LINKS.
118587         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
118589 2003-06-07  Bruno Haible  <bruno@clisp.org>
118591         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
118592         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
118593         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
118594         directory.
118595         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
118596         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
118597         directory.
118599 2003-06-06  Jim Meyering  <jim@meyering.net>
118601         Merge from coreutils.
118602         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
118603         Consolidate declarations and initializations of *_base* locals.
118605         Merge from coreutils.
118606         This avoids a core dump on systems without GNU putenv,
118607         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
118608         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
118609         (unsetenv): New static function, from GNU libc.
118610         (rpl_putenv): Use it.
118612         * lib/modechange.c: Remove trailing blanks.
118614         Merge from coreutils.
118615         * lib/fsusage.c: Remove declaration of statfs.
118616         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
118618         * lib/posixtm.c: Include <stdbool.h> unconditionally.
118620 2003-06-06  Jim Meyering  <jim@meyering.net>
118622         * lib/stdbool_.h: Renamed from stdbool.h.in.
118624 2003-06-06  Jim Meyering  <jim@meyering.net>
118625             Bruno Haible  <bruno@clisp.org>
118627         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
118628         Adjust Makefile.am snippet not to redirect directly to target.
118629         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
118631 2003-06-05  Paul Eggert  <eggert@twinsun.com>
118633         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
118634         mismatch, look in future quarters as well as past.  This fixes a
118635         bug when processing fall-backwards gaps immediately after a long
118636         period of daylight-saving time.
118638         * lib/mktime.c: Assume freestanding C89 or better.
118639         (HAVE_LIMITS_H): Remove.  Assume it's 1.
118640         (__P): Remove; not used.
118641         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
118642         (mktime, not_equal_tm, print_tm, check_result,
118643         main): Use prototypes.  Use const * where appropriate.
118644         (main): Fix typo in testing code that uncovered by above changes.
118645         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
118647 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118649         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
118650         locale.h, localeconv.  This merges changes from coreutils.
118652         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
118653         It can be removed after the next Autoconf is released.
118654         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
118655         needed.
118657 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118659         * lib/mktime.c: Fix Debian bug 177940
118660         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
118661         (localtime_offset): Now long int, not time_t, because we want it
118662         to be guaranteed to be signed.  All uses changed.
118663         (__mktime_internal): If overflow would occur when adding offset,
118664         don't add it.
118666         Merge 'human' changes from coreutils.  Rewrite to support
118667         locale-specific notations like thousands separators.
118668         * lib/human.c: Simplify authorship notice.
118669         Include human.h immediately after config.h.
118670         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
118671         <limits.h>: Do not include, since human.h does.
118672         (SIZE_MAX, UINTMAX_MAX): New macros.
118673         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
118674         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
118675         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
118676         (power_letter): Renamed from suffixes.
118677         (generate_suffix_backwards): Remove.
118678         (adjust_value): Now takes int style (because of human.h changes)
118679         and long double value (for greater precision on some platforms).
118680         (group_number): New function.
118681         (human_readable): Use it.  Use integer options, not enum.
118682         Put the options before the sizes in the arg list.
118683         Support all the new options.
118684         The old human_readable function has been removed;
118685         use inttostr.h instead.
118686         (human_readable, default_block_size, humblock):
118687         Use uintmax_t, not int, for block sizes.
118688         (human_readable_inexact, block_size_types): Remove.
118689         (block_size_opts): New constant.
118690         (human_options): Renamed from human_block_size, with new signature
118691         that allows block sizes up to UINTMAX_MAX.  All callers changed.
118692         * lib/human.h: Add copyright and authorship notice.
118693         Include <limits.h> and <stdbool.h> unconditionally.
118694         (PARAMS): Remove.  All uses removed.
118695         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
118696         (enum human_inexact_style): Remove tag; now a nameless enum.
118697         (human_floor, human_ceiling, human_round_to_even): Now have
118698         values 2, 0, 1 rather than -1, 1, 0.
118699         (human_group_digits, human_suppress_point_zero, human_autoscale,
118700         human_base_1024, human_SI, human_B): New constants.
118701         (human_readable_inexact, human_block_size): Remove.
118702         (human_readable): Size args are now uintmax_t, not int.
118703         (human_options): New decl.
118705         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
118706         unnecessary now that we assume C89 or better.  This change
118707         imported from coreutils.
118709         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
118710         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
118711         in the 2003-05-30 sync from glibc.
118713         .h files should stand alone, but we shouldn't include <sys/types.h>
118714         if we can get away with just <stddef.h>.
118716         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
118717         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
118718         rather than <sys/types.h>, as we merely need size_t.
118719         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
118720         to get size_t.
118721         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
118722         Include <stdio.h>, to get FILE.
118723         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
118724         memcasecmp.h has included <stddef.h> and all we need is size_t.
118725         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
118726         our interface, instead of including <sys/types.h>
118728 2003-06-04  Paul Eggert  <eggert@twinsun.com>
118730         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
118731         now, as glibc mktime is buggy on non-glibc systems.
118733 2003-06-03  Karl Berry  <karl@gnu.org>
118735         * config/config.sub: update from prep.
118737 2003-06-02  Paul Eggert  <eggert@twinsun.com>
118739         [from coreutils]
118740         Fix some minor time-related bugs with POSIX time arguments.
118741         Some valid time stamps were being rejected (notably -1, and
118742         time stamps before 1900 on 64-bit hosts).  And some invalid
118743         time stamps were being accepted, e.g. September 31.
118745         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
118746         that we can return (time_t) -1 successfully.
118747         * lib/posixtm.c: Likewise.
118748         [HAVE_STDBOOL_H]: Include <stdbool.h>.
118749         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
118750         (t): Remove static var.
118751         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
118752         of static var.  All uses changed.
118753         (year): Do not reject years before 1900; they can occur with
118754         64-bit time_t.
118755         (posix_time_parse): Do not check for out-of-range components;
118756         that is now the caller's responsibility, since our checks were
118757         only approximations.
118758         (posixtime): Use mktime to check for out-of-range components,
118759         since it knows them exactly.
118760         If mktime returns (time_t) -1, check whether an error actually occurred
118761         by invoking localtime on -1.
118762         (main) [TEST_POSIXTIME]: Check for input data errors, and report
118763         posixtime failures better.
118764         Improve the test data (in comments only).
118766 2003-06-02  Karl Berry  <karl@gnu.org>
118768         * config/mkinstalldirs (version): new variable.
118769         (--version): new option.
118770         (usage): improve message.
118772 2003-05-30  Karl Berry  <karl@gnu.org>
118774         * lib/mktime.c: update from libc.
118776 2003-05-30  Bruno Haible  <bruno@clisp.org>
118778         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
118779         * config/config.rpath: Upgrade to gettext-0.12.1.
118781 2003-05-30  Bruno Haible  <bruno@clisp.org>
118783         * m4/gettext.m4: Upgrade to gettext-0.12.1.
118784         * m4/nls.m4: New file, from gettext-0.12.1.
118785         * m4/po.m4: New file, from gettext-0.12.1.
118786         * m4/progtest.m4: Upgrade to gettext-0.12.1.
118788 2003-05-30  Bruno Haible  <bruno@clisp.org>
118790         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
118791         * lib/localcharset.h: Likewise.
118792         * lib/localcharset.c: Likewise.
118794 2003-05-29  Karl Berry  <karl@gnu.org>
118796         * config/config.rpath: update from gettext.
118798 2003-05-28  Paul Eggert  <eggert@twinsun.com>
118800         Assume the headers required for C89 freestanding compilers.
118801         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
118802         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
118803         * m4/human.m4 (gl_HUMAN): Likewise.
118804         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
118805         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
118806         * m4/userspec.m4 (gl_USERSPEC): Likewise.
118807         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
118808         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
118809         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
118811 2003-05-28  Paul Eggert  <eggert@twinsun.com>
118813         Assume the headers required for C89 freestanding compilers.
118814         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
118815         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
118816         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
118817         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
118818         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
118819         define, since <limits.h> is guaranteed to do that.
118820         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
118821         * lib/exclude.c: Include <stdbool.h> unconditionally.
118822         * lib/tempname.c: Include <stddef.h> unconditionally.
118823         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
118824         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
118825         <stddef.h> does that.
118826         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
118827         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
118828         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
118829         needed.
118830         * lib/xstrtol.c: Likewise.
118831         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
118832         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
118834         * lib/addext.c (addext): Use assignment rather than cast, to avoid
118835         warnings on some platforms.
118837         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
118838         arbitrarily.
118840 2003-05-26  Jim Meyering  <jim@meyering.net>
118842         Merge in a change from coreutils:
118843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
118844         that is guaranteed to be `no'.  Use `no_such_member' to indicate
118845         that condition, rather than `-1' which is slightly misleading.
118846         Change the name of the cache variable to have the gl_ prefix.
118847         Prompted by a patch from Richard Dawe for DJGPP.
118849 2003-05-24  Karl Berry  <karl@gnu.org>
118851         * config/config.guess: update from prep.
118853 2003-05-22  Karl Berry  <karl@gnu.org>
118855         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
118857 2003-05-20  Karl Berry  <karl@gnu.org>
118859         * config/config.guess: update from prep.
118861 2003-05-18  Karl Berry  <karl@gnu.org>
118863         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
118864         might actually be set by the user.
118866         * config/depcomp, install-sh, mdate-sh: update from automake.
118868 2003-05-17  Bruno Haible  <bruno@clisp.org>
118870         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
118871         invalid expansion for AC_EGREP_CPP.
118872         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
118873         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
118874         Suggested by Akim Demaille <akim@epita.fr> in
118875         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
118877 2003-05-12  Jim Meyering  <jim@meyering.net>
118879         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
118880         the space-padded-by-default conversion specifiers, %e, %k, %l.
118882 2003-05-12  Bruno Haible  <bruno@clisp.org>
118884         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
118885         the string is longer than 4 KB.
118887 2003-05-11  Karl Berry  <karl@gnu.org>
118889         * config/config.{guess,sub}: update from prep.
118891 2003-05-09  Bruno Haible  <bruno@clisp.org>
118893         * modules/error: Add m4/strerror_r.m4 to file list.
118895 2003-05-03  Bruno Haible  <bruno@clisp.org>
118897         Upgrade to Unicode-4.0.
118898         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
118899         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
118900         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
118901         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
118902         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
118903         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
118904         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
118905         Change width of U+E0100..U+E01EF from 1 to 0.
118907 2003-04-25  Jim Meyering  <jim@meyering.net>
118909         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
118910         of type size_t, not int.
118912 2003-04-25  Bruno Haible  <bruno@clisp.org>
118914         * lib/copy-file.c: Include <stddef.h>, for size_t.
118916 2003-04-21  Paul Eggert  <eggert@twinsun.com>
118918         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
118919         code which expansion is under static control.  Patch imported from
118920         Akim Demaille's patch to Bison; see
118921         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
118923 2003-04-14  Bruno Haible  <bruno@clisp.org>
118925         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
118927 2003-04-11  Jim Meyering  <jim@meyering.net>
118929         Merge changes from Coreutils.
118931         2003-03-22  Jim Meyering  <jim@meyering.net>
118933         * lib/strftime.c (widen): Cast alloca return value to proper type.
118935         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
118937         From GNU libc.
118938         * lib/strftime.c (my_strftime): Handle very large width
118939         specifications for numeric values correctly.  Improve checks for
118940         overflow.
118942         2003-01-19  Jim Meyering  <jim@meyering.net>
118944         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
118945         definitions.
118946         (nl_get_alt_digit) [! defined my_strftime]: Define.
118947         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
118948         _nl_get_alt_digit and _nl_get_walt_digit.
118950         * lib/strftime.c (my_strftime): Merge in locale-related changes from
118951         libc. These changes have no effect outside of _LIBC.
118953 2003-04-10  Bruno Haible  <bruno@clisp.org>
118955         * modules/findprog: New file.
118956         * MODULES.html.sh (func_all_modules): Add it.
118958 2003-04-10  Bruno Haible  <bruno@clisp.org>
118960         * m4/findprog.m4: New file.
118961         * m4/eaccess.m4: New file.
118963 2003-04-10  Bruno Haible  <bruno@clisp.org>
118965         * lib/findprog.h: New file, from GNU gettext.
118966         * lib/findprog.c: New file, from GNU gettext.
118968 2003-04-05  Jim Meyering  <jim@meyering.net>
118970         Merge changes from Coreutils.
118972         * lib/exclude.h (PARAMS): Remove definition and uses.
118973         * lib/exclude.c: Remove uses of `PARAMS'.
118975         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
118976         Add test-cases for DOS filenames. Declare program_name.
118977         (main): Set up program_name.  Patch by Rich Dawe.
118979         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
118980         error from mntctl.
118981         Use mntctl's return value to drive the entry-processing loop, since
118982         we can't rely on the value of the vmt_length member in the last
118983         entry.  On some systems doing so could result in exhausting
118984         virtual memory.  Based in part on a patch from Mike Jetzer.
118986 2003-04-04  Bruno Haible  <bruno@clisp.org>
118988         * modules/linebreak: New file.
118989         * MODULES.html.sh (func_all_modules): Add it.
118991 2003-04-04  Bruno Haible  <bruno@clisp.org>
118993         * m4/linebreak.m4: New file.
118995 2003-04-04  Bruno Haible  <bruno@clisp.org>
118997         * lib/linebreak.h: New file, from GNU gettext.
118998         * lib/linebreak.c: New file, from GNU gettext with slight
118999         modifications.
119000         * lib/lbrkprop.h: New file, from GNU gettext.
119002 2003-04-03  Bruno Haible  <bruno@clisp.org>
119004         * modules/utf8-ucs4: New file.
119005         * modules/utf16-ucs4: New file.
119006         * modules/ucs4-utf8: New file.
119007         * modules/ucs4-utf16: New file.
119008         * MODULES.html.sh (func_all_modules): Add them.
119010 2003-04-03  Bruno Haible  <bruno@clisp.org>
119012         * m4/utf-ucs4.m4: New file.
119013         * m4/ucs4-utf.m4: New file.
119015 2003-04-03  Bruno Haible  <bruno@clisp.org>
119017         * lib/utf8-ucs4.h: New file, from GNU gettext.
119018         * lib/utf16-ucs4.h: New file, from GNU gettext.
119019         * lib/ucs4-utf8.h: New file, from GNU gettext.
119020         * lib/ucs4-utf16.h: New file, from GNU gettext.
119022 2003-04-02  Bruno Haible  <bruno@clisp.org>
119024         * modules/binary-io: New file.
119025         * MODULES.html.sh (func_all_modules): Add it.
119027 2003-04-02  Bruno Haible  <bruno@clisp.org>
119029         * lib/binary-io.h: New file, from GNU gettext.
119031 2003-04-01  Bruno Haible  <bruno@clisp.org>
119033         * modules/pathname: New file.
119034         * MODULES.html.sh (func_all_modules): Add it.
119036 2003-04-01  Bruno Haible  <bruno@clisp.org>
119038         * lib/pathname.h: New file, from GNU gettext.
119039         * lib/concatpath.c: New file, from GNU gettext.
119041 2003-03-30  Bruno Haible  <bruno@clisp.org>
119043         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
119045 2003-03-30  Bruno Haible  <bruno@clisp.org>
119047         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
119048         function chown() doesn't exist.
119050 2003-03-28  Bruno Haible  <bruno@clisp.org>
119052         * modules/copy-file: New file.
119053         * MODULES.html.sh (func_all_modules): Add it.
119055 2003-03-28  Bruno Haible  <bruno@clisp.org>
119057         * m4/copy-file.m4: New file.
119059 2003-03-28  Bruno Haible  <bruno@clisp.org>
119061         * lib/copy-file.h: New file, from GNU gettext.
119062         * lib/copy-file.c: New file, from GNU gettext.
119064 2003-03-18  Jim Meyering  <jim@meyering.net>
119066         * lib/quote.c (quote_n): Fix typo in comment.
119068 2003-03-18  Bruno Haible  <bruno@clisp.org>
119070         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
119071         checking.
119072         * m4/onceonly_2_57.m4: Likewise.
119074 2003-03-17  Bruno Haible  <bruno@clisp.org>
119076         * m4/onceonly.m4: Require autoconf 2.54 or newer.
119077         (m4_quote): Remove macro.
119078         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
119080 2003-03-14  Jim Meyering  <jim@meyering.net>
119082         Merge changes from Coreutils.
119083         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
119084         to be const, in order to avoid warnings.
119085         (obstack_room): Likewise.
119086         (obstack_empty_p): Likewise.
119088 2003-03-14  Bruno Haible  <bruno@clisp.org>
119090         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
119091         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
119093 2003-03-13  Paul Eggert  <eggert@twinsun.com>
119095         Merge changes from Bison.
119096         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
119097         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
119098         when compiling Bison 1.875's `bitset bset = obstack_alloc
119099         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
119100         * lib/hash.c: Include <stdbool.h> unconditionally.
119102 2003-03-13  Paul Eggert  <eggert@twinsun.com>
119104         * m4/onceonly.m4 (m4_quote): New macro.
119105         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
119106         Quote AC_FOREACH variable-expansions properly.
119108 2003-03-13  Paul Eggert  <eggert@twinsun.com>
119110         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
119112 2003-03-09  Paul Eggert  <eggert@twinsun.com>
119114         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
119115         Reported by Bruce Becker; see:
119116         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
119118 2003-03-03  Paul Eggert  <eggert@twinsun.com>
119119             Bruno Haible  <bruno@clisp.org>
119121         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
119122         Reported by John Hughes, see
119123         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
119125 2003-02-20  Bruno Haible  <bruno@clisp.org>
119127         * MODULES.html.sh (func_all_modules): Add poll.
119129 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
119131         * modules/poll: New file.
119133 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
119135         * lib/poll_.h: New file.
119136         * lib/poll.c: New file.
119138 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
119140         * m4/poll.m4: New file.
119142 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
119144         * modules/mathl: New file.
119146 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
119148         * lib/mathl.h: New file.
119149         * lib/acosl.c: New file.
119150         * lib/asinl.c: New file.
119151         * lib/atanl.c: New file.
119152         * lib/ceill.c: New file.
119153         * lib/cosl.c: New file.
119154         * lib/expl.c: New file.
119155         * lib/floorl.c: New file.
119156         * lib/frexpl.c: New file.
119157         * lib/ldexpl.c: New file.
119158         * lib/logl.c: New file.
119159         * lib/sincosl.c: New file.
119160         * lib/sinl.c: New file.
119161         * lib/sqrtl.c: New file.
119162         * lib/tanl.c: New file.
119163         * lib/trigl.c: New file.
119164         * lib/trigl.h: New file.
119166 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
119168         * m4/mathl.m4: New file.
119170 2003-02-18  Bruno Haible  <bruno@clisp.org>
119172         * MODULES.html.sh (func_all_modules): Add mathl.
119174 2003-02-17  Bruno Haible  <bruno@clisp.org>
119176         * modules/mkdtemp: New module.
119177         * MODULES.html.sh (func_all_modules): Add it.
119179 2003-02-17  Bruno Haible  <bruno@clisp.org>
119181         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
119183 2003-02-17  Bruno Haible  <bruno@clisp.org>
119185         * lib/mkdtemp.h: New file, from GNU gettext.
119186         * lib/mkdtemp.c: New file, from GNU gettext.
119188 2003-02-02  Jim Meyering  <jim@meyering.net>
119190         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
119191         e.g. glibc-2.2.93.
119193 2003-01-31  Bruno Haible  <bruno@clisp.org>
119195         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
119196         'rpl_rename'.
119197         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
119198         'rpl_strnlen'.
119199         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
119200         'rpl_strtod'.
119201         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
119202         'rpl_utime'.
119204 2003-01-31  Bruno Haible  <bruno@clisp.org>
119206         * lib/rename.c: #undef rename before defining rpl_rename.
119207         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
119209 2003-01-30  Bruno Haible  <bruno@clisp.org>
119211         * modules/vasnprintf, modules/vasprintf: New modules.
119212         * MODULES.html.sh (func_all_modules): Add them.
119214 2003-01-30  Bruno Haible  <bruno@clisp.org>
119216         * m4/signed.m4: New file, from GNU gettext.
119217         * m4/longdouble.m4: New file, from GNU gettext.
119218         * m4/wchar_t.m4: New file, from GNU gettext.
119219         * m4/wint_t.m4: New file, from GNU gettext.
119220         * m4/vasnprintf.m4: New file.
119221         * m4/vasprintf.m4: New file.
119223 2003-01-30  Bruno Haible  <bruno@clisp.org>
119225         * lib/printf-args.h: New file, from GNU gettext.
119226         * lib/printf-args.c: New file, from GNU gettext.
119227         * lib/printf-parse.h: New file, from GNU gettext.
119228         * lib/printf-parse.c: New file, from GNU gettext.
119229         * lib/vasnprintf.h: New file, from GNU gettext.
119230         * lib/vasnprintf.c: New file, from GNU gettext.
119231         * lib/asnprintf.c: New file, from GNU gettext.
119232         * lib/vasprintf.h: New file, from GNU gettext with modifications.
119233         * lib/vasprintf.c: New file, from GNU gettext.
119234         * lib/asprintf.c: New file, from GNU gettext.
119236 2003-01-29  Bruno Haible  <bruno@clisp.org>
119238         * modules/stpncpy: New module.
119239         * MODULES.html.sh (func_all_modules): Add it.
119241 2003-01-29  Bruno Haible  <bruno@clisp.org>
119243         * m4/stpncpy.m4: New file.
119245 2003-01-29  Bruno Haible  <bruno@clisp.org>
119247         * lib/stpncpy.h: New file, from GNU gettext with modifications.
119248         * lib/stpncpy.c: New file, from GNU gettext with modifications.
119250 2003-01-28  Bruno Haible  <bruno@clisp.org>
119252         * modules/c-ctype: New module.
119253         * MODULES.html.sh (func_all_modules): Add it.
119255 2003-01-28  Bruno Haible  <bruno@clisp.org>
119257         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
119258         Paul Eggert.
119259         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
119260         Paul Eggert.
119262 2003-01-27  Bruno Haible  <bruno@clisp.org>
119264         * modules/xsetenv: New module.
119265         * MODULES.html.sh (func_all_modules): Add it.
119267 2003-01-27  Bruno Haible  <bruno@clisp.org>
119269         * lib/xsetenv.h: New file, from GNU gettext.
119270         * lib/xsetenv.c: New file, from GNU gettext.
119272 2003-01-23  Jim Meyering  <jim@meyering.net>
119274         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
119275         from working on systems without dirfd (at least Irix and OSF1/Tru64).
119277 2003-01-23  Bruno Haible  <bruno@clisp.org>
119279         * modules/minmax: New module.
119280         * MODULES.html.sh (func_all_modules): Add it.
119282 2003-01-23  Bruno Haible  <bruno@clisp.org>
119284         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
119285         Eggert.
119287 2003-01-22  Bruno Haible  <bruno@clisp.org>
119289         * modules/exit: New module.
119290         * MODULES.html.sh (func_all_modules): Add it.
119292 2003-01-22  Bruno Haible  <bruno@clisp.org>
119294         * lib/exit.h: New file, from GNU gettext.
119296 2003-01-19  Bruno Haible  <bruno@clisp.org>
119298         * gnulib-tool: Recognize option --extract-maintainer.
119299         (func_get_maintainer): New function.
119300         * modules/*: Add Maintainer entry.
119302 2003-01-16  Jim Meyering  <jim@meyering.net>
119304         * m4/regex.m4: The `regex' struct is both input and output.
119305         Initialize it before each use.  Patch by Tim Waugh.
119307 2003-01-16  Bruno Haible  <bruno@clisp.org>
119309         * MODULES.html.sh: Add a table of contents. Add the module name as
119310         leftmost column. Add hyperlinks.
119312 2003-01-15  Bruno Haible  <bruno@clisp.org>
119314         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
119316 2003-01-15  Bruno Haible  <bruno@clisp.org>
119318         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
119319         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
119320         suffix.
119322 2003-01-15  Bruno Haible  <bruno@clisp.org>
119324         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
119326 2003-01-15  Bruno Haible  <bruno@clisp.org>
119328         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
119329         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
119331 2003-01-14  Jim Meyering  <jim@meyering.net>
119333         * lib/same.c (same_name): Tweak a comment.
119335 2003-01-14  Bruno Haible  <bruno@clisp.org>
119337         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
119338         when a string comparison is sufficient.
119340 2003-01-14  Bruno Haible  <bruno@clisp.org>
119342         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
119343         'unsigned int'.
119345 2003-01-14  Bruno Haible  <bruno@clisp.org>
119347         * lib/hash-pjw.c: Add comment about low quality of this function.
119349 2003-01-13  Bruno Haible  <bruno@clisp.org>
119351         * modules/stpcpy: Distribute lib/stpcpy.h.
119352         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
119354 2003-01-13  Bruno Haible  <bruno@clisp.org>
119356         * modules/*: Add a description.
119357         * modules/strpbrk: Fix Makefile.am snippet.
119358         * modules/strtoimax: Fix dependencies.
119359         * modules/strtoumax: Likewise.
119361 2003-01-13  Bruno Haible  <bruno@clisp.org>
119363         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
119364         * modules/alloca (Makefile.am): All object files depend on alloca.h.
119365         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
119367 2003-01-13  Bruno Haible  <bruno@clisp.org>
119369         * gnulib-tool (func_create_testdir): Store config/* files in the main
119370         directory.
119371         * config.rpath: Move to ...
119372         * config/config.rpath: ... here.
119373         * modules/gettext: Contains config/config.rpath, not config.rpath.
119374         * modules/iconv: Likewise.
119376 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119378         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119379         to avoid collisions with libcurses and libreadline.
119381         * m4/getstr.m4: Remove.
119382         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
119384 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119386         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119387         to avoid collisions with libcurses and libreadline.
119389         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
119390         * lib/getstr.h, getstr.c: Remove.
119391         * lib/getline.c: Include "getline.h", to check interface.
119392         Move body of old getstr.c here: this defines MIN_CHUNK and
119393         declares getdelim2, which is renamed from getstr.
119394         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
119396         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
119397         All uses changed.
119398         * lib/linebuffer.h: Likewise.
119399         (readline): Remove backward-compatibility macro.
119401 2003-01-12  Paul Eggert  <eggert@twinsun.com>
119403         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
119404         to avoid collisions with libcurses and libreadline.
119405         * getstr: Remove.
119406         * MODULES.html.sh: Remove getstr.
119407         * modules/getline: Depend on unlocked-io, not getstr.
119409 2003-01-12  Jim Meyering  <jim@meyering.net>
119411         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
119413 2003-01-10  Bruno Haible  <bruno@clisp.org>
119415         * modules/alloca: Change Makefile.am requirements. Simplify Include
119416         requirements. Add lib/alloca_.h to file list.
119418 2003-01-10  Bruno Haible  <bruno@clisp.org>
119420         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
119422 2003-01-10  Bruno Haible  <bruno@clisp.org>
119424         * lib/alloca_.h: New file.
119425         * lib/getdate.y: Unconditionally include alloca.h.
119426         * lib/makepath.c: Likewise.
119427         * lib/setenv.c: Likewise.
119428         * lib/userspec.c: Likewise.
119430 2003-01-09  Karl Berry  <karl@gnu.org>
119432         * MODULES.html.sh: include `dirname $0` in PATH, to find
119433         gnulib-tool.
119435 2003-01-09  Bruno Haible  <bruno@clisp.org>
119437         * modules/stdbool: Change configure.ac, Makefile.am requirements.
119438         Simplify Include requirements. Add lib/stdbool.h.in to file list.
119440 2003-01-09  Bruno Haible  <bruno@clisp.org>
119442         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
119444 2003-01-09  Bruno Haible  <bruno@clisp.org>
119446         * lib/stdbool.h.in: New file.
119448 2003-01-09  Bruno Haible  <bruno@clisp.org>
119450         * gnulib-tool (func_all_modules): Ignore files ending in ~.
119451         * MODULES.html.sh: Likewise.
119453 2003-01-08  Jim Meyering  <jim@meyering.net>
119455         * lib/full-write.c: Undefine and define-away `const' after inclusion
119456         of errno.h, not before.  Suggestion from Bruno Haible.
119458 2003-01-08  Bruno Haible  <bruno@clisp.org>
119460         * modules/full-read: Depend on full-write.
119462 2003-01-08  Bruno Haible  <bruno@clisp.org>
119464         * lib/safe-read.c: Include specification header first, to ensure its
119465         selfcontainedness.
119466         * lib/full-write.c: Likewise.
119468 2003-01-07  Jim Meyering  <jim@meyering.net>
119470         * lib/full-write.c: Rework so that it may serve to define full_read,
119471         too.
119472         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
119474 2003-01-07  Bruno Haible  <bruno@clisp.org>
119476         * lib/strtoimax.c: Include <stdint.h> as an alternative to
119477         <inttypes.h>.
119478         * lib/xstrtol.h: Likewise.
119479         * lib/xstrtoimax.c: Likewise.
119480         * lib/xstrtoumax.c: Likewise.
119481         * lib/human.h: Likewise.
119483         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
119484         on systems that have <inttypes.h> but not <stdint.h>.
119486 2003-01-07  Bruno Haible  <bruno@clisp.org>
119488         * MODULES.html.sh: Add copyright notice.
119489         (missed_files): Omit CVS directory entries.
119490         (func_module): Make it work with sed-3.02.
119491         * MODULES.txt: Remove file.
119493 2003-01-06  Jim Meyering  <jim@meyering.net>
119495         * lib/version-etc.c: Update year in translatable copyright string.
119497 2003-01-03  Karl Berry  <karl@gnu.org>
119499         * config/config.{guess,sub}: update from prep.
119501 2003-01-02  Karl Berry  <karl@gnu.org>
119503         * doc/COPYING.DOC: belatedly updated to 1.2.
119505 2003-01-01  Karl Berry  <karl@gnu.org>
119507         * gnulib-tool (func_verify_module): report module name $module in
119508         error message, not $1.
119509         * gnulib-tool (create-testdir): don't complain if destdir couldn't
119510         be created, only if it doesn't exist.
119511         * gnulib-tool (last_checkin_date): don't expand the $Date here.
119513 2002-12-31  Paul Eggert  <eggert@twinsun.com>
119515         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
119517 2002-12-31  Paul Eggert  <eggert@twinsun.com>
119519         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
119520         memcmp if strcoll doesn't work.
119522 2002-12-31  Bruno Haible  <bruno@clisp.org>
119524         * lib/utime.c (utime_null): No need to call ftruncate if the file was
119525         nonempty.
119527 2002-12-31  Bruno Haible  <bruno@clisp.org>
119529         * lib/memcoll.c (STRCOLL): New macro.
119530         (memcoll): Use it.
119532 2002-12-31  Bruno Haible  <bruno@clisp.org>
119534         * lib/localcharset.h: New file.
119535         * lib/localcharset.c: Include it.
119536         * lib/unicodeio.c: Likewise.
119538 2002-12-31  Bruno Haible  <bruno@clisp.org>
119540         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
119541         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
119543 2002-12-31  Bruno Haible  <bruno@clisp.org>
119545         * lib/getline.h: Include <stddef.h>, for size_t.
119547         * lib/unicodeio.h: Include <stddef.h>, for size_t.
119548         * lib/unicodeio.c: Don't include <stddef.h>.
119550 2002-12-31  Bruno Haible  <bruno@clisp.org>
119552         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
119553         HAVE_TM_ZONE.
119555 2002-12-24  Karl Berry  <karl@gnu.org>
119557         * config/config.guess: update from prep.
119559 2002-12-24  Bruno Haible  <bruno@clisp.org>
119561         General infrasructure.
119562         * m4/README: Rewritten.
119563         * m4/onceonly.m4: New file.
119564         * m4/onceonly_2_57.m4: New file.
119566         Module atexit.
119567         * m4/atexit.m4: New file.
119569         Module strtod.
119570         * m4/strtod.m4: New file.
119572         Module strtol.
119573         * m4/strtol.m4: New file.
119575         Module strtoul.
119576         * m4/strtoul.m4: New file.
119578         Module memchr.
119579         * m4/memchr.m4: New file.
119581         Module memcmp.
119582         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
119583         (jm_FUNC_MEMCMP): Invoke it.
119585         Module memcpy.
119586         * m4/memcpy.m4: New file.
119588         Module memmove.
119589         * m4/memmove.m4: New file.
119591         Module memset.
119592         * m4/memset.m4: New file.
119594         Module strcspn.
119595         * m4/strcspn.m4: New file.
119597         Module strpbrk.
119598         * m4/strpbrk.m4: New file.
119600         Module strstr.
119601         * m4/strstr.m4: New file.
119603         Module strerror.
119604         * m4/strerror.m4: New file.
119606         Module mktime.
119607         * m4/mktime.m4: Renamed from jm-mktime.m4.
119608         (gl_PREREQ_MKTIME): New macro.
119609         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
119611         Module malloc.
119612         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
119613         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
119614         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
119616         Module realloc.
119617         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
119618         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
119619         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
119621         Module strftime.
119622         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
119623         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
119624         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
119625         gl_TM_GMTOFF.
119626         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
119628         Module xalloc.
119629         * m4/xalloc.m4: New file.
119631         Module alloca.
119632         * m4/alloca.m4: New file.
119634         Module putenv.
119635         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
119636         (jm_FUNC_PUTENV): Invoke it.
119638         Module setenv.
119639         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
119640         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
119641         when invoked twice.
119642         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
119643         gt_FUNC_SETENV.
119645         Module memrchr.
119646         * m4/memrchr.m4: New file.
119648         Module stpcpy.
119649         * m4/stpcpy.m4: New file.
119651         Module strcase.
119652         * m4/strcase.m4: New file.
119654         Module strdup.
119655         * m4/strdup.m4: New file.
119657         Module strnlen.
119658         * m4/strnlen.m4: New file.
119660         Module strndup.
119661         * m4/strndup.m4: New file.
119663         Module xstrtod.
119664         * m4/xstrtod.m4: New file.
119666         Module xstrtol.
119667         * m4/xstrtol.m4: New file.
119669         Module getdate.
119670         * m4/getdate.m4: New file.
119672         Module unlocked-io.
119673         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
119674         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
119675         * m4/jm-glibc-io.m4n: Remove file.
119677         Module long-options.
119678         * m4/long-options.m4: New file.
119680         Module md5.
119681         * m4/md5.m4: New file.
119683         Module sha.
119684         * m4/sha.m4: New file.
119686         Module getstr.
119687         * m4/getstr.m4: New file.
119689         Module getline.
119690         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
119691         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
119692         <sys/types.h>, for size_t. Use the function name gnu_getline, not
119693         simply getline. Infoke gl_PREREQ_GETLINE.
119695         Module obstack.
119696         * m4/obstack.m4: New file.
119698         Module hash.
119699         * m4/hash.m4: New file.
119701         Module readtokens.
119702         * m4/readtokens.m4: New file.
119704         Module strverscmp.
119705         * m4/strverscmp.m4: New file.
119707         Module stdbool.
119708         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
119709         OSF/1.
119711         Module strtoll.
119712         * m4/strtoll.m4: New file.
119714         Module strtoull.
119715         * m4/strtoull.m4: New file.
119717         Module strtoimax.
119718         * m4/strtoimax.m4: New file.
119720         Module strtoumax.
119721         * m4/strtoumax.m4: New file.
119723         Module xstrtoimax.
119724         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
119725         jm_AC_PREREQ_XSTRTOIMAX.
119726         Moved the strtol prerequisites to strtol.m4.
119727         Moved the strtoll prerequisites to strtoll.m4.
119728         Moved the strtoimax prerequisites to strtoimax.m4.
119730         Module xstrtoumax.
119731         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
119732         jm_AC_PREREQ_XSTRTOUMAX.
119733         Moved the strtoul prerequisites to strtoul.m4.
119734         Moved the strtoull prerequisites to strtoull.m4.
119735         Moved the strtoumax prerequisites to strtoumax.m4.
119737         Module chown.
119738         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
119739         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
119741         Module dup2.
119742         * m4/dup2.m4: New file.
119744         Module ftruncate.
119745         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
119746         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
119748         Module getgroups.
119749         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
119750         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
119752         Module gettimeofday.
119753         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
119754         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
119755         gl_PREREQ_GETTIMEOFDAY.
119757         Module mkdir.
119758         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
119759         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
119761         Module mkstemp.
119762         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
119763         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
119764         jm_AC_TYPE_UINTMAX_T.
119765         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
119767         Module stat.
119768         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
119769         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
119771         Module lstat.
119772         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
119773         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
119775         Module timespec.
119776         * m4/timespec.m4 (gl_TIMESPEC): New macro.
119777         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
119778         * m4/st_mtim.m4: Indentation.
119780         Module nanosleep.
119781         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
119782         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
119783         gl_PREREQ_NANOSLEEP.
119785         Module regex.
119786         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
119787         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
119788         (gl_REGEX): New macro.
119790         Module rename.
119791         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
119792         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
119794         Module rmdir.
119795         * m4/rmdir.m4: New file.
119797         Module utime.
119798         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
119799         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
119800         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
119802         Module dirname.
119803         * m4/dirname.m4: New file.
119805         Module getopt.
119806         * m4/getopt.m4: New file.
119808         Module unistd-safer.
119809         * m4/unistd-safer.m4: New file.
119811         Module fnmatch.
119812         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
119813         declaration.
119814         (gl_PREREQ_FNMATCH_EXTRA): New macro.
119815         (gl_FUNC_FNMATCH_POSIX): New macro.
119816         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
119817         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
119818         simply fnmatch.
119820         Module exclude.
119821         * m4/exclude.m4: New file.
119823         Module human.
119824         * m4/human.m4: New file.
119826         Module acl.
119827         * m4/acl.m4: Nop.
119829         Module backupfile.
119830         * m4/backupfile.m4: New file.
119831         * m4/d-ino.m4: Indentation.
119833         Module fsusage.
119834         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
119835         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
119836         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
119838         Module dirfd.
119839         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
119840         requirements.
119842         Module euidaccess.
119843         * m4/euidaccess.m4: New file.
119845         Module file-type.
119846         * m4/file-type.m4: New file.
119848         Module fileblocks.
119849         * m4/fileblocks.m4: New file.
119851         Module filemode.
119852         * m4/filemode.m4: New file.
119854         Module isdir.
119855         * m4/isdir.m4: New file.
119857         Module lchown.
119858         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
119859         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
119861         Module makepath.
119862         * m4/makepath.m4: New file.
119864         Module modechange.
119865         * m4/modechange.m4: New file.
119867         Module mountlist.
119868         * m4/mountlist.m4: New file.
119869         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
119870         Indentation.
119872         Module path-concat.
119873         * m4/path-concat.m4: New file.
119875         Module pathmax.
119876         * m4/pathmax.m4: New file.
119878         Module same.
119879         * m4/same.m4: New file.
119881         Module save-cwd.
119882         * m4/save-cwd.m4: New file.
119884         Module savedir.
119885         * m4/savedir.m4: New file.
119887         Module xgetcwd.
119888         * m4/xgetcwd.m4: New file.
119889         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
119891         Module xreadlink.
119892         * m4/xreadlink.m4: New file.
119894         Module safe-read.
119895         * m4/safe-read.m4: New file.
119897         Module safe-write.
119898         * m4/safe-write.m4: New file.
119900         Module closeout.
119901         * m4/closeout.m4: New file.
119903         Module stdio-safer.
119904         * m4/stdio-safer.m4: New file.
119906         Module getpass.
119907         * m4/getpass.m4: New file.
119909         Module getugroups.
119910         * m4/getugroups.m4: New file.
119912         Module group-member.
119913         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
119914         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
119916         Module idcache.
119917         * m4/idcache.m4: New file.
119919         Module userspec.
119920         * m4/userspec.m4: New file.
119922         Module gettime.
119923         * m4/clock_time.m4: New file.
119924         * m4/gettime.m4: New file.
119926         Module settime.
119927         * m4/settime.m4: New file.
119929         Module posixtm.
119930         * m4/posixtm.m4: New file.
119932         Module gethostname.
119933         * m4/gethostname.m4: New file.
119935         Module canon-host.
119936         * m4/canon-host.m4: New file.
119938         Module gettext.
119939         * m4/codeset.m4: New file, from gettext-0.11.5.
119940         * m4/gettext.m4: New file, from gettext-0.11.5.
119941         * m4/glibc21.m4: New file, from gettext-0.11.5.
119942         * m4/iconv.m4: New file, from gettext-0.11.5.
119943         * m4/intdiv0.m4: New file, from gettext-0.11.5.
119944         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
119945         * m4/inttypes.m4: New file, from gettext-0.11.5.
119946         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
119947         * m4/isc-posix.m4: New file, from gettext-0.11.5.
119948         * m4/lcmessage.m4: New file, from gettext-0.11.5.
119949         * m4/lib-ld.m4: New file, from gettext-0.11.5.
119950         * m4/lib-link.m4: New file, from gettext-0.11.5.
119951         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
119952         * m4/progtest.m4: New file, from gettext-0.11.5.
119953         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
119954         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
119955         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
119957         Module localcharset.
119958         * m4/localcharset.m4: New file.
119960         Module hard-locale.
119961         * m4/hard-locale.m4: New file.
119963         Module mbswidth.
119964         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
119965         onceonly macros.
119966         * m4/mbrtowc.m4: Add comment.
119968         Module memcasecmp.
119969         * m4/memcasecmp.m4: New file.
119971         Module memcoll.
119972         * m4/memcoll.m4: New file.
119974         Module unicodeio.
119975         * m4/unicodeio.m4: New file.
119977         Module rpmatch.
119978         * m4/rpmatch.m4: New file.
119980         Module yesno.
119981         * m4/yesno.m4: New file.
119983         Module exitfail.
119984         * m4/exitfail.m4: New file.
119986         Module c-stack.
119987         * m4/c-stack.m4 (gl_C_STACK): New macro.
119988         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
119990         Module error.
119991         * m4/error.m4 (gl_ERROR): New macro.
119992         (jm_PREREQ_ERROR): Use onceonly macros.
119994         Module fatal.
119995         * m4/fatal.m4: New file.
119997         Module getloadavg.
119998         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
119999         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
120001         Module getpagesize.
120002         * m4/getpagesize.m4: New file.
120004         Module getusershell.
120005         * m4/getusershell.m4: New file.
120007         Module physmem.
120008         * m4/physmem.m4: New file.
120010         Module posixver.
120011         * m4/posixver.m4: New file.
120013         Module quotearg.
120014         * m4/quotearg.m4: New file.
120016         Module quote.
120017         * m4/quote.m4: New file.
120019         Module readutmp.
120020         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
120022         Module sig2str.
120023         * m4/sig2str.m4: New file.
120025         Other.
120026         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
120027         ulonglong.m4.
120028         * m4/intmax_t.m4: New file.
120029         * m4/d-type.m4: Indentation.
120030         * m4/jm-macros.m4: Update.
120031         * m4/prereq.m4 (jm_PREREQ): Update.
120032         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
120033         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
120034         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
120035         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
120036         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
120037         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
120038         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
120039         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
120040         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
120041         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
120042         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
120043         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
120044         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
120045         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
120046         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
120047         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
120048         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
120049         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
120050         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
120052 2002-12-24  Bruno Haible  <bruno@clisp.org>
120054         * MODULES.txt: Update according to m4/ changes.
120056         Module gettext.
120057         * config.rpath: New file, from gettext-0.11.5.
120059         * modules/*: New module descriptions.
120060         * gnulib-tool: New file.
120061         * MODULES.html.sh: New file.
120063 2002-12-21  Karl Berry  <karl@gnu.org>
120065         * doc/fdl.texi: update to version 1.2.
120067 2002-12-19  Karl Berry  <karl@gnu.org>
120069         * config/config.guess: update from prep.
120071 2002-12-18  Bruno Haible  <bruno@clisp.org>
120073         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
120074         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
120076 2002-12-17  Bruno Haible  <bruno@clisp.org>
120078         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
120079         stdlib.h, string.h.
120081 2002-12-17  Bruno Haible  <bruno@clisp.org>
120083         * lib/canon-host.c (strdup): Remove unused declaration.
120085         * lib/fsusage.c: Include full_read.h.
120086         (get_fs_usage): Use full_read instead of safe_read.
120088         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
120090 2002-12-12  Karl Berry  <karl@gnu.org>
120092         * config/config.guess: update from prep.
120094 2002-12-11  Bruno Haible  <bruno@clisp.org>
120096         * m4/setenv.m4: New file, from gettext-0.11.5.
120098 2002-12-11  Bruno Haible  <bruno@clisp.org>
120100         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
120101         not unsetenv().
120102         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
120103         modifications:
120105         2002-12-11  Bruno Haible  <bruno@clisp.org>
120107                 * setenv.c (alloca): Fall back to malloc.
120108                 (freea): New macro.
120109                 (setenv): Use freea() to free memory allocated with alloca().
120111         2002-11-13  Bruno Haible  <bruno@clisp.org>
120113                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
120114                 function declarations.
120115                 * unsetenv.c (unsetenv): Likewise.
120117         2002-03-04  Bruno Haible  <bruno@clisp.org>
120119                 Portability to AIX 4.3.3.
120120                 * unsetenv.c: New file, extracted from setenv.c.
120121                 * setenv.c: Move the unsetenv() function to unsetenv.c.
120123         2001-12-20  Bruno Haible  <bruno@clisp.org>
120125                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
120126                 use malloc instead. For SunOS 4.
120128         2001-12-11  Bruno Haible  <bruno@clisp.org>
120130                 * setenv.c: Declare alloca.
120131                 (compar_fn_t): New typedef.
120132                 (KNOWN_VALUE, STORE_VALUE): Use it.
120134         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
120135         setenv.h.
120137 2002-12-10  Paul Eggert  <eggert@twinsun.com>
120139         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
120140         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
120141         Choose values that are less likely to collide with system fnmatch
120142         options.
120143         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
120144         defined (e.g., a pure POSIX system).
120145         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
120146         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
120148 2002-12-06  Paul Eggert  <eggert@twinsun.com>
120150         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
120151         a pain in practice to deal with generated m4 files.  This change
120152         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
120154         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
120155         and jm-glibc-io.m4, as they are no longer a special case.
120156         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
120157         kludge and the auto-generation stuff.  Check only whether the
120158         functions are declared, not whether they exist, since older hosts
120159         that don't declare the functions can't use the optimization anyway.
120161 2002-12-06  Jim Meyering  <jim@meyering.net>
120163         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
120165         Merge in changes from libc's misc/error.c, in preparation
120166         for the merge of gnulib's changes back into libc.
120168         * lib/error.c (_): Define only if not already defined.
120169         Move definition to follow all #include directives.
120170         Include unlocked-io.h only if !_LIBC.
120171         [_LIBC]: Include <libio/libioP.h>.
120172         [USE_IN_LIBIO]: Include <libio/iolibio.h>
120173         (fflush): Tweak definition to use INTUSE.
120174         (putc): Define.
120176 2002-12-05  Paul Eggert  <eggert@twinsun.com>
120178         * lib/alloca.c [defined emacs]: Include "lisp.h".
120179         (xalloc_die) [defined emacs]: New macro.
120180         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
120181         [! defined emacs]: Include <xalloc.h>.
120182         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
120183         (pointer): Typedef to POINTER_TYPE *.
120184         (malloc): Remove decl; we now always use xmalloc.
120185         (alloca): Use old-style definition, since Emacs needs this.
120186         Check for arithmetic overflow when computing combined size.
120188 2002-12-04  Paul Eggert  <eggert@twinsun.com>
120190         Do not generate unlocked-io.h automatically, since it's easier to
120191         maintain it by hand.
120193         * lib/unlocked-io.h: New file, from GNU diffutils,
120194         but with proper copyright notice and attribution.
120195         * lib/gen-uio: Remove.
120196         * lib/Makefile.am: Add copyright notice.
120197         (libfetish_a_SOURCES): Add unlocked-io.h.
120198         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
120199         (DISTCLEANFILES, io_functions): Remove macros.
120200         (EXTRA_DIST): Remove gen_uio.
120201         (unlocked-io.h): Remove rule.
120203 2002-12-04  Jim Meyering  <jim@meyering.net>
120205         Reflect the fact that stat.c and lstat.c are no longer generated.
120206         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
120207         (DISTCLEANFILES): Likewise.
120208         (EXTRA_DIST): Likewise.
120209         (all_local): Don't depend on stat.c or lstat.c.
120210         (stat.c, lstat.c): Remove rules.
120211         (EXTRA_DIST): Remove xstat.in.
120213         * lib/xstat.in: Remove file.  Contents moved into stat.c.
120214         * lib/stat.c: New file.  Contents mostly from xstat.in.
120215         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
120216         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
120218         * lib/safe-read.c: Rework so that it may serve to define safe_write,
120219         too.
120220         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
120222 2002-12-03  Jim Meyering  <jim@meyering.net>
120224         * lib/safe-read.c, safe-write.c: Change variable names and comments,
120225         but not semantics, to minimize the differences between these two files.
120226         (safe_read): Change comment to mention SAFE_READ_ERROR.
120228         * lib/safe-read.c (IS_EINTR): Define.
120229         (safe_read): Use IS_EINTR in place of in-function cpp directives.
120231 2002-12-02  Jim Meyering  <jim@meyering.net>
120233         * lib/safe-read.c (EINTR): Define.
120234         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
120235         (INT_MAX): Provide fallback.
120236         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
120238         * lib/safe-read.h (SAFE_READ_ERROR): Define.
120240 2002-12-02  Bruno Haible  <bruno@clisp.org>
120242         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
120243         Define, taken from safe-read.c.
120244         (INT_MAX): Provide fallback.
120245         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
120246         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
120248         * lib/safe-read.c (EINTR): Remove definition.
120249         (safe_read): Don't use EINTR if it is absent.
120251 2002-12-01  Jim Meyering  <jim@meyering.net>
120253         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
120254         zero.
120255         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
120257 2002-11-27  Paul Eggert  <eggert@twinsun.com>
120259         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
120260         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
120261         with `if (! (value < limit)) abort ();', for readability.
120263 2002-11-26  Karl Berry  <karl@gnu.org>
120265         * lib/strdup.c: copy from libc again, with jim's ok.
120266         * lib/.cppi-disable: re-add strdup.c
120268 2002-11-25  Karl Berry  <karl@gnu.org>
120270         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
120271         instead of "strtol.c".
120273 2002-11-25  Karl Berry  <karl@gnu.org>
120275         * config/install-sh: update from automake for variable quoting, $0 in
120276         error msgs, etc.
120278         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
120279         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
120280         entry.
120282 2002-11-25  Jim Meyering  <jim@meyering.net>
120284         * lib/mktime.c: Sync from libc, now that it has the latest fix.
120286 2002-11-24  Karl Berry  <karl@gnu.org>
120288         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
120289         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
120291 2002-11-24  Jim Meyering  <jim@meyering.net>
120293         Update from coreutils:
120295         * lib/mktime.c: Merge in changes from libc.
120297         Avoid a link-time failure on some Linux systems.
120298         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
120299         (otherwise).
120300         (__mon_yday): Declare with the STATIC attribute.
120301         (__mktime_internal): Likewise.
120302         Based on a report from Greg Schafer.
120304 2002-11-23  Jim Meyering  <jim@meyering.net>
120306         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
120307         Use `unsigned', not `int', as type of index.
120309         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
120311         * lib/fsusage.c: Remove unneeded parentheses around operands of
120312         `defined'.
120314 2002-11-22  Paul Eggert  <eggert@twinsun.com>
120316         * lib/quotearg.h: Allow multiple inclusion by surrounding with
120317         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
120318         so that we can be included first.
120319         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
120320         * lib/quotearg.c: Include quotearg.h immediately after config.h.
120321         No need to include stddef.h or sys/types.h any more.
120322         Surround local include files with "", not "<>".
120323         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
120324         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
120325         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
120326         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
120327         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
120328         (ISPRINT): Remove; no longer needed now that we assume C89.
120330         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
120331         Preserve errno.
120333         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
120334         quotearg_char): Use SIZE_MAX rather than
120335         (size_t) -1 when we are talking about "infinity".
120337         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
120339 2002-11-22  Paul Eggert  <eggert@twinsun.com>
120341         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
120342         hint that one should use `if (! x) abort ();' rather than `assert
120343         (x);', and anyway it's one less thing to worry about configuring.
120344         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
120345         hash_rehash, hash_insert): Use abort rather than assert.
120347 2002-11-22  Bruno Haible  <bruno@clisp.org>
120349         * lib/safe-read.h: Assume C89. Add comments.
120350         (safe_read): Change return type to size_t.
120351         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
120352         byte counts > SSIZE_MAX correctly.
120353         * lib/safe-write.h: New file.
120354         * lib/safe-write.c: New file.
120355         * lib/full-read.h: New file.
120356         * lib/full-read.c: New file.
120357         * lib/full-write.h: Assume C89. Add comments.
120358         * lib/full-write.c: Include safe-write.h.
120359         (full_write): Rewritten to use safe_write.
120360         Suggested by Jim Meyering and Paul Eggert.
120362 2002-11-21  Jim Meyering  <jim@meyering.net>
120364         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
120366         Merge in changes from the coreutils.
120368         2002-09-25  Paul Eggert  <eggert@twinsun.com>
120369         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
120370         <stdint.h>.
120371         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
120372         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
120373         int.  Work more efficiently if X is the same width as uintmax_t.
120374         Do not compare X to -1, to avoid bogus compiler warning.
120375         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
120376         Don't assume that f_frsize and f_bsize are the same type.
120378         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
120379         warning on FreeBSD.
120381         * lib/makepath.c (make_path): Restore umask *before* creating the final
120382         component.
120383         (make_path): Minor reformatting.
120385         * lib/xmalloc.c: Adjust to work with new autoconf macros,
120386         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
120387         HAVE_MALLOC/HAVE_REALLOC.
120389         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
120390         dummy ones.  At least on GNU/Linux systems, `auto' means something
120391         else.
120392         From Michael Stone.
120394 2002-11-21  Bruno Haible  <bruno@clisp.org>
120396         Remove case insensitive option matching.
120397         * lib/argmatch.h (argcasematch): Remove declaration.
120398         (ARGCASEMATCH): Remove macro.
120399         (__xargmatch_internal): Remove case_sensitive argument.
120400         (XARGMATCH): Update.
120401         (XARGCASEMATCH): Remove macro.
120402         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
120403         case_sensitive argument.
120404         (argcasematch): Remove function.
120405         (__xargmatch_internal): Remove case_sensitive argument.
120406         (main): Use XARGMATCH instead of XARGCASEMATCH.
120408         * lib/xmalloc.c: Change compile-time error message. Add comment about
120409         required autoconf version.
120411 2002-11-20  Paul Eggert  <eggert@twinsun.com>
120413         Merge argmatch cleanups from Bison.  Assume C89.
120415         * lib/argmatch.c: Include config.h here, not in argmatch.h.
120416         Include stdlib.h, for EXIT_FAILURE.
120417         Always include <string.h>, since we assume C89.
120418         (EXIT_FAILURE): Remove pre-C89 bug workaround.
120419         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
120420         Include <stddef.h> instead, since it's all we need for size_t.
120421         (PARAMS): Remove.  All uses removed.
120422         (ARRAY_CARDINALITY): Do not bother to #undef.
120423         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
120424         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
120425         Remove unnecessary parentheses.
120426         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
120427         Insert necessary parentheses.
120428         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
120429         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
120431 2002-11-19  Bruno Haible  <bruno@clisp.org>
120433         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
120434         * lib/mbswidth.h: Include <stddef.h>, for size_t.
120436         * lib/mbswidth.h (PARAMS): Remove macro.
120437         (mbswidth, mbsnwidth): Use ANSI C function declarations.
120438         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
120440         * lib/gcd.h (PARAMS): Remove macro.
120441         (gcd): Use ANSI C function declarations.
120442         * lib/gcd.c (gcd): Likewise.
120444 2002-11-15  Bruno Haible  <bruno@clisp.org>
120446         * lib/strcspn.c: Include <stddef.h>.
120447         (strcspn): Use ANSI C function declaration. Change return type to
120448         size_t. Use NULL.
120449         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
120450         (strpbrk): Use NULL.
120451         * lib/strpbrk.h (PARAMS): Remove macro.
120452         (strpbrk): Use ANSI C function declaration.
120453         * lib/strstr.c: Don't include <sys/types.h>.
120454         * lib/strstr.h (PARAMS): Remove macro.
120455         (strstr): Use ANSI C function declarations.
120457 2002-11-14  Karl Berry  <karl@gnu.org>
120459         * config/mkinstalldirs: `do' on separate line, instead of
120460         `for var; do'.
120462 2002-11-06  Bruno Haible  <bruno@clisp.org>
120464         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
120465         * lib/gcd.c (gcd): Likewise.
120467 2002-11-05  Bruno Haible  <bruno@clisp.org>
120469         * lib/gcd.h: New file, from gettext-0.11.5.
120470         * lib/gcd.c: New file, from gettext-0.11.5.
120472 2002-11-05  Bruno Haible  <bruno@clisp.org>
120474         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120475         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120476         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120477         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
120479         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
120480         <libintl.h>.
120481         * lib/makepath.c: Include gettext.h instead of <locale.h> and
120482         <libintl.h>.
120484         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
120485         * lib/human.c: Include gettext.h instead of <libintl.h>.
120486         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
120487         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
120488         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
120489         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
120490         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
120491         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
120492         (textdomain): Remove definition.
120493         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
120495         * lib/long-options.c: Remove include of <libintl.h> and definition of
120496         _.
120497         * lib/same.c: Remove include of <libintl.h> and definition of _.
120499 2002-11-04  Owen Taylor  <otaylor@redhat.com>
120501         * lib/config.charset: A few additions for Solaris.
120503 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
120505         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
120506         * lib/localcharset.c (locale_charset): Declare as extern "C".
120508 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
120510         * lib/config.charset: msdos in uk_UA uses CP1125.
120512 2002-11-04  Bruno Haible  <bruno@clisp.org>
120514         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
120515         * lib/strcase.h: New file, from GNU gettext-0.11.5.
120516         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
120517         * lib/strstr.h: New file, from GNU gettext-0.11.5.
120518         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
120520 2002-11-04  Bruno Haible  <bruno@clisp.org>
120522         * lib/localcharset.c (locale_charset): Don't return an empty string.
120524 2002-11-04  Bruno Haible  <bruno@clisp.org>
120526         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
120527         aliases.
120529 2002-11-04  Bruno Haible  <bruno@clisp.org>
120531         * lib/config.charset: Update for newest glibc. Add canonical names
120532         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
120534 2002-11-04  Bruno Haible  <bruno@clisp.org>
120536         * lib/config.charset: Add support for NetBSD.
120538 2002-11-04  Bruno Haible  <bruno@clisp.org>
120540         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
120542 2002-11-01  Bruno Haible  <bruno@clisp.org>
120544         * configure.in: Add AC_CONFIG_AUX_DIR call.
120545         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
120546         test/Makefile.
120547         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
120549 2002-09-28  Karl Berry  <karl@gnu.org>
120551         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
120552         installed automake until the next release, since changes have been
120553         made.
120555 2002-09-25  Karl Berry  <karl@gnu.org>
120557         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
120558         * lib/getopt*: copy from libc/posix.
120559         * lib/gettext.h: copy from gettext.
120560         * lib/.cppi-disable: add strdup.c, gettext.h.
120562 2002-09-25  Karl Berry  <karl@gnu.org>
120564         * config/srclist.txt: enable gettext.h check.
120565         * config/config.{guess,sub}: update from prep.
120566         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
120567                 from automake 1.6.3.
120568         See srclist*.
120570 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
120572         * regex.c (PATFETCH): Remove the translating fetch.
120573         (PATFETCH_RAW): Rename to PATFETCH.
120574         (set_image_of_range): New fun.
120575         (SET_RANGE_TABLE_WORK_AREA): Use it.
120576         (regex_compile): Don't translate the pattern chars so eagerly.
120577         Only do it when inserting an `exactn' bytecode or when handling
120578         a char-range.
120579         (mutually_exclusive_p): Avoid empty statement.
120581 2002-07-06  Jim Meyering  <meyering@lucent.com>
120583         * m4/README: Don't mention Makefile.am.in.
120584         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
120586 2002-07-01  Jim Meyering  <meyering@lucent.com>
120588         * lib/c-stack.c: Include sys/time.h.
120589         From Volker Borchert.
120591 2002-06-26  Paul Eggert  <eggert@twinsun.com>
120593         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
120595 2002-06-26  Paul Eggert  <eggert@twinsun.com>
120597         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
120598         New macro.  Use it uniformly instead of
120599         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
120600         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
120601         reported by Vin Shelton.
120603 2002-06-22  Paul Eggert  <eggert@twinsun.com>
120605         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
120606         Do not assume SA_SIGINFO behavior.
120607         Bug reported by Jim Meyering on NetBSD 1.5.2.
120609 2002-06-22  Jim Meyering  <meyering@lucent.com>
120611         * m4/c-stack.m4: New file, from diffutils-2.8.2.
120612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
120614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
120615         now that configure.ac uses AC_GNU_SOURCE.
120616         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
120617         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
120619         Update to latest tools.  Suggestions from Paul Eggert.
120620         * m4/stdbool.m4: New file, from diffutils-2.8.2.
120621         * m4/gnu-source.m4: Update from diffutils-2.8.2.
120622         * m4/fnmatch.m4: Likewise.
120623         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
120624         to AC_HEADER_STDBOOL
120626 2002-06-22  Jim Meyering  <meyering@lucent.com>
120628         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
120629         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
120631 2002-06-22  Jim Meyering  <meyering@lucent.com>
120633         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
120635         * lib/exitfail.c, exitfail.h: Likewise.
120636         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
120638         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
120639         of fnmatch.h.
120640         (EXTRA_DIST): Add fnmatch_loop.c.
120641         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
120643         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
120644         * lib/fnmatch.c: Update from diffutils-2.8.2.
120645         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
120646         * lib/fnmatch.h: Remove file.
120648 2002-06-21  Jim Meyering  <meyering@lucent.com>
120650         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
120651         * m4/mbrtowc.m4: Likewise.
120653         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
120654         * m4/mbswidth.m4: Reflect name change:
120655         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
120656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
120658         * m4/lib-link.m4: Update from gettext-0.11.2.
120659         * m4/gettext.m4: Likewise.
120661         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
120662         From Alfred M. Szmidt.
120664 2002-06-18  Paul Eggert  <eggert@twinsun.com>
120666         * lib/file-type.h: Report an error if neither S_ISREG nor
120667         S_IFREG is defined, instead of using a test specific to glibc
120668         2.2.  This should be safe, since POSIX requires S_ISREG and
120669         Unix Version 7 had S_IFREG.  We don't need to check for
120670         <sys/types.h> since we don't use any symbols that it defines.
120672 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
120674         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
120675         $@-t, so that each temporary file name is unique and valid in the first
120676         8 characters, for operation under DOS.
120678 2002-06-15  Paul Eggert  <eggert@twinsun.com>
120680         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
120682 2002-06-15  Jim Meyering  <meyering@lucent.com>
120684         Work even with DJGPP 2.03, which lacks support for symlinks.
120685         From Richard Dawe.
120686         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
120687         is defined.
120688         * lib/lchown.c (S_ISLNK): Likewise.
120690 2002-06-15  Jim Meyering  <meyering@lucent.com>
120692         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
120693         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
120694         have been included before this file.
120696 2002-06-14  Jim Meyering  <meyering@lucent.com>
120698         * lib/file-type.h: Use the version from diffutils-2.8.2.
120699         * lib/file-type.c: Likewise.
120701 2002-06-07  Jim Meyering  <meyering@lucent.com>
120703         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
120704         They're needed at least for NetBSD 1.5.2.
120705         ($statxfs_includes): Include those same headers.
120706         ($statxfs_includes): Include sys/vfs.h if available.
120707         ($statxfs_includes): Likewise for sys/statvfs.h.
120708         Check for the following members in both structs statfs and statvfs:
120709         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
120711 2002-06-01  Jim Meyering  <meyering@lucent.com>
120713         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
120714         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
120716 2002-05-28  Jim Meyering  <meyering@lucent.com>
120718         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
120719         Reported by Volker Borchert.
120721 2002-05-27  Jim Meyering  <meyering@lucent.com>
120723         Fix a problem seen only on nonconforming systems whereby ls.c's
120724         use of localtime, and then of gettimeofday would cause trouble:
120725         the localtime call used to initialize rpl_gettimeofday's save
120726         mechanism would clobber ls's current local time information so
120727         that in any long listing the first file would always be listed
120728         with date 1970-01-01.  Analysis by Volker Borchert.
120730         * lib/gettimeofday.c (localtime): Undefine.
120731         (rpl_localtime): New function.
120733 2002-05-27  Jim Meyering  <meyering@lucent.com>
120735         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
120736         localtime.
120738         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
120739         use the replacement function; it wouldn't resolve at link time.
120740         Reported by Volker Borchert.
120742 2002-05-22  Jim Meyering  <meyering@lucent.com>
120744         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
120745         file-type.h.
120746         * lib/file-type.h: New file.
120747         * lib/file-type.c (file_type): New file/function.  Extracted from
120748         diffutils.
120750 2002-04-30  Jim Meyering  <meyering@lucent.com>
120752         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
120754 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120756         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
120758 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120760         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
120761         Do not check for alloca.h (no longer used) or stdbool.h (was never
120762         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
120764 2002-04-29  Paul Eggert  <eggert@twinsun.com>
120766         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
120768 2002-04-29  Jim Meyering  <meyering@lucent.com>
120770         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
120771         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
120772         Use AC_FUNC_STRNLEN here instead.
120774         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
120775         With autoconf-2.53a, it's part of AC_PROG_CC.
120777 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120779         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
120780         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
120782 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120784         * lib/sig2str.h, lib/sig2str.c: New files.
120785         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
120787 2002-04-28  Paul Eggert  <eggert@twinsun.com>
120789         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
120790         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
120791         of 127, since 64 is the largest conceivable number for ancient
120792         nonstandard hosts.
120793         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
120795 2002-04-28  Jim Meyering  <meyering@lucent.com>
120797         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
120799 2002-04-24  Jim Meyering  <meyering@lucent.com>
120801         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
120802         (jm_PREREQ): Use it.
120804         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
120805         mach/mach.h fcntl.h.
120806         Check for this function: setlocale.
120808 2002-04-24  Jim Meyering  <meyering@lucent.com>
120810         * lib/gettext.h: New file, from Gettext.
120811         * lib/Makefile.am (INCLUDES): Remove -I../intl.
120812         (libfetish_a_SOURCES): Add gettext.h.
120814 2002-04-16  Jim Meyering  <meyering@lucent.com>
120816         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
120817         ut_pid, ut_id, ut_exit.
120819 2002-04-16  Jim Meyering  <meyering@lucent.com>
120821         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
120822         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
120823         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
120825 2002-04-12  Jim Meyering  <meyering@lucent.com>
120827         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
120828         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
120829         existence of the getmntinfo function.  Needed for Darwin 5.3.
120831         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
120832         This is necessary at least on Darwin 5.3.
120834         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
120835         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
120836         strnlen.o in the library, and that makes some versions of ranlib
120837         object.
120839 2002-04-12  Jim Meyering  <meyering@lucent.com>
120841         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
120843 2002-04-09  Jim Meyering  <meyering@lucent.com>
120845         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
120846         to be more precise.  Rather than saying we're checking whether the
120847         function `works', say what we're testing.
120848         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
120849         Reported by Bruno Haible.
120851 2002-03-10  Jim Meyering  <meyering@lucent.com>
120853         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
120854         Suggestion from Santiago Vila.
120856 2002-03-08  Jim Meyering  <meyering@lucent.com>
120858         * lib/rename.c: Mention that this wrapper is needed also on
120859         mips-dec-ultrix4.4 systems.
120861 2002-03-02  Jim Meyering  <meyering@lucent.com>
120863         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
120864         not HAVE_CLOCK_SETTIME.
120866 2002-02-27  Paul Eggert  <eggert@twinsun.com>
120868         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
120869         Check for clock_settime.
120871 2002-02-27  Paul Eggert  <eggert@twinsun.com>
120873         * lib/nanosleep.h: Rename to....
120874         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
120876         * lib/gettime.c: New file.
120877         * lib/settime.c: New file.
120878         * lib/stime.c: Remove.
120880         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
120881         timespec.h.  Remove nanosleep.h.
120883 2002-02-25  Paul Eggert  <eggert@twinsun.com>
120885         * m4/acl.m4: New file.
120886         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
120887         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
120889 2002-02-25  Paul Eggert  <eggert@twinsun.com>
120891         * lib/acl.c, lib/acl.h: New files.
120892         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
120894 2002-02-24  Jim Meyering  <meyering@lucent.com>
120896         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
120897         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
120898         cause trouble.  Reported by Nelson Beebe.
120900 2002-02-23  Paul Eggert  <eggert@twinsun.com>
120902         * lib/path-concat.c (xpath_concat): Reorder code to pacify
120903         compilers that don't know that xalloc_die never returns.
120905 2002-02-20  Jim Meyering  <meyering@lucent.com>
120907         * lib/getdate.c: Regenerate using bison-1.33.
120909 2002-02-17  Jim Meyering  <meyering@lucent.com>
120911         * config/config.guess (main): Don't use `head -1'; it's no longer
120912         portable. Use `sed 1q' instead.
120914 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
120916         * m4/codeset.m4: Upgrade to gettext-0.11.
120917         * m4/gettext.m4: Upgrade to gettext-0.11.
120918         * m4/glibc21.m4: Upgrade to gettext-0.11.
120919         * m4/iconv.m4: Upgrade to gettext-0.11.
120920         * m4/isc-posix.m4: Upgrade to gettext-0.11.
120921         * m4/lcmessage.m4: Upgrade to gettext-0.11.
120922         * m4/lib-ld.m4: New file, from gettext-0.11.
120923         * m4/lib-link.m4: New file, from gettext-0.11.
120924         * m4/lib-prefix.m4: New file, from gettext-0.11.
120925         * m4/progtest.m4: Upgrade to gettext-0.11.
120927 2002-02-15  Paul Eggert  <eggert@twinsun.com>
120929         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
120930         (jm_PREREQ): Use it.
120932 2002-02-15  Paul Eggert  <eggert@twinsun.com>
120934         * lib/posixver.c, lib/posixver.h: New files.
120935         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
120937 2002-02-02  Paul Eggert  <eggert@twinsun.com>
120938             Bruno Haible  <bruno@clisp.org>
120940         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
120941         (fwrite_success_callback): New declaration.
120942         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
120943         print_unicode_char. Call failure callback instead of error.
120944         (fwrite_success_callback): New function.
120945         (exit_failure_callback): New function.
120946         (fallback_failure_callback): New function.
120947         (print_unicode_char): Call unicode_to_mb.
120949 2002-01-26  Jim Meyering  <meyering@lucent.com>
120951         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
120952         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
120954 2002-01-26  Jim Meyering  <meyering@lucent.com>
120956         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
120958 2002-01-22  Paul Eggert  <eggert@twinsun.com>
120960         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
120962 2002-01-22  Jim Meyering  <meyering@lucent.com>
120964         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
120965         Otherwise, some versions of automake would omit the rule that makes
120966         Makefile from Makefile.in.
120968 2002-01-21  Paul Eggert  <eggert@twinsun.com>
120970         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
120971         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
120972         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
120973         (memcoll): Set errno to zero if there is no error.
120975         * lib/quotearg.c (quotearg_buffer_restyled):
120976         Fix bug with quoting buffers containing NUL when backslashing escapes.
120977         This bug was exposed by the other changes in this patch.
120978         (quotearg_n_options): New arg ARGSIZE.
120979         All callers changed.
120980         (quoting_options_from_style): New function.
120981         (quotearg_n_style): Use it.
120982         (quotearg_n_style_mem): New function.
120984         * lib/quotearg.h (quotearg_n_style_mem): New function.
120986 2002-01-19  Jim Meyering  <meyering@lucent.com>
120988         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
120989         Remove useless quotes: DF_PROG="df".
120990         * m4/strnlen.m4: New file.
120992 2002-01-16  Paul Eggert  <eggert@twinsun.com>
120994         * lib/backupfile.c (ISDIGIT): Comment fix.
120995         * lib/getdate.y (ISDIGIT): Likewise.
120996         * lib/posixtm.c (ISDIGIT, year): Likewise.
120997         * lib/strverscmp.c (ISDIGIT): Likewise.
120998         * lib/userspec.c (ISDIGIT): Likewise.
121000 2002-01-16  Jim Meyering  <meyering@lucent.com>
121002         * lib/getdate.y: Add three semicolons, each just before a closing
121003         brace. Bison (as of version 1.31) no longer papers over that mistake.
121005 2002-01-05  Jim Meyering  <meyering@lucent.com>
121007         * lib/version-etc.c (version_etc_copyright): Update copyright year.
121009 2001-12-19  Paul Eggert  <eggert@twinsun.com>
121011         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
121012         not silently exit merely because the output buffer happens to
121013         have nothing pending.
121015 2001-12-18  Paul Eggert  <eggert@twinsun.com>
121017         See the big note in ../ChangeLog.
121018         * lib/human.c (suffixes): Prefer K to k for 1024.
121019         (generate_suffix_backwards): New function.
121020         (human_readable_inexact): Use it.
121021         * lib/xstrtol.c (__xstrtol): If there is no number but there
121022         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
121023         Accept 'K' as well as 'k'.
121025 2001-12-15  Jim Meyering  <meyering@lucent.com>
121027         * lib/regex.h (__restrict_arr): Update from libc.
121029         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
121030         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
121031         (STREQ): Define.
121033 2001-12-14  Jim Meyering  <meyering@lucent.com>
121035         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
121036         Suggestion from Bruno Haible.
121038 2001-12-10  Jim Meyering  <meyering@lucent.com>
121040         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
121041         xrealloc, Instead, include "xalloc.h".
121042         (initbuffer): Don't cast xmalloc return value to char*.
121043         (readline): Reword comment.
121044         Don't cast xrealloc return value to char*
121045         Return NULL, not 0.
121047 2001-12-09  Jim Meyering  <meyering@lucent.com>
121049         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
121050         about `signed and unsigned type in conditional expression'.
121051         * lib/posixtm.c (posix_time_parse): Likewise.
121053         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
121055         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
121056         to avoid a pedantic warning.
121058         * lib/getstr.c: Don't include assert.h.
121059         (getstr): Remove warning-evoking assertions.
121060         Return -1 if offset parameter is out of bounds.
121061         Change the type of a local from int to size_t.
121063         * lib/strftime.c (my_strftime_localtime_r): Include this function
121064         definition in the `#if ! HAVE_TM_GMTOFF' block.
121066         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
121067         Include xalloc.h instead.
121069 2001-12-02  Jim Meyering  <meyering@lucent.com>
121071         * lib/tempname.c: Don't declare getenv, thus reverting the change of
121072         2001-11-18.  It's no longer necessary, now that stdlib.h is always
121073         included.
121075         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
121076         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
121078 2001-11-30  Akim Demaille  <akim@epita.fr>
121080         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
121081         before being defined.
121083 2001-11-27  Paul Eggert  <eggert@twinsun.com>
121085         * lib/quotearg.h (quotearg_n, quotearg_n_style):
121086         First arg is int, not unsigned.
121087         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
121088         (SIZE_MAX, UINT_MAX): New macros.
121089         (quotearg_n_options): Abort if N is negative.
121090         Avoid overflow check on hosts where size_t is 64 bits and int
121091         is 32 bits, as overflow is impossible there.
121092         Fix off-by-one typo that caused unnecessary reallocation.
121094 2001-11-27  Jim Meyering  <meyering@lucent.com>
121096         * lib/tempname.c: Merge with version from libc.
121097         * lib/regex.c: Likewise.
121099         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
121100         systems for which STDC_HEADERS is 0, it was not included, resulting in
121101         a warning about an integer-to-pointer conversion problem with getenv.
121102         Reported by Volker Borchert.
121104 2001-11-26  Jim Meyering  <meyering@lucent.com>
121106         * lib/gtod.h: Remove file.
121107         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
121108         * lib/gettimeofday.c: Don't include gtod.h.
121109         (GTOD_init): Remove function.
121110         (rpl_gettimeofday): Do its job here instead, rather than aborting.
121111         Suggestion from Volker Borchert.
121113 2001-11-23  Jim Meyering  <meyering@lucent.com>
121115         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
121116         it.
121117         * lib/hash.c (struct hash_table): Define it here instead.
121119 2001-11-22  Jim Meyering  <meyering@lucent.com>
121121         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
121123 2001-11-20  Jim Meyering  <meyering@lucent.com>
121125         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
121126         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
121128 2001-11-19  Jim Meyering  <meyering@lucent.com>
121130         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
121131         directory.  Use "conftestXXXXXX" as the template.
121132         Suggestion from Paul Eggert.
121134         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
121135         immediately, so the test doesn't mistakenly hit the max-open-files
121136         limit.
121138 2001-11-18  Paul Eggert  <eggert@twinsun.com>
121140         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
121141         (TEMPORARIES): New macro.
121142         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
121143         removes an artificial limitation (e.g. HP-UX 10.20, where
121144         TMP_MAX is 17576).
121146 2001-11-18  Jim Meyering  <meyering@lucent.com>
121148         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
121150 2001-11-18  Jim Meyering  <meyering@lucent.com>
121152         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
121153         on SunOS 4.
121155         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
121156         files will be created before anything else.
121158 2001-11-17  Paul Eggert  <eggert@twinsun.com>
121160         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
121161         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
121163 2001-11-17  Jim Meyering  <meyering@lucent.com>
121165         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
121166         Prompted by a report from Bob Proulx.
121168         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
121169         Instead, require UTILS_FUNC_MKSTEMP.
121171 2001-11-17  Jim Meyering  <meyering@lucent.com>
121173         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
121174         Now, that's done as part of AC_FUNC_STRTOD.
121176 2001-11-17  Jim Meyering  <meyering@lucent.com>
121178         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
121179         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
121180         rather than group writable.  Patch by Juan F. Codagnone.
121182         * lib/readtokens.c: Remove explicit declarations of xmalloc and
121183         xrealloc, Instead, include "xalloc.h".
121185         * lib/mountlist.c: Include unlocked-io.h after all system headers.
121186         Remove explicit declarations of xmalloc, xrealloc,
121187         and xstrdup.  Instead, include "xalloc.h".
121189         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
121190         unlocked-io.h.
121191         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
121192         Likewise.
121193         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
121195         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
121196         Reported by Padraig Brady.
121198         * lib/mkstemp.c: #undef mkstemp.
121199         Include config.h.
121200         (rpl_mkstemp): Rename from mkstemp.
121201         Protoize.
121203 2001-11-16  Jim Meyering  <meyering@lucent.com>
121205         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
121206         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
121207         determine the amount of total physical memory, use pstat_getstatic.
121208         HPUX-11 doesn't define _SC_PHYS_PAGES.
121209         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
121210         If sysconf couldn't be used to determine the amount of available
121211         physical memory, use both pstat_getstatic and pstat_getdynamic.
121212         Based on a patch from Bob Proulx.
121214 2001-11-10  Jim Meyering  <meyering@lucent.com>
121216         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
121217         (jm_PREREQ): Use it.
121219 2001-11-09  Jim Meyering  <meyering@lucent.com>
121221         * m4/jm-macros.m4: Require autoconf-2.52f.
121222         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
121223         Use these AC_-prefixed names, not the AM_-prefixed ones.
121225         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
121227 2001-11-05  Jim Meyering  <meyering@lucent.com>
121229         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
121231 2001-11-04  Jim Meyering  <meyering@lucent.com>
121233         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
121234         $DEFS.
121236 2001-11-03  Jim Meyering  <meyering@lucent.com>
121238         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
121239         of AC_DEFUN.
121241         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
121242         know the name of the variable in the macro definition.
121244 2001-11-03  Jim Meyering  <meyering@lucent.com>
121246         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
121247         in argmatch_to_argument call.
121249         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
121250         argument.
121252         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
121253         e.g., a fault due to an attempt to free a NULL pointer.
121255 2001-11-01  Jim Meyering  <meyering@lucent.com>
121257         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
121258         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
121260 2001-11-01  Jim Meyering  <meyering@lucent.com>
121262         * lib/dirfd.c, lib/dirfd.h: New files.
121263         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
121265         * lib/hash.c (hash_print) [TESTING]: Clean up.
121267 2001-10-22  Paul Eggert  <eggert@twinsun.com>
121269         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
121270         to avoid a warning if -Wall.
121272 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
121274         * README: New file
121275         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
121276         (per RMS's instructions, this is now the canonical source)
121277         * lgpl/, gpl/: New directories.
121279 2001-10-21  Paul Eggert  <eggert@twinsun.com>
121281         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
121283 2001-10-21  Jim Meyering  <meyering@lucent.com>
121285         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
121286         this code would end up calling gettext even in packages built
121287         with --disable-nls.
121288         * lib/getopt.c (_): Likewise.
121289         * lib/regex.c (_): Likewise.
121291 2001-10-20  Paul Eggert  <eggert@twinsun.com>
121293         * m4/error.m4 (jm_PREREQ_ERROR):
121294         Do not invoke AC_CHECK_FUNCS with strerror_r, as
121295         AC_FUNC_STRERROR_R does that.
121296         Check for strerror declaration.
121298         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
121299         are supposed to have them these days.
121300         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
121301         Merge changes from latest Autoconf CVS.
121302         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
121303         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
121304         POSIX decided to standardize on the int flavor of strerror_r.
121306 2001-10-20  Paul Eggert  <eggert@twinsun.com>
121308         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
121309         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
121310         Use strerror_r that is only a macro, even if it is not a function.
121311         (strerror): Check for HAVE_DECL_STRERROR before declaring.
121312         (private_strerror): Use prototypes, not old-style function definition.
121313         (print_errno_message): New function.
121314         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
121315         char*-flavored one.
121316         (error_tail, error, error_at_line): Use it.
121318 2001-10-11  Jim Meyering  <meyering@lucent.com>
121320         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
121321         and quote_n (1, ... to avoid clobbering a buffer.
121323 2001-10-05  Jim Meyering  <meyering@lucent.com>
121325         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
121326         hash-pjw.h.
121327         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
121328         * lib/hash-pjw.h: New file.
121330 2001-09-30  Jim Meyering  <meyering@lucent.com>
121332         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
121333         `struct fsstat' has the `f_fstypename' member.
121334         Use that to define FS_TYPE, which is now used to make
121335         the getfsstat link test tighter.
121337 2001-09-30  Jim Meyering  <meyering@lucent.com>
121339         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
121340         Include <sys/ucred.h>, for Apple Darwin.
121341         Include sys/mount.h and sys/fs_types.h only if available.
121342         (FS_TYPE): Define.
121343         (read_filesystem_list): Use FS_TYPE.
121345 2001-09-29  Paul Eggert  <eggert@twinsun.com>
121347         * lib/exclude.c (excluded_filename): 0 -> false, since it's
121348         a boolean context.
121350 2001-09-29  Jim Meyering  <meyering@lucent.com>
121352         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
121353         [one-argument getmntent function]): Include stdio.h before mntent.h.
121354         SunOS 4.1.x needs it for the declaration of `FILE'.
121355         Patch by Volker Borchert.
121357         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
121358         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
121359         sys/fs_types.h, and make the link-test for getfsstat guard #include
121360         directives with appropriate #if HAVE_*_H tests so that we can
121361         detect getfsstat on Apple Darwin1.3.7 systems.
121362         Reported by Nelson Beebe.
121363         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
121365 2001-09-28  Paul Eggert  <eggert@twinsun.com>
121367         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
121368         #defines strtoimax.  Also treat the other strto* functions
121369         like strtoimax.
121371         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
121372         Check for strtoul and strtoumax,
121373         as those declarations are made even in the signed case.
121374         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
121375         Likewise, for strtol and strtoimax.
121377 2001-09-28  Paul Eggert  <eggert@twinsun.com>
121379         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
121380         #defines strtoimax.  Also treat the other strto* functions
121381         like strtoimax.
121383         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
121384         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
121385         (strtoimax, strtoumax): Do not declare if already defined as a macro.
121387 2001-09-26  Jim Meyering  <meyering@lucent.com>
121389         Most macros in unlocked-io.h had the wrong number of arguments.
121390         * lib/gen-uio: New script.
121391         (USE_UNLOCKED_IO): Define to 1 if not already defined.
121392         * lib/unlocked-io.hin: Remove file.
121393         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
121394         rather than trying to embed it here.
121395         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
121396         Reported by Padraig Brady.
121398 2001-09-25  Volker Borchert  <bt@teknon.de>
121400         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
121401         `result'.
121403 2001-09-24  Jim Meyering  <meyering@lucent.com>
121405         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
121407 2001-09-23  Jim Meyering  <meyering@lucent.com>
121409         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
121410         instead of the mere test for existence of mntent.h.  The latter
121411         would get a false-positive on AIX 3.4 systems.
121412         In the outer getmntent if-block, don't die if neither of the getmntent
121413         tests succeeds.  Instead, just fall through and continue with the
121414         remaining tests.
121416 2001-09-23  Jim Meyering  <meyering@lucent.com>
121418         * lib/mountlist.c: Remove useless parentheses in #if directives.
121419         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
121420         the deprecated MOUNTED symbol is no longer defined in mntent.h.
121422 2001-09-22  Jim Meyering  <meyering@lucent.com>
121424         * m4/gettext.m4: New file.  From gettext.
121425         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
121426         * m4/progtest.m4: Likewise
121427         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
121428         * m4/glibc21.m4: Likewise.
121430         * m4/libintl.m4: Remove.  No longer used.
121432 2001-09-22  Jim Meyering  <meyering@lucent.com>
121434         * lib/localcharset.c: Update from latest gettext.
121435         * lib/config.charset: Likewise.
121437 2001-09-20  Jim Meyering  <meyering@lucent.com>
121439         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
121440         strtoimax.
121441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
121442         strtoumax.
121444 2001-09-20  Jim Meyering  <meyering@lucent.com>
121446         * lib/xstrtol.c (strtoimax): Guard declaration with
121447         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
121448         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
121449         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
121450         (strtoumax): Likewise, for completeness (it wasn't necessary).
121452 2001-09-17  Paul Eggert  <eggert@twinsun.com>
121454         * lib/strtoimax.c (HAVE_LONG_LONG):
121455         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
121456         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
121457         to work around bug in IBM C compiler.
121459 2001-09-17  Jim Meyering  <meyering@lucent.com>
121461         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
121462         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
121463         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
121464         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
121465         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
121466         whenever the right hand side need not be expanded by the shell.
121468 2001-09-16  Paul Eggert  <eggert@twinsun.com>
121470         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
121471         library.  It's not correct, as some older glibcs are buggy.
121472         fnmatch wasn't fixed until glibc 2.2.
121474         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
121475         special shell magic here.
121477 2001-09-16  Jim Meyering  <meyering@lucent.com>
121479         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
121480         * m4/jm-macros.m4: Require it.
121482 2001-09-16  Jim Meyering  <meyering@lucent.com>
121484         * lib/mkdir.c: New file.
121486 2001-09-15  Jim Meyering  <meyering@lucent.com>
121488         * m4/jm-macros.m4: Check for help2man.
121490 2001-09-11  Jim Meyering  <meyering@lucent.com>
121492         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
121493         The body, by Paul Eggert, was moved here from configure.in.
121494         * m4/jm-macros.m4: Require UTILS_HOST_OS.
121496 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121498         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
121499         (jm_PREREQ): Use it.
121501 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121503         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
121504         Use ssize_t, not int, to store result of readlink.
121505         Check for ssize_t overflow as well as size_t overflow,
121506         as POSIX says the result of readlink is implementation-defined
121507         when ssize_t overflows.
121508         Remove unnecessary cast to char*.
121509         Use free+malloc instead of realloc, as the storage doesn't need
121510         to be preserved and it's clearer and can be more efficient that way.
121511         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
121512         * lib/xreadlink.h (xreadlink): Update prototype.
121514 2001-09-04  Paul Eggert  <eggert@twinsun.com>
121516         * lib/xgetcwd.c: Revert some of the previous change; intead,
121517         fix the HAVE_GETCWD_NULL code to behave more like the
121518         !HAVE_GETCWD_NULL code used to.
121520         Include "xalloc.h".
121521         (xgetcwd): Do not return NULL when memory is exhausted; instead,
121522         invoke xalloc_die.
121524 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121526         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
121527         sys/param.h, as pathmax.h includes them.
121529 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121531         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
121532         (jm_PREREQ_XGETCWD): New macro.
121534         * m4/getcwd.m4: New file.
121536 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121538         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
121539         like the HAVE_GETCWD_NULL code.
121540         Include pathmax.h if not HAVE_GETCWD.
121541         Do not include xalloc.h.
121542         (INITIAL_BUFFER_SIZE): New symbol.
121543         Do not use xmalloc / xrealloc, since the caller is responsible for
121544         handling errors.  Preserve errno around `free' during failure.
121545         Do not overrun buffer when using getwd.
121547 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121549         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
121550         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
121551         getcwd (NULL, 0).
121553 2001-09-03  Paul Eggert  <eggert@twinsun.com>
121555         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
121556         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
121557         spotted by Jim Meyering.
121559 2001-09-03  Jim Meyering  <meyering@lucent.com>
121561         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
121562         failure.
121564 2001-09-02  Jim Meyering  <meyering@lucent.com>
121566         * lib/error.c: Update from GNU libc.
121568 2001-09-01  Jim Meyering  <meyering@lucent.com>
121570         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
121571         Used by df.
121573 2001-09-01  Jim Meyering  <meyering@lucent.com>
121575         * lib/xreadlink.c: New file.
121576         * lib/xreadlink.h: New file.
121577         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
121578         xreadlink.h.
121580         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
121581         doesn't conflict with sparc Solaris 7's definition in
121582         /usr/include/sys/int_types.h.
121584         * lib/exclude.c: Use `""', not `<>' to #include non-system header
121585         files.
121586         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
121587         and strncasecmp as r-values.  Unixware didn't have declarations.
121589 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121591         * lib/xstrtol.h: Add copyright notice.
121592         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
121593         LONGINT_INVALID_SUFFIX_CHAR.
121595 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121597         * lib/xstrtol.c (strtoimax): New decl.
121599 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121601         * lib/xgetcwd.c: Don't include pathmax.h.
121602         Include stdlib.h and unistd.h if available.
121603         Include xalloc.h.
121604         (xmalloc, xstrdup, free): Remove decls.
121605         (xgetcwd): Don't assume sizes fit in unsigned.
121606         Check for overflow when computing sizes.
121607         Simplify reallocation code.
121609 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121611         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
121612         a directory's st_size can have an arbitrary value, so the old
121613         usage could waste an arbitrary amount of memory.  All uses
121614         changed.
121615         * lib/savedir.h: Update prototype.
121617 2001-08-31  Paul Eggert  <eggert@twinsun.com>
121619         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
121621         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
121622         old strtoimax.c.
121624         Also, make the following further changes to make this file's
121625         configuration more similar to that of strtol.c:
121626         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
121627         (strtoumax, uintmax_t, strtoull, strtol): Remove.
121628         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
121629         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
121630         changed to signed values.
121632         And make the following changes as well:
121633         Fix copyright notice, as 1999 was missing.
121634         (verify): New macro.
121635         (strtoimax): Check sizes at compile-time, not run-time.
121636         Prefer strtol to strtoll if both work.
121637         (main): Remove; it was not that useful and was a pain to maintain.
121639         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
121641 2001-08-31  Jim Meyering  <meyering@lucent.com>
121643         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
121644         Use an initial, malloc'd, buffer of length 128 rather than
121645         a statically allocated one of length 1024.
121647 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121649         Simplify code, partly by assuming autoconf 2.52 semantics.
121651         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
121653         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
121654         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
121655         All uses removed.
121656         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
121657         Move AC_REQUIRE to next-to-top level, to avoid confusion.
121658         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
121659         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
121660         jm_AC_HEADER_INTTYPES_H.
121661         * m4/jm-macros.m4 (jm_MACROS): Likewise.
121663         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
121665         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
121666         Quote first arg of AC_DEFUN.
121667         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
121668         since they are needed to parse the include file even if we need
121669         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
121670         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
121671         but with opposite signedness.
121673 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121675         Merge 'exclude' changes from tar 1.13.22.
121676         This fixes one or two unlikely storage allocation overflow bugs,
121677         but doesn't change user-visible behavior otherwise.
121679 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121681         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
121682         (jm_PREREQ_EXCLUDE): New macro.
121684 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121686         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
121687         tm to be declared.
121689 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121691         * lib/hash.c: Remove '2001' from copyright notice.
121693 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121695         * lib/full-write.h: New file.
121696         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
121697         * lib/full-write.c: Correct credits, as cccp.c no longer
121698         exists and anyway it was so heavily changed from the old cccp
121699         code as to be unrecognizable.  Include full-write.h.
121700         (full_write): Return size_t, with short writes meaning failure.
121701         All callers changed.  This fixes a bug with large buffers
121702         on 64-bit hosts.
121703         * lib/utime.c: Include full-write.h.
121705 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121707         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
121708         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
121709         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
121710         Include if available.
121711         (<xalloc.h>): Include
121712         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
121713         (verify): New macro.  Use it to verify that EXCLUDE macros do not
121714         collide with FNM macros.
121715         (struct patopts): New struct.
121716         (struct exclude): Use it, as exclude patterns now come with options.
121717         (new_exclude): Support above changes.
121718         (new_exclude, add_exclude_file):
121719         Initial size must now be a power of two to simplify overflow checking.
121720         (free_exclude, fnmatch_no_wildcards): New function.
121721         (excluded_filename): No longer requires options arg, as the options
121722         are determined by add_exclude.  Now returns bool, not int.
121723         (excluded_filename, add_exclude):
121724         Add support for the fancy new exclusion options.
121725         (add_exclude, add_exclude_file): Now takes int options arg.
121726         Check for arithmetic overflow when computing sizes.
121727         (add_exclude_file): xrealloc might modify errno, so don't
121728         realloc until after errno might be used.
121730         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
121731         New macros.
121732         (free_exclude): New decl.
121733         (add_exclude, add_exclude_file): Now takes int options arg.
121734         (excluded_filename): No longer requires options arg, as the options
121735         are determined by add_exclude.  Now returns bool, not int.
121737 2001-08-30  Paul Eggert  <eggert@twinsun.com>
121739         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
121741 2001-08-27  Jim Meyering  <meyering@lucent.com>
121743         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
121745         * lib/version-etc.c (N_): Remove definition.
121746         Revert most of last change.
121747         Instead, simply don't mark the `Copyright...' string for translation.
121748         Based on advice from Paul Eggert.
121750         * lib/strtoxmax.c: Tweak comment.
121752 2001-08-26  Jim Meyering  <meyering@lucent.com>
121754         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
121756         * m4/xstrtoimax.m4: New file.
121757         * m4/xstrtoumax.m4: Add comments explaining why we
121758         AC_REPLACE_FUNCS(strtol).
121760 2001-08-26  Jim Meyering  <meyering@lucent.com>
121762         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
121763         of copyright with `%s' so translators don't get an untranslated
121764         message in 2002.
121765         (COPYRIGHT_YEAR): Define.
121766         (version_etc): Use fprintf rather than fputs.
121767         Suggestion from Ulrich Drepper.
121769         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
121771         * lib/strtoll.c: New file, from GNU libc.
121772         * lib/xstrtoimax.c: New file.
121774         * lib/xstrtol.h: Add xstrtoimax.
121775         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
121776         * lib/strtoimax.c: New file.  Likewise, but first define
121777         STRTOUXMAX_SIGNED.
121779         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
121780         ...
121781         * lib/strtoxmax.c: ... then renamed to this.
121783 2001-08-18  Paul Eggert  <eggert@twinsun.com>
121785         * m4/inttypes.m4: Add AC_PREREQ(2.13).
121786         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
121787         (jm_AC_TYPE_INTMAX_T): New macro.
121788         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
121790         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
121792         * m4/longlong.m4: Renamed from ulonglong.m4.
121793         * m4/inttypes.m4: Renamed from inttypes_h.m4.
121794         * m4/uintmax_t.m4: Removed.
121796 2001-08-13  Paul Eggert  <eggert@twinsun.com>
121798         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
121799         Port to Solaris 8, where 'sed' requires a space after the 'r'
121800         command, and where sh dislikes "$/".  Clean up the spacing a bit.
121801         Redirect output to $tmp just once.
121803 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
121805         * lib/addext.c (<errno.h>): Include.
121806         (errno): Declare if not defined.
121807         (addext): Work correctly when pathconf returns -1 and leaves
121808         errno alone because there is no limit.  Also, work even if
121809         pathconf returns a value greater than SIZE_MAX.
121811 2001-08-12  Jim Meyering  <meyering@lucent.com>
121813         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
121814         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
121815         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
121816         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
121817         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
121818         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
121819         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
121820         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
121821         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
121822         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
121823         utime.m4, utimes.m4, xstrtoumax.m4:
121824         Quote the first argument in each use of AC_DEFUN.
121826 2001-08-12  Jim Meyering  <meyering@lucent.com>
121828         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
121829         Simply `return getcwd (NULL, 0);'.
121830         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
121831         Use 1300 as initial value for length, not PATH_MAX.
121833         * lib/pathmax.h: Clean up cpp syntax.
121835 2001-08-12  Jim Meyering  <meyering@lucent.com>
121837         * lib/gettimeofday.c: New file.
121838         * lib/gtod.h: New file.
121839         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
121841 2001-08-05  Jim Meyering  <meyering@lucent.com>
121843         * m4/jm-macros.m4: Require autoconf-2.52.
121845 2001-08-04  Jim Meyering  <meyering@lucent.com>
121847         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
121848         stmt, to get in sync with glibc.
121850 2001-08-03  Paul Eggert  <eggert@twinsun.com>
121852         The following changes are from gettext 0.10.39 as maintained by
121853         Bruno Haible.
121855         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
121856         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
121857         with inverted sense.  All uses changed.
121859         * lib/mbswidth.c: Don't include <limits.h>.
121860         Include <stdlib.h> and <string.h> unconditionally.
121861         (iswcntrl, mbsinit, ISCNTRL): New macros.
121862         (mbsnwidth): Use K&R style function declarations.
121863         Don't bother checking for MB_LEN_MAX == 1, since the compiler
121864         can optimize it when MB_CUR_MAX == 1.
121865         The width of control characters is zero, not 1.
121867 2001-08-03  Paul Eggert  <eggert@twinsun.com>
121869         The following changes are from gettext 0.10.39 as maintained by
121870         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
121872         * m4/codeset.m4: Upgrade to serial AM1.
121873         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
121874         all uses changed.  Quote first arg of AC_DEFUN.
121875         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
121877         * m4/iconv.m4: Upgrade to serial AM2.
121878         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
121879         Add --with-libconv-prefix.
121880         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
121881         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
121882         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
121883         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
121884         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
121886         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
121887         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
121888         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
121889         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
121890         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
121891         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
121892         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
121893         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
121894         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
121896         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
121897         string.h any more.
121899         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
121900         not the default value.
121902         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
121903         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
121904         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
121905         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
121906         Also check for iswcntrl, used for wcwidth fallback.
121907         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
121908         to Autoconf 2.13.
121910 2001-08-03  Jim Meyering  <meyering@lucent.com>
121912         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
121913         as it was in the original.  Reported by Paul Eggert.
121915 2001-07-16  Jim Meyering  <meyering@lucent.com>
121917         * m4/gettimeofday.m4: New file.
121918         Prompted by a report from Bernhard Baehr.
121920 2001-07-15  Jim Meyering  <meyering@lucent.com>
121922         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
121923         stuff. Now it's in ../Makefile.cfg.
121925 2001-07-15  Jim Meyering  <meyering@lucent.com>
121927         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
121928         (BUILT_SOURCES): Add unlocked-io.h.
121929         (io_functions): Define.
121930         (unlocked-io.h): New rule.
121931         (DISTCLEANFILES): Add unlocked-io.h.
121932         (all-local): Depend on unlocked-io.h, to ensure it is created.
121934         * lib/unlocked-io.hin: New file
121936         * lib/regex.c: Update from glibc.
121938 2001-07-05  Jim Meyering  <meyering@lucent.com>
121940         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
121941         recommendation.
121942         (libfetish_a_SOURCES): Put all .h files here instead.
121943         Remove a thus-exposed (better checks in automake) duplicate and
121944         two unnecessary .h files.
121946 2001-07-04  Jim Meyering  <meyering@lucent.com>
121948         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
121949         that generates jm-glibc-io.m4 so that it doesn't trigger any make
121950         distcheck failure.
121952 2001-07-02  Jim Meyering  <meyering@lucent.com>
121954         The following changes were prompted by suggestions from Bruno Haible.
121956         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
121957         is now generated.
121958         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
121959         definition of EXTRA_DIST.
121960         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
121961         ensure that the generated file is created/updated whenever the list
121962         of $(unlocked_functions) is changed.
121963         (jm-glibc-io.m4): New rule.
121964         (unlocked-io.h): New rule -- currently unused.
121966 2001-06-24  Jim Meyering  <meyering@lucent.com>
121968         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
121969         unmatched right bracket, rather than kludging it with an extra,
121970         falsely-matching quote in a comment.  Patch by Akim Demaille.
121972 2001-06-11  Jim Meyering  <meyering@lucent.com>
121974         * lib/regex.c: Update from GNU libc.
121976 2001-05-27  Jim Meyering  <meyering@lucent.com>
121978         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
121979         Check for ut_type in struct utmp.
121981 2001-05-27  Jim Meyering  <meyering@lucent.com>
121983         * lib/readutmp.h (UT_TYPE): Define.
121985 2001-05-24  Jim Meyering  <meyering@lucent.com>
121987         * lib/argmatch.c: Include "quote.h".
121988         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
121989         quote function.  Reported by Göran Uddeborg.
121991 2001-05-22  Jim Meyering  <meyering@lucent.com>
121993         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
121994         now that we use the package-supplied version unconditionally.
121995         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
121997 2001-05-21  Jim Meyering  <meyering@lucent.com>
121999         * m4/regex.m4: Change a couple backticks to single quotes to avoid
122000         shell syntax errors.
122002 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
122004         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
122006 2001-05-20  Paul Eggert  <eggert@twinsun.com>
122008         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
122009         Don't bother to check library strftime, since
122010         we'll be using our own my_strftime function anyway.
122011         Define my_strftime instead of strftime.
122013 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
122015         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
122016         which is not yet declared.
122018 2001-05-15  Jim Meyering  <meyering@lucent.com>
122020         * m4/regex.m4: Use proper quoting so brackets appear in the test
122021         program.
122022         Reported by, and with help from, Bruno Haible.
122024 2001-05-13  Jim Meyering  <meyering@lucent.com>
122026         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
122027         undefined.
122029 2001-05-11  Paul Eggert  <eggert@twinsun.com>
122031         dirname code cleanup.  base_name now behaves more compatibly
122032         with POSIX basename when given file names that have trailing
122033         slashes, and similarly for dir_name.  Add new primitives
122034         base_len and dir_len.  Put the directory-name-related decls
122035         into dirname.h.
122037         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
122038         * lib/backupfile.c (base_name): Likewise.
122039         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
122040         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
122041         * lib/makepath.c (strip_trailing_slashes): Likewise.
122042         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
122043         ISSLASH): Likewise.
122044         * lib/rename.c (strip_trailing_slashes): Likewise.
122045         * lib/same.c (base_name): Likewise.
122046         * lib/stripslash.c (ISSLASH): Likewise.
122048         * lib/addext.c: Include <dirname.h> after size_t is defined.
122049         * lib/backupfile.c: Likewise.
122051         * lib/addext.c (addext): Use base_len to trim redundant
122052         trailing slashes instead of doing it ourselves.
122053         But do not trim the last slash if it is not redundant.
122055         * lib/backupfile.c (find_backup_file_name,
122056         max_backup_version): Use base_len instead of rolling it ourselves.
122057         Handle the case of "" and (on DOS) "C:" correctly.
122059         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
122060         needed. Include <string.h>, <dirname.h>.
122061         (base_name): Allow file names ending in slashes, other than names
122062         that are all slashes.  In this case, return the basename followed
122063         by the slashes.  This is more general, and can be used in places
122064         where the original base_name purposely had an assertion failure.
122065         (base_len): New function.
122067         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
122068         Do not include <assert.h>; no longer needed.
122069         Include xalloc.h.
122070         (memrchr): Remove decl.
122071         (dir_name_r): Remove.
122072         (dir_len): Renamed from dirlen.  All callers changed.
122073         Rewrite in terms of base_name, for simplicity and consistency.
122074         (dir_name): Never return NULL.  All callers changed.
122075         Do not include <stdlib.h> in test program; no longer needed.
122076         return 0; is fine for test program.
122078         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
122079         New macros.
122080         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
122082         * lib/path-concat.c (path_concat): Use base_len to compute
122083         base length, not strlen; this means we cannot rely on memcpy
122084         to null-terminate.
122086         * lib/same.c (STREQ): Remove.
122087         (same_name): Handle the case where the basename ends in trailing '/'.
122089         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
122090         a slash was stripped.  Do not strip the last slash after a
122091         file system prefix.
122093 2001-05-11  Paul Eggert  <eggert@twinsun.com>
122095         * lib/Makefile.am (libfetish_a_SOURCES):
122096         Add strftime.c, since we now compile it on all hosts.
122098         * lib/strftime.c (my_strftime):
122099         Define to nstrftime if emacs, but only if my_strftime is not defined.
122100         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
122101         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
122102         Add one more extra argument: a nanoseconds value.
122103         All uses changed.
122104         (ns): New macro.
122105         (my_strftime function): Add %N format.
122106         (emacs_strftimeu): Renamed from emacs_strftime,
122107         with extra ut argument.
122109 2001-05-09  Paul Eggert  <eggert@twinsun.com>
122111         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
122113 2001-04-21  Jim Meyering  <meyering@lucent.com>
122115         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
122116         doesn't interfere.
122118 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
122120         * m4/ftruncate.m4: Check for chsize.
122121         Link with ftruncate.o unconditionally if ftruncate is missing.
122122         This was required when cross-compiling to i586-mingw32msvc.
122124 2001-04-08  Jim Meyering  <meyering@lucent.com>
122126         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
122127         recomputed; that's necessary when the offset spans a DST transition.
122128         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
122130 2001-04-02  Jim Meyering  <meyering@lucent.com>
122132         * lib/regex.h, regex.c: Update from GNU libc.
122134 2001-03-24  Jim Meyering  <meyering@lucent.com>
122136         * m4/jm-macros.m4: Require autoconf-2.49d.
122138 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
122140         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
122142 2001-03-19  Paul Eggert  <eggert@twinsun.com>
122144         * lib/version-etc.c (version_etc_copyright): Update to 2001.
122146 2001-03-17  Jim Meyering  <meyering@lucent.com>
122148         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
122149         now that the version in autoconf is equivalent.
122150         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
122152         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
122153         Suggestion from Akim Demaille.
122155         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
122156         (jm_PREREQ_TEMPNAME): New function.
122158 2001-03-16  Paul Eggert  <eggert@twinsun.com>
122160         * lib/tempname.c (uint64_t): Define to uintmax_t if
122161         not defined, and if UINT64_MAX is not defined.
122162         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
122163         Reported by John David Anglin.
122165 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
122167         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
122168         resolve alias if codeset is empty.
122169         * lib/config.charset (BeOS): Use wildcard syntax.
122171 2001-03-13  Jim Meyering  <meyering@lucent.com>
122173         * lib/path-concat.c (path_concat)
122174         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
122175         concatenating e.g., `C:' and `foo'.
122176         From Bruno Haible.
122178 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
122180         * lib/localcharset.c (locale_charset): Don't use
122181         setlocale(LC_CTYPE,NULL). Don't return NULL.
122182         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
122184 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
122186         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
122187         support for DOS/DJGPP.
122189 2001-03-01  Paul Eggert  <eggert@twinsun.com>
122191         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
122192         lacks mkstemp.  Compile our own tempname.c if we compile our own
122193         mkstemp.c, as mkstemp relies on tempname.
122195 2001-03-01  Jim Meyering  <meyering@lucent.com>
122197         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
122198         AH_VERBATIM really does output its argument verbatim.
122200 2001-02-28  Paul Eggert  <eggert@twinsun.com>
122202         * lib/Makefile.am (libfetish_a_SOURCES):
122203         Add dup-safer.c, fopen-safer.c.
122204         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
122206         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
122207         * lib/unistd-safer.h: New files.
122209 2001-02-25  Paul Eggert  <eggert@twinsun.com>
122211         The mkstemp replacement is taken from glibc 2.2.2, with some
122212         portability fixes for use outside glibc, as follows:
122214         * lib/tempname.c (struct_stat64): New macro.
122215         (direxists, __gen_tempname): Use it.
122216         This avoids a portability problem with Solaris 8.
122218         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
122219         (<stddef.h>, <stdint.h>, <string.h>):
122220         Include only if STDC_HEADERS || _LIBC.
122221         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
122222         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
122223         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
122224         (__set_errno): Define this macro if <errno.h> doesn't.
122225         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
122226         Define these macros if <stdio.h> doesn't.
122227         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
122228         Define these macros if <sys/stat.h>
122229         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
122230         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
122231         __xstat64): Define if not _LIBC.
122232         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
122233         (__gen_tempname): Invoke gettimeofday only if
122234         HAVE_GETTIMEOFDAY || _LIBC;
122235         otherwise, fall back on plain "time".
122236         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
122238         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
122240         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
122242 2001-02-18  Paul Eggert  <eggert@twinsun.com>
122244         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
122246 2001-02-17  Paul Eggert  <eggert@twinsun.com>
122248         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
122249         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
122250         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
122251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
122253 2001-02-17  Paul Eggert  <eggert@twinsun.com>
122255         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
122256         Remove workaround macros for hosts that have mbrtowc but not
122257         mbstate_t, as we now insist on proper declarations for both
122258         before using mbrtowc.
122260 2001-02-17  Jim Meyering  <meyering@lucent.com>
122262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
122263         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
122264         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
122265         UnixWare 7.1.1.
122267         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
122268         rather than AC_CACHE_VAL.
122270 2001-02-17  Jim Meyering  <meyering@lucent.com>
122272         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
122273         around included file name.
122275         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
122277         * lib/strftime.c: Update from GNU libc (the only changes were to
122278         comments).
122280 2001-02-17  Jim Meyering  <meyering@lucent.com>
122282         * lib/regex.c: Update from libc.
122284 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
122286         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
122287         clash.
122289 2001-02-16  Paul Eggert  <eggert@twinsun.com>
122291         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
122292         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
122293         Reported by Mark Hounschell via Paul Eggert.
122295 2001-02-07  Jim Meyering  <meyering@lucent.com>
122297         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
122299 2001-02-05  Jim Meyering  <meyering@lucent.com>
122301         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
122302         it includes the patch required for `large file' support with at least
122303         HP-UX's 10.20 /bin/cc.
122305 2001-02-03  Jim Meyering  <meyering@lucent.com>
122307         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
122308         AS_IF, now that it works once again (mysteriously).
122309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
122311 2001-01-30  Jim Meyering  <meyering@lucent.com>
122313         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
122314         * m4/chown.m4: Rename conftestchown to conftest.chown.
122315         * m4/rename.m4: s/conftestdir/conftest.d1/ and
122316         s/conftestdir2/conftest.d2/.
122317         * m4/utimes.m4: s/conftestdata/conftest.data/
122318         Inspired by Pavel Roskin's change in autoconf.
122320 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
122322         * lib/config.charset: Update for FreeBSD 4.2.
122324 2001-01-27  Jim Meyering  <meyering@lucent.com>
122326         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
122327         a use of AS_IF.
122328         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
122330 2001-01-26  Jim Meyering  <meyering@lucent.com>
122332         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
122333         quotearg.c includes it.
122335 2001-01-26  Jim Meyering  <meyering@lucent.com>
122337         * lib/quotearg.c: Include stddef.h.
122338         * lib/quote.c: Include stddef.h.
122339         Reported by Axel Kittenberger.
122341         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
122342         line in double quotes so that it evokes a better diagnostic.
122343         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
122344         Reported by Axel Kittenberger.
122346 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
122348         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
122349         as if it was a `charset'.
122351 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
122353         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
122354         has const.
122356 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
122358         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
122359         to avoid a warning.  Add back 'const' to inptr.
122361 2001-01-20  Jim Meyering  <meyering@lucent.com>
122363         Be sure that headers are checked before used in code compiled
122364         for the type checks.
122365         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
122366         In place of that, invoke jm_CHECK_ALL_TYPES.
122367         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
122368         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
122369         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
122370         The check for ssize_t was mistakenly run before the test for unistd.h.
122372         The configure-time check for stdbool.h was missing.
122373         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
122374         (jm_PREREQ_HASH): New function.
122376 2001-01-17  Jim Meyering  <meyering@lucent.com>
122378         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
122379         for autoconf-2.49c.
122380         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
122382 2001-01-16  Jim Meyering  <meyering@lucent.com>
122384         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
122385         From Bruno Haible.
122387 2001-01-14  Jim Meyering  <meyering@lucent.com>
122389         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
122390         foo and bar.  Create conftestdir/ in the script, not in the C code.
122391         Remove directories in the script, not in the C code.
122392         Remove conftestdir{,2} before trying to create the directory.
122393         Make the entire configure script fail if the mkdir fails.
122395 2001-01-14  Jim Meyering  <meyering@lucent.com>
122397         * lib/rename.c: New file.  From Volker Borchert.
122398         Include stdlib.h, string.h or strings.h, and xalloc.h.
122399         Use strip_trailing_slashes rather than open-coding it.
122401 2001-01-03  Paul Eggert  <eggert@twinsun.com>
122403         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
122405 2001-01-03  Jim Meyering  <meyering@lucent.com>
122407         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
122408         of local `inptr' to avoid warning with some system declarations of
122409         iconv.
122411 2001-01-02  Volker Borchert  <bt@teknon.de>
122413         * m4/rename.m4: New file.
122414         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
122416 2001-01-01  Jim Meyering  <meyering@lucent.com>
122418         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
122419         even on systems with utmpx.h.  It's necessary for the declaration of
122420         utmp's ut_user member.  Reported by Andreas Jaeger.
122422         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
122423         available. They are required for the declarations of getgrgid and
122424         getpwuid resp.
122425         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
122426         Reported by Andreas Jaeger.
122428 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
122430         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
122431         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
122432         so `make install' also works in VPATH builds.
122434 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
122436         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
122437         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
122438         can be used in subdirectories.
122440 2000-12-29  Paul Eggert  <eggert@twinsun.com>
122442         * lib/modechange.c: Do not assume that mode_t uses the
122443         traditional octal encoding.  E.g. "chmod 1 FOO" should set
122444         the other-execute bit of FOO even if S_IXOTH != 1.
122446         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
122447         WOTH, XOTH, ALLM): New macros.
122448         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
122449          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
122450         Use them.
122451         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
122452         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
122453         (mode_compile):
122454         No need to use uintmax_t; unsigned long is long enough.
122455         Don't bother to get suffix since we don't use it.
122457 2000-12-26  Jim Meyering  <meyering@lucent.com>
122459         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
122460         better with autoheader.
122462 2000-12-24  Jim Meyering  <meyering@lucent.com>
122464         * lib/hash.c (is_prime): Return explicit boolean values.
122465         (hash_get_first): Return NULL to appease Irix5.6's 89.
122466         Reported by Nelson Beebe.
122468 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
122470         * lib/localcharset.c (locale_charset): Add support for Win32.
122472 2000-12-18  Paul Eggert  <eggert@twinsun.com>
122474         * lib/physmem.h, lib/physmem.c: New files.
122476         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
122477         (noinst_HEADERS): Add physmem.h.
122479         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
122480         't' for compatibility with Solaris 8 sort.
122482 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
122484         * lib/config.charset: Add support for BeOS.
122486 2000-12-17  Jim Meyering  <meyering@lucent.com>
122488         * m4/dos.m4 (jm_AC_DOS): New file and macro.
122489         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
122491 2000-12-16  Jim Meyering  <meyering@lucent.com>
122493         This bug had a serious impact on chown: `chown N:M FILE' (for integer
122494         N and M) would have treated it like `chown N:N FILE'.
122496         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
122498 2000-12-16  Jim Meyering  <meyering@lucent.com>
122500         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
122501         SHELLS_FILE to a file name that's useful on djgpp systems.
122502         Include stdlib.h.
122503         (ADDITIONAL_DEFAULT_SHELLS): Define.
122504         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
122505         Based mostly on a patch from Prashant TR.
122507 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
122509         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
122510         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
122511         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
122513 2000-12-08  Andreas Schwab  <schwab@suse.de>
122515         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
122516         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
122518 2000-12-07  Jim Meyering  <meyering@lucent.com>
122520         * lib/stripslash.c (ISSLASH): Define.
122521         (strip_trailing_slashes): Use ISSLASH rather than comparing against
122522         `/'.
122523         From Prashant TR.
122525         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
122526         (dir_name_r): Declare this function as static.
122527         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
122528         manifest itself on a name containing a mix of slashes and
122529         backslashes.
122530         Make this function work with names starting with a DOS-style
122531         drive letter and colon prefix.
122532         (dir_name): Append `.' if necessary.
122533         Based mostly on patches from Prashant TR and Eli Zaretskii.
122535         * lib/dirname.h (dir_name_r): Remove prototype.
122537 2000-12-06  Paul Eggert  <eggert@twinsun.com>
122539         * m4/off_t-format.m4: Remove this file.
122540         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
122542 2000-12-06  Jim Meyering  <meyering@lucent.com>
122544         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
122545         replacement strtoull, we may well need the replacement strtoul, too.
122546         Check for declarations of strtoul and strtoull.
122547         Check for strtol.  Mainly as a cue to cause automake to include
122548         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
122549         Check for limits.h -- strtol.c needs it.
122551 2000-12-05  Jim Meyering  <meyering@lucent.com>
122553         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
122555 2000-12-04  Jim Meyering  <meyering@lucent.com>
122557         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
122558         Also include memory.h, stdlib.h, unistd.h if appropriate.
122559         Reported by Andreas Jaeger (conflicting declaration of malloc).
122561 2000-12-02  Jim Meyering  <meyering@lucent.com>
122563         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
122564         * m4/jm-macros.m4 (jm_MACROS): require it.
122566 2000-12-02  Jim Meyering  <meyering@lucent.com>
122568         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
122570 2000-12-01  Paul Eggert  <eggert@twinsun.com>
122572         * lib/memrchr.c: Include <config.h> before any system include file.
122574 2000-11-30  Jim Meyering  <meyering@lucent.com>
122576         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
122578 2000-11-30  Jim Meyering  <meyering@lucent.com>
122580         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
122582 2000-11-29  Paul Eggert  <eggert@twinsun.com>
122584         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
122586 2000-11-26  Jim Meyering  <meyering@lucent.com>
122588         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
122590 2000-11-22  Paul Eggert  <eggert@twinsun.com>
122592         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
122593         size of (size_t) -1; it's not portable.
122595 2000-11-17  Jim Meyering  <meyering@lucent.com>
122597         * lib/strstr.c: Update from GNU libc.
122599 2000-11-17  Akim Demaille  <akim@epita.fr>
122601         * lib/obstack.h: Formatting changes.
122602         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
122603         prevent type checking.
122604         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
122605         cast the value to (void *): assigning a `foo *' to a `void *'
122606         variable is valid.
122607         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
122609 2000-11-16  Jim Meyering  <meyering@lucent.com>
122611         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
122613 2000-11-11  Jim Meyering  <meyering@lucent.com>
122615         * lib/error.c: Add a couple #includes, merging from GNU libc version.
122617 2000-11-10  Jim Meyering  <meyering@lucent.com>
122619         * lib/obstack.h: Update from GNU libc.
122620         * lib/obstack.c: Likewise.
122622 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
122624         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
122626 2000-11-06  Paul Eggert  <eggert@twinsun.com>
122628         * lib/getusershell.c (setusershell): Use rewind rather than
122629         fseek/fseeko, to avoid configuration hassles with fseeko.
122630         Don't bother opening SHELLS_FILE if shellstream is NULL;
122631         it's not necessary.
122633 2000-11-05  Jim Meyering  <meyering@lucent.com>
122635         * lib/makepath.h (make_dir): Declare.
122636         * lib/makepath.c (make_dir): Remove `static' attribute.
122637         Tweak a comment.
122639 2000-11-04  Jim Meyering  <meyering@lucent.com>
122641         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
122643 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
122645         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
122646         last one in a bucket, advance to the next bucket.
122648 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
122650         * lib/fnmatch.c: Do not comment out all the code if we are using
122651         the GNU C library, because in some cases we are replacing buggy
122652         code in the GNU C library itself.
122654 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
122656         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
122657         (regex_compile): Catch bogus \(\1\).
122659 2000-10-30  Paul Eggert  <eggert@twinsun.com>
122661         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
122662         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
122663         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
122665 2000-10-30  Paul Eggert  <eggert@twinsun.com>
122667         * lib/error.h, getline.h, modechange.h:
122668         Remove "2000" from Copyright line, as the file hasn't been
122669         changed this year other than in the copyright notice.
122671         * lib/xalloc.h: Add "2000" to Copyright line, as this file
122672         was changed this year.
122674 2000-10-29  Jim Meyering  <meyering@lucent.com>
122676         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
122677         renaming.
122678         * m4/ls-mntd-fs.m4: Likewise
122680 2000-10-29  Jim Meyering  <meyering@lucent.com>
122682         * lib/xstat.in: Fix grammar in comment.
122684 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
122686         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
122687         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
122688         doesn't define __restrict_arr.
122690 2000-10-28  Jim Meyering  <meyering@lucent.com>
122692         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
122693         (jm_PREREQ_MEMCHR): New function.
122695 2000-10-28  Jim Meyering  <meyering@lucent.com>
122697         * lib/memchr.c: Update from libc.
122698         Adjust for portability:
122699         [HAVE_STDLIB_H]: Include stdlib.h.
122700         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
122701         Undef __memchr, too.
122702         [!weak_alias]: Define __memchr to memchr.
122704         * lib/regex.c: Update from libc.
122705         * lib/regex.h: Likewise.
122706         * lib/getopt1.c: Likewise.
122707         * lib/memcmp.c: Likewise.
122709         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
122710         Avoid using fseek, when possible -- it's broken by design.
122711         Patch by Ulrich Drepper.
122713 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
122715         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
122716         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
122717         Giving in to popular pressure to shut up the compiler with casts.
122719 2000-10-26  Jim Meyering  <meyering@lucent.com>
122721         * lib/strftime.c: Update from libc.
122723 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
122725         * regex.c: More `unsigned char' -> `re_char' changes.
122726         Also change several `int' into `re_wchar_t'.
122727         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
122728         (PUSH_FAILURE_POINTER): Don't cast any more.
122729         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
122730         We want GCC to complain, since this piece of code makes
122731         re_match non-reentrant, which *should* be fixed.
122732         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
122733         (EXTEND_BUFFER): Use RETALLOC.
122734         (SET_LIST_BIT): Don't cast.
122735         (re_wchar_t): New type.
122736         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
122737         that those two functions will always properly return.
122738         (IMMEDIATE_QUIT_CHECK): Cast to void.
122739         (analyse_first): Use recursion rather than an explicit stack.
122740         (re_compile_fastmap): Can't fail anymore.
122741         (re_search_2): Don't check re_compile_fastmap for failure.
122742         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
122743         Now also sets the new value (passed in a new argument).
122744         (re_match_2_internal): Use it.
122745         Also, use a new var `reg' of type size_t when looping through regs
122746         rather than reuse the inappropriate `mcnt'.
122748 2000-10-25  Jim Meyering  <meyering@lucent.com>
122750         * lib/obstack.c: Update from libc.
122752 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
122754         * regex.c (regex_compile): Change the way of handling a range from
122755         a char less than 256 to a char not less than 256.
122757 2000-10-24  Andrew Innes  <andrewi@gnu.org>
122759         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
122760         NT-Emacs only.
122761         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
122762         so that re_search functions only quit when callers expect them to.
122764 2000-10-23  Jim Meyering  <meyering@lucent.com>
122766         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
122767         wrong.  That set_locale call must not have any side effects.
122768         From Paul Eggert.
122770 2000-10-22  Jim Meyering  <meyering@lucent.com>
122772         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
122773         [CYCLIC]: Remove now-unused definition.
122775         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
122776         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
122777         Suggestion from Ulrich Drepper.
122779 2000-10-21  Jim Meyering  <meyering@lucent.com>
122781         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
122782         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
122783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
122785 2000-10-21  Jim Meyering  <meyering@lucent.com>
122787         * lib/dirname.c (memrchr): Declare if necessary.
122788         (dir_name): Remove the restriction that there be no
122789         trailing slashes.  Now, this code skips past them, effectively
122790         ignoring them.
122791         [TEST_DIRNAME] (main): New unit tests.
122793         * lib/memrchr.c: New file from GNU libc.
122794         Undef __memrchr, too.
122795         [!weak_alias]: Define __memrchr to memrchr.
122796         Guard weak_alias use with `#ifdef weak_alias'.
122798 2000-10-21  Jim Meyering  <meyering@lucent.com>
122800         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
122801         (dir_name): Use dir_name_r.
122802         * lib/dirname.h (dir_name_r): Declare it.
122804 2000-10-17  Jim Meyering  <meyering@lucent.com>
122806         * lib/quote.h (PARAMS): Define and use.
122807         Reported by Akim Demaille.
122809         * lib/getopt.c: Update from libc.
122811 2000-10-16  Jim Meyering  <meyering@lucent.com>
122813         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
122814         setlocale.
122815         From Jan Fedak.
122817 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
122819         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
122821 2000-09-25  Jim Meyering  <meyering@lucent.com>
122823         * lib/md5.h (rol): Define (from GnuPG).
122825         * lib/sha.c: Give credit (GnuPG) where due.
122826         (M): Use rol rather than open-coding it.
122827         Add a FIXME comment.
122829 2000-09-21  Jim Meyering  <meyering@lucent.com>
122831         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
122832         Reported by Michael Stone.
122834 2000-09-20  Jim Meyering  <meyering@lucent.com>
122836         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
122837         (noinst_HEADERS): Add sha.h.
122838         Based on code from Scott G. Miller and from GnuPG.
122840 2000-09-18  Jim Meyering  <meyering@lucent.com>
122842         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
122843         LIBS. Otherwise, everyone ends up linking with -lelf for some
122844         configurations.
122845         Reported by Mike Stone.
122847 2000-09-15  Jim Meyering  <meyering@lucent.com>
122849         * lib/regex.c: Update from libc.
122851 2000-09-10  Jim Meyering  <meyering@lucent.com>
122853         * lib/getopt.c (_getopt_internal): Update from glibc.
122855 2000-09-09  Jim Meyering  <meyering@lucent.com>
122857         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
122858         think it should be used as a general replacement for isascii.
122859         * lib/fnmatch.c: Likewise.
122860         * lib/mbswidth.c: Likewise
122861         * lib/regex.c: Likewise.
122863         Don't use atoi.
122864         * lib/userspec.c: Include sys/param.h and limits.h.
122865         Include xstrtol.h.
122866         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
122867         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
122868         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
122869         UID, GID.  Check range.
122871 2000-09-06  Jim Meyering  <meyering@lucent.com>
122873         * lib/getopt.c (_getopt_internal): Update from glibc.
122875 2000-08-30  Jim Meyering  <meyering@lucent.com>
122877         * lib/strftime.c: Merge in changes from GNU libc.
122879 2000-08-26  Jim Meyering  <meyering@lucent.com>
122881         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
122882         * m4/fpending.m4: New file.
122884 2000-08-26  Jim Meyering  <meyering@lucent.com>
122886         * lib/closeout.c: Include "__fpending.h".
122887         (close_stdout_status): Return right away if there's nothing to flush.
122889         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
122890         * lib/__fpending.c: New file.
122891         * lib/__fpending.h: New file.
122893 2000-08-20  Jim Meyering  <meyering@lucent.com>
122895         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
122896         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
122897         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
122899 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
122901         Improve fileutils installation on systems where running
122902         programs (like install) can't be unlinked.
122903         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
122904         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
122906 2000-08-07  Paul Eggert  <eggert@twinsun.com>
122908         Standardize on "memory exhausted" instead of "Memory exhausted"
122909         or "virtual memory exhausted".
122910         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
122911         "virtual memory exhausted".
122912         * lib/same.c (same_name): Invoke xalloc_die instead of printing
122913         our own message.
122914         * lib/userspec.c (parse_user_spec): Likewise.
122915         * lib/bumpalloc.h: comment fix
122916         * lib/same.c, userspec.c: Include xalloc.h.
122918         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
122919         not char *const and pointing to a constant array.
122920         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
122921         (xrealloc): Comment fix.
122923         * lib/userspec.c (parse_user_spec):
122924         Don't translate a message until just before returning,
122925         to avoid unnecessary translation.
122927 2000-08-07  Jim Meyering  <meyering@lucent.com>
122929         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
122930         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
122931         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
122932         getgroups.c, gethostname.c, getopt.h, group-member.c,
122933         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
122934         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
122935         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
122936         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
122937         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
122938         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
122939         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
122940         yesno.c: Back out Copyright date changes for each file with no change
122941         this year.  This eases coordination with other programs using the same
122942         source code modules.  From Paul Eggert.
122944 2000-08-06  Paul Eggert  <eggert@twinsun.com>
122946         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
122947         not char, for compatibility with glibc 2.1.3 strftime.c.
122949 2000-08-03  Greg McGary  <greg@mcgary.org>
122951         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
122952         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
122953         (EXTEND_BUFFER): Use them.
122955 2000-08-01  Jim Meyering  <meyering@lucent.com>
122957         * lib/dirname.c (ISSLASH): Define.
122958         (BACKSLASH_IS_PATH_SEPARATOR): Define.
122959         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
122960         both `\' and `/' may be use as path separators.
122961         Based on a patch from Prashant TR.
122963 2000-07-31  Paul Eggert  <eggert@twinsun.com>
122965         * lib/quotearg.c (quotearg_n_options): Don't make the initial
122966         slot vector a constant, since it might get modified.
122968 2000-07-31  Jim Meyering  <meyering@lucent.com>
122970         * lib/xmalloc.c: Use `virtual memory exhausted', not
122971         `Memory exhausted'.
122972         * lib/obstack.c (print_and_abort): Likewise.
122974 2000-07-30  Paul Eggert  <eggert@twinsun.com>
122976         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
122977         buffer, so that the caller can always quote one small
122978         component of a "memory exhausted" message in slot 0.
122979         From a suggestion by Jim Meyering.
122981 2000-07-30  Jim Meyering  <meyering@lucent.com>
122983         * lib/makepath.c (make_path): Quote the other instance, too.
122985         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
122986         (STATIC_BUF_SIZE): Define.
122987         (quotearg_n_options): Use only statically allocated storage when
122988         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
122989         than STATIC_BUF_SIZE.
122991 2000-07-29  Jim Meyering  <meyering@lucent.com>
122993         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
122994         * lib/dirname.c (dir_name): Likewise.
122996         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
122997         `/'.
122999         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
123000         (dir_name): Assert that there are no trailing slashes.
123002 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
123004         * lib/mbswidth.h (mbswidth): Add a flags argument.
123005         (mbswidth): New declaration.
123006         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
123007         * lib/mbswidth.c (mbswidth): Add a flags argument.
123008         (mbsnwidth): New function.
123010 2000-07-24  Jim Meyering  <meyering@lucent.com>
123012         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
123014 2000-07-23  Paul Eggert  <eggert@twinsun.com>
123016         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
123018 2000-07-23  Paul Eggert  <eggert@twinsun.com>
123020         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
123021         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
123022         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
123023         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
123024         invoke multibyte primitives.
123026 2000-07-23  Paul Eggert  <eggert@twinsun.com>
123028         * lib/quotearg.c:
123029         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
123030         so that mbstate_t is always defined.
123032         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
123033         be 1 in at least one GCC installation, and this configuration
123034         error is likely to be common.  Ignoring MB_LEN_MAX hurts
123035         performance on hosts that have mbrtowc but have only unibyte
123036         locales, but I assume these hosts are rare.
123038 2000-07-23  Paul Eggert  <eggert@twinsun.com>
123040         * lib/mbswidth.c (_XOPEN_SOURCE):
123041         Don't define; this causes problems on Solaris 7.
123042         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
123044 2000-07-23  Jim Meyering  <meyering@lucent.com>
123046         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
123047         too: getgrgid, getpwuid, getuid.
123049 2000-07-23  Jim Meyering  <meyering@lucent.com>
123051         * lib/basename.c (base_name): Add an assertion.
123053 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
123055         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
123056         shadow its mbsinit function.
123058 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
123060         * lib/mbswidth.h: New file.
123061         * lib/mbswidth.c: New file.
123062         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
123063         (noinst_HEADERS): Add mbswidth.h.
123065 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
123067         * lib/config.charset: Add support for FreeBSD. Improve support for
123068         HP-UX and IRIX 6.
123070 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
123072         * m4/mbswidth.m4: New file.
123073         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
123075 2000-07-15  Jim Meyering  <meyering@lucent.com>
123077         * lib/makepath.c: Include quote.h.
123078         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
123079         corresponding argument in a `quote (...)' call.
123080         Give better diagnostics.
123082         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
123083         (noinst_HEADERS): Add quote.h.
123085         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
123086         from tar's src/misc.c.
123087         * lib/quote.h: New file.  Prototypes for same.
123089 2000-07-14  Paul Eggert  <eggert@twinsun.com>
123091         From a suggestion by Bruno Haible.
123092         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
123093         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
123094         to decide whether to define the BeOS workaround macro;
123095         this adjusts to the change to AC_MBSTATE_T.
123097 2000-07-14  Jim Meyering  <meyering@lucent.com>
123099         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
123100         jm_AC_TYPE_UINTMAX_T.
123102 2000-07-13  Paul Eggert  <eggert@twinsun.com>
123104         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
123106         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
123107         quotearg_buffer_restyled): Add support for
123108         clocale_quoting_style.  Undo previous change to
123109         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
123110         and "{RIGHT QUOTATION MARK}" msgids.
123112 2000-07-10  Paul Eggert  <eggert@twinsun.com>
123114         From a suggestion by Bruno Haible.
123115         * m4/mbstate_t.m4 (AC_MBSTATE_T):
123116         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
123117         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
123118         and mbstate_t, to a single-part test that simply defines mbstate_t.
123119         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
123120         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
123122 2000-07-10  Jim Meyering  <meyering@lucent.com>
123124         * m4/strerror_r.m4: Mirror the correction made in autoconf.
123126         * m4/gnu-source.m4: Output to confdefs.h directly.
123127         Suggestion from Akim Demaille.
123129 2000-07-09  Paul Eggert  <eggert@twinsun.com>
123131         The old behavior of quoting `like this' doesn't look good with
123132         newer, ISO-style fonts.  See:
123133         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
123135         Instead, quote "like this" by default.  Let the translator
123136         tailor the locale-specific quoting behavior by providing
123137         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
123139         * lib/quotearg.c (N_): New macro.
123140         (gettext_default): New function.
123141         (quotearg_buffer_restyled): Use
123142         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
123143         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
123145 2000-07-09  Jim Meyering  <meyering@lucent.com>
123147         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
123148         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
123150         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
123151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
123153 2000-07-09  Jim Meyering  <meyering@lucent.com>
123155         * lib/Most files: Update copyright dates to include 2000.
123157 2000-07-08  Jim Meyering  <meyering@lucent.com>
123159         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
123160         if not defined.
123161         (xgethostname): Remove now-unnecessary #ifdef.
123162         Move declaration of `err' into loop where it's used.
123164 2000-07-05  Paul Eggert  <eggert@twinsun.com>
123165         and Bruno Haible  <haible@clisp.cons.org>
123167         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
123168         only if the test for an object-type mbstate_t fails.  This
123169         prevents us from mistakenly reporting that mbstate_t is a
123170         system object type after we "#define mbstate_t int" to work
123171         around its lack.
123173 2000-07-05  Paul Eggert  <eggert@twinsun.com>
123174         and Bruno Haible  <haible@clisp.cons.org>
123176         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
123178 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
123180         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
123181         to strerror_r.
123182         Include <ctype.h> for use of isalpha.
123184 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
123186         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
123187         by allocating a larger buffer. Test the gethostname return value for
123188         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
123189         returns an error and ENAMETOOLONG isn't defined.
123191 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
123193         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
123194         dimension.
123196 2000-07-04  Jim Meyering  <meyering@lucent.com>
123198         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
123199         of the deprecated AC_CHECKING.
123201 2000-07-04  Jim Meyering  <meyering@lucent.com>
123203         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
123204         Reported by Bruno Haible.
123206 2000-07-04  Jim Meyering  <meyering@lucent.com>
123208         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
123209         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
123210         lacks mbrtowc.
123212 2000-07-03  Paul Eggert  <eggert@twinsun.com>
123214         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
123215         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
123217 2000-07-03  Paul Eggert  <eggert@twinsun.com>
123218         and Bruno Haible  <haible@clisp.cons.org>
123220         * lib/quotearg.c (mbrtowc):
123221         Assign to *pwc, and return 1 only if result is nonzero.
123222         (iswprint): Use ISPRINT when substituting our own mbrtowc.
123224 2000-07-03  Jim Meyering  <meyering@lucent.com>
123226         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
123228 2000-07-03  Jim Meyering  <meyering@lucent.com>
123230         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
123231         This is necessary to get a definition of e.g., UTMP_FILE on
123232         HP-UX 10.20.
123233         From Bob Proulx.
123235 2000-07-02  Jim Meyering  <meyering@lucent.com>
123237         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
123239         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
123240         AC_LIBOBJ(function_name).
123241         * m4/chown.m4: Likewise.
123242         * m4/fnmatch.m4: Likewise.
123243         * m4/ftruncate.m4: Likewise.
123244         * m4/getgroups.m4: Likewise.
123245         * m4/getline.m4: Likewise.
123246         * m4/group-member.m4: Likewise.
123247         * m4/jm-macros.m4: Likewise.
123248         * m4/lstat.m4: Likewise.
123249         * m4/malloc.m4: Likewise.
123250         * m4/memcmp.m4: Likewise.
123251         * m4/nanosleep.m4: Likewise.
123252         * m4/putenv.m4: Likewise.
123253         * m4/realloc.m4: Likewise.
123254         * m4/regex.m4: Likewise.
123255         * m4/stat.m4: Likewise.
123256         * m4/strftime.m4: Likewise.
123258 2000-07-02  Jim Meyering  <meyering@lucent.com>
123260         * lib/quotearg.c (mbstate_t): Don't define here.
123262 2000-07-02  Jim Meyering  <meyering@lucent.com>
123264         * lib/nanosleep.c (SIGCONT): Define if not already defined.
123266 2000-07-01  Jim Meyering  <meyering@lucent.com>
123268         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
123270 2000-07-01  Jim Meyering  <meyering@lucent.com>
123272         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
123273         problem.
123275 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
123277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
123278         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
123280 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
123282         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
123283         per change in ../m4/ls-mntd-fs.m4.
123284         (read_filesystem_list): Ignore symbolic links.
123286 2000-06-29  Jim Meyering  <meyering@lucent.com>
123288         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
123289         for declaration of strcmp.
123291         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
123293         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
123294         Avoid warning by casting result to `char *' to remove `const'.
123296 2000-06-28  Jim Meyering  <meyering@lucent.com>
123298         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
123299         included by quotearg.c, for which we perform this test.  From
123300         Bruno Haible.
123302 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
123304         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
123305         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
123306         <utmpx.h> exists, put readutmp.o into LIBOBJS.
123308 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
123310         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
123312 2000-06-26  Paul Eggert  <eggert@twinsun.com>
123314         savedir now sets errno on failure and invokes xmalloc to get memory.
123315         Fix a couple of other minor bugs while we're at it.
123317         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
123318         (NAMLEN): Remove macro.
123319         (malloc, realloc): Remove decls.
123320         (stpcpy): Likewise.
123321         ("xalloc.h"): Include.
123322         (NAME_SIZE_DEFAULT): New macro.
123323         (savedir): Use xmalloc / xrealloc to allocate memory.
123324         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
123325         Skip "" directory entries.
123326         Use strlen to calculate directory entry length, since the old method
123327         is rarely used these days and isn't worth supporting.
123328         Don't use a pointer after freeing it.
123329         Check for integer overflow when calculating allocation size.
123330         Use memcpy to copy entries, instead of stpcpy.
123331         Set errno properly when returning NULL.
123332         Check for readdir error.
123334 2000-06-26  Jim Meyering  <meyering@lucent.com>
123336         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
123338 2000-06-25  Jim Meyering  <meyering@lucent.com>
123340         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
123341         Linux header bug when _XOPEN_SOURCE is defined to 500.
123343 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
123345         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
123346         deficiency.
123348 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
123350         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
123351         Include xalloc.h.
123352         Don't include <stdlib.h>.  Don't declare malloc, realloc.
123354 2000-06-24  Jim Meyering  <meyering@lucent.com>
123356         * m4/strerror_r.m4: Revive this file -- to try out an experimental
123357         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
123358         for which strerror does return char*, but which lacks a conveniently
123359         accessible declaration of the function.  If the compile-test says
123360         strerror_r doesn't work, then resort to a `run'-test that works on
123361         BeOS and segfaults on DEC Unix.
123363 2000-06-24  Jim Meyering  <meyering@lucent.com>
123365         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
123367 2000-06-23  Paul Eggert  <eggert@twinsun.com>
123369         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
123370         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
123372 2000-06-23  Paul Eggert  <eggert@twinsun.com>
123374         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
123375         (mbrtowc, mbstate_t): Define substitutes if
123376         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
123377         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
123378         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
123380 2000-06-23  Jim Meyering  <meyering@lucent.com>
123382         * m4/afs.m4: Add missing AC_MSG_RESULT.
123383         Reported by Bruno Haible.
123385         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
123386         Suggestion from Bruno Haible.
123388 2000-06-23  Jim Meyering  <meyering@lucent.com>
123390         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
123392 2000-06-21  Jim Meyering  <meyering@lucent.com>
123394         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
123396 2000-06-21  Jim Meyering  <meyering@lucent.com>
123398         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
123399         (noinst_HEADERS): Add getstr.h.
123401         * lib/getline.c (getstr): Move into a separate file.
123402         * lib/getstr.c (getstr): New file, extracted from getline.c, with
123403         the following changes: new parameter, delim2; both delim[12]
123404         parameters have type `int', not `char'.  The latter would lose
123405         with 8-bit delimiters.
123406         * lib/getstr.h: New file.
123408 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123410         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
123411         than 1024, return a memory chunk of least possible size, instead
123412         of size PATH_MAX + 2. In the loop, increment the size proportionally.
123413         Use free/xmalloc instead of xrealloc to avoid copying for very long
123414         paths.
123416 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123418         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
123419         the empty string.
123421 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
123423         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
123424         address, not strdup.  Include <stdlib.h> and don't declare free().
123426 2000-06-19  Jim Meyering  <meyering@lucent.com>
123428         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
123430 2000-06-18  Jim Meyering  <meyering@lucent.com>
123432         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
123434         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
123435         `checking whether...' message to be consistent with that of the
123436         lstat test.
123438 2000-06-18  Jim Meyering  <meyering@lucent.com>
123440         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
123441         Besides, these days every porting target provides a mkdir function.
123443         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
123444         needed. (this snippet comes from src/system.h).
123446 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
123448         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
123450 2000-06-15  Paul Eggert  <eggert@twinsun.com>
123452         * lib/human.c (adjust_value): New function.
123453         (human_readable_inexact): Apply rounding style even when
123454         printing approximate values.
123456 2000-06-14  Paul Eggert  <eggert@twinsun.com>
123458         * lib/human.c (human_readable_inexact): Allow an input block
123459         size that is not a multiple of the output block size, and vice versa.
123460         Reported by Piergiorgio Sartor.
123462 2000-06-14  Paul Eggert  <eggert@twinsun.com>
123464         * lib/getdate.y (get_date): Apply relative times after time
123465         zone indicator, not before.  Reported by Todd A. Jacobs.
123467 2000-06-13  Jim Meyering  <meyering@lucent.com>
123469         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
123471         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
123473 2000-06-12  Paul Eggert  <eggert@twinsun.com>
123475         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
123477 2000-06-12  Jim Meyering  <meyering@lucent.com>
123479         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
123480         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
123481         optional argument.
123482         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
123483         the optional argument, `lib'.
123485 2000-06-08  Jim Meyering  <meyering@lucent.com>
123487         * m4/largefile.m4: Remove file (now that it's part of autoconf).
123489 2000-06-04  Paul Eggert  <eggert@twinsun.com>
123491         Rewrite largefile configuration so that we don't need to run
123492         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
123493         AC_CANONICAL_HOST in configure.in -- jmm]
123495         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
123496         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
123497         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
123498         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
123499         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
123500         All uses changed.
123501         Instead of inspecting the output of getconf, try to compile the
123502         test program without and with the macro definition.
123503         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
123504         for getconf.  Instead, check for the needed flags by compiling
123505         test programs.
123507 2000-06-04  Paul Eggert  <eggert@twinsun.com>
123509         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
123511 2000-06-04  Jim Meyering  <meyering@lucent.com>
123513         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
123514         SunOS 4.1.4 for which gid_t is an unsigned type.
123516 2000-06-03  Jim Meyering  <meyering@lucent.com>
123518         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
123519         now that autoconf requires that.
123521         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
123522         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
123523         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
123525 2000-06-03  Jim Meyering  <meyering@lucent.com>
123527         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
123529 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
123531         * m4/glibc21.m4: New file.
123532         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
123534 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
123536         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
123537         newer, don't install charset.alias.
123538         * lib/config.charset: Change the Linux/glibc rules so they become empty
123539         on glibc-2.1 or newer.
123541 2000-06-02  Jim Meyering  <meyering@lucent.com>
123543         * lib/mountlist.c: Back out last change.  Instead, do this...
123544         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
123545         me_dummy member using the same `ignore'-testing code.
123546         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
123547         fs_type strings.
123548         From Mark D. Roth.
123550 2000-05-29  Jim Meyering  <meyering@lucent.com>
123552         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
123553         mounts with the `ignore' attribute.  Based on a patch from
123554         Mark D. Roth.
123556 2000-05-28  Jim Meyering  <meyering@lucent.com>
123558         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
123559         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123560         * m4/stat.m4: Likewise.
123561         * m4/lstat.m4: Likewise.
123562         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
123564         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
123565         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
123567 2000-05-26  Jim Meyering  <meyering@lucent.com>
123569         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
123571 2000-05-24  Jim Meyering  <meyering@lucent.com>
123573         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
123574         autoconf requires that.
123575         * m4/lib-check.m4: Likewise.
123576         * m4/jm-macros.m4: Likewise.
123577         * m4/strftime.m4: Likewise.
123579         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
123580         AC_CHECK_DECLS, now that autoconf requires that.
123582 2000-05-22  Jim Meyering  <meyering@lucent.com>
123584         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
123585         * m4/lstat.m4: Likewise.
123587 2000-05-22  Jim Meyering  <meyering@lucent.com>
123589         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
123591 2000-05-20  Jim Meyering  <meyering@lucent.com>
123593         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
123594         (jm_PREREQ): Use it.
123596 2000-05-18  Jim Meyering  <meyering@lucent.com>
123598         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
123599         back, too, since it may have been modified by allocate_entry.
123600         (hash_delete): Rewrite to use neither the assignment operator
123601         nor the comma operator in an if-expression.
123603 2000-05-15  Paul Eggert  <eggert@twinsun.com>
123605         * lib/closeout.c:
123606         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
123607         Remove; no longer needed.
123608         "quotearg.h": Add include.
123609         (file_name): Do not bother to explicitly initialize to NULL; it's less
123610         efficient on some hosts.
123611         (close_stdout_status): Remove test as to whether stdout was already
123612         closed; it breaks for the case "echo x | sort >&-".
123613         Quote file name colons.
123614         Do not assume that _("write error") lacks format strings.
123616 2000-05-15  Jim Meyering  <meyering@lucent.com>
123618         * lib/version-etc.c (version_etc_copyright): Update the copyright
123619         string used in all --version output.
123621 2000-05-14  Jim Meyering  <meyering@lucent.com>
123623         * lib/closeout.c (close_stdout_set_file_name): New function.
123624         (close_stdout_status): Use new file-scoped global.
123625         Return right away if fstat says the stdout file descriptor is invalid.
123626         * lib/closeout.h (close_stdout_set_file_name): Declare.
123628 2000-05-10  Jim Meyering  <meyering@lucent.com>
123630         * lib/closeout.c [default_exit_status]: New file-scoped variable.
123631         (close_stdout_set_status): New function.
123632         * lib/closeout.h (close_stdout_set_status): Declare.
123634 2000-05-09  Jim Meyering  <meyering@lucent.com>
123636         * m4/gettext.m4: Rename this...
123637         * m4/libintl.m4: ...to this.
123639 2000-05-08  Jim Meyering  <meyering@lucent.com>
123641         * lib/long-options.c: Don't include closeout.h.
123642         (parse_long_options): Don't call close_stdout for --version.
123644 2000-05-06  Paul Eggert  <eggert@twinsun.com>
123646         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
123647         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
123648         2.1.3 bug.  This avoids a clash when files like regex.c define
123649         _GNU_SOURCE.
123651 2000-05-06  Jim Meyering  <meyering@lucent.com>
123653         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
123654         (AC_REPLACE_FUNCS): Add strnlen.
123656         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
123657         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
123659         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
123660         AC_SEARCH_LIBS call for nanosleep.
123661         (LIB_NANOSLEEP): Set and AC_SUBST.
123663 2000-05-06  Jim Meyering  <meyering@lucent.com>
123665         * lib/strnlen.c: Undefine __strnlen and strnlen.
123666         [!weak_alias]: Define __strnlen to strnlen.
123668         * lib/atexit.c: New file, from libiberty.
123670 2000-05-06  Jim Meyering  <meyering@lucent.com>
123672         * lib/closeout.c (close_stdout_status): Also check for errors on the
123673         stderr stream.
123675 2000-05-05  Jim Meyering  <meyering@lucent.com>
123677         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
123678         AC_SEARCH_LIBS call for clock_gettime.
123679         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
123681         * m4/search-libs.m4: Update from autoconf.
123683         su doesn't work on Solaris 2.6.
123684         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
123685         <shadow.h>.  Reported by Dragos Harabor.
123687 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
123689         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
123690         memcpy instead of xmalloc, xrealloc, path_concat.
123691         (locale_charset): Treat empty environment variables as absent.
123692         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
123694 2000-05-04  Jim Meyering  <meyering@lucent.com>
123696         * lib/getopt.c: Update from glibc.
123697         * lib/obstack.c: Likewise.
123698         * lib/obstack.h: Likewise.
123699         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
123700         file
123702         * lib/regex.h: Likewise.
123703         * lib/strndup.c: Likewise.
123704         * lib/strnlen.c: New file, from glibc.
123706 2000-05-03  Jim Meyering  <meyering@lucent.com>
123708         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
123710 2000-05-02  Paul Eggert  <eggert@twinsun.com>
123712         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
123713         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
123714         compile-time test, rather than inspecting host and OS, to
123715         decide whether to define _LARGEFILE_SOURCE.
123717 2000-05-01  Jim Meyering  <meyering@lucent.com>
123719         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
123721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
123722         Based on a patch from Bruno Haible.
123724 2000-05-01  Jim Meyering  <meyering@lucent.com>
123726         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
123728 2000-04-29  Jim Meyering  <meyering@lucent.com>
123730         * lib/path-concat.c: Declare strdup only if it's not defined.
123731         * lib/canon-host.c: Likewise.
123733 2000-04-28  Jim Meyering  <meyering@lucent.com>
123735         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
123736         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
123737         is included first, then limits.h is included by locale.h by libintl.h.
123738         From John David Anglin.
123740 2000-04-25  Jim Meyering  <meyering@lucent.com>
123742         * lib/makepath.c (S_IRWXUGO): Define.
123743         (make_path): Always perform explicit chmod if MODE specifies any
123744         of the `special' permission bits.  Prompted by a bug report against
123745         install from Mate Wierdl and Joost van Baal.
123747 2000-04-18  Jim Meyering  <meyering@lucent.com>
123749         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
123750         (jm_PREREQ): Use it.
123752 2000-04-18  Jim Meyering  <meyering@lucent.com>
123754         * lib/README: New file.
123756         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
123757         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
123759 2000-04-17  Jim Meyering  <meyering@lucent.com>
123761         Get it right :-)
123762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
123763         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
123764         Suggestion from Akim Demaille.
123766 2000-04-17  Jim Meyering  <meyering@lucent.com>
123768         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
123769         the definition of it to rpl_strftime also defined-away the system's
123770         declaration.
123772 2000-04-15  Jim Meyering  <meyering@lucent.com>
123774         Use `C' to denote so-called `contiguous' files, the same way
123775         that tar does.
123776         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
123777         (ftypelet): Use S_ISCTG.
123778         From Michael Deutschmann.
123780 2000-04-14  Jim Meyering  <meyering@lucent.com>
123782         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
123783         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
123784         clobbered.
123786 2000-04-14  Jim Meyering  <meyering@lucent.com>
123788         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
123790 2000-04-13  Jim Meyering  <meyering@lucent.com>
123792         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
123793         AH_VERBATIM to insert required #ifndef into config.h.in.
123794         Suggestion from Akim Demaille.
123796 2000-04-12  Jim Meyering  <meyering@lucent.com>
123798         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
123799         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
123800         Christian Krackowizer.
123802         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
123803         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
123804         (AC_SYS_LARGEFILE): Require.
123805         (AM_C_PROTOTYPES): Require.
123807 2000-04-08  Jim Meyering  <meyering@lucent.com>
123809         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
123810         names don't conflict.  Reported by Eli Zaretskii.
123812 2000-04-07  Jim Meyering  <meyering@lucent.com>
123814         * lib/putenv.c: Move inclusion of errno.h so it follows that of
123815         sys/types.h, to work around system header problems on AIX 3.2.5.
123816         From Bruno Haible.
123818 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
123820         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
123821         bug.  Deal with the different error behavior of Irix iconv.
123823 2000-04-05  Paul Eggert  <eggert@twinsun.com>
123825         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
123826         IRIX if the installer said otherwise.
123828 2000-04-05  Jim Meyering  <meyering@lucent.com>
123830         Portability tweaks required for ultrix4.3.
123831         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
123832         (jm_CHECK_DECLS): Add getutent to the list of functions.
123833         (_jm_DECL_HEADERS): Add utmpx.h.
123834         From John David Anglin.
123836         * m4/strftime.m4: Back out the 2000-04-02 change.
123837         Instead of that change, simply undefine putenv in the test program.
123839 2000-04-05  Jim Meyering  <meyering@lucent.com>
123841         Portability tweaks required for ultrix4.3.
123842         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
123843         getutent.
123844         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
123845         * lib/canon-host.c: Declare strdup.
123846         * lib/path-concat.c: Likewise.
123847         From John David Anglin.
123849 2000-04-04  Jim Meyering  <meyering@lucent.com>
123851         Be more DOS 8.3-friendly.
123852         * lib/ref-add.sin: Renamed from ref-add.sed.in.
123853         * lib/ref-del.sin: Renamed from ref-del.sed.in.
123854         * lib/Makefile.am: Reflect renaming.
123855         Reported by Eli Zaretskii.
123857         Use a temporary file name that won't clash with `charset.alias'
123858         in the DOS 8.3 name space.
123859         * lib/Makefile.am (charset_tmp): Define.
123860         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
123861         (uninstall-local): Likewise.
123862         Reported by Eli Zaretskii.
123864 2000-04-03  Jim Meyering  <meyering@lucent.com>
123866         * m4/gettext.m4: Fix typo in comment.
123868         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
123869         textutils/configure.in).  Suggestion from Paul Eggert.
123870         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
123872 2000-04-02  Paul Eggert  <eggert@twinsun.com>
123874         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
123875         variable in the shell rather than using putenv, which isn't
123876         portable.  This avoids the configure-time inter-test dependency
123877         on the potentially-renamed putenv function.
123879 2000-03-30  Paul Eggert  <eggert@twinsun.com>
123881         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
123882         before checking struct stat.st_blksize, so that
123883         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
123885 2000-03-29  Paul Eggert  <eggert@twinsun.com>
123887         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
123888         since strftime.c uses HAVE_STRFTIME to decide whether to use
123889         the underlying strftime.
123891 2000-03-29  Paul Eggert  <eggert@twinsun.com>
123893         * lib/time/strftime.c (my_strftime): Make sure we call the system
123894         strftime, not ourselves, when invoking the underlying strftime.
123896 2000-03-24  Jim Meyering  <meyering@lucent.com>
123898         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
123899         (charset_alias): Define.
123900         (install-exec-local): Factor out common code.
123901         (uninstall-local): Split lines longer than 80.
123902         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
123903         (SUFFIXES): Define.
123904         (.sed.in.sed): New rule.  Don't redirect directly to $@.
123905         (CLEANFILES): Add ref-add.sed and ref-del.sed.
123907 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
123909         * lib/config.charset: Output a line containing "Packages using this
123910         file".
123911         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
123912         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
123913         ref-del.sed): New rules.
123915 2000-03-17  Jim Meyering  <meyering@lucent.com>
123917         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
123918         Otherwise, include <strings.h>
123920 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
123922         * lib/unicodeio.c (utf8_wctomb): New function.
123923         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
123924         format instead of in UCS-4 with platform dependent endianness.
123926 2000-03-10  Jim Meyering  <meyering@lucent.com>
123928         * m4/lib-check.m4: Look for getspnam in -lgen, too.
123929         From Marco Franzen.
123931 2000-03-07  Paul Eggert  <eggert@twinsun.com>
123933         * lib/savedir.c (savedir): Work even if directory size is
123934         negative; this can happen with some screwy NFS configurations.
123936 2000-03-06  Jim Meyering  <meyering@lucent.com>
123938         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
123939         if it's NULL (because we ran out of memory).  From Bruno Haible.
123941 2000-03-05  Jim Meyering  <meyering@lucent.com>
123943         * lib/localcharset.c ("path-concat.h"): Include.
123944         (get_charset_aliases): Use path_concat instead of ANSI string
123945         concatenation.
123947         * lib/unicodeio.h (PARAMS): Define.
123948         Use it to guard prototype.
123950 2000-03-04  Jim Meyering  <meyering@lucent.com>
123952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
123953         for lib/localcharset.c.
123955 2000-03-04  Jim Meyering  <meyering@lucent.com>
123957         * lib/Makefile.am (install-exec-local): Create $(libdir) before
123958         installing into it.
123959         (uninstall-local): Uncomment this rule so `make distcheck' works
123960         once again.
123962         * lib/unicodeio.c (<errno.h>): Include it.
123963         (errno): Declare if not defined.
123965         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
123967         * lib/config.charset: New version, incorporating remarks from a linux
123968         i18n mailing list.  From Bruno Haible.
123970 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
123972         * m4/codeset.m4: New file.
123973         * m4/iconv.m4: New file.
123974         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
123976 2000-03-03  Jim Meyering  <meyering@lucent.com>
123978         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
123980 2000-03-02  Jim Meyering  <meyering@lucent.com>
123982         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
123983         the messages come out on separate lines.
123985         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
123986         rather than jm_CHECK_DECLARATIONS.
123987         * m4/decl.m4: Remove now-unused file.
123989         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
123990         geteuid.
123992 2000-03-02  Jim Meyering  <meyering@lucent.com>
123994         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
123996 2000-03-01  Jim Meyering  <meyering@lucent.com>
123998         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
123999         * lib/unicodeio.c: Likewise.
124001 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
124003         * lib/config.charset: New file.
124004         * lib/localcharset.c: New file.
124005         * lib/unicodeio.h, lib/unicodeio.c: New files.
124006         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
124007         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
124008         (noinst_HEADERS): Add unicodeio.h.
124009         (all-local, install-exec-local, charset.alias): New targets.
124011 2000-02-28  Paul Eggert  <eggert@twinsun.com>
124013         * lib/quotearg.c (ALERT_CHAR): New macro.
124014         (quotearg_buffer_restyled): Use it.
124016 2000-02-27  Jim Meyering  <meyering@lucent.com>
124018         * m4/check-decl.m4: Add getenv to the list.
124020 2000-02-27  Jim Meyering  <meyering@lucent.com>
124022         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
124023         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
124025         * lib/backupfile.c: Guard inclusion of stdlib.h with
124026         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
124027         Declare malloc if needed.
124029         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
124030         `#ifndef HAVE_DECL..'
124031         now that autoconf always defines the HAVE_DECL_ symbols.
124032         * lib/human.c: Likewise.
124033         * lib/same.c: Likewise.
124034         * lib/strtoumax.c: Likewise.
124036         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
124037         declaration check was not run.
124038         * lib/hash.c: Likewise.
124039         * lib/human.c: Likewise.
124040         * lib/same.c: Likewise.
124041         * lib/strtoumax.c: Likewise.
124043         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
124044         `.', then first look up the entire `.'-containing string as a login
124045         name.
124047 2000-02-23  Jim Meyering  <meyering@lucent.com>
124049         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
124050         in place of my hack.
124052 2000-02-18  Paul Eggert  <eggert@twinsun.com>
124054         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
124055         (textint): New typedef.
124056         (parser_control): Member year changed from int to textint.
124057         All uses changed.
124058         (YYSTYPE): Removed; replaced by %union with int and textint members.
124059         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
124060         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
124061         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
124062         (tSNUMBER, tUNUMBER): Now of type <textintval>.
124063         (date, number, to_year): Use width of number in digits, not its value,
124064         to determine whether it's a 2-digit year, or a 2-digit time.
124065         (yylex): Store number of digits of numeric tokens.
124066         Reported by John Kendall.
124068         (parser_control): Changed from struct parser_control to typedef (for
124069         consistency).  All uses changed.
124071         (tID): Removed; not used.
124072         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
124074 2000-02-14  Paul Eggert  <eggert@twinsun.com>
124076         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
124077         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
124079 2000-02-12  Jim Meyering  <meyering@lucent.com>
124081         * lib/userspec.c (ISDIGIT): Define it.
124082         (isdigit): Remove definition.
124083         (is_number): Use ISDIGIT, not isdigit.
124084         <libintl.h>: Include.
124085         (_ and N_): Define.
124086         (parse_user_spec): Mark translatable strings.
124088 2000-02-10  Jim Meyering  <meyering@lucent.com>
124090         With these changes, nanosleep.[ch] are finally enough like the other
124091         lib/* replacement files to compile on a few more losing systems.
124093         * lib/nanosleep.h: Don't include config.h.
124094         Remove prototype from declaration of nanosleep.
124095         (PARAMS): Remove now-unneeded definition.
124096         * lib/nanosleep.c: #undef nanosleep.
124097         (rpl_nanosleep): Rename from nanosleep.
124099 2000-02-10  Jim Meyering  <meyering@lucent.com>
124101         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
124102         gnu_nanosleep to rpl_nanosleep.
124104 2000-02-09  Jim Meyering  <meyering@lucent.com>
124106         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
124107         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
124109 2000-02-08  Akim Demaille  <akim@epita.fr>
124111         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
124112         `[' and `]' and remove uses of `changequote'.
124113         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
124114         (AC_SYS_LARGEFILE): Likewise.
124115         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
124116         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
124117         of changequote.
124118         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
124119         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
124120         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
124121         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
124123 2000-02-05  Jim Meyering  <meyering@lucent.com>
124125         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
124126         Remove explicit use of AC_HEADER_TIME.  It is required by
124127         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
124128         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
124129         in autoconf whereby the expansion of the latter ended up preceding
124130         the expansion of its prerequisite, AC_HEADER_TIME.
124131         Reported by Volker Borchert.
124133 2000-02-03  Jim Meyering  <meyering@lucent.com>
124135         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
124137 2000-02-03  Jim Meyering  <meyering@lucent.com>
124139         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
124140         rather than with `#if HAVE_UTMPNAME'.
124142 2000-02-02  Jim Meyering  <meyering@lucent.com>
124144         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
124145         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
124146         Reported by Eli Zaretskii.
124148 2000-02-01  Jim Meyering  <meyering@lucent.com>
124150         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
124152 2000-01-31  Jim Meyering  <meyering@lucent.com>
124154         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
124155         functions.  Add the time.h and sys/time.h headers along with the
124156         AC_REQUIRE'ment of AC_HEADER_TIME.
124158 2000-01-31  Jim Meyering  <meyering@lucent.com>
124160         * lib/nanosleep.h (nanosleep): Guard declaration with
124161         `#if ! HAVE_DECL_NANOSLEEP'.
124162         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
124163         the declaration in that vendor's sys/timers.h.
124164         Reported by Christian Krackowizer.
124166         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
124167         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
124168         (ISPRINT): Likewise.
124169         Reported by Tom Tromey.
124171 2000-01-30  Jim Meyering  <meyering@lucent.com>
124173         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
124175         * m4/prereq.m4 (utmp_includes): Define.
124176         Check for ut_user and ut_name members in both struct utmpx
124177         and struct utmp.
124179 2000-01-30  Jim Meyering  <meyering@lucent.com>
124181         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
124182         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
124183         header files where only utmpx.ut_user is declared.
124185         * lib/readutmp.h (UT_USER): Define.
124187 2000-01-29  Jim Meyering  <meyering@lucent.com>
124189         * m4/lib-check.m4: New file containing library-related checks from
124190         fileutils and sh-utils (textutils had none).
124192 2000-01-28  Jim Meyering  <meyering@lucent.com>
124194         * m4/perl.m4: Change format of warning message to look more like that
124195         from the missing script.  Suggestion from François Pinard.
124197 2000-01-25  Jim Meyering  <meyering@lucent.com>
124199         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
124200         well as time.h in the compile check.
124201         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
124202         Fix typo in cross-compiling case: s/yes/no/.
124204 2000-01-23  Jim Meyering  <meyering@lucent.com>
124206         * m4/jm-macros.m4: Move df-related tests here from
124207         fileutils/configure.in
124209         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
124210         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
124212         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
124213         s/space/ac_fsusage_space/.
124214         (jm_FILE_SYSTEM_USAGE): Take two parameters.
124216         * m4/ftruncate.m4: New file (derived from part of
124217         fileutils/configure.in).
124218         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
124219         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
124221         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
124222         AC_SUBST these here, rather than just in sh-util/configure.in, so
124223         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
124224         all the same.
124225         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
124226         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
124227         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
124228         (AC_SUBST(POW_LIBM)): Likewise.
124229         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
124231 2000-01-23  Jim Meyering  <meyering@lucent.com>
124233         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
124234         obstack.c.
124236 2000-01-22  Jim Meyering  <meyering@lucent.com>
124238         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
124240         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
124242         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
124243         configure.in
124244         (AC_CHECK_HEADERS): Likewise for sh-utils.
124245         (AC_CHECK_HEADERS): Likewise for textutils.
124246         Merge the three lists of headers.
124248         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
124249         from fileutils' configure.in.
124251         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
124252         code. Moved tests into their own function (_jm_DECL_HEADERS) in
124253         check-decl.m4.
124255         * m4/check-decl.m4: Use #if rather than #ifdef.
124256         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
124257         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
124258         (_jm_DECL_HEADERS): Define new function.
124259         (jm_CHECK_DECLARATIONS): Require it.
124261 2000-01-22  Jim Meyering  <meyering@lucent.com>
124263         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
124264         [! HAVE_DECL_STRTOULL]: Declare strtoull.
124265         Required for some AIX systems.  Reported by Christian Krackowizer.
124266         [TESTING] (main): New function.
124268         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
124269         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
124270         letters.
124272         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
124273         iswprint.
124275         * lib/strverscmp.c (ISDIGIT): Define.
124276         (strverscmp): Use ISDIGIT, not isdigit.
124278 2000-01-19  Jim Meyering  <meyering@lucent.com>
124280         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
124281         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
124282         defines `struct timespec' in <sys/time.h>
124284         * m4/c-bs-a.m4: Remove uses of changequote altogether.
124285         Thanks to Akim for explaining.
124287 2000-01-17  Paul Eggert  <eggert@twinsun.com>
124289         * lib/nanosleep.c (nanosleep):
124290         Don't use SA_INTERRUPT to decide whether to call sigaction, as
124291         POSIX.1 doesn't require SA_INTERRUPT and some systems
124292         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
124293         it's been part of POSIX.1 since day 1 (in 1988).
124295 2000-01-17  Jim Meyering  <meyering@lucent.com>
124297         * lib/interlock: Remove unused file.  Reported by François Pinard.
124299 2000-01-16  Paul Eggert  <eggert@twinsun.com>
124301         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
124302         alert, backslash, formfeed, and vertical tab unnecessarily in
124303         shell quoting style.
124305 2000-01-16  Jim Meyering  <meyering@lucent.com>
124307         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
124308         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
124309         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
124310         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
124312 2000-01-16  Jim Meyering  <meyering@lucent.com>
124314         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
124315         because the latter didn't work.
124317 2000-01-15  Jim Meyering  <meyering@lucent.com>
124319         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
124320         (AC_REPLACE_FUNCS): Add memcpy and memset.
124321         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
124322         Add strpbrk.
124323         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
124325 2000-01-12  Jim Meyering  <meyering@lucent.com>
124327         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
124328         (jm_PREREQ): Use it.
124329         (jm_PREREQ_READUTMP): New macro.
124330         (jm_PREREQ): Use it.
124332 2000-01-11  Paul Eggert  <eggert@twinsun.com>
124334         Quote multibyte characters correctly.
124335         * m4/c-bs-a.m4: New file.
124336         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
124337         (jm_PREREQ): Use it.
124339 2000-01-11  Paul Eggert  <eggert@twinsun.com>
124341         * m4/uintmax_t.m4: Port to autoconf 2.13.
124343 2000-01-08  Jim Meyering  <meyering@ascend.com>
124345         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
124346         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
124348 2000-01-04  Jim Meyering  <meyering@ascend.com>
124350         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
124351         jm_STRUCT_DIRENT_D_TYPE.
124352         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
124353         jm_STRUCT_DIRENT_D_INO.
124354         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
124355         jm_STRUCT_UTIMBUF.
124356         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
124357         renamings.
124358         * m4/utime.m4: Likewise.
124360         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
124361         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
124363 2000-01-03  Paul Eggert  <eggert@twinsun.com>
124365         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
124366         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
124368 2000-01-02  Jim Meyering  <meyering@ascend.com>
124370         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
124371         remember if this is necessary.
124373 1999-12-26  Jim Meyering  <meyering@ascend.com>
124375         * m4/jm-macros.m4: Use it here.
124376         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
124378 1999-12-23  Jim Meyering  <meyering@ascend.com>
124380         * m4/jm-macros.m4: Check for clock_gettime (moved from
124381         fileutils/configure.in)
124382         Check for gettimeofday.
124384 1999-12-20  Jim Meyering  <meyering@ascend.com>
124386         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
124387         autoconf-2.14a-1999-12-20.
124389 1999-12-19  Jim Meyering  <meyering@ascend.com>
124391         * m4/lstat-slash.m4: New file.
124392         * m4/jm-macros.m4: Use the new macro:
124393         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
124395 1999-12-07  Jim Meyering  <meyering@ascend.com>
124397         * m4/perl.m4: Require that File::Compare be available, too.
124398         Too many systems seem to lack it.
124400         * m4/strftime.m4: Add checks for most of the cpp macros tested in
124401         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
124403 1999-11-18  Paul Eggert  <eggert@twinsun.com>
124405         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
124406         problem with the QNX 4.25 shell, which doesn't propagate exit
124407         status of failed commands inside shell assignments.
124409 1999-11-17  Jim Meyering  <meyering@ascend.com>
124411         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
124413 1999-11-07  Jim Meyering  <meyering@ascend.com>
124415         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
124417 1999-11-06  Jim Meyering  <meyering@ascend.com>
124419         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
124420         * m4/jm-macros.m4 (jm_MACROS): Use it here.
124422 1999-11-05  Jim Meyering  <meyering@ascend.com>
124424         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
124425         configure.in of textutils, fileutils, and sh-utils into this one
124426         (shared between those packages) file.
124427         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
124428         AC_STRUCT_ST_BLKSIZE.
124430 1999-11-03  Jim Meyering  <meyering@ascend.com>
124432         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
124433         of AC_CHECK_TYPE checks includes unistd.h.
124434         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
124435         Suggestion from Akim Demaille.
124437 1999-10-30  Jim Meyering  <meyering@ascend.com>
124439         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
124440         m4-quoted string.
124441         * m4/ls-mntd-fs.m4: Likewise.
124442         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
124443         * m4/jm-winsz1.m4: Likewise.
124445         * m4/const.m4: Remove file, since the fix made it into the experimental
124446         version of autoconf.
124447         * m4/mktime.m4: Likewise.
124449         * m4/check-type.m4: Remove file, now that the latest version of
124450         AC_CHECK_TYPE takes a third arg to specify additional #includes.
124452         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
124453         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
124454         AC_CHECK_TYPE.
124456 1999-10-04  Jim Meyering  <meyering@ascend.com>
124458         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
124460 1999-09-22  Paul Eggert  <eggert@twinsun.com>
124462         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
124463         2.95.1 bug with HP-UX 10.20.
124465 1999-09-17  Jim Meyering  <meyering@ascend.com>
124467         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
124468         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
124469         due to missing strdup (against sh-utils-2.0).
124471 1999-08-29  Jim Meyering  <meyering@ascend.com>
124473         * m4/jm-macros.m4: Require jm_BISON.
124474         * m4/bison.m4: New file.
124476 1999-08-17  Paul Eggert  <eggert@twinsun.com>
124478         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
124479         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
124481 1999-08-05  Jim Meyering  <meyering@ascend.com>
124483         * m4/getline.m4: Rename test file from conftestdata to conftest.data
124484         to avoid conflicts with `conftest' on 8+3 filesystems.
124485         Suggestion from Eli Zaretskii.
124487 1999-08-04  Jim Meyering  <meyering@ascend.com>
124489         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
124490         fileutils and sh-utils (textutils's getline test was inadequate).
124491         (AM_FUNC_GETLINE): Run this test.
124492         (AC_CHECK_FUNCS): Check for getdelim.
124493         Reported by Bob Proulx.
124495 1999-08-02  Jim Meyering  <meyering@ascend.com>
124497         * m4/jm-macros.m4: Add a comment.
124499 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124501         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
124502         <inttypes.h> defines strtoumax as a macro (and not as a
124503         function).
124505 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124507         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
124508         that we can shift, multiply and divide unsigned long long
124509         values; Ultrix cc can't do it.
124511 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124513         * m4/mktime.m4: New file, which is a preview of what should appear
124514         in the next public autoconf release.
124516 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124518         * m4/lfs.m4: Remove this file.
124519         * m4/largefile.m4: New file.  It contains the old contents of
124520         lfs.m4, except that all names with prefix AC_LFS have been
124521         changed to use the prefix AC_SYS_LARGEFILE instead, to be
124522         compatible with future autoconf versions.  Also, some minor m4
124523         quoting problems have been fixed.
124525 1999-08-01  Paul Eggert  <eggert@twinsun.com>
124527         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
124528         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
124529         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
124530         and simplify the shell code.
124532 1999-08-01  Jim Meyering  <meyering@ascend.com>
124534         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
124535         m4.
124537 1999-07-20  Jim Meyering  <meyering@ascend.com>
124539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
124541 1999-07-15  Jim Meyering  <meyering@ascend.com>
124543         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
124545 1999-05-22  Jim Meyering  <meyering@ascend.com>
124547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
124549 1999-05-20  Jim Meyering  <meyering@ascend.com>
124551         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
124552         Add a colon after each `then' in case $4 is empty.
124554 1999-05-16  Jim Meyering  <meyering@ascend.com>
124556         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
124558 1999-05-10  Jim Meyering  <meyering@ascend.com>
124560         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
124562         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
124563         AC_FUNC_MKTIME.
124565 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
124567         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
124569 1999-05-04  Paul Eggert  <eggert@twinsun.com>
124571         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
124572         not CPPFLAGS, so that linking works correctly in IRIX.
124574 1999-04-30  Paul Eggert  <eggert@twinsun.com>
124576         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
124578 1999-04-20  Paul Eggert  <eggert@twinsun.com>
124580         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
124581         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
124582         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
124583         jm_AC_TYPE_UNSIGNED_LONG_LONG.
124584         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
124586         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
124588 1999-04-20  Jim Meyering  <meyering@ascend.com>
124590         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
124591         AC_REPLACE xstroull if necessary.  From Paul Eggert.
124592         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
124594 1999-04-18  Jim Meyering  <meyering@ascend.com>
124596         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
124597         * m4/jm-macros.m4: Use it.
124599 1999-04-06  Jim Meyering  <meyering@ascend.com>
124601         * m4/strftime.m4: Remove test for %f.
124603 1999-03-29  Jim Meyering  <meyering@ascend.com>
124605         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
124606         superset of the AC_TYPE_* checks in the textutils, fileutils,
124607         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
124608         AC_TYPE_PID_T.
124610 1999-03-28  Jim Meyering  <meyering@ascend.com>
124612         * m4/jm-macros.m4: Define GNU_PACKAGE here.
124613         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
124614         replaced e.g., in the *.sh files of the sh-utils.
124616 1999-03-20  Jim Meyering  <meyering@ascend.com>
124618         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
124619         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
124620         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
124622 1999-03-19  Jim Meyering  <meyering@ascend.com>
124624         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
124626 1999-03-12  Jim Meyering  <meyering@ascend.com>
124628         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
124630 1999-03-07  Jim Meyering  <meyering@ascend.com>
124632         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
124633         declared.
124635 1999-02-17  Jim Meyering  <meyering@ascend.com>
124637         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
124638         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
124640 1999-02-07  Jim Meyering  <meyering@ascend.com>
124642         * m4/group-member.m4: New file -- extracted from sh-utils'
124643         configure.in.
124645         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
124646         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
124648 1999-02-06  Jim Meyering  <meyering@ascend.com>
124650         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
124651         * m4/fnmatch.m4: Likewise.
124652         * m4/getgroups.m4: Likewise.
124653         * m4/lstat.m4: Likewise.
124654         * m4/malloc.m4: Likewise.
124655         * m4/putenv.m4: Likewise.
124656         * m4/realloc.m4: Likewise.
124657         * m4/regex.m4: Likewise.
124658         * m4/stat.m4: Likewise.
124659         * m4/strftime.m4: Likewise.
124660         Suggestion from Alain Magloire.
124662         * m4/chown.m4: Use `.$ac_objext', not `.o'.
124663         * m4/fnmatch.m4: Likewise.
124664         * m4/getgroups.m4: Likewise.
124665         * m4/getline.m4: Likewise.
124666         * m4/lstat.m4: Likewise.
124667         * m4/malloc.m4: Likewise.
124668         * m4/memcmp.m4: Likewise.
124669         * m4/putenv.m4: Likewise.
124670         * m4/realloc.m4: Likewise.
124671         * m4/regex.m4: Likewise.
124672         * m4/stat.m4: Likewise.
124673         * m4/strftime.m4: Likewise.
124674         Suggestion from Alain Magloire.
124676         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
124677         an argument.
124679         * m4/regex.m4: Add a run-time Test for proper operation of
124680         re_compile_pattern.
124682 1999-01-31  Jim Meyering  <meyering@ascend.com>
124684         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
124686 1999-01-30  Jim Meyering  <meyering@ascend.com>
124688         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
124690         * m4/jm-mktime.m4: Make this a wrapper around the official
124691         AM_FUNC_MKTIME rather than my private copy, now that the official one
124692         is up to date.
124693         * m4/mktime.m4: Remove file.
124695         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
124696         * m4/uptime.m4: Likewise.
124697         * m4/uintmax_t.m4: Likewise.
124699 1999-01-28  Jim Meyering  <meyering@ascend.com>
124701         * m4/jm-macros.m4: Use jm_AFS.
124702         * m4/afs.m4: New file (from fileutils' configure.in).
124704         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
124705         * m4/chown.m4: Likewise.
124706         * m4/d-ino.m4: Likewise.
124707         * m4/d-type.m4: Likewise.
124708         * m4/fnmatch.m4: Likewise.
124709         * m4/getgroups.m4: Likewise.
124710         * m4/gettext.m4: Likewise.
124711         * m4/jm-mktime.m4: Likewise.
124712         * m4/jm-winsz2.m4: Likewise.
124713         * m4/lcmessage.m4: Likewise.
124714         * m4/ls-mntd-fs.m4: Likewise.
124715         * m4/malloc.m4: Likewise.
124716         * m4/memcmp.m4: Likewise.
124717         * m4/putenv.m4: Likewise.
124718         * m4/realloc.m4: Likewise.
124719         * m4/st_mtim.m4: Likewise.
124720         * m4/strftime.m4: Likewise.
124722 1999-01-16  Jim Meyering  <meyering@ascend.com>
124724         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
124725         (ARGMATCH_DIE_DECL): Define.
124727 1999-01-12  Jim Meyering  <meyering@ascend.com>
124729         * m4/Makefile.am.in: Rewrite to avoid using fmt.
124730         Reported by Lars Hecking.
124732 1999-01-10  Jim Meyering  <meyering@ascend.com>
124734         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
124735         gross kludge.
124736         * m4/inttypes_h.m4: Likewise.
124737         * m4/lstat.m4: Likewise.
124738         * m4/malloc.m4: Likewise.
124739         * m4/readdir.m4: Likewise.
124740         * m4/realloc.m4: Likewise.
124741         * m4/st_dm_mode.m4: Likewise.
124742         * m4/stat.m4: Likewise.
124743         * m4/utimbuf.m4: Likewise.
124744         * m4/utimes.m4: Likewise.
124746         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
124747         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
124748         comments in config.h.in are meaningful.
124750         * m4/jm-macros.m4: Require autoconf-2.13 here.
124752         * m4/regex.m4: By default, don't use the included regex.c on systems
124753         with glibc 2.  Suggestion from Uli Drepper.
124755 1999-01-02  Jim Meyering  <meyering@ascend.com>
124757         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
124759 1998-12-18  Jim Meyering  <meyering@ascend.com>
124761         * m4/Makefile.am.in (Makefile.am): Simplify rule.
124762         Based on a suggestion from Lars Hecking.
124764 1998-11-16  Paul Eggert  <eggert@twinsun.com>
124766         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
124768 1998-11-16  Jim Meyering  <meyering@ascend.com>
124770         * m4/lfs.m4: Double-quote the `uname...` expression.
124772 1998-11-14  Jim Meyering  <meyering@ascend.com>
124774         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
124775         * m4/stat.m4: Likewise.
124777 1998-11-03  Jim Meyering  <meyering@ascend.com>
124779         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
124780         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
124782 1998-10-18  Jim Meyering  <meyering@ascend.com>
124784         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
124786 1998-10-17  Jim Meyering  <meyering@ascend.com>
124788         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
124789         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
124790         calls for those previously hard-coded headers.  Instead, take a new
124791         parameter.
124792         (jm_CHECK_DECLARATIONS): Reflect interface change.
124793         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
124794         (jm_CHECK_DECL_LOCALTIME_R): New macro.
124796         * m4/mktime.m4: Test for spring-forward gap before long-running test.
124798 1998-10-14  Jim Meyering  <meyering@ascend.com>
124800         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
124801         instead of "TZ=America/Vancouver".  From Paul Eggert.
124803 1998-10-11  Jim Meyering  <meyering@ascend.com>
124805         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
124806         This adds a test for a recently added compatibility fix for mktime.c.
124807         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
124809 1998-09-27  Jim Meyering  <meyering@ascend.com>
124811         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
124813         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
124814         ../configure.in, including a change from Gordon Matzigkeit to allow
124815         cross-compiling for the Hurd.
124817         * m4/glibc.m4: New file/macro to test for the GNU C Library
124818         versions 1 and 2.  From Gordon Matzigkeit.
124819         Indent.
124821 1998-09-21  Jim Meyering  <meyering@ascend.com>
124823         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
124825 1998-08-18  Paul Eggert  <eggert@twinsun.com>
124827         Port nanosecond-resolution times to UnixWare 2.1.2 and
124828         pedantic Solaris 2.6.
124830         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
124831         AC_STRUCT_ST_MTIM.
124832         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
124833         Generate name of ns member, instead of just 1 or undef.
124834         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
124836 1998-08-15  Jim Meyering  <meyering@ascend.com>
124838         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
124839         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
124840         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
124841         instead of jm_TYPE_SSIZE_T.
124843 1998-08-12  Jim Meyering  <meyering@ascend.com>
124845         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
124847 1998-08-02  Jim Meyering  <meyering@ascend.com>
124849         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
124850         in acconfig.h manually.
124852 1998-07-31  Paul Eggert  <eggert@twinsun.com>
124854         * m4/st_mtim.m4: New file.
124856 1998-07-28  Jim Meyering  <meyering@ascend.com>
124858         * m4/utimes.m4: Undef stat.
124860 1998-07-25  Jim Meyering  <meyering@ascend.com>
124862         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
124863         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
124865 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
124867         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
124868         uid and gid actually remain unchanged.
124870 1998-07-07  Jim Meyering  <meyering@ascend.com>
124872         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
124874 1998-07-04  Jim Meyering  <meyering@ascend.com>
124876         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
124877         to prove that this macro can be used in packages without regex.c.
124879 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
124881         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
124882         is to be used.
124884 1998-07-03  Jim Meyering  <meyering@ascend.com>
124886         * m4/gettext.m4: Add -lintl if it's found to be necessary.
124888         * m4/gettext.m4: New file -- from gettext-0.10.35.
124889         * m4/lcmessage.m4: Likewise.
124890         * m4/progtest.m4: Likewise.
124892         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
124893         * m4/jm-macros.m4: Require the new macro.
124895 1998-06-29  Jim Meyering  <meyering@ascend.com>
124897         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
124898         for the definition of NGROUPS (used in a system header included
124899         by sys/mount.h).
124901 1998-06-28  Jim Meyering  <meyering@ascend.com>
124903         * m4/ls-mntd-fs.m4: New file.
124904         * m4/fstypename.m4: New file.
124906         * m4/jm-macros.m4: Require the new macro.
124907         * m4/jm-glibc-io.m4: New file.
124909 1998-05-19  Jim Meyering  <meyering@ascend.com>
124911         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
124912         * m4/lchown.m4: New file.
124914         * m4/Makefile.am.in: New file.
124915         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
124917 1998-05-14  Jim Meyering  <meyering@ascend.com>
124919         * m4/Makefile.am (EXTRA_DIST): Add them.
124920         * m4/jm-macros.m4: New file.
124921         * m4/utimbuf.m4: New file.
124923 1998-05-12  Jim Meyering  <meyering@ascend.com>
124925         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
124927 1998-05-11  Jim Meyering  <meyering@ascend.com>
124929         * m4/isc-posix.m4: New file.
124931 1998-05-10  Jim Meyering  <meyering@ascend.com>
124933         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
124935 1998-05-09  Jim Meyering  <meyering@ascend.com>
124937         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
124938         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
124939         with automake.
124941         * m4/ssize_t.m4: New file.
124942         * m4/mktime.m4: Remove file -- the new automake has this now.
124944 1998-04-26  Jim Meyering  <meyering@ascend.com>
124946         * m4/assert.m4: New file.
124947         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
124949 1998-04-05  Jim Meyering  <meyering@ascend.com>
124951         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
124952         (jm_PREREQ): Use it here.
124954 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
124956         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
124957         in acconfig.h.
124959 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
124961         * m4/prereq.m4: New file.
124962         * m4/error.m4: New file.
124963         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
124965 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
124967         * m4/getline.m4: Don't set am_cv_func_working_getline before the
124968         cache-check for the same variable -- that defeated the purpose of
124969         the test; the test program was never run.  This was a problem only
124970         on systems with losing getline functions -- HP-UX 10.20 is one.
124971         Reported by Bjorn Helgaas.
124973 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
124975         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
124977 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
124979         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
124981         * m4/const.m4: New file.  Use an initializer in this declaration
124982         typedef int charset[2]; const charset x;
124983         Reported by Bob Glickstein.
124985 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
124987         * m4/chown.m4: Fix reversed types on -1 args to chown.
124988         From Kaveh Ghazi.
124990 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
124992         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
124993         Add lseek and memchr.
124995         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
124996         T.E.Dickey <dickey@clark.net> said that some older preprocessors
124997         have a 20-character limit on names.
124999 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
125001         * m4/inttypes_h.m4: New file.
125002         * m4/uintmax_t.m4: New file.
125003         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
125006         -----
125008         Local Variables:
125009         coding: utf-8
125010         End:
125012         Copyright (C) 1997-2019 Free Software Foundation, Inc.
125014         Copying and distribution of this file, with or without
125015         modification, are permitted provided the copyright notice
125016         and this notice are preserved.